templates/includes/pagination.html.twig line 1

Open in your IDE?
  1. {#
  2. Knp\Component\Pager\Paginator
  3. Ref/Doc: https://pimcore.com/docs/pimcore/current/Development_Documentation/Objects/Working_with_PHP_API.html#page_Working-with-Knp-Component-Pager-Paginator
  4. #}
  5. <div>
  6.     <ul class="uk-pagination uk-flex-center">
  7.         {%  for page in paginationVariables.pagesInRange %}
  8.             {%  if (paginationVariables.current == page) %}
  9.                 <li class="page-item uk-active" aria-current="page">
  10.                     <span class="page-link">
  11.                     {{  page }}
  12.                     <span class="sr-only">(current)</span>
  13.                     </span>
  14.                 </li>
  15.             {%  else %}
  16.                 <li class="page-item"><a class="page-link" href="{{  pimcore_url({'page': page}) }}">{{ page }}</a></li>
  17.             {%  endif %}
  18.         {% endfor %}
  19.     </ul>
  20. </div>