templates/homepage-articles/partenaires.html.twig line 1

Open in your IDE?
  1. <div class="dflex fwwrap partenaires-container">
  2.     <div class="splide-homepage-icons splide w100" aria-label="Nos partenaires financiers">
  3.         <h2 class="fw400 fs36 lh40 mt-1em">{{block.partenaires_title}}</h2>
  4.         <div class="prelative">
  5.             <div class="splide__arrows">
  6.                 <button class="splide__arrow splide__arrow--prev">
  7.                     {{ source('svg/left-arrow-icon.html.twig') }}
  8.                 </button>
  9.                 <button class="splide__arrow splide__arrow--next">
  10.                     {{ source('svg/right-arrow-icon.html.twig') }}
  11.                 </button>
  12.             </div>
  13.             <div class="splide__track">
  14.                 <ul class="splide__list">
  15.                     {% for icon in block.partenaires_icones %}
  16.                         {% if icon is defined and icon is not empty %}
  17.                             {% if icon.fileVersion.mimeType == "image/svg" %}
  18.                                 {% set format = icon.formats['300x'] %}
  19.                             {% else %}
  20.                                 {% set format = icon.formats['300x.webp'] %}
  21.                             {% endif %}
  22.                             <li class="splide__slide dflex aic jcc">
  23.                                 <div class="dflex">
  24.                                     <img src="{{ format }}" alt="{{ icon | copyright_or_description_or_title }}" loading="lazy" width="{{ icon.fileVersion.properties.width }}" height="{{ icon.fileVersion.properties.height }}">
  25.                                 </div>
  26.                             </li>
  27.                         {% endif %}
  28.                     {% endfor %}
  29.                 </ul>
  30.             </div>
  31.         </div>
  32.     </div>
  33. </div>