templates/layouts/block/carousel_xl.html.twig line 1

Open in your IDE?
  1. <div class="autoCarousel autoCarousel-{{ index }}">
  2.     {% for key, picture in section.pictures %}
  3.         <picture>
  4.             <source srcset="{{ asset(picture.url.webp) }}" type="image/webp">
  5.             <source srcset="{{ asset(picture.url.jpg) }}" type="image/jpeg">
  6.             <img src="{{ asset(picture.url.jpg) }}" alt="{{ picture.alt }}" class="d-none">
  7.         </picture>
  8.     {% endfor %}
  9. </div>
  10. <div class="autoCarousel--imgdescriptions autoCarouselLegend autoCarouselLegend-{{ index }} d-none">
  11.     {% for key, picture in section.pictures %}
  12.         <p>{{ picture.alt }}</p>
  13.     {% endfor %}
  14. </div>