custom/plugins/CioSearchHeadline/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.     <div class="row cms-listing-row js-listing-wrapper"
  4.          data-search-term="{{ searchResult.total }}"
  5.          itemscope
  6.          itemtype="https://schema.org/ItemList">
  7.         {% if searchResult.total > 0 %}
  8.             <meta itemprop="numberOfItems" content="{{ searchResult.total }}">
  9.             {% block element_product_listing_col %}
  10.                 {% for product in searchResult %}
  11.                     <div class="cms-listing-col {{ listingColumns }}"
  12.                          itemprop="itemListElement"
  13.                          itemscope
  14.                          itemtype="https://schema.org/ListItem">
  15.                         <meta itemprop="position" content="{{ (searchResult.criteria.offset ?? 0) + loop.index }}">
  16.                         {% block element_product_listing_box %}
  17.                             {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  18.                                 'layout': boxLayout,
  19.                                 'displayMode': displayMode,
  20.                                 'itemListItem': true
  21.                             } %}
  22.                         {% endblock %}
  23.                     </div>
  24.                 {% endfor %}
  25.             {% endblock %}
  26.         {% else %}
  27.             {% block element_product_listing_col_empty %}
  28.                 <div class="cms-listing-col col-12">
  29.                     {% block element_product_listing_col_empty_alert %}
  30.                         {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  31.                             type: 'info',
  32.                             content: 'listing.emptyResultMessage'|trans|sw_sanitize
  33.                         } %}
  34.                     {% endblock %}
  35.                 </div>
  36.             {% endblock %}
  37.         {% endif %}
  38.     </div>
  39. {% endblock %}