custom/plugins/SEMKNOX/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_row %}
  3.                                     {% if page.listing.extensions.semknoxResultData.useSearchTemplate %}                
  4.                     <div class="row cms-listing-row js-listing-wrapper">
  5.                         {% if searchResult.total > 0 or page.listing.extensions.semknoxResultData.useSearchTemplate > 0 %}
  6.                             {% block element_product_listing_col %}
  7.                                 {% for product in searchResult %}                                
  8.                                              {% set rmResults = page.listing.extensions.semknoxResultData.resultManager.itemsByProducts[product.id] %}
  9.                                         {% for rmItem in rmResults %}
  10.                                             {% if rmItem.type == 'html' %}
  11.                                                 <div class="ss360-product-html">
  12.                                                     {{ rmItem.html | raw }}
  13.                                                 </div>
  14.                                             {% endif %}
  15.                                             {% if rmItem.type == 'artProduct' %}
  16.                                                 <div class="cms-listing-col {{ listingColumns }}">
  17.                                         {% sw_include '@Storefront/storefront/component/product/card/ss360_box.html.twig' with {
  18.                                             'layout': boxLayout,
  19.                                             'displayMode': displayMode,
  20.                                             'rmItem' : rmItem
  21.                                         } %}
  22.                                         </div>
  23.                                             {% endif %}                                            
  24.                                         {% endfor %}
  25.                                     <div class="cms-listing-col {{ listingColumns }}">
  26.                                         {% block element_product_listing_box %}
  27.                                             {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  28.                                                 'layout': boxLayout,
  29.                                                 'displayMode': displayMode
  30.                                             } %}
  31.                                         {% endblock %}
  32.                                     </div>
  33.                                     
  34.                                 {% endfor %}
  35.                                              {% set rmResults = page.listing.extensions.semknoxResultData.resultManager.itemsByProducts.end %}
  36.                                         {% for rmItem in rmResults %}
  37.                                             {% if rmItem.type == 'html' %}
  38.                                                 <div class="ss360-product-html">
  39.                                                     {{ rmItem.html | raw }}
  40.                                                 </div>
  41.                                             {% endif %}
  42.                                             {% if rmItem.type == 'artProduct' %}
  43.                                                 <div class="cms-listing-col {{ listingColumns }}">
  44.                                         {% sw_include '@Storefront/storefront/component/product/card/ss360_box.html.twig' with {
  45.                                             'layout': boxLayout,
  46.                                             'displayMode': displayMode,
  47.                                             'rmItem' : rmItem
  48.                                         } %}
  49.                                         </div>
  50.                                             {% endif %}                                            
  51.                                         {% endfor %}
  52.                                 
  53.                                 
  54.                             {% endblock %}
  55.                         {% else %}
  56.                             {% block element_product_listing_col_empty %}
  57.                                                             {{ parent() }}
  58.                             {% endblock %}
  59.                         {% endif %}
  60.                     </div>
  61.                   {% else %}
  62.                       {{ parent() }}
  63.                   {% endif %}
  64.                 {% endblock %}