views-mini-pager.html.twig 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a views mini-pager.
  5. *
  6. * Available variables:
  7. * - items: List of pager items.
  8. *
  9. * @see template_preprocess_views_mini_pager()
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {% if items.previous or items.next %}
  15. <nav role="navigation" aria-labelledby="pagination-heading">
  16. <h4 class="visually-hidden">{{ 'Pagination'|t }}</h4>
  17. <ul class="js-pager__items">
  18. {% if items.previous %}
  19. <li>
  20. <a href="{{ items.previous.href }}" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel') }}>
  21. <span class="visually-hidden">{{ 'Previous page'|t }}</span>
  22. <span aria-hidden="true">{{ items.previous.text|default('‹‹'|t) }}</span>
  23. </a>
  24. </li>
  25. {% endif %}
  26. {% if items.current %}
  27. <li>
  28. </li>
  29. {% endif %}
  30. {% if items.next %}
  31. <li>
  32. <a href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }}>
  33. <span class="visually-hidden">{{ 'Next page'|t }}</span>
  34. <span aria-hidden="true">{{ items.next.text|default('››'|t) }}</span>
  35. </a>
  36. </li>
  37. {% endif %}
  38. </ul>
  39. </nav>
  40. {% endif %}