src/DcSiteBundle/Resources/views/Modules/pagination/pagination.html.twig line 1

Open in your IDE?
  1. <div class="catalog_pagination">
  2.     {% if pagination.prevPage %}
  3.         <a href="{{ pagination.prevPage.link }}" class="pagination_arrow">
  4.             <svg width="8" height="14" viewBox="0 0 8 14" fill="none"
  5.                  xmlns="http://www.w3.org/2000/svg">
  6.                 <path d="M7 1L1.23249 6.88149M6.76751 13L1 7.1185" stroke="#333333"
  7.                       stroke-linecap="round"/>
  8.             </svg>
  9.         </a>
  10.     {% endif %}
  11.     {% for item in pagination.linksPage %}
  12.         {% if app.request.query.get('page') == item.pageNumber or (app.request.query.get('page') is null and item.pageNumber == 1)  %}
  13.             <a class="catalog_page active">{{ item.pageNumber }}</a>
  14.         {% else %}
  15.             <a href="{{ item.link }}" class="catalog_page">{{ item.pageNumber }}</a>
  16.         {% endif %}
  17.     {% endfor %}
  18.     {% if pagination.nextPage %}
  19.         <a href="{{ pagination.nextPage.link }}" class="pagination_arrow">
  20.             <svg width="8" height="14" viewBox="0 0 8 14" fill="none"
  21.                  xmlns="http://www.w3.org/2000/svg">
  22.                 <path d="M1 1L6.76751 6.88149M1.23249 13L7 7.1185" stroke="#333333"
  23.                       stroke-linecap="round"/>
  24.             </svg>
  25.         </a>
  26.     {% endif %}
  27. </div>