custom/plugins/SalvanaPferde2022/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_wrapper_content %}
  3.   <div class="cms-element-product-listing">
  4.     {% block element_product_listing_row %}
  5.       <div class="row cms-listing-row js-listing-wrapper">
  6.         {% if searchResult.total > 0 %}
  7.           {% block element_product_listing_col %}
  8.             {% for product in searchResult %}
  9.               <div class="cms-listing-col {{ listingColumns }}">
  10.                 {% block element_product_listing_box %}
  11.                   {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  12.                     'layout': boxLayout,
  13.                     'displayMode': displayMode
  14.                   } %}
  15.                 {% endblock %}
  16.               </div>
  17.             {% endfor %}
  18.           {% endblock %}
  19.         {% else %}
  20.           {% block element_product_listing_col_empty %}
  21.             <div class="cms-listing-col col-12">
  22.               {% block element_product_listing_col_empty_alert %}
  23.                 {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  24.                   type: 'info',
  25.                   content: 'listing.emptyResultMessage'|trans|sw_sanitize
  26.                 } %}
  27.               {% endblock %}
  28.             </div>
  29.           {% endblock %}
  30.         {% endif %}
  31.       </div>
  32.     {% endblock %}
  33.     {% if searchResult.total > 0 %}
  34.       {% block element_product_listing_pagination_nav_actions %}
  35.         <div class="cms-element-product-listing-actions row">
  36.           <div class="col-md-auto">
  37.             {% block element_product_listing_pagination_nav_top %}
  38.               {% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
  39.                 entities: searchResult,
  40.                 criteria: searchResult.criteria
  41.               } %}
  42.             {% endblock %}
  43.           </div>
  44.         </div>
  45.       {% endblock %}
  46.     {% endif %}
  47.   </div>
  48. {% endblock %}