templates/annuaire/_includes/diplome-list.html.twig line 1

Open in your IDE?
  1.     <div class="block-diplome-plus">
  2.         <h2>Diplômes à la une</h2>
  3.         <div class="position-relative">
  4.             {% if itemsInsertions|length > 3 %}
  5.                 <span class="next-slide-diplome next-rouge"></span>
  6.                 <span class="prev-slide-diplome prev-rouge"></span>
  7.             {% endif %}
  8.             <div class="diplome-une d-none d-md-block d-lg-block">
  9.                 {% for ii in itemsInsertions %}
  10.                     {% set imgAlt = ii.etablissement.denomination|join(' - ')|trim(' -') %}
  11.                     {% set urlFiche = pathBuilder.buildFiche(ii.etablissement) %}
  12.                     {% if loop.index == 1 or loop.index == 4 or loop.index == 7  %}
  13.                         <div class="slide-diplome w-100">
  14.                     {% endif %}
  15.                     {% if ii.etablissement.isClient %}
  16.                         <article class="diplome{% if ii.etablissement.type %} {{ ii.etablissement.type | typeNiveau | slugify }} {% endif %}">
  17.                             <span class="diplome-plus"></span>
  18.                             {% if ii.pere == 'LYC-FORMA2021' or ii.pere == 'LYC-FORMA2021-SPEC' or ii.pere == 'LYC-FORMA2021-GFACU' %}
  19.                                 <p class="libelle">Bac Général</p>
  20.                             {% else %}
  21.                                 <p class="libelle">{{ ii | itemLibelle | striptags | raw | u.truncate(50, '…', true) }} {% if ii.options is not empty %} - {{ ii.options | u.truncate(20, '…', true) }}{% endif %}</p>
  22.                             {% endif %}
  23.                             <div class="infos p-0">
  24.                                 <figure class="resize" data-href="{% if ii.etablissement.videoPlus %} {{ pathBuilder.buildFiche(ii.etablissement,{'video-id':'0'})}} {% else %} {{ urlFiche }} {% endif %}">
  25.                                     {% if isForeignCityNear %}
  26.                                         {% set distance = lieu | lieuDistance(ii.etablissement.latitude, ii.etablissement.longitude) | default('proximité') %}
  27.                                         <span class="distance">à {{ distance }}</span>
  28.                                     {% endif %}
  29.                                     {% set imgSrc = vich_uploader_asset(ii.etablissement.logo, 'logoFile') %}
  30.                                     {% if imgSrc %}
  31.                                         <img loading="lazy" src="{{ vich_uploader_asset(ii.etablissement.logo, 'logoFile') | imagine_filter('etab_hp_logo') }}" alt="{{ ii.etablissement.denomination }}" title="{{ ii.etablissement.denomination }}">
  32.                                     {% endif %}
  33.                                     {#
  34.                                     {% if ii.etablissement.imagesDiaporama is not empty %}
  35.                                         <img class="resp" src="{{ asset('images/jouve/photo/' ~ ii.etablissement.imagesDiaporama | first) | imagine_filter('etab_liste')}}" alt="{{ imgAlt }}" title="{{ imgAlt }}">
  36.                                     {% else %}
  37.                                         <span class="no-logo"></span>
  38.                                     {% endif %}
  39.                                     {% if ii.etablissement.videos|length > 0 and ii.etablissement.videoPlus %}
  40.                                         <i class="i-video"></i>
  41.                                     {% elseif ii.etablissement.diaporamas|length > 0 and ii.etablissement.diapoPlus %}
  42.                                         <i class="i-diapo"></i>
  43.                                     {% endif %}#}
  44.                                 </figure>
  45.                                 <p class="estab">{{ ii.etablissement.denomination | u.truncate(50, '…', true) }}</p> 
  46. {#                                <p class="city">{{ ii.etablissement.ville.codePostal }} {{ ii.etablissement.ville.libelle }}</p>#}
  47.                             </div>
  48.                             <a class="see-more" href="{{ urlFiche }}#{{ ii.id }}">Découvrir</a>
  49.                         </article>
  50.                     {% endif %}
  51.                     {% if loop.index == 3 or loop.index == 6 or loop.last  %}
  52.                         </div>
  53.                     {% endif %}
  54.                 {% endfor %}
  55.             </div>
  56.             <div class="diplome-une d-block d-md-none d-lg-none">
  57.                 {% for ii in itemsInsertions %}
  58.                     {% set imgAlt = ii.etablissement.denomination|join(' - ')|trim(' -') %}
  59.                     {% set urlFiche = pathBuilder.buildFiche(ii.etablissement) %}
  60.                     <div class="slide-diplome {#w-100#}">
  61.                     {% if ii.etablissement.isClient %}
  62.                         <article class="diplome">
  63.                             <span class="diplome-plus"></span>
  64.                             {% if ii.pere == 'LYC-FORMA2021' or ii.pere == 'LYC-FORMA2021-SPEC' or ii.pere == 'LYC-FORMA2021-GFACU' %}
  65.                                 <p class="libelle">Bac Général</p>
  66.                             {% else %}
  67.                                 <p class="libelle">{{ ii | itemLibelle | striptags | raw | u.truncate(50, '…', true) }} {% if ii.options is not empty %} - {{ ii.options | u.truncate(20, '…', true) }}{% endif %}</p>
  68.                             {% endif %}
  69.                             <div class="infos p-0">
  70.                                 <figure class="resize" data-href="{% if ii.etablissement.videoPlus %} {{ pathBuilder.buildFiche(ii.etablissement,{'video-id':'0'})}} {% else %} {{ urlFiche }} {% endif %}">
  71.                                 {% if isForeignCityNear %}
  72.                                     {% set distance = lieu | lieuDistance(ii.etablissement.latitude, ii.etablissement.longitude) | default('proximité') %}
  73.                                     <span class="distance">à {{ distance }}</span>
  74.                                 {% endif %}
  75.                                     {% set imgSrc = vich_uploader_asset(ii.etablissement.logo, 'logoFile') %}
  76.                                     {% if imgSrc %}
  77.                                         <img loading="lazy" src="{{ vich_uploader_asset(ii.etablissement.logo, 'logoFile') | imagine_filter('etab_hp_logo') }}" alt="{{ ii.etablissement.denomination }}" title="{{ ii.etablissement.denomination }}">
  78.                                     {% endif %}
  79.                                     {#{% if ii.etablissement.imagesDiaporama is not empty %}
  80.                                     <img class="resp" src="{{ asset('images/jouve/photo/' ~ ii.etablissement.imagesDiaporama | first) | imagine_filter('etab_liste')}}" alt="{{ imgAlt }}" title="{{ imgAlt }}">
  81.                                 {% else %}
  82.                                     <span class="no-logo"></span>
  83.                                 {% endif %}#}
  84.                                 {#{% if ii.etablissement.videos|length > 0 and ii.etablissement.videoPlus %}
  85.                                     <i class="i-video"></i>
  86.                                 {% elseif ii.etablissement.diaporamas|length > 0 and ii.etablissement.diapoPlus %}
  87.                                     <i class="i-diapo"></i>
  88.                                 {% endif %}#}
  89.                                 </figure>
  90.                                 <p class="estab">{{ ii.etablissement.denomination | u.truncate(50, '…', true) }}</p> 
  91. {#                                <p class="city">{{ ii.etablissement.ville.codePostal }} {{ ii.etablissement.ville.libelle }}</p>#}
  92.                             </div>
  93.                             <a class="see-more" href="{{ urlFiche }}#{{ ii.id }}">Découvrir</a>
  94.                         </article>
  95.                     {% endif %}
  96.                     </div>
  97.                 {% endfor %}
  98.             </div>
  99.         </div>
  100.     </div>