templates/themes/theme/casestudies/testimonial_slider.html.twig line 1

Open in your IDE?
  1. {% if testimonials|length > 0 %}
  2.     <section class="slider overflow-x-hidden">
  3.         <div class="testimonial-slider">
  4.             <div class="swiper-wrapper">
  5.                 {% for testimonial in testimonials %}
  6.                     <div class="swiper-slide">
  7.                         <div class="w-full flex flex-col justify-center items-center text-center">
  8.                                 {% if testimonial.image %}
  9.                                     <img class="h-auto max-h-[60px] w-auto max-w-full mb-3" src="{{ imageCache('/'~ testimonial.getFullImagePath, 'cropResize', 150, 150) }}" height="60" width="60" alt="{{ testimonial.clientName }}" loading="lazy" />
  10.                                 {% endif %}
  11.                                 <p class="text-xl font-light mb-2">{{ testimonial.content }}</p>
  12.                                 <p class="text-sm font-bold mb-0 text-secondary">{{ testimonial.attestant }}</p>
  13.                                 <p class="text-sm text-secondary">{{ testimonial.jobTitle }}</p>
  14.                         </div>
  15.                     </div>
  16.                 {% endfor %}
  17.             </div>
  18.             <div class="swiper-pagination"></div>
  19.         </div>
  20.     </section>
  21. {% endif %}