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

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