templates/includes/pagination.html.twig line 1

Open in your IDE?
  1. {# Based on https://pimcore.com/docs/pimcore/current/Development_Documentation/Objects/Working_with_PHP_API.html#page_Working-with-Knp-Component-Pager-Paginator #}
  2. <nav aria-label="Pagination">
  3.     <ul class="flex items-center justify-center gap-4">
  4.         <li>
  5.             <a
  6.                 class="shrink-0 w-[50px] h-[50px] border-2 rounded-full border-blue-500 flex items-center justify-center {% if paginationVariables.previous is defined %} opacity-100 {% else %} opacity-40 {% endif %}"
  7.                 {% if paginationVariables.previous is defined %}
  8.                     href="{{ pimcore_url({'page': paginationVariables.previous}) | trimUrl }}"
  9.                 {% endif %}
  10.                 aria-label="Previous"
  11.             >
  12.                 <span aria-hidden="true"></span>
  13.                 <svg class="w-4 h-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12"><path fill="#0072BB" fill-rule="evenodd" d="M15.106 6.883H3.396l3.218 3.218a.885.885 0 1 1-1.252 1.252L.707 6.695a1 1 0 0 1 0-1.414L5.362.626a.885.885 0 1 1 1.252 1.252L3.396 5.095h11.71a.894.894 0 0 1 0 1.788Z"></path></svg>
  14.             </a>
  15.         </li>
  16.         <li class="text-center">
  17.             {{ paginationVariables.current }} {{ 'pagination-range' | trans }} {{ paginationVariables.last }}
  18.         </li>
  19.         <li>
  20.             <a
  21.                 class="shrink-0 w-[50px] h-[50px] border-2 rounded-full border-blue-500 flex items-center justify-center {% if paginationVariables.next is defined %} opacity-100 {% else %} opacity-40 {% endif %}"
  22.                 {% if paginationVariables.next is defined %}
  23.                     href="{{ pimcore_url({ page: paginationVariables.next }) | trimUrl }}"
  24.                 {% endif %}
  25.                 aria-label="Next"
  26.             >
  27.                 <span class="flip" aria-hidden="true"></span>
  28.                 <svg class="w-4 h-3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12"><path fill="#0072BB" fill-rule="evenodd" d="M.894 5.095h11.71L9.386 1.878A.885.885 0 1 1 10.638.626l4.655 4.656a1 1 0 0 1 0 1.414l-4.655 4.656A.885.885 0 1 1 9.386 10.1l3.218-3.217H.894a.894.894 0 0 1 0-1.788Z"></path></svg>
  29.             </a>
  30.         </li>
  31.     </ul>
  32. </nav>