templates/ContentBlock/pagination.html.twig line 1

Open in your IDE?
  1. {% if pageCount > 1 %}
  2.     <nav>
  3.         <ul class="pagination justify-content-center">
  4.             {% if first is defined and current != first %}
  5.                 <li class="page-item">
  6.                     <a class="page-link pageBtn" href="{{ path(route, query|merge({(pageParameterName): first})) }}" data-page="{{ first }}" title="first">
  7.                         <i class="fas fa-fast-backward"></i>
  8.                         {# <i class="fas fa-chevron-left"></i><i class="fas fa-chevron-left"></i> #}
  9.                     </a>
  10.                 </li>
  11.             {% endif %}
  12.             {% if previous is defined %}
  13.                 <li class="page-item">
  14.                     <a class="page-link pageBtn" href="{{ path(route, query|merge({(pageParameterName): previous})) }}" data-page="{{ previous }}" tabindex="-1" aria-disabled="true" title="previous">
  15.                         <i class="fas fa-step-backward"></i>
  16.                         {# <i class="fas fa-chevron-left"></i> #}
  17.                     </a>
  18.                 </li>
  19.             {% endif %}
  20.             {% for page in pagesInRange %}
  21.                 <li class="page-item {{ page == current ? 'active' : '' }}">
  22.                     <a class="page-link pageBtn" href="{{ path(route, query|merge({(pageParameterName): page})) }}" data-page="{{ page }}" title="Go to {{ page }}">{{ page }}</a>
  23.                 </li>
  24.             {% endfor %}
  25.             {% if next is defined %}
  26.                 <li class="page-item">
  27.                     <a class="page-link pageBtn" href="{{ path(route, query|merge({(pageParameterName): next})) }}" data-page="{{ next }}" title="next">
  28.                         <i class="fas fa-step-forward"></i>
  29.                         {# <i class="fas fa-chevron-right"></i> #}
  30.                     </a>
  31.                 </li>
  32.             {% endif %}
  33.             {% if last is defined and current != last %}
  34.                 <li class="page-item">
  35.                     <a class="page-link pageBtn" href="{{ path(route, query|merge({(pageParameterName): last})) }}" data-page="{{ last }}" title="last">
  36.                         <i class="fas fa-fast-forward"></i>
  37.                         {# <i class="fas fa-chevron-right"></i><i class="fas fa-chevron-right"></i> #}
  38.                     </a>
  39.                 </li>
  40.             {% endif %}
  41.         </ul>
  42.     </nav>
  43. {% endif %}