templates/components/Testimonial.html.twig line 1

Open in your IDE?
  1. {% set classes = featured ? 'testimonial--featured' : '' %}
  2. {% set classes = reverse ? classes ~ ' testimonial--reverse' : classes %}
  3. <div class="testimonial {{ classes }}">
  4. {% if block('image') %}
  5. <div class="testimonial__image">
  6. {% block image %}{% endblock %}
  7. <img
  8. class="testimonial__gradient"
  9. src="{{ asset('build/images/gradient-pill.svg') }}"
  10. role="presentation"
  11. loading="lazy"
  12. >
  13. </div>
  14. {% endif %}
  15. {% if block('content') %}
  16. <div class="testimonial__content">
  17. {% block content %}{% endblock %}
  18. {% if author or company %}
  19. <div class="testimonial__author">
  20. {% if author %}
  21. <span class="testimonial__author-name">{{ author }}</span>
  22. {% endif %}
  23. {% if author and company %}
  24. <span class="testimonial__author-separator"> - </span>
  25. {% endif %}
  26. {% if company %}
  27. <span class="testimonial__author-company">{{ company }}</span>
  28. {% endif %}
  29. </div>
  30. {% endif %}
  31. </div>
  32. {% endif %}
  33. </div>