views-mini-pager.html.twig
Same filename in this branch
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/views/views-mini-pager.html.twig
- 11.x core/themes/stable9/templates/views/views-mini-pager.html.twig
- 11.x core/themes/claro/templates/views/views-mini-pager.html.twig
- 11.x core/themes/starterkit_theme/templates/views/views-mini-pager.html.twig
- 11.x core/modules/views/templates/views-mini-pager.html.twig
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/templates/classy/views/views-mini-pager.html.twig
- 9 core/themes/olivero/templates/views/views-mini-pager.html.twig
- 9 core/themes/stable9/templates/views/views-mini-pager.html.twig
- 9 core/themes/seven/templates/classy/views/views-mini-pager.html.twig
- 9 core/themes/claro/templates/views/views-mini-pager.html.twig
- 9 core/themes/bartik/templates/classy/views/views-mini-pager.html.twig
- 9 core/themes/stable/templates/views/views-mini-pager.html.twig
- 9 core/themes/starterkit_theme/templates/views/views-mini-pager.html.twig
- 9 core/themes/classy/templates/views/views-mini-pager.html.twig
- 9 core/modules/views/templates/views-mini-pager.html.twig
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/views/views-mini-pager.html.twig
- 8.9.x core/themes/seven/templates/classy/views/views-mini-pager.html.twig
- 8.9.x core/themes/claro/templates/views/views-mini-pager.html.twig
- 8.9.x core/themes/bartik/templates/classy/views/views-mini-pager.html.twig
- 8.9.x core/themes/stable/templates/views/views-mini-pager.html.twig
- 8.9.x core/themes/classy/templates/views/views-mini-pager.html.twig
- 8.9.x core/modules/views/templates/views-mini-pager.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/views/views-mini-pager.html.twig
- 10 core/themes/olivero/templates/views/views-mini-pager.html.twig
- 10 core/themes/stable9/templates/views/views-mini-pager.html.twig
- 10 core/themes/claro/templates/views/views-mini-pager.html.twig
- 10 core/themes/starterkit_theme/templates/views/views-mini-pager.html.twig
- 10 core/modules/views/templates/views-mini-pager.html.twig
Theme override for a views mini-pager.
Available variables:
- heading_id: Pagination heading ID.
- pagination_heading_level: The heading level to use for the pager.
- items: List of pager items.
See also
template_preprocess_views_mini_pager()
File
-
core/
themes/ olivero/ templates/ views/ views-mini-pager.html.twig
View source
- {#
- /**
- * @file
- * Theme override for a views mini-pager.
- *
- * Available variables:
- * - heading_id: Pagination heading ID.
- * - pagination_heading_level: The heading level to use for the pager.
- * - items: List of pager items.
- *
- * @see template_preprocess_views_mini_pager()
- */
- #}
- {% if items.previous or items.next %}
- <nav class="pager" role="navigation" aria-labelledby="{{ heading_id }}">
- <{{ pagination_heading_level }} id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</{{ pagination_heading_level }}>
- <ul class="pager__items js-pager__items">
- {# Print previous item if we are not on the first page. #}
- {% if items.previous %}
- {% apply spaceless %}
- <li class="pager__item pager__item--control pager__item--previous">
- <a href="{{ items.previous.href }}" class="pager__link" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel', 'class') }}>
- <span class="visually-hidden">{{ 'Previous page'|t }}</span>
- {% include "@olivero/../images/pager-previous.svg" %}
- </a>
- </li>
- {% endapply %}
- {% endif %}
-
- {# Print current active page. #}
- {% if items.current %}
- <li class="pager__item pager__item--active">
- {{ items.current }}
- </li>
- {% endif %}
-
- {# Print next item if we are not on the last page. #}
- {% if items.next %}
- {% apply spaceless %}
- <li class="pager__item pager__item--control pager__item--next">
- <a href="{{ items.next.href }}" class="pager__link" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }}>
- <span class="visually-hidden">{{ 'Next page'|t }}</span>
- {% include "@olivero/../images/pager-previous.svg" %}
- </a>
- </li>
- {% endapply %}
- {% endif %}
- </ul>
- </nav>
- {% endif %}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.