templates/themes/theme/testimonial/testimonials.html.twig line 8

Open in your IDE?
  1. <section class="testimonials">
  2. <div class="container">
  3. {% for testimonial in testimonials %}
  4. {% if testimonial.featured %}
  5. <twig:Testimonial
  6. featured="{{ true }}"
  7. reverse="{{ loop.index is even }}"
  8. author="{{ testimonial.author }}"
  9. company="{{ testimonial.company }}"
  10. >
  11. <twig:block name="image">
  12. <img
  13. src="{{ imageCache('/userfiles/images/testimonial/' ~ testimonial.image, 'zoomCrop', 738, 1150) }}"
  14. alt="{{ testimonial.author }}"
  15. >
  16. </twig:block>
  17. <h2 class="testimonial__name">{{ testimonial.title }}</h2>
  18. {{ allowInlineEditor(testimonial, 'content')|raw }}
  19. </twig:Testimonial>
  20. {% endif %}
  21. {% endfor %}
  22. {% for testimonial in testimonials %}
  23. {% if not testimonial.featured %}
  24. <twig:Testimonial
  25. author="{{ testimonial.author }}"
  26. company="{{ testimonial.company }}"
  27. >
  28. {# <twig:block name="image">
  29. <img
  30. src="{{ imageCache('/userfiles/images/testimonial/' ~ testimonial.image, 'zoomCrop', 738, 1150) }}"
  31. alt="{{ testimonial.author }}"
  32. >
  33. </twig:block> #}
  34. {{ testimonial.content|striptags|replace({"&nbsp;": " "})|nl2br }}
  35. </twig:Testimonial>
  36. {% endif %}
  37. {% endfor %}
  38. </div>
  39. </section>
  40. <twig:WhatsAppBlock alt="true" />