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

Open in your IDE?
  1. {% if bloc.secteurs is defined and bloc.secteurs is not empty %}
  2.     <section id="bloc-{{bloc.id}}">
  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.titrehomebloclocalite|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.secteurs %}
  13.                                     {% set duree = 0.1 %}
  14.                                     {% set image_item = 'uploads/images/place.png' %}
  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 lazyloaded"  style="background-image: url({{image_item}}); background-size: contain; background-position: center center; background-repeat: no-repeat;"> </span> 
  17.                                         <span class="article-cnt">
  18.                                             <a class="article-titre" href="{{path('page_details_localite',{slug:item.libelleurl})}}" title="{{item.titresecteur}}" >{{item.titresecteur}}</a>
  19.                                             <span class="article-txt">
  20.                                                 {% if item.textgenerersecteurfinal is not empty %}
  21.                                                     {{cutText(item.textgenerersecteurfinal)|raw}}
  22.                                                 {% endif %}
  23.                                             </span>
  24.                                             <span class="article-bts">
  25.                                                 <button class="article-plus btn-fade" onclick="window.open('{{path('page_details_localite',{slug:item.libelleurl})}}', '_self');" title="{{item.titresecteur}}">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 %}