custom/plugins/Lichtkarree/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 product_listing %}
  3.     <div class="cms-element-product-listing-wrapper"
  4.          data-listing-pagination="true"
  5.          data-listing-pagination-options='{{ paginationConfig }}'
  6.          data-listing="true"
  7.          data-listing-options='{{ listingPagination|json_encode }}'>
  8.         {% block element_product_listing_wrapper_content %}
  9.         <h1 class="seo-headline-listing">{{page.header.navigation.active.name}}</h1>
  10.             <div class="cms-element-product-listing">
  11.                 {% if searchResult.total > 0 %}
  12.                     {% block element_product_listing_pagination_nav_actions %}
  13.                         <div class="cms-element-product-listing-actions row justify-content-between">
  14.                             <div class="col-md-auto">
  15.                                 {% block element_product_listing_pagination_nav_top %}
  16.                                     {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  17.                                         entities: searchResult,
  18.                                         criteria: searchResult.criteria
  19.                                     } %}
  20.                                 {% endblock %}
  21.                             </div>
  22.                             <div class="col-md-auto">
  23.                                 {% block element_product_listing_sorting %}
  24.                                     {% sw_include '@Storefront/storefront/component/sorting.html.twig' with {
  25.                                         current: searchResult.sorting,
  26.                                         sortings: searchResult.availableSortings
  27.                                     } %}
  28.                                 {% endblock %}
  29.                             </div>
  30.                         </div>
  31.                     {% endblock %}
  32.                 {% endif %}
  33.                 {% block element_product_listing_row %}
  34.                     <div class="row cms-listing-row js-listing-wrapper">
  35.                         {% if searchResult.total > 0 %}
  36.                             {% block element_product_listing_col %}
  37.                                 {% for product in searchResult %}
  38.                                     <div class="cms-listing-col {{ listingColumns }}">
  39.                                         {% block element_product_listing_box %}
  40.                                             {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  41.                                                 'layout': boxLayout,
  42.                                                 'displayMode': displayMode
  43.                                             } %}
  44.                                         {% endblock %}
  45.                                     </div>
  46.                                 {% endfor %}
  47.                             {% endblock %}
  48.                         {% else %}
  49.                             {% block element_product_listing_col_empty %}
  50.                                 <div class="cms-listing-col col-12">
  51.                                     {% block element_product_listing_col_empty_alert %}
  52.                                         {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  53.                                             type: 'info',
  54.                                             content: 'listing.emptyResultMessage'|trans|sw_sanitize
  55.                                         } %}
  56.                                     {% endblock %}
  57.                                 </div>
  58.                             {% endblock %}
  59.                         {% endif %}
  60.                     </div>
  61.                 {% endblock %}
  62.                 {% if searchResult.total > searchResult.limit %}
  63.                     {% block element_product_listing_pagination_nav_bottom %}
  64.                         {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  65.                             entities: searchResult,
  66.                             criteria: searchResult.criteria,
  67.                             paginationLocation: 'bottom',
  68.                         } %}
  69.                     {% endblock %}
  70.                 {% endif %}
  71.             </div>
  72.         {% endblock %}
  73.     </div>
  74. {% endblock %}