calendar-pager.html.twig in Calendar 8.2
Same filename and directory in other branches
Default theme implementation for a calendar pager.
Available variables:
- items: List of pager items.
File
templates/calendar-pager.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for a calendar pager.
- *
- * Available variables:
- * - items: List of pager items.
- *
- * @ingroup themeable
- */
- #}
- <h3 class="calendar-pager">{{ items.title }}</h3>
- {% if (items.previous or items.next) and not exclude %}
- <nav class="pager" role="navigation" aria-labelledby="pagination-heading">
- <h4 class="visually-hidden">{{ 'Pagination'|t }}</h4>
- <ul class="js-pager__items">
- {% if items.previous %}
- <li class="pager__item pager__item--previous">
- <a href="{{ items.previous.url }}" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel') }}>
- <span aria-hidden="true">{{ items.previous.text|default('‹‹'|t) }}</span>
- <span>{{ 'Previous'|t }}</span>
- </a>
- </li>
- {% endif %}
- {% if items.current %}
- <li class="pager__item pager__item--current">{{ items.current }}</li>
- {% endif %}
- {% if items.next %}
- <li class="pager__item pager__item--next">
- <a href="{{ items.next.url }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }}>
- <span>{{ 'Next'|t }}</span>
- <span aria-hidden="true">{{ items.next.text|default('››'|t) }}</span>
- </a>
- </li>
- {% endif %}
- </ul>
- </nav>
- {% endif %}
-