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

Open in your IDE?
  1. {% block seller_box %}
  2.     {% if seller.storeSlug %}
  3.         {% set customerId = seller.storeSlug %}
  4.     {% else %}
  5.         {% set customerId = seller.customerId %}
  6.     {% endif %}
  7.     {% set publicProfilePath = path('frontend.marketplace.seller.profile.detail', { storeSlug: customerId }) %}
  8.     <div class="card seller-box">
  9.         {% block seller_box_header %}
  10.             <div class="card-header">
  11.                 <a href="{{ publicProfilePath }}">
  12.                     {% if seller.mediaBanner %}
  13.                         <img src="{{ seller.mediaBanner.url }}" alt="{{ seller.storeTitle }}"/>
  14.                     {% else %}
  15.                         <img src="/bundles/webkulmvmarketplace/storefront/seller-profile/default/default.svg"
  16.                              alt="{{ seller.storeTitle }}"/>
  17.                     {% endif %}
  18.                 </a>
  19.             </div>
  20.         {% endblock %}
  21.         {% block seller_box_body %}
  22.             <div class="card-body">
  23.                 <div class="row seller-information-row">
  24.                     <div class="col-6">
  25.                         {% block seller_box_body_logo %}
  26.                             <div class="seller-media-logo">
  27.                                 <a href="{{ publicProfilePath }}">
  28.                                     {% if seller.mediaLogo %}
  29.                                         <img src="{{ seller.mediaLogo.url }}" alt="{{ seller.storeTitle }}"/>
  30.                                     {% else %}
  31.                                         <img src="/bundles/webkulmvmarketplace/storefront/seller-profile/default/default.svg"/>
  32.                                     {% endif %}
  33.                                 </a>
  34.                             </div>
  35.                         {% endblock %}
  36.                     </div>
  37.                     <div class="col-6 seller-title-col">
  38.                         {% block seller_box_body_title %}
  39.                             <h5>
  40.                                 <a href="{{ publicProfilePath }}">{{ seller.storeTitle }}</a>
  41.                             </h5>
  42.                             {% if seller.extensions.products is not empty %}
  43.                                 {{ 'mrpixShoppingCity.listing.labelProducts'|trans({
  44.                                     '%productCount%': seller.extensions.products.count
  45.                                 })|sw_sanitize }}
  46.                             {% endif %}
  47.                         {% endblock %}
  48.                     </div>
  49.                 </div>
  50.                 {% if seller.extensions.propertyGroupOptions %}
  51.                     {% block seller_box_body_property_options %}
  52.                         {% sw_include '@MrpixShoppingCity/storefront/component/seller/profile-properties.html.twig' %}
  53.                     {% endblock %}
  54.                 {% endif %}
  55.             </div>
  56.         {% endblock %}
  57.     </div>
  58. {% endblock %}