templates/uniqskills/catalogue/landing_new/landing_partials/tutors.html.twig line 1

Open in your IDE?
  1. <section class="rowTeachers {% if module.tutorsList|length == 1 %}rowTeachers--singleTeacher{% endif %}">
  2.     <a name="{{ module.type }}-{{ module.id }}"></a>
  3.     <div class="container container--header">
  4.         <div class="row">
  5.             <div class="col rowTeachers__header">
  6.                 <h2>{% if module.titleName is defined and module.titleName is not empty %}{{ module.titleName|raw }}{% else %}{{ 'uniqskills.landing.ourSpecialist'|trans }}{% endif %}</h2>
  7.             </div>
  8.         </div>
  9.     </div>
  10.     <div class="container">
  11.         <div class="container container--tutors-slider">
  12.             <div class="row">
  13.                 <div class="tutors-slider container">
  14.                 {% for key, item in module.tutorsList %}
  15.                     <div class="slide">
  16.                         <div class="rowTeachers__box">
  17.                             <div class="rowTeachers__box__images">
  18.                                 <img src="{{ module['tutorsFile_' ~ key] is defined and vich_uploader_asset(module['tutorsFile_' ~ key], 'file') is not null ?
  19.                                     vich_uploader_asset(module['tutorsFile_' ~ key], 'file') | imagine_filter('img_120_width') : '' }}"
  20.                                      alt=""
  21.                                      class="singleSlide-image">
  22.                             </div>
  23.                             {% if item.name is defined %}
  24.                                 <div class="rowTeachers__box__name {% if module['tutorsFile_' ~ key] is not defined or not vich_uploader_asset(module['tutorsFile_' ~ key], 'file') %}rowTeachers__box__name--no-image{% endif %}" >{{ item.name|raw }}</div>
  25.                             {% endif %}
  26.                             {% if item.position is defined %}
  27.                                 <div class="rowTeachers__box__position">{{ item.position }}</div>
  28.                             {% endif %}
  29.                             {% if item.description is defined %}
  30.                                 <div class="rowTeachers__box__description">
  31.                                     {{ item.description|raw }}
  32.                                 </div>
  33.                             {% endif %}
  34.                         </div>
  35.                     </div>
  36.                 {% endfor %}
  37.                 </div>
  38.             </div>
  39.         </div>
  40.     </div>
  41. </section>