vendor/crehler/mojebambino-engine/src/Resources/views/storefront/component/pagination.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/pagination.html.twig' %}
  2. {% block component_pagination_next %}
  3.     {% if isTop %}
  4.         {% if app.request.get('p') %}
  5.             {% set strona = app.request.get('p')+1 %}
  6.         {% else %}
  7.             {% set strona = 2 %}
  8.         {% endif %}
  9.         <a class="page-item{% if currentPage == totalPages %} disabled{% endif %}"
  10.             {% if currentPage < totalPages %}
  11.                 href="?order={{ app.request.get('order') }}&{% 
  12.                     if app.request.get('max-price') %}max-price={{ app.request.get('max-price') }}&{% endif %}{% 
  13.                     if app.request.get('min-price') %}min-price={{ app.request.get('min-price') }}&{% endif %}p={{ strona }}{%
  14.                     if app.request.get('product-status') %}&product-status={{ app.request.get('product-status') }}{% endif %}{%
  15.                     if app.request.get('properties') %}&properties={{ app.request.get('properties') }}{% endif %}"
  16.             {% endif %}
  17.             data-action-link="true">
  18.             <label class="page-link" for="page-next">
  19.                 {% block component_pagination_next_link %}
  20.                     {{ parent() }}
  21.                 {% endblock %}
  22.             </label>
  23.         </a>
  24.     {% else %}
  25.         {{ parent() }}
  26.     {% endif %}
  27. {% endblock %}