templates/areas/dw_gallery/view.html.twig line 1

Open in your IDE?
  1. {% set contents = pimcore_relations('content')|default([]) %}
  2. <div class="toolbox-element toolbox-container {{ additionalClassesData|join(' ') }}">
  3.     <div class="overflow-hidden">
  4.         <div class="relative px-4 sm:px-6 lg:px-8 {% if not editmode %} mx-auto max-w-md sm:max-w-3xl lg:max-w-7xl{% endif %}">
  5.             {% if contents|length %}
  6.                 <h3 class="text-white text-4xl tracking-tight sm:text-4xl">
  7.                     <span class="my-8 block max-w-max">
  8.                         {{ pimcore_input('headline') }}
  9.                     </span>
  10.                 </h3>
  11.                 <div class="slider-class swiper overflow-visible">
  12.                     <div class="swiper-wrapper">
  13.                         {% for content in contents %}
  14.                             {% if content.getType() == "image" %}
  15.                                 <a class="swiper-slide w-auto" data-fslightbox="gallery" data-alt="Example image description" data-foo="bar" href="{{ content.getThumbnail('jumpstartImage') }}">
  16.                                     <img src="{{ content.getThumbnail('jumpstartImage') }}" class="h-64">
  17.                                 </a>
  18.                             {% endif %}
  19.                         {% endfor %}
  20.                     </div>
  21.                     <div id="slider-pagination" class="swiper-pagination"></div>
  22.                 </div>
  23.             {% else %}
  24.                 Empty Gallery
  25.             {% endif %}
  26.         </div>
  27.     </div>
  28. </div>