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.first is defined) %}
  4.             <li class="page-item">
  5.                 <a class="page-link first" href="{{  pimcore_url({'page': paginationVariables.first}) }}" aria-label="First">
  6.                     <span class="pagination-double flip" aria-hidden="true"></span>
  7.                 </a>
  8.             </li>
  9.         {%  endif %}
  10.         {%  if(paginationVariables.previous is defined) %}
  11.             <li class="page-item">
  12.                 <a class="page-link prev" href="{{  pimcore_url({'page': paginationVariables.previous}) }}" aria-label="Previous">
  13.                     <span aria-hidden="true"></span>
  14.                 </a>
  15.             </li>
  16.         {%  endif %}
  17.         {%  for page in paginationVariables.pagesInRange %}
  18.             {%  if(paginationVariables.current == page) %}
  19.                 <li class="page-item active" aria-current="page">
  20.                                   <span class="page-link">
  21.                                     {{  page }}
  22.                                     <span class="sr-only">(current)</span>
  23.                                   </span>
  24.                 </li>
  25.             {%  else %}
  26.                 <li class="page-item"><a class="page-link" href="{{  pimcore_url({'page': page}) }}">{{ page }}</a></li>
  27.             {%  endif %}
  28.         {% endfor %}
  29.         {%  if(paginationVariables.next is defined) %}
  30.             <li class="page-item">
  31.                 <a class="page-link next" href="{{  pimcore_url({'page': paginationVariables.next}) }}" aria-label="Next">
  32.                     <span class="flip" aria-hidden="true"></span>
  33.                 </a>
  34.             </li>
  35.         {%  endif %}
  36.         {%  if(paginationVariables.last is defined) %}
  37.             <li class="page-item">
  38.                 <a class="page-link last" href="{{  pimcore_url({'page': paginationVariables.last}) }}" aria-label="Last">
  39.                     <span class="pagination-double" aria-hidden="true"></span>
  40.                 </a>
  41.             </li>
  42.         {%  endif %}
  43.     </ul>
  44. </nav>