custom/static-plugins/EfbStorefront/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 product_listing %}
  3.     {% set listingPagination = listingPagination|merge({
  4.         resetAllFilterButtonClasses: 'filter-reset-all',
  5.     }) %}
  6.     <div class="cms-element-product-listing-wrapper grid-listing-view-mode"
  7.          data-listing-pagination="true"
  8.          data-listing-pagination-options='{{ paginationConfig }}'
  9.          data-listing="true"
  10.          data-listing-options='{{ listingPagination|json_encode }}'>
  11.         {% block element_product_listing_wrapper_content %}
  12.             {{ parent() }}
  13.         {% endblock %}
  14.     </div>
  15. {% endblock %}
  16. {% block element_product_listing_pagination_nav_actions %}
  17.     <div class="cms-element-product-listing-actions row justify-content-end">
  18.         <div class="col-lg-auto col-12">
  19.             {% block element_product_listing_sorting %}
  20.                 {% set config = { sorting: searchResult.sorting } %}
  21.                 {% set showSorting = (slot.config.showSorting.value is defined) ? slot.config.showSorting.value : true %}
  22.                 {% if showSorting and searchResult.availableSortings|length > 1 %}
  23.                     <div class="sorting" data-listing-sorting="true" data-listing-sorting-options='{{ config|json_encode }}'>
  24.                         <p class="sorting-label">{{ 'general.sortingLabel'|trans|striptags }}</p>
  25.                         <select class="sorting custom-select" aria-label="{{ 'general.sortingLabel'|trans|striptags }}">
  26.                             {% for sorting in searchResult.availableSortings %}
  27.                                 {% set key = sorting.key %}
  28.                                 <option value="{{ key }}"{% if key == searchResult.sorting %} selected{% endif %}>{{ sorting.translated.label|sw_sanitize }}</option>
  29.                             {% endfor %}
  30.                         </select>
  31.                     </div>
  32.                 {% endif %}
  33.             {% endblock %}
  34.         </div>
  35.     </div>
  36. {% endblock %}