templates/bloc/diaporama.html.twig line 1

Open in your IDE?
  1. <div id="carousel-home">
  2.     <div class="owl-carousel owl-theme">
  3.         {% for lienDiaporama in lienDiaporamas %}
  4.             {% if lienDiaporama.visible is same as(true) %}
  5.                 {% set diaporama = lienDiaporama.diaporama %}
  6.                 {% set image = asset('build/img/slides/slide_home_3.jpg') %}
  7.                 {% if diaporama.image is not null %}
  8.                     {% set image = sonata_media(diaporama.image, '1903_750_thumbnail') %}
  9.                 {% endif %}
  10.                 <div class="owl-slide cover" style="background-image: url('{{ image }}');">
  11.                     <div class="opacity-mask d-flex align-items-center" data-opacity-mask="rgba(0, 0, 0, 0.5)">
  12.                         <div class="container">
  13.                             <div class="row justify-content-center justify-content-md-start">
  14.                                 <div class="col-lg-12 static">
  15.                                     <div class="slide-text text-{{ diaporama.alignement }} white">
  16.                                         {% if diaporama.titre is not null %}
  17.                                             {% set headingTag = 'h2' %}
  18.                                             {% if loop.first %}
  19.                                                 {% set headingTag = 'h1' %}
  20.                                             {% endif %}
  21.                                             <{{ headingTag }} class="owl-slide-animated owl-slide-title">
  22.                                                 {{ diaporama.titre|nl2br }}
  23.                                             </{{ headingTag }}>
  24.                                         {% endif %}
  25.                                         {% if diaporama.accroche is not null %}
  26.                                             <p class="owl-slide-animated owl-slide-subtitle">
  27.                                                 {{ diaporama.accroche }}
  28.                                             </p>
  29.                                         {% endif %}
  30.                                         {% if diaporama.boutonLien is not null and diaporama.boutonTitre is not null %}
  31.                                             <div class="owl-slide-animated owl-slide-cta">
  32.                                                 <a href="{{ diaporama.boutonLien }}" role="button" class="btn_1" {% if diaporama.boutonTarget is same as(true) %}target="_blank"{% endif %}>
  33.                                                     {{ diaporama.boutonTitre }}
  34.                                                 </a>
  35.                                             </div>
  36.                                         {% endif %}
  37.                                     </div>
  38.                                 </div>
  39.                             </div>
  40.                         </div>
  41.                     </div>
  42.                 </div>
  43.             {% endif %}
  44.         {% endfor %}
  45.     </div>
  46.     <div id="icon_drag_mobile"></div>
  47. </div>