vendor/mrpix/shopping-city/src/Resources/views/storefront/component/seller/seller-listing.html.twig line 1

Open in your IDE?
  1. {% set listingColumns = 'col-sm-6 col-lg-4 col-xl-3' %}
  2. <div class="cms-element-product-listing">
  3.     {% block seller_listing_row %}
  4.         <div class="row cms-listing-row js-listing-wrapper">
  5.             {% if sellers.total > 0 %}
  6.                 {% block seller_listing_col %}
  7.                     {% for seller in sellers.entities %}
  8.                         <div class="cms-listing-col {{ listingColumns }}">
  9.                             {% block seller_listing_box %}
  10.                                 {% sw_include '@MrpixShoppingCity/storefront/component/seller/seller-box.html.twig' with {
  11.                                             'seller': seller
  12.                                         } %}
  13.                             {% endblock %}
  14.                         </div>
  15.                     {% endfor %}
  16.                 {% endblock %}
  17.             {% else %}
  18.                 {% block seller_listing_col_empty %}
  19.                     <div class="cms-listing-col col-12">
  20.                         {% block seller_listing_col_empty_alert %}
  21.                             {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  22.                                 type: 'info',
  23.                                 content: 'mrpixShoppingCity.listing.emptyListing'|trans|sw_sanitize
  24.                             } %}
  25.                         {% endblock %}
  26.                     </div>
  27.                 {% endblock %}
  28.             {% endif %}
  29.         </div>
  30.     {% endblock %}
  31.     {% if sellers.total > 0 %}
  32.         {% block seller_listing_pagination_nav_actions %}
  33.             <div class="seller-listing-actions row justify-content-between">
  34.                 <div class="col">
  35.                     {% block seller_listing_loading_action %}
  36.                         {% sw_include '@MrpixShoppingCity/storefront/component/load-more.html.twig' with {
  37.                             entities: sellers,
  38.                             criteria: sellers.criteria,
  39.                             limit: limit
  40.                         } %}
  41.                     {% endblock %}
  42.                 </div>
  43.             </div>
  44.         {% endblock %}
  45.     {% endif %}
  46. </div>