templates/AtechNetCoreBundle/Module/testimonial.html.twig line 1

Open in your IDE?
  1. {% if testimonials %}
  2.     {% set defaultLocale = app.request.session.get('defaultLocale') %}  
  3.     <section class="testimonials">
  4.         <h3>
  5.             <a href="{{ path('review_list_' ~ defaultLocale) }}">{{ 'View customer photos' | trans({'reviewCount': reviewCount }) }}</a>
  6.         </h3>
  7.         <div id="carouselTestimonials" class="pb-1 pb-md-0 carousel owl-carousel carousel-testimonials slide view-{{ view }}" data-ride="carousel">
  8.             {%- for testimonial in testimonials -%}
  9.                 <div class="testimonial-item">
  10.                     <a href="{{ path('review_list_' ~ defaultLocale) }}">
  11.                         <div
  12.                             class="testimonal-image"
  13.                             style="background-image: url('{{ testimonial.images|first }}');"
  14.                         >
  15.                         </div>
  16.                         <div class="testimonals-desc-sec">
  17.                             <p>„{{ testimonial.text }}”</p>
  18.                             <div class="testimonial-user">- {{ testimonial.name }}, {% if testimonial.order %}{{ testimonial.order.shippingCity ?: testimonial.order.billingCity }}{% endif %}</div>
  19.                         </div>
  20.                     </a>
  21.                 </div>
  22.             {%- endfor -%}
  23.         </div>
  24.     </section>
  25. {% endif %}