templates/includes/pagination.html.twig line 1

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