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. <a href="{{ generatePath(app.request, testimonial.linkedPageId, { 'testimonial_slug': testimonial.slug }) }}" class="text-dark">
  12. <p class="text-xl font-light mb-2">{{ testimonial.content|nl2br }}</p>
  13. <p class="text-sm font-bold mb-0 text-secondary">{{ testimonial.attestant }}</p>
  14. <p class="text-sm text-secondary">{{ testimonial.jobTitle }}</p>
  15. </a>
  16. </div>
  17. </div>
  18. {% endfor %}
  19. </div>
  20. <div class="swiper-pagination"></div>
  21. </div>
  22. </section>
  23. {% endif %}