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

Open in your IDE?
  1. {% extends "@Storefront/storefront/component/product/listing.html.twig" %}
  2. {% block element_product_listing_pagination_nav_actions %}
  3. {% endblock %}
  4. {% block element_product_listing_col %}
  5.     {% set categoryId = page.header.navigation.active.customFields.custom_listing_banner_category %}
  6.     {% set imgMediaId  = page.header.navigation.active.customFields.custom_category_info_listing_banner %}
  7.     {% for product in searchResult %}
  8.         <div class="cms-listing-col {{ listingColumns }} {% if loop.index == "5" and isBannerDisplay %} banner-box d-none d-xl-block {% endif %}">
  9.             {% if loop.index == "5" and categoryId and imgMediaId %}
  10.                 {% sw_include '@Storefront/storefront/component/product/card/banner.html.twig' %}
  11.             {% else %}
  12.                 {% block element_product_listing_box %}
  13.                     {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  14.                         'layout': boxLayout,
  15.                         'displayMode': displayMode
  16.                     } %}
  17.                 {% endblock %}
  18.             {% endif %}
  19.         </div>
  20.     {% endfor %}
  21. {% endblock %}