templates/Shop/includes/newPagination.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.                     <i class="fa-solid fa-arrow-left"></i>
  7.                     <span aria-hidden="true"></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.                                     <span class="sr-only">(current)</span>
  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.                     <i class="fa-solid fa-arrow-right"></i>
  27.                     <span class="flip" aria-hidden="true"></span>
  28.                 </a>
  29.             </li>
  30.         {%  endif %}
  31.     </ul>
  32. </nav>