You are here

views-infinite-scroll-pager.html.twig in Open Social 8.7

Theme override for a views infinite scroll pager.

Available variables:

  • items: List of pager items.

See also

template_preprocess_views_infinite_scroll_pager()

File

themes/socialbase/templates/views/views-infinite-scroll-pager.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a views infinite scroll pager.
  5. *
  6. * Available variables:
  7. * - items: List of pager items.
  8. *
  9. * @ingroup templates
  10. *
  11. * @see template_preprocess_views_infinite_scroll_pager()
  12. */
  13. #}
  14. {{ attach_library('socialbase/pagination') }}
  15. {% if items.next %}
  16. <nav aria-labelledby="pagination-heading">
  17. <h4 class="sr-only">{{ 'Pagination'|t }}</h4>
  18. <ul{{ attributes.addClass('mini-pager') }}>
  19. <li class="pager__item pager__item--next">
  20. <a class="btn btn-flat" href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }}>
  21. <span>{{ options.button_text }}</span>
  22. <span aria-hidden="true">
  23. <svg class="icon-small">
  24. <use xlink:href="#icon-expand_more"> </use>
  25. </svg>
  26. </span>
  27. </a>
  28. </li>
  29. </ul>
  30. </nav>
  31. {% endif %}