templates/website/course/course-testimonial-section.html.twig line 1

Open in your IDE?
  1. {% from 'utils.html.twig' import ico, imgUpload %}
  2. {% if courseTestimonials|length > 0 and getConfig('allow_testimonial') == enum('CourseEnum::YES') %}
  3.     <section class="pag-sec {% if section is defined and section.background %} sec-bg-alt {% endif %}">
  4.         {% if layout == 'home' %}
  5.         <header class="tit-sec tx-centro container">
  6.             <i class="fas fa-quote-left"></i>
  7.             <h2>{{ getLanguage('who_has_studied', 'home') }}</h2>
  8.             <span class="sub">{{ getLanguage('see_what_they_say', 'home') }}</span>
  9.         </header>
  10.         {% endif %}
  11.         <div class="testimonials layout--{{ layout }}">
  12.             <div class="slider-wid">
  13.                 <div class="js--slider testimonials-slider" id="students-testimonials-{{ layout }}" data-slider-options-label="students-testimonials-{{ layout }}">
  14.                     {% for courseTestimonial in courseTestimonials %}
  15.                         <div>
  16.                             <div class="testimonial">
  17.                                 <div data-testimonial="{{ courseTestimonial.id }}" class="desc">
  18.                                     <p>{{ courseTestimonial.testimonial }}</p>
  19.                                 </div>
  20.                                 <div class="autor">
  21.                                     <div class="foto">
  22.                                         {{ imgUpload(courseTestimonial.userPhoto, enum('AbstractEnum::PATH_PROFILES'), 'profile', courseTestimonial.userName) }}
  23.                                     </div>
  24.                                     <p class="nome">{{ courseTestimonial.userName }}</p>
  25.                                     {% include 'website/includes/stars.html.twig' with { score: courseTestimonial.score, halfs: false } %}
  26.                                 </div>
  27.                             </div>
  28.                         </div>
  29.                     {% endfor %}
  30.                 </div>
  31.                 {# SLIDER ARROWS #}
  32.                 {% include 'website/includes/seta-banner.html.twig' with { id: 'students-testimonials-'~layout } %}
  33.             </div>
  34.         </div>
  35.     </section>
  36. {% endif %}