pager--gallerie.html.twig 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a pager.
  5. *
  6. * Available variables:
  7. * - heading_id: Pagination heading ID.
  8. * - items: List of pager items.
  9. * The list is keyed by the following elements:
  10. * - first: Item for the first page; not present on the first page of results.
  11. * - previous: Item for the previous page; not present on the first page
  12. * of results.
  13. * - next: Item for the next page; not present on the last page of results.
  14. * - last: Item for the last page; not present on the last page of results.
  15. * - pages: List of pages, keyed by page number.
  16. * Sub-sub elements:
  17. * items.first, items.previous, items.next, items.last, and each item inside
  18. * items.pages contain the following elements:
  19. * - href: URL with appropriate query parameters for the item.
  20. * - attributes: A keyed list of HTML attributes for the item.
  21. * - text: The visible text used for the item link, such as "‹ Previous"
  22. * or "Next ›".
  23. * - current: The page number of the current page.
  24. * - ellipses: If there are more pages than the quantity allows, then an
  25. * ellipsis before or after the listed pages may be present.
  26. * - previous: Present if the currently visible list of pages does not start
  27. * at the first page.
  28. * - next: Present if the visible list of pages ends before the last page.
  29. *
  30. * @see template_preprocess_pager()
  31. *
  32. * @ingroup themeable
  33. */
  34. #}
  35. {% if items %}
  36. <div class="pager" role="navigation" aria-labelledby="{{ heading_id }}">
  37. <div class="wrap--btn">
  38. <a href="{{ items.next.href }}" data-totalpages="{{items.pages|length}}" title="{{ 'Go to last page'|t }}"{{ items.last.attributes|without('href', 'title') }}>
  39. More
  40. </a>
  41. </div>
  42. </div>
  43. {% endif %}