templates/articles-blocks/photo-report.html.twig line 1

Open in your IDE?
  1. <section class="splide-photo splide" aria-label="Reportage photo">
  2.     <div class="splide__track">
  3.         <ul class="splide__list mb-1p5em">
  4.             {% for slide in data.slides %}
  5.                 <li class="splide__slide fdc jcfs-i">
  6.                     {% if slide.image is defined and slide.image is not empty %}
  7.                         <div class="splide-img-container">
  8.                             <img src="{{ slide.image.formats['600x.webp'] }}" srcset="{{ slide.image.formats['300x.webp'] }} 300w, {{ slide.image.formats['600x.webp'] }} 600w, {{ slide.image.formats['1000x.webp'] }} 1000w" sizes="600px" alt="{{ slide.image | copyright_or_description_or_title }}" class="br8" loading="lazy" width="{{ slide.image.fileVersion.properties.width }}" height="{{ slide.image.fileVersion.properties.height }}">
  9.                         </div>
  10.                     {% endif %}
  11.                     {% if slide.image is defined and slide.image is not empty and slide.image.credits is defined and slide.image.credits is not empty %}
  12.                         <div class="cgrey fs12 lh16 credit mt-8px">&copy; Crédit Photo
  13.                             {{ slide.image.credits }}</div>
  14.                     {% endif %}
  15.                     {% if slide.text is defined and slide.text is not empty %}
  16.                         <div class="freetext mt-24px ml-24px mr-24px lh24">
  17.                             {{ slide.text|raw }}
  18.                         </div>
  19.                     {% endif %}
  20.                 </li>
  21.             {% endfor %}
  22.         </ul>
  23.     </div>
  24. </section>