templates/front/theme1/bloc/bloc_sous_activite.html.twig line 1

Open in your IDE?
  1. {% set parametre = ParametreSite() %}
  2. {% if bloc.activite_secondaires  is defined and   bloc.activite_secondaires is not empty %}
  3.     <section id="bloc-{{bloc.id}}" class="bg-section-ref">
  4.         <div class="container-fluid mt-3">
  5.             <div class="row gx-5 py-2">
  6.                 <div class="col-sm-12 text-center">
  7.                     {% if parametre.actiftitre == true %}
  8.                         <div class="titre_site">{{parametre.titre}}</div>
  9.                     {% endif %}
  10.                     <h2 class="sub-title wow">{{bloc.parametreRef.titrehomeblocsousactivite|default('')}}</h2>
  11.                 </div>
  12.                 <div class="col-sm-12">
  13.                     <div class="list_blocs pos1">
  14.                         <div class="blocs">
  15.                             <section id="results" class="results dynam-affichage affichage{{bloc.type_affichage}} type_affiche3 ">
  16.                                 {% for item in bloc.activite_secondaires %}
  17.                                     {% set duree = 0.1 %}
  18.                                     {% set image_item = item.image != null? asset_image(item.image):'uploads/images/' ~ bloc.parametre.imagevide %}
  19.                                     <div class="article wow zoomIn animated" data-wow-delay="{{duree}}s" style="visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;">
  20.                                         <span class="article-image lazyloaded"  style="background-image: url({{image_item}}); background-size: cover; background-position: center center; background-repeat: no-repeat;"> </span>                 
  21.                                         <span class="article-cnt">
  22.                                             <a class="article-titre" href="{{path('page',{slug:item.slug})}}" title="{{item.titre}}" >{{item.titre}}</a>
  23.                                             <span class="article-txt">
  24.                                                 {{cutText(item.content)|raw}}
  25.                                             </span>
  26.                                             <span class="article-bts">
  27.                                                 <button class="article-plus btn-fade" onclick="window.open('{{path('page',{slug:item.slug})}}', '_self');" title="{{item.titre}}">En savoir plus</button>
  28.                                             </span>
  29.                                         </span>
  30.                                     </div>
  31.                                     {% set duree = duree + 0.2 %}
  32.                                 {% endfor %}
  33.                             </section>
  34.                         </div>
  35.                     </div>
  36.                 </div>
  37.             </div>
  38.         </div>
  39.     </section>
  40. {% endif %}