themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Homepage/_aboutUs.html.twig line 1

Open in your IDE?
  1. {% import '@SyliusShop/Common/Macro/sectionHeaders.html.twig' as headers %}
  2. {% set block_brand_index = app_get_blocks('our_brand_index', sylius.channel.code )  %}
  3. {% set brands = app_get_all_brands() %}
  4. <section class="bloc-about px-2 pt-lg-5 pt-4 mt-md-0 mt-3">
  5.     <div class="max-container-2 px-0">
  6.         <div class="row   pt-md-5  no-gutters mx-md-0 mx-n2">
  7.             
  8.             
  9.             {% set media_ourvision = app_get_media_image_by_code('media_our_vision', sylius.localeCode, sylius.channel.code) %}
  10.             {% if media_ourvision is not null %}
  11.                 <div class="col-12 col-md-6 order-md-3 mt-md-0 mt-3   px-0">
  12.                     <div class="h-100 object-fit-img  wow fadeInLeft" data-wow-duration="0.8s" data-wow-delay="0.2s">
  13.                         {% if media_ourvision.path is not null %}
  14.                             <img src="{{ media_ourvision.path }}"  alt="{{ media_ourvision.name }}"/>
  15.                         {% else %}
  16.                             <img src="{{ asset('images/about_img2.jpg')}}" alt=""  />
  17.                         {% endif %}
  18.                     </div>
  19.                 </div>
  20.                 <div class="col-12 col-md-6 order-md-4 px-lg-0 px-md-2 px-3 mt-md-0 mt-md-5">
  21.                     <div class="text-left pt-3 pt-md-4 pb-0 d-md-flex align-items-center h-100 pl-lg-5 pl-md-3 flex-column">
  22.                         <div class="pl-md-3 pt-lg-4 pt-md-3">
  23.                             <h3 class="title-medium color-blue-s title-small-mobile">{{ media_ourvision.name }}</h3>
  24.                             <div class="pt-2  expand-me-mobile  fontsize-mobile-text  text-grey font-seize">
  25.                                 {{ media_ourvision.content|raw }}
  26.                             </div>
  27.                         </div>
  28.                         {% if block_brand_index is defined %}
  29.                         <div class="pt-md-4 pt-3 pl-md-3">
  30.                             <h3 class="title-medium color-blue-s title-small-mobile">{{'app.common.our_brand'|trans}}</h3>
  31.                             <div class="pt-2  expand-me-mobile  fontsize-mobile-text  text-grey font-seize">
  32.                                  {{ block_brand_index.content|raw }}
  33.                             </div>
  34.                         </div>
  35.                         {% endif %}
  36.                     </div>
  37.                 </div>
  38.             {% endif %}
  39.             
  40.         </div>
  41.         
  42.          {% if brands|length > 0 %}
  43.         <div class="pt-md-4 pb-md-2 text-center has-border-bottom mx-md-0 mx-n2">
  44.             <div class="row mx-md-n3 mx-n2 align-items-center justify-content-center  wow fadeInDown px-md-0 px-3" data-wow-duration="0.8s" data-wow-delay="0.2s">
  45.                 {% set brand_count = 0 %} 
  46.                 {% for brand in brands %}
  47.                     {% set brand_count = brand_count + 1 %} 
  48.                     {% if brand_count < 6  %}
  49.                         {% if brand.images|first != false %}
  50.                         {% set path =  brand.images|first.path|imagine_filter(filter|default('app_shop_brand')) %} 
  51.                         
  52.                         <div class="col-md col-4 mb-md-0 mb-md-3 mb-2 py-2 px-md-3 px-2">
  53.                             <a href="{{ path('app_shop_brand_product_index', {'code' : brand.code}) }}" title="{{ brand.name}}"><img src="{{ path }}" alt="{{ brand.name}}"/></a>
  54.                         </div>
  55.                         {% endif %}
  56.                     {% endif %}
  57.                  {% endfor %}
  58.             </div>
  59.         </div>
  60.         {% endif %}
  61.     </div>
  62. </section>