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

Open in your IDE?
  1. {% set more_stories = pimcore_relations('more_stories').getElements()|default([]) %}
  2. <div class="toolbox-element toolbox-container {{ additionalClassesData|join(' ') }}">
  3.     <div class="overflow-hidden">
  4.         <div class="relative mx-auto px-4 sm:px-6 lg:px-8{% if not editmode %} max-w-md sm:max-w-3xl lg:max-w-7xl{% endif %}">
  5.             <div>
  6.                 <h3 class="text-center text-white text-4xl tracking-tight sm:text-4xl">
  7.                     <span class="my-8 block text-left {% if not editmode %} max-w-max{% endif %}">
  8.                         {{ pimcore_input("headline") }}
  9.                     </span>
  10.                 </h3>
  11.             </div>
  12.             <div class="{% if (more_stories|length ) < 4 %}grid grid-cols-1 gap-3 sm:grid-cols-3{% else %}story-slider swiper overflow-visible">
  13.                 <div class="swiper-wrapper{% endif %}">
  14.                     {% for successStory in more_stories %}
  15.                         <div class="swiper-slide item max-w-[25rem]">
  16.                             {{ include("digitalwandler/Components/successStory.html.twig") }}
  17.                         </div>
  18.                     {% endfor %}
  19.                     {% if (more_stories|length ) > 3 %}</div>
  20.                 <div id="service-pagination" class="swiper-pagination"></div>{% endif %}
  21.             </div>
  22.         </div>
  23.     </div>
  24. </div>