templates/Shop/includes/pagination.html.twig line 1

Open in your IDE?
  1. <form class="select-page" action="#">
  2.   <!--
  3.   <div class="select-block">
  4.     <label for="select1">Sort by</label>
  5.     <select id="select1">
  6.       <option>Name: A - Z</option>
  7.       <option>Name: A - Z</option>
  8.       <option>Name: A - Z</option>
  9.       <option>Name: A - Z</option>
  10.       <option>Name: A - Z</option>
  11.     </select>
  12.   </div>
  13.   <div class="select-block second">
  14.     <label for="select2">View</label>
  15.     <select id="select2">
  16.       <option>15 per Page</option>
  17.       <option>30 per Page</option>
  18.       <option>45 per Page</option>
  19.       <option>60 per Page</option>
  20.       <option>75 per Page</option>
  21.     </select>
  22.   </div>
  23.   -->
  24.   <nav aria-label="Pagination">
  25.     <ul class="pagination justify-content-center">
  26.         {%  if(paginationVariables.previous is defined) %}
  27.             <li class="page-item">
  28.                 <a class="page-link prev" href="{{  pimcore_url({'page': paginationVariables.previous}) }}" aria-label="Previous">
  29.                     <span aria-hidden="true" class="icon-angle-double-left"></span>
  30.                 </a>
  31.             </li>
  32.         {%  endif %}
  33.         {%  for page in paginationVariables.pagesInRange %}
  34.             {%  if(paginationVariables.current == page) %}
  35.                 <li class="page-item active" aria-current="page">
  36.                                   <span class="page-link">
  37.                                     {{  page }}
  38.                                     <span class="sr-only">(current)</span>
  39.                                   </span>
  40.                 </li>
  41.             {%  else %}
  42.                 <li class="page-item"><a class="page-link" href="{{  pimcore_url({'page': page}) }}">{{ page }}</a></li>
  43.             {%  endif %}
  44.         {% endfor %}
  45.         {%  if(paginationVariables.next is defined) %}
  46.             <li class="page-item">
  47.                 <a class="page-link next" href="{{  pimcore_url({'page': paginationVariables.next}) }}" aria-label="Next">
  48.                     <span class="flip icon-angle-double-right" aria-hidden="true"></span>
  49.                 </a>
  50.             </li>
  51.         {%  endif %}
  52.     </ul>
  53. </nav>
  54. </form>