templates/front/front_blocks/bloc-texte_image.html.twig line 1

Open in your IDE?
  1. <section data-bs-version="5.1"
  2.          class="image2 cid-sYtiOZS3A3 text-img-type-{{ bloc.bloc_type_texte_image|default(0) }} {{ bloc.bloc_margin_top }} {{ bloc.bloc_margin_bottom }}"
  3.          id="image2-2t">
  4.     <div class="row {% if bloc.bloc_alignement == 'droite' %}row-reverse{% endif %} m-0 blocTextimage">
  5.         {% if medias[0].media_fichier is defined %}
  6.             {% set mediaTmp = medias[0].media_fichier %}
  7.             {% set mediaDefault = "default.jpg" %}
  8.             {% set mediaTmp = webp(webpSupported, mediaTmp) %}
  9.             {% set mediaDefault = webp(webpSupported, mediaDefault) %}
  10.             <div class="col-12 col-lg-6 p-0">
  11.                 <a {% if medias[0].media_lien %} href="{{ medias[0].media_lien }}" {% if medias[0].media_is_blank == 1 %} target="_blank" rel="noreferrer" {% endif %} {% else %} href="{{ asset('/medias_front/' ~ module ~ '/'~mediaTmp) | imagine_filter('front_fancy') }}" target="_blank"  {% endif %}
  12.                         title="{{ medias[0].media_alt|default(bloc.bloc_titre)|default(page.ptitre~' '~page.ptitreonglet)|default(nomDuSite) }}"
  13.                         style="background-image:url({{ asset('/medias_front/' ~ module ~ '/'~mediaTmp) | imagine_filter('front_blocTexteImage') }});{% if bloc.bloc_image_position_verticale is defined %} background-position : {{ bloc.bloc_image_position_verticale }} !important {% endif %}"
  14.                         class="aImage" data-fancybox>
  15.                 </a>
  16.             </div>
  17.         {% endif %}
  18.         <div class="col-12 col-lg-6 p-lg-5 d-flex justify-content-center img">
  19.             <div class="text-wrapper p-lg-5 col-lg-10">
  20.                 {% if bloc.bloc_titre %}
  21.                     <h3 class="pt-2 mbr-section-title mbr-fonts-style display-2 text-center">
  22.                         <strong>{{ bloc.bloc_titre }}</strong>
  23.                     </h3>
  24.                 {% endif %}
  25.                 {% if bloc.bloc_sstitre %}
  26.                     <h4 class="mbr-section-subtitle mbr-fonts-style display-5 text-center">
  27.                         {{ bloc.bloc_sstitre }}
  28.                     </h4>
  29.                 {% endif %}
  30.                 <div class="mbr-text mbr-fonts-style display-7  bloc-text text-justify">
  31.                     {{ bloc.bloc_texte|raw }}
  32.                 </div>
  33.             </div>
  34.         </div>
  35.     </div>
  36. </section>