custom/plugins/BjerregaardTheme/src/Resources/views/storefront/component/product/listing.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/listing.html.twig' %}
  2. {% block element_product_listing_pagination_nav_top %}
  3. {% endblock %}
  4. {% block product_listing %}
  5.     <div class="cms-element-product-listing-wrapper position-relative"
  6.          data-listing-pagination="true"
  7.          data-listing-pagination-options='{{ paginationConfig }}'
  8.          data-listing="true"
  9.          data-listing-options='{{ listingPagination|json_encode }}'>
  10.         {% block product_listing_filtering %}
  11.             <div class="filtering">
  12.                 <button class="btn header-actions-btn filter-panel-wrapper-toggle filter-container-toggle"
  13.                         type="button"
  14.                         data-offcanvas-filter="true"
  15.                         aria-haspopup="true"
  16.                         aria-expanded="false"
  17.                         aria-label="{{ "general.menuLink"|trans }}"
  18.                 >
  19.                     {% sw_icon 'sliders-horizontal' %}
  20.                     Filtrér og sortér
  21.                 </button>
  22.             </div>
  23.         {% endblock %}
  24.         {% block product_listing_breadcrumb %}
  25.             <h3 class="headline">
  26.                 {{ page.metaInformation.metaTitle|striptags|trim }}
  27.             </h3>
  28.         {% endblock %}
  29.         {% block element_product_listing_wrapper_content %}
  30.             <div id="productListing" class="cms-element-product-listing">
  31.                 {% if searchResult.total > 0 %}
  32.                     {% block element_product_listing_pagination_nav_actions %}
  33.                         <div class="cms-element-product-listing-actions row justify-content-between">
  34.                             <div class="col-md-auto">
  35.                                 {{ block('element_product_listing_pagination_nav_top') }}
  36.                             </div>
  37.                         </div>
  38.                     {% endblock %}
  39.                 {% endif %}
  40.                 {{ block('element_product_listing_row') }}
  41.                 {% if searchResult.total > searchResult.limit %}
  42.                     {% block element_product_listing_pagination_nav_bottom %}
  43.                         {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  44.                             entities: searchResult,
  45.                             criteria: searchResult.criteria,
  46.                             paginationLocation: 'bottom',
  47.                         } %}
  48.                     {% endblock %}
  49.                 {% endif %}
  50.             </div>
  51.         {% endblock %}
  52.     </div>
  53. {% endblock %}