templates/includes/pagination.html.twig line 1

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