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-4">
  5.                 {% for testimonial in testimonials %}
  6.                     <div class="w-full flex {% if testimonial.image %}flex-row{% else %}flex-col{% endif %} border-b py-4 gap-4">
  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-xl font-light mb-2">{{ testimonial.content|nl2br }}</p>
  12.                             <p class="text-sm font-bold mb-0 text-secondary text-center">{{ testimonial.attestant }}</p>
  13.                             <p class="text-sm text-secondary text-center">{{ testimonial.jobTitle }}</p>
  14.                         </div>
  15.                     </div>
  16.                 {% endfor %}
  17.             </div>
  18.         </div>
  19.     </section>
  20. {% endif %}