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

Open in your IDE?
  1. {% if testimonials|length > 0 %}
  2. <section>
  3. <div class="container">
  4. <div class="grid gap-8">
  5. {% for testimonial in testimonials %}
  6. <div class="w-full flex {% if testimonial.image %}flex-row{% else %}flex-col{% endif %} {% if not loop.last %}border-b{% endif %} pb-8">
  7. {% if testimonial.image %}
  8. <img class="max-w-full mb-3" src="{{ imageCache('/'~ testimonial.getFullImagePath, 'cropResize', 1024, 1024) }}" alt="{{ testimonial.clientName }}" loading="lazy" />
  9. {% endif %}
  10. <div class="flex flex-col">
  11. <p class="text-lg font-light mb-4">{{ testimonial.content|nl2br }}</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>
  19. </section>
  20. {% endif %}