rivet-1.0.x-dev/templates/views/views-mini-pager.html.twig

templates/views/views-mini-pager.html.twig
{#
/**
 * @file
 * Theme override for a views mini-pager.
 *
 * Available variables:
 * - heading_id: Pagination heading ID.
 * - items: List of pager items.
 *
 * @see template_preprocess_views_mini_pager()
 */
#}
{% if items.previous or items.next %}
  <nav role="navigation" aria-labelledby="{{ heading_id }}">
    <h4 id="{{ heading_id }}" class="rvt-sr-only">{{ 'Pagination'|t }}</h4>
    <ul class="rvt-pagination rvt-justify-center js-pager__items">
      {% if items.previous %}
        <li class="rvt-pagination__item rvt-pagination__item--previous">
          <a href="{{ items.previous.href }}" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel') }}>
            <span class="rvt-sr-only">{{ 'Previous page'|t }}</span>
            <svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16"><path d="M.586 8 7 14.414 8.414 13l-5-5 5-5L7 1.586.586 8Z"></path><path d="M6.586 8 13 14.414 14.414 13l-5-5 5-5L13 1.586 6.586 8Z"></path></svg>
            {% if items.previous.text %}
            <span aria-hidden="true">{{ items.previous.text }}</span>
            {% endif %}
          </a>
        </li>
      {% endif %}
      {% if items.current %}
        <li class="rvt-pagination__item is-active rvt-strong">
          {% trans %}
            Page {{ items.current }}
          {% endtrans %}
        </li>
      {% endif %}
      {% if items.next %}
        <li class="rvt-pagination__item rvt-pagination__item--next">
          <a href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }}>
            <span class="rvt-sr-only">{{ 'Next page'|t }}</span>
            {% if items.next.text %}
            <span aria-hidden="true">{{ items.next.text }}</span>
            {% endif %}
            <svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16"><path d="M9.414 8 3 1.586 1.586 3l5 5-5 5L3 14.414 9.414 8Z"></path><path d="M15.414 8 9 1.586 7.586 3l5 5-5 5L9 14.414 15.414 8Z"></path></svg>
          </a>
        </li>
      {% endif %}
    </ul>
  </nav>
{% endif %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc