You are here

views-show-more-pager.html.twig in Views Show More 8

The views show more pager template.

Available variables:

  • heading_id: Pagination heading ID.
  • item: Show more pager item.

File

templates/views-show-more-pager.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * The views show more pager template.
  5. *
  6. * Available variables:
  7. * - heading_id: Pagination heading ID.
  8. * - item: Show more pager item.
  9. *
  10. * @see views_show_more_preprocess_views_show_more_pager()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. {% if item.text %}
  16. <nav role="navigation" aria-labelledby="{{ heading_id }}">
  17. <h4 id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</h4>
  18. <ul{{ attributes }}>
  19. <li class="pager__item">
  20. {% if item.href %}
  21. <a href="{{ item.href }}" title="{{ 'Go to next page'|t }}" rel="next">{{ item.text }}</a>
  22. {% else %}
  23. {{ item.text }}
  24. {% endif %}
  25. </li>
  26. </ul>
  27. </nav>
  28. {% endif %}