<div class="block-diplome-plus">
<h2>Diplômes à la une</h2>
<div class="position-relative">
{% if itemsInsertions|length > 3 %}
<span class="next-slide-diplome next-rouge"></span>
<span class="prev-slide-diplome prev-rouge"></span>
{% endif %}
<div class="diplome-une d-none d-md-block d-lg-block">
{% for ii in itemsInsertions %}
{% set imgAlt = ii.etablissement.denomination|join(' - ')|trim(' -') %}
{% set urlFiche = pathBuilder.buildFiche(ii.etablissement) %}
{% if loop.index == 1 or loop.index == 4 or loop.index == 7 %}
<div class="slide-diplome w-100">
{% endif %}
{% if ii.etablissement.isClient %}
<article class="diplome{% if ii.etablissement.type %} {{ ii.etablissement.type | typeNiveau | slugify }} {% endif %}">
<span class="diplome-plus"></span>
{% if ii.pere == 'LYC-FORMA2021' or ii.pere == 'LYC-FORMA2021-SPEC' or ii.pere == 'LYC-FORMA2021-GFACU' %}
<p class="libelle">Bac Général</p>
{% else %}
<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>
{% endif %}
<div class="infos p-0">
<figure class="resize" data-href="{% if ii.etablissement.videoPlus %} {{ pathBuilder.buildFiche(ii.etablissement,{'video-id':'0'})}} {% else %} {{ urlFiche }} {% endif %}">
{% if isForeignCityNear %}
{% set distance = lieu | lieuDistance(ii.etablissement.latitude, ii.etablissement.longitude) | default('proximité') %}
<span class="distance">à {{ distance }}</span>
{% endif %}
{% set imgSrc = vich_uploader_asset(ii.etablissement.logo, 'logoFile') %}
{% if imgSrc %}
<img loading="lazy" src="{{ vich_uploader_asset(ii.etablissement.logo, 'logoFile') | imagine_filter('etab_hp_logo') }}" alt="{{ ii.etablissement.denomination }}" title="{{ ii.etablissement.denomination }}">
{% endif %}
{#
{% if ii.etablissement.imagesDiaporama is not empty %}
<img class="resp" src="{{ asset('images/jouve/photo/' ~ ii.etablissement.imagesDiaporama | first) | imagine_filter('etab_liste')}}" alt="{{ imgAlt }}" title="{{ imgAlt }}">
{% else %}
<span class="no-logo"></span>
{% endif %}
{% if ii.etablissement.videos|length > 0 and ii.etablissement.videoPlus %}
<i class="i-video"></i>
{% elseif ii.etablissement.diaporamas|length > 0 and ii.etablissement.diapoPlus %}
<i class="i-diapo"></i>
{% endif %}#}
</figure>
<p class="estab">{{ ii.etablissement.denomination | u.truncate(50, '…', true) }}</p>
{# <p class="city">{{ ii.etablissement.ville.codePostal }} {{ ii.etablissement.ville.libelle }}</p>#}
</div>
<a class="see-more" href="{{ urlFiche }}#{{ ii.id }}">Découvrir</a>
</article>
{% endif %}
{% if loop.index == 3 or loop.index == 6 or loop.last %}
</div>
{% endif %}
{% endfor %}
</div>
<div class="diplome-une d-block d-md-none d-lg-none">
{% for ii in itemsInsertions %}
{% set imgAlt = ii.etablissement.denomination|join(' - ')|trim(' -') %}
{% set urlFiche = pathBuilder.buildFiche(ii.etablissement) %}
<div class="slide-diplome {#w-100#}">
{% if ii.etablissement.isClient %}
<article class="diplome">
<span class="diplome-plus"></span>
{% if ii.pere == 'LYC-FORMA2021' or ii.pere == 'LYC-FORMA2021-SPEC' or ii.pere == 'LYC-FORMA2021-GFACU' %}
<p class="libelle">Bac Général</p>
{% else %}
<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>
{% endif %}
<div class="infos p-0">
<figure class="resize" data-href="{% if ii.etablissement.videoPlus %} {{ pathBuilder.buildFiche(ii.etablissement,{'video-id':'0'})}} {% else %} {{ urlFiche }} {% endif %}">
{% if isForeignCityNear %}
{% set distance = lieu | lieuDistance(ii.etablissement.latitude, ii.etablissement.longitude) | default('proximité') %}
<span class="distance">à {{ distance }}</span>
{% endif %}
{% set imgSrc = vich_uploader_asset(ii.etablissement.logo, 'logoFile') %}
{% if imgSrc %}
<img loading="lazy" src="{{ vich_uploader_asset(ii.etablissement.logo, 'logoFile') | imagine_filter('etab_hp_logo') }}" alt="{{ ii.etablissement.denomination }}" title="{{ ii.etablissement.denomination }}">
{% endif %}
{#{% if ii.etablissement.imagesDiaporama is not empty %}
<img class="resp" src="{{ asset('images/jouve/photo/' ~ ii.etablissement.imagesDiaporama | first) | imagine_filter('etab_liste')}}" alt="{{ imgAlt }}" title="{{ imgAlt }}">
{% else %}
<span class="no-logo"></span>
{% endif %}#}
{#{% if ii.etablissement.videos|length > 0 and ii.etablissement.videoPlus %}
<i class="i-video"></i>
{% elseif ii.etablissement.diaporamas|length > 0 and ii.etablissement.diapoPlus %}
<i class="i-diapo"></i>
{% endif %}#}
</figure>
<p class="estab">{{ ii.etablissement.denomination | u.truncate(50, '…', true) }}</p>
{# <p class="city">{{ ii.etablissement.ville.codePostal }} {{ ii.etablissement.ville.libelle }}</p>#}
</div>
<a class="see-more" href="{{ urlFiche }}#{{ ii.id }}">Découvrir</a>
</article>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>