templates/blocks/aside/referents-pqna.html.twig line 1

Open in your IDE?
  1. {% if content.referents is defined and content.referents is not empty and content.referents|length > 0 %}
  2.     <div class="referent-splide splide br8 shadow-standard mt-40px" aria-label="Référents PQN-A">
  3.         <h2 class="fs30 fw400 lh36 center">Les référents PQN-A</h2>
  4.         <div class="splide__track">
  5.             <ul class="splide__list">
  6.                 {% for referent in content.referents %}
  7.                     <li class="splide__slide">
  8.                         <div class="slide">
  9.                             <div class="profile-img-container center">
  10.                                 {% if referent.avatar is defined and referent.avatar is not empty %}
  11.                                     {% if referent.avatar.id is defined and referent.avatar.id is not empty %}
  12.                                         {% set avatar = sulu_resolve_media(referent.avatar.id, 'fr') %}
  13.                                         <img src="{{ avatar.formats['sulu-260x.webp'] }}" srcset="{{ avatar.formats['300x.webp'] }} 300w, {{ avatar.formats['600x.webp'] }} 600w, {{ avatar.formats['1000x.webp'] }} 1000w" sizes="260px" title="{{ referent.fullName }}" class="referent-avatar" width="{{ avatar.fileVersion.properties.width }}" height="{{ avatar.fileVersion.properties.height }}">
  14.                                     {% endif %}
  15.                                 {% else %}
  16.                                     <span class="diflex profile-initials cwhite jcc aic bgblue p-1em fs24">
  17.                                         {% if referent.firstName is defined and referent.firstName is not empty %}
  18.                                             {{ referent.firstName|first|upper }}
  19.                                         {% endif %}
  20.                                         {% if referent.lastName is defined and referent.lastName is not empty %}
  21.                                             {{ referent.lastName|first|upper }}
  22.                                         {% endif %}
  23.                                     </span>
  24.                                 {% endif %}
  25.                             </div>
  26.                             <div class="center fw400 lh32 fs24 mt-1em">
  27.                                 {{ referent.firstName }} {{ referent.lastName }}
  28.                             </div>
  29.                             {% if referent.typologieActeur is defined and referent.typologieActeur is not empty and referent.typologieActeur.name is defined and referent.typologieActeur.name is not empty %}
  30.                                 <div class="center fw400 lh24 fs16">{{ referent.typologieActeur.name }}</div>
  31.                             {% endif %}
  32.                             {% if referent.mainPhone is defined and referent.mainPhone is not empty %}
  33.                                 <div class="center fw400 lh24 fs16 corange">{{ referent.mainPhone }}</div>
  34.                             {% endif %}
  35.                             {% if referent.mainEmail is defined and referent.mainEmail is not empty %}
  36.                                 <div class="center fw400 lh24 fs16">{{ referent.mainEmail }}</div>
  37.                             {% endif %}
  38.                         </div>
  39.                     </li>
  40.                 {% endfor %}
  41.             </ul>
  42.         </div>
  43.     </div>
  44. {% endif %}