templates/includes/pagination-product-ajax.html.twig line 1

Open in your IDE?
  1. {% if paginationVariables.pageCount > 1 %}
  2.     <nav aria-label="Pagination">
  3.         <ul class="pagination mb-5">
  4.             {% if(paginationVariables.previous is defined) %}
  5.                 <li class="page-item">
  6.                     <button class="page-link btn-prev"
  7.                        aria-label="Previous">
  8.                         <span class="material-symbols-outlined inline-icon">
  9. keyboard_double_arrow_left
  10. </span>
  11.                     </button>
  12.                 </li>
  13.             {% endif %}
  14.             {% for page in paginationVariables.pagesInRange %}
  15.                 {% if(paginationVariables.current == page) %}
  16.                     <li class="page-item active" aria-current="page">
  17.                         <button class="page-link btn-page" data-page="{{ page }}">
  18.                             {{ page }}
  19.                         </button>
  20.                     </li>
  21.                 {% else %}
  22.                     <li class="page-item"><button class="page-link btn-page" data-page="{{ page }}">{{ page }}</button></li>
  23.                 {% endif %}
  24.             {% endfor %}
  25.             {% if(paginationVariables.next is defined) %}
  26.                 <li class="page-item">
  27.                     <button class="page-link btn-next" aria-label="Next">
  28.                         <span class="material-symbols-outlined inline-icon">
  29. keyboard_double_arrow_right
  30. </span>
  31.                         {#
  32.                         <span aria-hidden="true">&raquo;</span>#}
  33.                     </button>
  34.                 </li>
  35.             {% endif %}
  36.         </ul>
  37.         <input type="hidden" class="totalpages" value="{{ paginationVariables.pagesInRange|length }}">
  38.         <input type="hidden" class="pagenumber" value="{{ pageselected }}">
  39.     </nav>
  40. {% endif %}