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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}
  2. {% block base_main_inner %}
  3.     {% include '@WebkulMVMarketplace/storefront/vue-components/public-profile/style.html.twig' %}
  4.     <div class="profile-container container">
  5.         {% block seller_profile_banner %}
  6.             {% sw_include '@MrpixShoppingCity/storefront/component/seller/profile-banner.html.twig' with { seller: profileDetails } %}
  7.         {% endblock %}
  8.         <div class="profile-center-container">
  9.             {% block seller_profile_details %}
  10.                 <div class="shop-details">
  11.                     {% block seller_profile_details_icon %}
  12.                         {% sw_include '@MrpixShoppingCity/storefront/component/seller/profile-icon.html.twig' with { seller: profileDetails } %}
  13.                     {% endblock %}
  14.                     {% block seller_profile_title %}
  15.                         <div class="shop-title">
  16.                             <h3>{{ profileDetails.storeTitle }}</h3>
  17.                             {% block seller_profile_social_links %}
  18.                                 {% for socialLink in profileDetails.socialSites %}
  19.                                     {% if socialLink.name == "facebook" %}
  20.                                         <a href="{{ socialLink.url }}" target="_blank" class="fa fa-facebook fa-lg"></a>
  21.                                     {% elseif socialLink.name == "twitter" %}
  22.                                         <a href="{{ socialLink.url }}" target="_blank" class="fa fa-twitter fa-lg"></a>
  23.                                     {% elseif socialLink.name == "insta" %}
  24.                                         <a href="{{ socialLink.url }}" target="_blank"
  25.                                            class="fa fa-instagram fa-lg"></a>
  26.                                     {% elseif socialLink.name == "youtube" %}
  27.                                         <a href="{{ socialLink.url }}" target="_blank" class="fa fa-youtube fa-lg"></a>
  28.                                     {% elseif socialLink.name == "vimeo" %}
  29.                                         <a href="{{ socialLink.url }}" target="_blank" class="fa fa-vimeo fa-lg"></a>
  30.                                     {% elseif socialLink.name == "pinterest" %}
  31.                                         <a href="{{ socialLink.url }}" target="_blank"
  32.                                            class="fa fa-pinterest fa-lg"></a>
  33.                                     {% elseif socialLink.name == "instagram" %}
  34.                                         <a href="{{ socialLink.url }}" target="_blank"
  35.                                            class="fa fa-instagram fa-lg"></a>
  36.                                     {% endif %}
  37.                                 {% endfor %}
  38.                                 {% if profileDetails.email %}
  39.                                     <div>
  40.                                         {% sw_icon 'icon_mail' style {
  41.                                             'namespace': 'MrpixShoppingCityTheme',
  42.                                             'pack': 'shopping-city',
  43.                                             'size': 'sm'
  44.                                         } %} {{ profileDetails.email }}
  45.                                     </div>
  46.                                 {% endif %}
  47.                                 {% if profileDetails.extensions.sellerInformation and profileDetails.extensions.sellerInformation.website %}
  48.                                     <div>
  49.                                         {% sw_icon 'icon_web' style {
  50.                                             'namespace': 'MrpixShoppingCityTheme',
  51.                                             'pack': 'shopping-city',
  52.                                             'size': 'sm'
  53.                                         } %}<a href="{{ profileDetails.extensions.sellerInformation.website }}" class="website">
  54.                                             {{ profileDetails.extensions.sellerInformation.website }}
  55.                                         </a>
  56.                                     </div>
  57.                                 {% endif %}
  58.                                 {% if profileDetails.phone %}
  59.                                     <div>
  60.                                         {% sw_icon 'icon_phone' style {
  61.                                             'namespace': 'MrpixShoppingCityTheme',
  62.                                             'pack': 'shopping-city',
  63.                                             'size': 'sm'
  64.                                         } %}{{ profileDetails.phone }}</div>
  65.                                 {% endif %}
  66.                                 {% if profileDetails.storeAddress %}
  67.                                     <div>
  68.                                         {% sw_icon 'icon_address' style {
  69.                                             'namespace': 'MrpixShoppingCityTheme',
  70.                                             'pack': 'shopping-city',
  71.                                             'size': 'sm'
  72.                                         } %}{{ profileDetails.storeAddress }}</div>
  73.                                 {% endif %}
  74.                             {% endblock %}
  75.                             {% block seller_profile_properties %}
  76.                                 <div class="d-none d-lg-block">
  77.                                     {% sw_include '@MrpixShoppingCity/storefront/component/seller/profile-properties.html.twig' with { seller: profileDetails } %}
  78.                                 </div>
  79.                             {% endblock %}
  80.                         </div>
  81.                     {% endblock %}
  82.                 </div>
  83.             {% endblock %}
  84.             {% block seller_profile_properties_mobile %}
  85.                 <div class="d-lg-none seller-properties-mobile">
  86.                     {% sw_include '@MrpixShoppingCity/storefront/component/seller/profile-properties.html.twig' with { seller: profileDetails } %}
  87.                 </div>
  88.             {% endblock %}
  89.             {% block seller_profile_details_owner %}
  90.                 <div class="shop-owner-details">
  91.                     {% sw_include '@MrpixShoppingCity/storefront/component/seller/profile-opening-times.html.twig' with { seller: profileDetails } %}
  92.                     {% sw_include '@MrpixShoppingCity/storefront/component/seller/profile-owner.html.twig' with { seller: profileDetails } %}
  93.                 </div>
  94.             {% endblock %}
  95.         </div>
  96.         {% block seller_profile_about_us %}
  97.             {% if profileDetails.storeDescription or profileDetails.extensions.medias is not null %}
  98.                 <div class="profile-about-us">
  99.                     <h4 class="about-us-headline">{{ 'mrpixShoppingCity.detail.aboutUsHeadline'|trans|sw_sanitize }}</h4>
  100.                     {% if profileDetails.storeDescription %}
  101.                         {{ profileDetails.storeDescription }}
  102.                     {% endif %}
  103.                     {% if profileDetails.extensions.medias is not null and profileDetails.extensions.medias.elements|length > 0 %}
  104.                         {% sw_include '@MrpixShoppingCity/storefront/component/seller/about-us-slider.html.twig' with {
  105.                             images: profileDetails.extensions.medias.elements
  106.                         } %}
  107.                     {% endif %}
  108.                 </div>
  109.             {% endif %}
  110.         {% endblock %}
  111.         {% block seller_profile_similar_sellers %}
  112.             {% if similarSellers and similarSellers|length > 0 %}
  113.                 <div class="similar-sellers">
  114.                     <div class="similar-sellers-container-headline text-center">
  115.                         <h2>{{ 'mrpixShoppingCity.detail.similarSellersHeadline'|trans|sw_sanitize }}</h2>
  116.                     </div>
  117.                     {% set listingColumns = 'col-sm-6 col-lg-4 col-xl-3 seller-col' %}
  118.                     <div class="similar-sellers-container row cms-listing-row js-listing-wrapper">
  119.                         {% for seller in similarSellers %}
  120.                             <div class="cms-listing-col {{ listingColumns }}">
  121.                                 {% block seller_profile_similar_sellers_box %}
  122.                                     {% sw_include '@MrpixShoppingCity/storefront/component/seller/seller-box.html.twig' with {
  123.                                         'seller': seller
  124.                                     } %}
  125.                                 {% endblock %}
  126.                             </div>
  127.                         {% endfor %}
  128.                     </div>
  129.                 </div>
  130.             {% endif %}
  131.         {% endblock %}
  132.     </div>
  133. {% endblock %}