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

Open in your IDE?
  1. {% set media_ourshop = app_get_media_image_by_code('media_our_shop', sylius.localeCode, sylius.channel.code) %}
  2. {% if media_ourshop is not null %}
  3. <section class="bloc-collection-index py-lg-4 py-md-3 pt-3 pb-2  my-1">
  4.         <div class="container px-0">
  5.             <div class="row no-gutters bg-blue-opac mt-md-3 ">
  6.                 <div class="col-md-7">
  7.                     <div class="h-100 object-fit-img">
  8.                         {% if media_ourshop.path is not null %}
  9.                             {% set path_shop =  media_ourshop.path %}
  10.                         {% else %}
  11.                              {% set path_shop =  asset('images/img_boutique.jpg') %}
  12.                          {% endif %}
  13.                         <img src="{{path_shop}}" alt="">
  14.                     </div>
  15.                 </div>
  16.                 <div class="col-md-5 has-bg-chouette">
  17.                     <div class="pl-lg-5 pl-md-4 px-md-3 px-4 pt-md-5 pt-4 pb-sm-4 pb-4 d-flex align-items-center h-100">
  18.                         <div class="max-container-txt text-left m-auto m-md-0">
  19.                             <h2 class="title-medium title-medium-mobile text-white text-center text-md-left"> {{ media_ourshop.name }}</h2>
  20.                             <div class="texte-gris-mobile font-seize  text-center text-md-left">
  21.                             {% if media_ourshop.content is not null %}
  22.                                {{ media_ourshop.content|raw }}
  23.                             {% endif %}
  24.                             </div>
  25.                             {% if media_ourshop.link is not null %}
  26.                             <div class="mt-1 pt-3 pb-0 text-center text-md-left">
  27.                                 <a href="{{ media_ourshop.link }}" class="btn-link transition-bgcolor minw-sm bg-white-link" title="{{'app.common.learn_more'|trans}}" >{{'app.common.learn_more'|trans}}</a>
  28.                             </div>
  29.                              {% endif %}
  30.                         </div>
  31.                     </div>
  32.                 </div>
  33.             </div>
  34.         </div>
  35. </section>   
  36.  {% endif %}