templates/includes/pagination.html.twig line 1

Open in your IDE?
  1. {% if paginationVariables.pageCount > 1 %}
  2.     <nav aria-label="Pagination">
  3.         <ul class="pagination py-5">
  4.             {% if(paginationVariables.previous is defined) %}
  5.                 <li class="page-item">
  6.                     <a class="page-link" href="{{ pimcore_url({'page': paginationVariables.previous}) }}"
  7.                        aria-label="Previous">
  8.                         <span aria-hidden="true">&laquo;</span>
  9.                     </a>
  10.                 </li>
  11.             {% endif %}
  12.             {% for page in paginationVariables.pagesInRange %}
  13.                 {% if(paginationVariables.current == page) %}
  14.                     <li class="page-item active" aria-current="page">
  15.                         <a class="page-link">
  16.                             {{ page }}
  17.                             <span class="sr-only">(current)</span>
  18.                         </a>
  19.                     </li>
  20.                 {% else %}
  21.                     <li class="page-item"><a class="page-link" href="{{ pimcore_url({'page': page}) }}">{{ page }}</a>
  22.                     </li>
  23.                 {% endif %}
  24.             {% endfor %}
  25.             {% if(paginationVariables.next is defined) %}
  26.                 <li class="page-item">
  27.                     <a class="page-link" href="{{ pimcore_url({'page': paginationVariables.next}) }}" aria-label="Next">
  28.                         <span aria-hidden="true">&raquo;</span>
  29.                     </a>
  30.                 </li>
  31.             {% endif %}
  32.         </ul>
  33.     </nav>
  34. {% endif %}