<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* annuaire/_includes/diplome-list.html.twig */
class __TwigTemplate_7e03ea881f84e96f3ed06c85e79f5cd8d821d2f9428c9e4ad209c3cce55047ce extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "annuaire/_includes/diplome-list.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "annuaire/_includes/diplome-list.html.twig"));
// line 1
echo " <div class=\"block-diplome-plus\">
<h2>Diplômes à la une</h2>
\t\t<div class=\"position-relative\">
";
// line 4
if ((1 === twig_compare(twig_length_filter($this->env, (isset($context["itemsInsertions"]) || array_key_exists("itemsInsertions", $context) ? $context["itemsInsertions"] : (function () { throw new RuntimeError('Variable "itemsInsertions" does not exist.', 4, $this->source); })())), 3))) {
// line 5
echo " <span class=\"next-slide-diplome next-rouge\"></span>
<span class=\"prev-slide-diplome prev-rouge\"></span>
";
}
// line 8
echo "\t\t\t<div class=\"diplome-une d-none d-md-block d-lg-block\">
\t\t\t\t";
// line 9
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["itemsInsertions"]) || array_key_exists("itemsInsertions", $context) ? $context["itemsInsertions"] : (function () { throw new RuntimeError('Variable "itemsInsertions" does not exist.', 9, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["ii"]) {
// line 10
echo " ";
$context["imgAlt"] = twig_trim_filter(twig_join_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 10), "denomination", [], "any", false, false, false, 10), " - "), " -");
// line 11
echo " ";
$context["urlFiche"] = twig_get_attribute($this->env, $this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder", $context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.', 11, $this->source); })()), "buildFiche", [0 => twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 11)], "method", false, false, false, 11);
// line 12
echo "\t\t\t\t\t";
if ((((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 12), 1)) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 12), 4))) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 12), 7)))) {
// line 13
echo "\t\t\t\t\t\t<div class=\"slide-diplome w-100\">
\t\t\t\t\t";
}
// line 15
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 15), "isClient", [], "any", false, false, false, 15)) {
// line 16
echo " <article class=\"diplome";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 16), "type", [], "any", false, false, false, 16)) {
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SlugifyTwigExtension']->slugify($this->extensions['App\Twig\TypeOngletLibelleExtension']->typeNiveau(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 16), "type", [], "any", false, false, false, 16))), "html", null, true);
echo " ";
}
echo "\">
<span class=\"diplome-plus\"></span>
";
// line 18
if ((((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["ii"], "pere", [], "any", false, false, false, 18), "LYC-FORMA2021")) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["ii"], "pere", [], "any", false, false, false, 18), "LYC-FORMA2021-SPEC"))) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["ii"], "pere", [], "any", false, false, false, 18), "LYC-FORMA2021-GFACU")))) {
// line 19
echo " <p class=\"libelle\">Bac Général</p>
";
} else {
// line 21
echo " <p class=\"libelle\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_striptags($this->extensions['App\Twig\ItemsInsertionExtension']->itemLibelle($context["ii"]))), "truncate", [0 => 50, 1 => "…", 2 => true], "method", false, false, false, 21), "html", null, true);
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["ii"], "options", [], "any", false, false, false, 21))) {
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, $context["ii"], "options", [], "any", false, false, false, 21)), "truncate", [0 => 20, 1 => "…", 2 => true], "method", false, false, false, 21), "html", null, true);
}
echo "</p>
";
}
// line 23
echo " <div class=\"infos p-0\">
<figure class=\"resize\" data-href=\"";
// line 24
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 24), "videoPlus", [], "any", false, false, false, 24)) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder", $context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.', 24, $this->source); })()), "buildFiche", [0 => twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 24), 1 => ["video-id" => "0"]], "method", false, false, false, 24), "html", null, true);
echo " ";
} else {
echo " ";
echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche", $context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.', 24, $this->source); })()), "html", null, true);
echo " ";
}
echo "\">
";
// line 25
if ((isset($context["isForeignCityNear"]) || array_key_exists("isForeignCityNear", $context) ? $context["isForeignCityNear"] : (function () { throw new RuntimeError('Variable "isForeignCityNear" does not exist.', 25, $this->source); })())) {
// line 26
echo " ";
$context["distance"] = _twig_default_filter($this->extensions['App\Twig\GeoExtension']->lieuDistance((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 26, $this->source); })()), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 26), "latitude", [], "any", false, false, false, 26), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 26), "longitude", [], "any", false, false, false, 26)), "proximité");
// line 27
echo " <span class=\"distance\">à ";
echo twig_escape_filter($this->env, (isset($context["distance"]) || array_key_exists("distance", $context) ? $context["distance"] : (function () { throw new RuntimeError('Variable "distance" does not exist.', 27, $this->source); })()), "html", null, true);
echo "</span>
";
}
// line 29
echo " ";
$context["imgSrc"] = $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 29), "logo", [], "any", false, false, false, 29), "logoFile");
// line 30
echo " ";
if ((isset($context["imgSrc"]) || array_key_exists("imgSrc", $context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.', 30, $this->source); })())) {
// line 31
echo " <img loading=\"lazy\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 31), "logo", [], "any", false, false, false, 31), "logoFile"), "etab_hp_logo"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 31), "denomination", [], "any", false, false, false, 31), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 31), "denomination", [], "any", false, false, false, 31), "html", null, true);
echo "\">
";
}
// line 33
echo " ";
// line 44
echo " </figure>
<p class=\"estab\">";
// line 45
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 45), "denomination", [], "any", false, false, false, 45)), "truncate", [0 => 50, 1 => "…", 2 => true], "method", false, false, false, 45), "html", null, true);
echo "</p>
";
// line 47
echo " </div>
<a class=\"see-more\" href=\"";
// line 48
echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche", $context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.', 48, $this->source); })()), "html", null, true);
echo "#";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ii"], "id", [], "any", false, false, false, 48), "html", null, true);
echo "\">Découvrir</a>
</article>
";
}
// line 51
echo "\t\t\t\t\t";
if ((((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 51), 3)) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 51), 6))) || twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 51))) {
// line 52
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 54
echo "\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ii'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 55
echo "\t\t\t</div>
\t\t\t<div class=\"diplome-une d-block d-md-none d-lg-none\">
\t\t\t\t";
// line 57
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["itemsInsertions"]) || array_key_exists("itemsInsertions", $context) ? $context["itemsInsertions"] : (function () { throw new RuntimeError('Variable "itemsInsertions" does not exist.', 57, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["ii"]) {
// line 58
echo " ";
$context["imgAlt"] = twig_trim_filter(twig_join_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 58), "denomination", [], "any", false, false, false, 58), " - "), " -");
// line 59
echo " ";
$context["urlFiche"] = twig_get_attribute($this->env, $this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder", $context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.', 59, $this->source); })()), "buildFiche", [0 => twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 59)], "method", false, false, false, 59);
// line 60
echo "\t\t\t\t\t<div class=\"slide-diplome ";
echo "\">
";
// line 61
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 61), "isClient", [], "any", false, false, false, 61)) {
// line 62
echo " <article class=\"diplome\">
<span class=\"diplome-plus\"></span>
";
// line 64
if ((((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["ii"], "pere", [], "any", false, false, false, 64), "LYC-FORMA2021")) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["ii"], "pere", [], "any", false, false, false, 64), "LYC-FORMA2021-SPEC"))) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["ii"], "pere", [], "any", false, false, false, 64), "LYC-FORMA2021-GFACU")))) {
// line 65
echo " <p class=\"libelle\">Bac Général</p>
";
} else {
// line 67
echo " <p class=\"libelle\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_striptags($this->extensions['App\Twig\ItemsInsertionExtension']->itemLibelle($context["ii"]))), "truncate", [0 => 50, 1 => "…", 2 => true], "method", false, false, false, 67), "html", null, true);
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["ii"], "options", [], "any", false, false, false, 67))) {
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, $context["ii"], "options", [], "any", false, false, false, 67)), "truncate", [0 => 20, 1 => "…", 2 => true], "method", false, false, false, 67), "html", null, true);
}
echo "</p>
";
}
// line 69
echo " <div class=\"infos p-0\">
<figure class=\"resize\" data-href=\"";
// line 70
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 70), "videoPlus", [], "any", false, false, false, 70)) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder", $context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.', 70, $this->source); })()), "buildFiche", [0 => twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 70), 1 => ["video-id" => "0"]], "method", false, false, false, 70), "html", null, true);
echo " ";
} else {
echo " ";
echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche", $context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.', 70, $this->source); })()), "html", null, true);
echo " ";
}
echo "\">
";
// line 71
if ((isset($context["isForeignCityNear"]) || array_key_exists("isForeignCityNear", $context) ? $context["isForeignCityNear"] : (function () { throw new RuntimeError('Variable "isForeignCityNear" does not exist.', 71, $this->source); })())) {
// line 72
echo " ";
$context["distance"] = _twig_default_filter($this->extensions['App\Twig\GeoExtension']->lieuDistance((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 72, $this->source); })()), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 72), "latitude", [], "any", false, false, false, 72), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 72), "longitude", [], "any", false, false, false, 72)), "proximité");
// line 73
echo " <span class=\"distance\">à ";
echo twig_escape_filter($this->env, (isset($context["distance"]) || array_key_exists("distance", $context) ? $context["distance"] : (function () { throw new RuntimeError('Variable "distance" does not exist.', 73, $this->source); })()), "html", null, true);
echo "</span>
";
}
// line 75
echo " ";
$context["imgSrc"] = $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 75), "logo", [], "any", false, false, false, 75), "logoFile");
// line 76
echo " ";
if ((isset($context["imgSrc"]) || array_key_exists("imgSrc", $context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.', 76, $this->source); })())) {
// line 77
echo " <img loading=\"lazy\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 77), "logo", [], "any", false, false, false, 77), "logoFile"), "etab_hp_logo"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 77), "denomination", [], "any", false, false, false, 77), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 77), "denomination", [], "any", false, false, false, 77), "html", null, true);
echo "\">
";
}
// line 79
echo " ";
// line 84
echo " ";
// line 89
echo " </figure>
<p class=\"estab\">";
// line 90
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ii"], "etablissement", [], "any", false, false, false, 90), "denomination", [], "any", false, false, false, 90)), "truncate", [0 => 50, 1 => "…", 2 => true], "method", false, false, false, 90), "html", null, true);
echo "</p>
";
// line 92
echo " </div>
<a class=\"see-more\" href=\"";
// line 93
echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche", $context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.', 93, $this->source); })()), "html", null, true);
echo "#";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ii"], "id", [], "any", false, false, false, 93), "html", null, true);
echo "\">Découvrir</a>
</article>
";
}
// line 96
echo "\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ii'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 98
echo "\t\t\t</div>
\t\t</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "annuaire/_includes/diplome-list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 313 => 98, 306 => 96, 298 => 93, 295 => 92, 291 => 90, 288 => 89, 286 => 84, 284 => 79, 274 => 77, 271 => 76, 268 => 75, 262 => 73, 259 => 72, 257 => 71, 245 => 70, 242 => 69, 231 => 67, 227 => 65, 225 => 64, 221 => 62, 219 => 61, 215 => 60, 212 => 59, 209 => 58, 205 => 57, 201 => 55, 187 => 54, 183 => 52, 180 => 51, 172 => 48, 169 => 47, 165 => 45, 162 => 44, 160 => 33, 150 => 31, 147 => 30, 144 => 29, 138 => 27, 135 => 26, 133 => 25, 121 => 24, 118 => 23, 107 => 21, 103 => 19, 101 => 18, 91 => 16, 88 => 15, 84 => 13, 81 => 12, 78 => 11, 75 => 10, 58 => 9, 55 => 8, 50 => 5, 48 => 4, 43 => 1,);
}
public function getSourceContext()
{
return new Source(" <div class=\"block-diplome-plus\">
<h2>Diplômes à la une</h2>
\t\t<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 %}
\t\t\t<div class=\"diplome-une d-none d-md-block d-lg-block\">
\t\t\t\t{% for ii in itemsInsertions %}
{% set imgAlt = ii.etablissement.denomination|join(' - ')|trim(' -') %}
{% set urlFiche = pathBuilder.buildFiche(ii.etablissement) %}
\t\t\t\t\t{% if loop.index == 1 or loop.index == 4 or loop.index == 7 %}
\t\t\t\t\t\t<div class=\"slide-diplome w-100\">
\t\t\t\t\t{% 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 %}
\t\t\t\t\t{% if loop.index == 3 or loop.index == 6 or loop.last %}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<div class=\"diplome-une d-block d-md-none d-lg-none\">
\t\t\t\t{% for ii in itemsInsertions %}
{% set imgAlt = ii.etablissement.denomination|join(' - ')|trim(' -') %}
{% set urlFiche = pathBuilder.buildFiche(ii.etablissement) %}
\t\t\t\t\t<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 %}
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t</div>
</div>
", "annuaire/_includes/diplome-list.html.twig", "/app/templates/annuaire/_includes/diplome-list.html.twig");
}
}