<?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/liste.html.twig */
class __TwigTemplate_611c959658fa6200314047b75bc1ba02d9939ddf1b08fe26ad5e92f14df5f569 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'description' => [$this, 'block_description'],
'body' => [$this, 'block_body'],
'h1' => [$this, 'block_h1'],
'javascripts' => [$this, 'block_javascripts'],
'data_layer' => [$this, 'block_data_layer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
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/liste.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/liste.html.twig"));
// line 3
$context["niveau"] = "";
// line 4
if (((0 === twig_compare("diplome", (isset($context["sousTypeOnglet"]) || array_key_exists("sousTypeOnglet", $context) ? $context["sousTypeOnglet"] : (function () { throw new RuntimeError('Variable "sousTypeOnglet" does not exist.', 4, $this->source); })()))) && !(null === (isset($context["diplomeLibelle"]) || array_key_exists("diplomeLibelle", $context) ? $context["diplomeLibelle"] : (function () { throw new RuntimeError('Variable "diplomeLibelle" does not exist.', 4, $this->source); })())))) {
// line 5
$context["niveau"] = twig_get_attribute($this->env, $this->source, (isset($context["diplomeLibelle"]) || array_key_exists("diplomeLibelle", $context) ? $context["diplomeLibelle"] : (function () { throw new RuntimeError('Variable "diplomeLibelle" does not exist.', 5, $this->source); })()), "libelle", [], "any", false, false, false, 5);
}
// line 48
$context["checkedNiveau"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 48, $this->source); })()), "request", [], "any", false, false, false, 48), "query", [], "any", false, false, false, 48), "get", [0 => "niveau"], "method", false, false, false, 48);
// line 49
$context["checkedAge"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 49, $this->source); })()), "request", [], "any", false, false, false, 49), "query", [], "any", false, false, false, 49), "get", [0 => "age"], "method", false, false, false, 49);
// line 50
$context["checkedAutre"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 50, $this->source); })()), "request", [], "any", false, false, false, 50), "query", [], "any", false, false, false, 50), "get", [0 => "autre"], "method", false, false, false, 50);
// line 51
$context["checkedStatut"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 51, $this->source); })()), "request", [], "any", false, false, false, 51), "query", [], "any", false, false, false, 51), "get", [0 => "statut"], "method", false, false, false, 51);
// line 52
$context["checkedAlternance"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 52, $this->source); })()), "request", [], "any", false, false, false, 52), "query", [], "any", false, false, false, 52), "get", [0 => "alternance"], "method", false, false, false, 52);
// line 53
$context["checkedFilieres"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 53, $this->source); })()), "request", [], "any", false, false, false, 53), "query", [], "any", false, false, false, 53), "get", [0 => "filiere"], "method", false, false, false, 53);
// line 54
$context["checkedDiplomes"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "request", [], "any", false, false, false, 54), "query", [], "any", false, false, false, 54), "get", [0 => "diplome"], "method", false, false, false, 54);
// line 55
$context["checkedLVA"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 55, $this->source); })()), "request", [], "any", false, false, false, 55), "query", [], "any", false, false, false, 55), "get", [0 => "lva"], "method", false, false, false, 55);
// line 56
$context["checkedLVB"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 56, $this->source); })()), "request", [], "any", false, false, false, 56), "query", [], "any", false, false, false, 56), "get", [0 => "lvb"], "method", false, false, false, 56);
// line 57
$context["checkedEds"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 57, $this->source); })()), "request", [], "any", false, false, false, 57), "query", [], "any", false, false, false, 57), "get", [0 => "eds"], "method", false, false, false, 57);
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "annuaire/liste.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 8
public function block_title($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(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 9
if ( $this->hasBlock("h1", $context, $blocks)) {
// line 10
$this->displayBlock("h1", $context, $blocks);
echo " - ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 10, $this->source); })()), 0, " ", " "), "html", null, true);
echo "
etablissement";
// line 11
if ((1 === twig_compare((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 11, $this->source); })()), 1))) {
echo "s";
}
} elseif ( // line 12
(isset($context["seoTitre"]) || array_key_exists("seoTitre", $context) ? $context["seoTitre"] : (function () { throw new RuntimeError('Variable "seoTitre" does not exist.', 12, $this->source); })())) {
// line 13
echo twig_escape_filter($this->env, twig_striptags(twig_replace_filter((isset($context["seoTitre"]) || array_key_exists("seoTitre", $context) ? $context["seoTitre"] : (function () { throw new RuntimeError('Variable "seoTitre" does not exist.', 13, $this->source); })()), ["[region]" => twig_get_attribute($this->env, $this->source, (isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 13, $this->source); })()), "libelle", [], "any", false, false, false, 13), "[dept]" => $this->extensions['App\Twig\LieuExtension']->lieuLibelle((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 13, $this->source); })())), "[ville]" => $this->extensions['App\Twig\LieuExtension']->lieuLibelle((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 13, $this->source); })()))])), "html", null, true);
echo "
- ";
// line 14
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 14, $this->source); })()), 0, " ", " "), "html", null, true);
echo "
etablissement";
// line 15
if ((1 === twig_compare((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 15, $this->source); })()), 1))) {
echo "s";
}
} else {
// line 17
if (((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 17, $this->source); })()), "request", [], "any", false, false, false, 17), "attributes", [], "any", false, false, false, 17), "get", [0 => "_route"], "method", false, false, false, 17), "annuaire_liste")) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 17, $this->source); })()), "request", [], "any", false, false, false, 17), "attributes", [], "any", false, false, false, 17), "get", [0 => "_route"], "method", false, false, false, 17), "annuaire_quoi")))) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["quoi"]) || array_key_exists("quoi", $context) ? $context["quoi"] : (function () { throw new RuntimeError('Variable "quoi" does not exist.', 17, $this->source); })()), "libelle", [], "any", false, false, false, 17), "html", null, true);
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 18
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 18, $this->source); })()), "request", [], "any", false, false, false, 18), "attributes", [], "any", false, false, false, 18), "get", [0 => "_route"], "method", false, false, false, 18), "annuaire_prive"))) {
echo "Enseignement privé";
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 19
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 19, $this->source); })()), "request", [], "any", false, false, false, 19), "attributes", [], "any", false, false, false, 19), "get", [0 => "_route"], "method", false, false, false, 19), "annuaire_catho"))) {
echo "Enseignement catholique";
} else {
// line 20
echo twig_escape_filter($this->env, $this->extensions['App\Twig\TypeEtablissementLibelleExtension']->typeEtablissementLibelle(twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["quoi"]) || array_key_exists("quoi", $context) ? $context["quoi"] : (function () { throw new RuntimeError('Variable "quoi" does not exist.', 20, $this->source); })()), "libelle", [], "any", false, false, false, 20), ["---" => ""])), "html", null, true);
}
// line 22
if ((0 !== twig_compare($this->extensions['App\Twig\LieuExtension']->lieuLibelle((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 22, $this->source); })())), "DEFAULT"))) {
echo " à ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\LieuExtension']->lieuLibelle((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 22, $this->source); })())), "html", null, true);
} elseif ( // line 23
(isset($context["niveau"]) || array_key_exists("niveau", $context) ? $context["niveau"] : (function () { throw new RuntimeError('Variable "niveau" does not exist.', 23, $this->source); })())) {
echo "- ";
echo twig_escape_filter($this->env, (isset($context["niveau"]) || array_key_exists("niveau", $context) ? $context["niveau"] : (function () { throw new RuntimeError('Variable "niveau" does not exist.', 23, $this->source); })()), "html", null, true);
} elseif ((0 !== twig_compare( // line 24
(isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 24, $this->source); })()), "tout"))) {
echo " - ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\NiveauLibelleExtension']->niveauLibelle((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 24, $this->source); })())), "html", null, true);
}
}
// line 27
if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["etablissements"]) || array_key_exists("etablissements", $context) ? $context["etablissements"] : (function () { throw new RuntimeError('Variable "etablissements" does not exist.', 27, $this->source); })()), "currentPageNumber", [], "any", false, false, false, 27), 1))) {
echo " - Page ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissements"]) || array_key_exists("etablissements", $context) ? $context["etablissements"] : (function () { throw new RuntimeError('Variable "etablissements" does not exist.', 27, $this->source); })()), "currentPageNumber", [], "any", false, false, false, 27), "html", null, true);
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 31
public function block_description($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(), "block", "description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
// line 32
ob_start();
// line 33
echo " ";
if ((isset($context["seoTextePart1"]) || array_key_exists("seoTextePart1", $context) ? $context["seoTextePart1"] : (function () { throw new RuntimeError('Variable "seoTextePart1" does not exist.', 33, $this->source); })())) {
// line 34
echo " ";
echo twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString((isset($context["metadesc"]) || array_key_exists("metadesc", $context) ? $context["metadesc"] : (function () { throw new RuntimeError('Variable "metadesc" does not exist.', 34, $this->source); })())), "truncate", [0 => 160, 1 => "...", 2 => false], "method", false, false, false, 34);
// line 35
echo " ";
} else {
// line 36
echo " ";
ob_start();
// line 37
echo " ";
$this->loadTemplate([0 => (("annuaire/text-desc/metadesc-" . // line 38
(isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 38, $this->source); })())) . ".html.twig"), 1 => "annuaire/text-desc/metadesc-default.html.twig"], "annuaire/liste.html.twig", 37)->display(twig_array_merge($context, ["lieu" => $this->extensions['App\Twig\LieuExtension']->lieuLibelle( // line 41
(isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 41, $this->source); })()))]));
// line 42
echo " ";
$context["descriptionContent"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 43
echo " ";
echo twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString((isset($context["descriptionContent"]) || array_key_exists("descriptionContent", $context) ? $context["descriptionContent"] : (function () { throw new RuntimeError('Variable "descriptionContent" does not exist.', 43, $this->source); })())), "truncate", [0 => 160, 1 => "...", 2 => false], "method", false, false, false, 43);
// line 44
echo " ";
}
$___internal_parse_6_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 32
echo twig_spaceless($___internal_parse_6_);
// line 45
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 59
public function block_body($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(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 60
echo " <section class=\"container page-list ";
echo twig_escape_filter($this->env, (isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 60, $this->source); })()), "html", null, true);
echo "\">
<div id=\"breadcrumb\">
";
// line 63
$this->loadTemplate("annuaire/_includes/breadcrumb.html.twig", "annuaire/liste.html.twig", 63)->display(twig_to_array(["quoi" => // line 64
(isset($context["quoi"]) || array_key_exists("quoi", $context) ? $context["quoi"] : (function () { throw new RuntimeError('Variable "quoi" does not exist.', 64, $this->source); })()), "lieu" => // line 65
(isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 65, $this->source); })()), "typeOnglet" => // line 66
(isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 66, $this->source); })()), "niveauOnglet" => // line 67
(isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 67, $this->source); })()), "niveau" => // line 68
(isset($context["niveau"]) || array_key_exists("niveau", $context) ? $context["niveau"] : (function () { throw new RuntimeError('Variable "niveau" does not exist.', 68, $this->source); })()), "currentURL" => // line 69
(isset($context["currentURL"]) || array_key_exists("currentURL", $context) ? $context["currentURL"] : (function () { throw new RuntimeError('Variable "currentURL" does not exist.', 69, $this->source); })()), "diplomeLibelle" => // line 70
(isset($context["diplomeLibelle"]) || array_key_exists("diplomeLibelle", $context) ? $context["diplomeLibelle"] : (function () { throw new RuntimeError('Variable "diplomeLibelle" does not exist.', 70, $this->source); })()), "count" => // line 71
(isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 71, $this->source); })())]));
// line 74
echo " </div>
<ul class=\"page-topnav search-infos\">
<li class=\"title-search mb-4\">
";
// line 85
echo " <h1>";
$this->displayBlock('h1', $context, $blocks);
// line 222
echo "</h1>
<div class=\"triangle\"></div>
</li>
";
// line 230
echo " </ul>
<div class=\"wrap\">
";
// line 234
echo "
<section>
";
// line 236
if (((isset($context["pageOne"]) || array_key_exists("pageOne", $context) ? $context["pageOne"] : (function () { throw new RuntimeError('Variable "pageOne" does not exist.', 236, $this->source); })()) && (1 === twig_compare((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 236, $this->source); })()), 15)))) {
// line 237
echo " <div class=\"list-description\">
<!-- #DEBUG#SEO#[ ";
// line 238
echo twig_escape_filter($this->env, (isset($context["formation"]) || array_key_exists("formation", $context) ? $context["formation"] : (function () { throw new RuntimeError('Variable "formation" does not exist.', 238, $this->source); })()), "html", null, true);
echo " ]# -->
<div class=\"content\">
";
// line 242
echo " ";
// line 243
echo " ";
if (twig_in_filter((isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 243, $this->source); })()), [0 => "ecole", 1 => "college", 2 => "lycee", 3 => "professionnel", 4 => "superieur", 5 => "internat"])) {
// line 244
echo " ";
$this->loadTemplate((("annuaire/_includes/aide-au-choix-diplomes_" . (isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 244, $this->source); })())) . ".html.twig"), "annuaire/liste.html.twig", 244)->display(twig_array_merge($context, ["position" => "header"]));
// line 245
echo " ";
}
// line 246
echo " </div>
</div>
";
}
// line 250
echo "
";
// line 252
echo " ";
$this->loadTemplate("annuaire/_includes/search-options.html.twig", "annuaire/liste.html.twig", 252)->display($context);
// line 253
echo " ";
// line 254
echo "
";
// line 257
echo " ";
// line 258
echo "
<div class=\"clearfix establishments-list\">
";
// line 260
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 260, $this->source); })()), "request", [], "any", false, false, false, 260), "query", [], "any", false, false, false, 260))) {
// line 261
echo " <p class=\"options\">
<span class=\"search\">Ma recherche :</span>
";
// line 263
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedNiveau"]) || array_key_exists("checkedNiveau", $context) ? $context["checkedNiveau"] : (function () { throw new RuntimeError('Variable "checkedNiveau" does not exist.', 263, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 264
echo " <span class=\"option-title\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 266
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedAge"]) || array_key_exists("checkedAge", $context) ? $context["checkedAge"] : (function () { throw new RuntimeError('Variable "checkedAge" does not exist.', 266, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 267
echo " <span class=\"option-title\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 269
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedAutre"]) || array_key_exists("checkedAutre", $context) ? $context["checkedAutre"] : (function () { throw new RuntimeError('Variable "checkedAutre" does not exist.', 269, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 270
echo " <span data-id=\"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\" class=\"option-title\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 272
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedStatut"]) || array_key_exists("checkedStatut", $context) ? $context["checkedStatut"] : (function () { throw new RuntimeError('Variable "checkedStatut" does not exist.', 272, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 273
echo " <span data-id=\"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\" class=\"option-title\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 275
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedAlternance"]) || array_key_exists("checkedAlternance", $context) ? $context["checkedAlternance"] : (function () { throw new RuntimeError('Variable "checkedAlternance" does not exist.', 275, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 276
echo " <span data-id=\"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\" class=\"option-title\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 278
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedFilieres"]) || array_key_exists("checkedFilieres", $context) ? $context["checkedFilieres"] : (function () { throw new RuntimeError('Variable "checkedFilieres" does not exist.', 278, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 279
echo " <span data-id=\"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\" class=\"option-title\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 281
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedLVA"]) || array_key_exists("checkedLVA", $context) ? $context["checkedLVA"] : (function () { throw new RuntimeError('Variable "checkedLVA" does not exist.', 281, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 282
echo " <span data-id=\"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\" class=\"option-title lva\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 284
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedLVB"]) || array_key_exists("checkedLVB", $context) ? $context["checkedLVB"] : (function () { throw new RuntimeError('Variable "checkedLVB" does not exist.', 284, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 285
echo " <span data-id=\"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\" class=\"option-title lvb\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 287
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedEds"]) || array_key_exists("checkedEds", $context) ? $context["checkedEds"] : (function () { throw new RuntimeError('Variable "checkedEds" does not exist.', 287, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 288
echo " <span data-id=\"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\" class=\"option-title\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 290
echo "
";
// line 291
$context["diplome"] = "";
// line 292
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedDiplomes"]) || array_key_exists("checkedDiplomes", $context) ? $context["checkedDiplomes"] : (function () { throw new RuntimeError('Variable "checkedDiplomes" does not exist.', 292, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 293
echo " ";
if (twig_in_filter("--", $context["item"])) {
// line 294
echo " ";
$context["diplome"] = twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, $context["item"], "--"), 1, [], "array", false, false, false, 294));
// line 295
echo " <span data-id=\"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\" class=\"option-title\">";
echo twig_escape_filter($this->env, (isset($context["diplome"]) || array_key_exists("diplome", $context) ? $context["diplome"] : (function () { throw new RuntimeError('Variable "diplome" does not exist.', 295, $this->source); })()), "html", null, true);
echo "</span>
";
} else {
// line 297
echo " <span data-id=\"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\" class=\"option-title\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
echo "</span>
";
}
// line 299
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 300
echo " </p>
";
}
// line 302
echo "
";
// line 304
echo " ";
$this->loadTemplate("annuaire/_includes/liste-item-list.html.twig", "annuaire/liste.html.twig", 304)->display($context);
// line 305
echo "
</div>
";
// line 309
echo "
</section>
";
// line 312
echo "
<aside>
";
// line 314
$this->loadTemplate("_includes/banners-list.html.twig", "annuaire/liste.html.twig", 314)->display(twig_to_array(["emplacement" => (($this->extensions['App\Twig\BanniereExtension']->onglet2emplacement(twig_get_attribute($this->env, $this->source, // line 315
(isset($context["quoi"]) || array_key_exists("quoi", $context) ? $context["quoi"] : (function () { throw new RuntimeError('Variable "quoi" does not exist.', 315, $this->source); })()), "libelle", [], "any", false, false, false, 315))) ? ($this->extensions['App\Twig\BanniereExtension']->onglet2emplacement(twig_get_attribute($this->env, $this->source, (isset($context["quoi"]) || array_key_exists("quoi", $context) ? $context["quoi"] : (function () { throw new RuntimeError('Variable "quoi" does not exist.', 315, $this->source); })()), "libelle", [], "any", false, false, false, 315))) : ($this->extensions['App\Twig\BanniereExtension']->fromEtablissements((isset($context["etablissements"]) || array_key_exists("etablissements", $context) ? $context["etablissements"] : (function () { throw new RuntimeError('Variable "etablissements" does not exist.', 315, $this->source); })())))), "lieu" => twig_get_attribute($this->env, $this->source, // line 316
(isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 316, $this->source); })()), "slug", [], "any", false, false, false, 316)]));
// line 318
echo "
<div class=\"d-none\">
";
// line 320
$this->loadTemplate("annuaire/_includes/search-options.html.twig", "annuaire/liste.html.twig", 320)->display($context);
// line 321
echo " </div>
<div class=\"last-flex\">
<ul class=\"banners\">
<li class=\"long banniere-container\"
data-type=\"";
// line 327
echo twig_escape_filter($this->env, twig_constant("App\\Entity\\Banniere::MEGA_BANNIERE"), "html", null, true);
echo "\"
data-emplacement=\"";
// line 328
echo twig_escape_filter($this->env, ((array_key_exists("emplacement", $context)) ? (_twig_default_filter((isset($context["emplacement"]) || array_key_exists("emplacement", $context) ? $context["emplacement"] : (function () { throw new RuntimeError('Variable "emplacement" does not exist.', 328, $this->source); })()), "")) : ("")), "html", null, true);
echo "\"
data-lieu=\"\" data-single=\"0\"></li>
</ul>
";
// line 332
if ((isset($context["internats"]) || array_key_exists("internats", $context) ? $context["internats"] : (function () { throw new RuntimeError('Variable "internats" does not exist.', 332, $this->source); })())) {
// line 333
echo " ";
$this->loadTemplate("annuaire/_includes/internats.html.twig", "annuaire/liste.html.twig", 333)->display($context);
// line 334
echo " ";
}
// line 335
echo " ";
$this->loadTemplate("annuaire/_includes/lien-guide.html.twig", "annuaire/liste.html.twig", 335)->display($context);
// line 336
echo " ";
$this->loadTemplate("_includes/newsletter.html.twig", "annuaire/liste.html.twig", 336)->display($context);
// line 337
echo " ";
$this->loadTemplate("_includes/last-search.html.twig", "annuaire/liste.html.twig", 337)->display($context);
// line 338
echo " ";
$this->loadTemplate("_includes/last-establishment.html.twig", "annuaire/liste.html.twig", 338)->display($context);
// line 339
echo " </div>
</aside>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 85
public function block_h1($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(), "block", "h1"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "h1"));
// line 86
ob_start();
// line 87
if (((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 87, $this->source); })()), "request", [], "any", false, false, false, 87), "attributes", [], "any", false, false, false, 87), "get", [0 => "_route"], "method", false, false, false, 87), "annuaire_liste")) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 87, $this->source); })()), "request", [], "any", false, false, false, 87), "attributes", [], "any", false, false, false, 87), "get", [0 => "_route"], "method", false, false, false, 87), "annuaire_quoi")))) {
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 88
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 88, $this->source); })()), "request", [], "any", false, false, false, 88), "attributes", [], "any", false, false, false, 88), "get", [0 => "_route"], "method", false, false, false, 88), "annuaire_prive"))) {
// line 89
echo "Enseignement privé";
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 90
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 90, $this->source); })()), "request", [], "any", false, false, false, 90), "attributes", [], "any", false, false, false, 90), "get", [0 => "_route"], "method", false, false, false, 90), "annuaire_catho"))) {
// line 91
echo "Enseignement catholique";
} elseif (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 92
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 92, $this->source); })()), "request", [], "any", false, false, false, 92), "attributes", [], "any", false, false, false, 92), "get", [0 => "typeOnglet"], "method", false, false, false, 92) && !twig_in_filter((isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 92, $this->source); })()), [0 => "annuaire-enseignement-prive", 1 => "annuaire-enseignement-catholique"])) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 92, $this->source); })()), "request", [], "any", false, false, false, 92), "attributes", [], "any", false, false, false, 92), "get", [0 => "niveauOnglet"], "method", false, false, false, 92), "tout")))) {
// line 93
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleOnglet((isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 93, $this->source); })())), "html", null, true);
echo "
";
} elseif (((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 95
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 95, $this->source); })()), "request", [], "any", false, false, false, 95), "attributes", [], "any", false, false, false, 95), "get", [0 => "_route"], "method", false, false, false, 95), "annuaire_liste_par_onglet_sup")) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 95, $this->source); })()), "request", [], "any", false, false, false, 95), "attributes", [], "any", false, false, false, 95), "get", [0 => "niveauOnglet"], "method", false, false, false, 95), "tout")))) {
// line 96
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleOnglet((isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 96, $this->source); })())), "html", null, true);
} elseif (((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 97
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 97, $this->source); })()), "request", [], "any", false, false, false, 97), "attributes", [], "any", false, false, false, 97), "get", [0 => "_route"], "method", false, false, false, 97), "annuaire_liste_par_onglet_sup")) || ((((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 97, $this->source); })()), "request", [], "any", false, false, false, 97), "attributes", [], "any", false, false, false, 97), "get", [0 => "_route"], "method", false, false, false, 97), "annuaire_liste_par_onglet_sup_localisation")) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 97, $this->source); })()), "request", [], "any", false, false, false, 97), "attributes", [], "any", false, false, false, 97), "get", [0 => "niveauOnglet"], "method", false, false, false, 97)) && !twig_in_filter((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 97, $this->source); })()), [0 => "annuaire-enseignement-prive", 1 => "annuaire-enseignement-catholique"])) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 97, $this->source); })()), "request", [], "any", false, false, false, 97), "attributes", [], "any", false, false, false, 97), "get", [0 => "niveauOnglet"], "method", false, false, false, 97), "tout"))))) {
// line 99
if ( !twig_test_empty((isset($context["checkedFilieres"]) || array_key_exists("checkedFilieres", $context) ? $context["checkedFilieres"] : (function () { throw new RuntimeError('Variable "checkedFilieres" does not exist.', 99, $this->source); })()))) {
// line 100
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["filieres"]) || array_key_exists("filieres", $context) ? $context["filieres"] : (function () { throw new RuntimeError('Variable "filieres" does not exist.', 100, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["filiere"]) {
// line 101
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["checkedFilieres"]) || array_key_exists("checkedFilieres", $context) ? $context["checkedFilieres"] : (function () { throw new RuntimeError('Variable "checkedFilieres" does not exist.', 101, $this->source); })()), 0, [], "array", false, false, false, 101), twig_get_attribute($this->env, $this->source, $context["filiere"], "id", [], "any", false, false, false, 101)))) {
// line 102
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleFiliere((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 102, $this->source); })())), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["filiere"], "libelleMep", [], "any", true, true, false, 102) && !(null === twig_get_attribute($this->env, $this->source, $context["filiere"], "libelleMep", [], "any", false, false, false, 102)))) ? (twig_get_attribute($this->env, $this->source, $context["filiere"], "libelleMep", [], "any", false, false, false, 102)) : (twig_get_attribute($this->env, $this->source, $context["filiere"], "libelle", [], "any", false, false, false, 102))), "html", null, true);
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['filiere'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
} elseif ( !twig_test_empty( // line 106
(isset($context["checkedDiplomes"]) || array_key_exists("checkedDiplomes", $context) ? $context["checkedDiplomes"] : (function () { throw new RuntimeError('Variable "checkedDiplomes" does not exist.', 106, $this->source); })()))) {
// line 107
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["diplomes"]) || array_key_exists("diplomes", $context) ? $context["diplomes"] : (function () { throw new RuntimeError('Variable "diplomes" does not exist.', 107, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["diplome"]) {
// line 108
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["checkedDiplomes"]) || array_key_exists("checkedDiplomes", $context) ? $context["checkedDiplomes"] : (function () { throw new RuntimeError('Variable "checkedDiplomes" does not exist.', 108, $this->source); })()), 0, [], "array", false, false, false, 108), twig_get_attribute($this->env, $this->source, $context["diplome"], "id", [], "any", false, false, false, 108)))) {
// line 109
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleDiplome((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 109, $this->source); })())), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["diplome"], "libelleMep", [], "any", true, true, false, 109) && !(null === twig_get_attribute($this->env, $this->source, $context["diplome"], "libelleMep", [], "any", false, false, false, 109)))) ? (twig_get_attribute($this->env, $this->source, $context["diplome"], "libelleMep", [], "any", false, false, false, 109)) : (twig_get_attribute($this->env, $this->source, $context["diplome"], "libelle", [], "any", false, false, false, 109))), "html", null, true);
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['diplome'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
} elseif ( !twig_test_empty( // line 113
(isset($context["diplomeLibelle"]) || array_key_exists("diplomeLibelle", $context) ? $context["diplomeLibelle"] : (function () { throw new RuntimeError('Variable "diplomeLibelle" does not exist.', 113, $this->source); })()))) {
// line 114
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleOnglet((isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 114, $this->source); })())), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, ($context["diplomeLibelle"] ?? null), "libelleMep", [], "any", true, true, false, 114) && !(null === twig_get_attribute($this->env, $this->source, ($context["diplomeLibelle"] ?? null), "libelleMep", [], "any", false, false, false, 114)))) ? (twig_get_attribute($this->env, $this->source, ($context["diplomeLibelle"] ?? null), "libelleMep", [], "any", false, false, false, 114)) : (twig_get_attribute($this->env, $this->source, (isset($context["diplomeLibelle"]) || array_key_exists("diplomeLibelle", $context) ? $context["diplomeLibelle"] : (function () { throw new RuntimeError('Variable "diplomeLibelle" does not exist.', 114, $this->source); })()), "libelle", [], "any", false, false, false, 114))), "html", null, true);
} else {
// line 116
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleNiveauOnglet((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 116, $this->source); })())), "html", null, true);
}
} elseif (((((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 120
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 120, $this->source); })()), "request", [], "any", false, false, false, 120), "attributes", [], "any", false, false, false, 120), "get", [0 => "_route"], "method", false, false, false, 120), "annuaire_liste_par_onglet")) && !twig_in_filter( // line 121
(isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 121, $this->source); })()), [0 => "annuaire-enseignement-prive", 1 => "annuaire-enseignement-catholique"])) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 122
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 122, $this->source); })()), "request", [], "any", false, false, false, 122), "attributes", [], "any", false, false, false, 122), "get", [0 => "niveauOnglet"], "method", false, false, false, 122)) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 123
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 123, $this->source); })()), "request", [], "any", false, false, false, 123), "attributes", [], "any", false, false, false, 123), "get", [0 => "niveauOnglet"], "method", false, false, false, 123), "tout")))) {
// line 126
if ((0 === twig_compare($this->extensions['App\Twig\LieuExtension']->lieuLibelle((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 126, $this->source); })())), "DEFAULT"))) {
// line 128
if ( !twig_test_empty((isset($context["checkedEds"]) || array_key_exists("checkedEds", $context) ? $context["checkedEds"] : (function () { throw new RuntimeError('Variable "checkedEds" does not exist.', 128, $this->source); })()))) {
// line 129
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["enseignementsDeSpecialite"]) || array_key_exists("enseignementsDeSpecialite", $context) ? $context["enseignementsDeSpecialite"] : (function () { throw new RuntimeError('Variable "enseignementsDeSpecialite" does not exist.', 129, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["specialite"]) {
// line 130
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["checkedEds"]) || array_key_exists("checkedEds", $context) ? $context["checkedEds"] : (function () { throw new RuntimeError('Variable "checkedEds" does not exist.', 130, $this->source); })()), 0, [], "array", false, false, false, 130), twig_get_attribute($this->env, $this->source, $context["specialite"], "id", [], "any", false, false, false, 130)))) {
// line 131
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleFiliere((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 131, $this->source); })())), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["specialite"], "libelleMep", [], "any", true, true, false, 131) && !(null === twig_get_attribute($this->env, $this->source, $context["specialite"], "libelleMep", [], "any", false, false, false, 131)))) ? (twig_get_attribute($this->env, $this->source, $context["specialite"], "libelleMep", [], "any", false, false, false, 131)) : (twig_get_attribute($this->env, $this->source, $context["specialite"], "libelle", [], "any", false, false, false, 131))), "html", null, true);
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['specialite'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
} elseif ( !twig_test_empty( // line 135
(isset($context["checkedFilieres"]) || array_key_exists("checkedFilieres", $context) ? $context["checkedFilieres"] : (function () { throw new RuntimeError('Variable "checkedFilieres" does not exist.', 135, $this->source); })()))) {
// line 136
$context["foundTitle"] = false;
// line 137
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["filieres"]) || array_key_exists("filieres", $context) ? $context["filieres"] : (function () { throw new RuntimeError('Variable "filieres" does not exist.', 137, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["filiere"]) {
// line 138
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["checkedFilieres"]) || array_key_exists("checkedFilieres", $context) ? $context["checkedFilieres"] : (function () { throw new RuntimeError('Variable "checkedFilieres" does not exist.', 138, $this->source); })()), 0, [], "array", false, false, false, 138), twig_get_attribute($this->env, $this->source, $context["filiere"], "id", [], "any", false, false, false, 138)))) {
// line 139
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleFiliere((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 139, $this->source); })())), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["filiere"], "libelleMep", [], "any", true, true, false, 139) && !(null === twig_get_attribute($this->env, $this->source, $context["filiere"], "libelleMep", [], "any", false, false, false, 139)))) ? (twig_get_attribute($this->env, $this->source, $context["filiere"], "libelleMep", [], "any", false, false, false, 139)) : (twig_get_attribute($this->env, $this->source, $context["filiere"], "libelle", [], "any", false, false, false, 139))), "html", null, true);
echo "
";
// line 140
$context["foundTitle"] = true;
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['filiere'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 143
if ( !(isset($context["foundTitle"]) || array_key_exists("foundTitle", $context) ? $context["foundTitle"] : (function () { throw new RuntimeError('Variable "foundTitle" does not exist.', 143, $this->source); })())) {
// line 144
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleFiliere((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 144, $this->source); })())), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle(twig_get_attribute($this->env, $this->source, (isset($context["checkedFilieres"]) || array_key_exists("checkedFilieres", $context) ? $context["checkedFilieres"] : (function () { throw new RuntimeError('Variable "checkedFilieres" does not exist.', 144, $this->source); })()), 0, [], "array", false, false, false, 144)), "html", null, true);
echo "
";
}
// line 146
echo " ";
} elseif ( !twig_test_empty( // line 147
(isset($context["checkedDiplomes"]) || array_key_exists("checkedDiplomes", $context) ? $context["checkedDiplomes"] : (function () { throw new RuntimeError('Variable "checkedDiplomes" does not exist.', 147, $this->source); })()))) {
// line 148
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["diplomes"]) || array_key_exists("diplomes", $context) ? $context["diplomes"] : (function () { throw new RuntimeError('Variable "diplomes" does not exist.', 148, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["diplome"]) {
// line 149
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["checkedDiplomes"]) || array_key_exists("checkedDiplomes", $context) ? $context["checkedDiplomes"] : (function () { throw new RuntimeError('Variable "checkedDiplomes" does not exist.', 149, $this->source); })()), 0, [], "array", false, false, false, 149), twig_get_attribute($this->env, $this->source, $context["diplome"], "id", [], "any", false, false, false, 149)))) {
// line 150
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleDiplome((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 150, $this->source); })())), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["diplome"], "libelleMep", [], "any", true, true, false, 150) && !(null === twig_get_attribute($this->env, $this->source, $context["diplome"], "libelleMep", [], "any", false, false, false, 150)))) ? (twig_get_attribute($this->env, $this->source, $context["diplome"], "libelleMep", [], "any", false, false, false, 150)) : (twig_get_attribute($this->env, $this->source, $context["diplome"], "libelle", [], "any", false, false, false, 150))), "html", null, true);
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['diplome'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
} else {
// line 154
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleNiveauOnglet((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 154, $this->source); })())), "html", null, true);
}
} elseif ( !twig_test_empty( // line 157
(isset($context["checkedEds"]) || array_key_exists("checkedEds", $context) ? $context["checkedEds"] : (function () { throw new RuntimeError('Variable "checkedEds" does not exist.', 157, $this->source); })()))) {
// line 158
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["enseignementsDeSpecialite"]) || array_key_exists("enseignementsDeSpecialite", $context) ? $context["enseignementsDeSpecialite"] : (function () { throw new RuntimeError('Variable "enseignementsDeSpecialite" does not exist.', 158, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["specialite"]) {
// line 159
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["checkedEds"]) || array_key_exists("checkedEds", $context) ? $context["checkedEds"] : (function () { throw new RuntimeError('Variable "checkedEds" does not exist.', 159, $this->source); })()), 0, [], "array", false, false, false, 159), twig_get_attribute($this->env, $this->source, $context["specialite"], "id", [], "any", false, false, false, 159)))) {
// line 160
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleOnglet((isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 160, $this->source); })())), "html", null, true);
echo " avec une spécialité ";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["specialite"], "libelleMep", [], "any", true, true, false, 160) && !(null === twig_get_attribute($this->env, $this->source, $context["specialite"], "libelleMep", [], "any", false, false, false, 160)))) ? (twig_get_attribute($this->env, $this->source, $context["specialite"], "libelleMep", [], "any", false, false, false, 160)) : (twig_get_attribute($this->env, $this->source, $context["specialite"], "libelle", [], "any", false, false, false, 160))), "html", null, true);
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['specialite'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
} else {
// line 164
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleOnglet((isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 164, $this->source); })())), "html", null, true);
}
} elseif ((((((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 167
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 167, $this->source); })()), "request", [], "any", false, false, false, 167), "attributes", [], "any", false, false, false, 167), "get", [0 => "_route"], "method", false, false, false, 167), "annuaire_liste_par_onglet_localisation")) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 167, $this->source); })()), "request", [], "any", false, false, false, 167), "attributes", [], "any", false, false, false, 167), "get", [0 => "niveauOnglet"], "method", false, false, false, 167)) && !twig_in_filter((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 167, $this->source); })()), [0 => "annuaire-enseignement-prive", 1 => "annuaire-enseignement-catholique"])) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 167, $this->source); })()), "request", [], "any", false, false, false, 167), "attributes", [], "any", false, false, false, 167), "get", [0 => "niveauOnglet"], "method", false, false, false, 167)) && (0 !== twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 167, $this->source); })()), "request", [], "any", false, false, false, 167), "attributes", [], "any", false, false, false, 167), "get", [0 => "niveauOnglet"], "method", false, false, false, 167), "tout")))) {
// line 168
echo "
";
// line 169
$context["seo_h1_global"] = $this->extensions['App\Twig\SeoTwigExtension']->seoRuleGlobal();
echo " ";
// line 170
echo " ";
if ((isset($context["seo_h1_global"]) || array_key_exists("seo_h1_global", $context) ? $context["seo_h1_global"] : (function () { throw new RuntimeError('Variable "seo_h1_global" does not exist.', 170, $this->source); })())) {
// line 171
echo " ";
echo twig_escape_filter($this->env, (isset($context["seo_h1_global"]) || array_key_exists("seo_h1_global", $context) ? $context["seo_h1_global"] : (function () { throw new RuntimeError('Variable "seo_h1_global" does not exist.', 171, $this->source); })()), "html", null, true);
echo "
";
} else {
// line 173
if ( !twig_test_empty((isset($context["checkedEds"]) || array_key_exists("checkedEds", $context) ? $context["checkedEds"] : (function () { throw new RuntimeError('Variable "checkedEds" does not exist.', 173, $this->source); })()))) {
// line 174
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["enseignementsDeSpecialite"]) || array_key_exists("enseignementsDeSpecialite", $context) ? $context["enseignementsDeSpecialite"] : (function () { throw new RuntimeError('Variable "enseignementsDeSpecialite" does not exist.', 174, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["specialite"]) {
// line 175
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["checkedEds"]) || array_key_exists("checkedEds", $context) ? $context["checkedEds"] : (function () { throw new RuntimeError('Variable "checkedEds" does not exist.', 175, $this->source); })()), 0, [], "array", false, false, false, 175), twig_get_attribute($this->env, $this->source, $context["specialite"], "id", [], "any", false, false, false, 175)))) {
// line 176
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleDiplome((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 176, $this->source); })())), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["specialite"], "libelleMep", [], "any", true, true, false, 176) && !(null === twig_get_attribute($this->env, $this->source, $context["specialite"], "libelleMep", [], "any", false, false, false, 176)))) ? (twig_get_attribute($this->env, $this->source, $context["specialite"], "libelleMep", [], "any", false, false, false, 176)) : (twig_get_attribute($this->env, $this->source, $context["specialite"], "libelle", [], "any", false, false, false, 176))), "html", null, true);
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['specialite'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
} elseif ( !twig_test_empty( // line 180
(isset($context["checkedFilieres"]) || array_key_exists("checkedFilieres", $context) ? $context["checkedFilieres"] : (function () { throw new RuntimeError('Variable "checkedFilieres" does not exist.', 180, $this->source); })()))) {
// line 181
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["filieres"]) || array_key_exists("filieres", $context) ? $context["filieres"] : (function () { throw new RuntimeError('Variable "filieres" does not exist.', 181, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["filiere"]) {
// line 182
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["checkedFilieres"]) || array_key_exists("checkedFilieres", $context) ? $context["checkedFilieres"] : (function () { throw new RuntimeError('Variable "checkedFilieres" does not exist.', 182, $this->source); })()), 0, [], "array", false, false, false, 182), twig_get_attribute($this->env, $this->source, $context["filiere"], "id", [], "any", false, false, false, 182)))) {
// line 183
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleFiliere((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 183, $this->source); })())), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["filiere"], "libelleMep", [], "any", true, true, false, 183) && !(null === twig_get_attribute($this->env, $this->source, $context["filiere"], "libelleMep", [], "any", false, false, false, 183)))) ? (twig_get_attribute($this->env, $this->source, $context["filiere"], "libelleMep", [], "any", false, false, false, 183)) : (twig_get_attribute($this->env, $this->source, $context["filiere"], "libelle", [], "any", false, false, false, 183))), "html", null, true);
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['filiere'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
} elseif ( !twig_test_empty( // line 187
(isset($context["checkedDiplomes"]) || array_key_exists("checkedDiplomes", $context) ? $context["checkedDiplomes"] : (function () { throw new RuntimeError('Variable "checkedDiplomes" does not exist.', 187, $this->source); })()))) {
// line 188
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["diplomes"]) || array_key_exists("diplomes", $context) ? $context["diplomes"] : (function () { throw new RuntimeError('Variable "diplomes" does not exist.', 188, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["diplome"]) {
// line 189
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["checkedDiplomes"]) || array_key_exists("checkedDiplomes", $context) ? $context["checkedDiplomes"] : (function () { throw new RuntimeError('Variable "checkedDiplomes" does not exist.', 189, $this->source); })()), 0, [], "array", false, false, false, 189), twig_get_attribute($this->env, $this->source, $context["diplome"], "id", [], "any", false, false, false, 189)))) {
// line 190
echo "?? ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleDiplome((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 190, $this->source); })())), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (((twig_get_attribute($this->env, $this->source, $context["diplome"], "libelleMep", [], "any", true, true, false, 190) && !(null === twig_get_attribute($this->env, $this->source, $context["diplome"], "libelleMep", [], "any", false, false, false, 190)))) ? (twig_get_attribute($this->env, $this->source, $context["diplome"], "libelleMep", [], "any", false, false, false, 190)) : (twig_get_attribute($this->env, $this->source, $context["diplome"], "libelle", [], "any", false, false, false, 190))), "html", null, true);
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['diplome'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
} else {
// line 194
echo twig_escape_filter($this->env, $this->extensions['App\Twig\SeoTwigExtension']->seoRuleNiveauOnglet((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 194, $this->source); })())), "html", null, true);
}
}
}
// line 199
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedLVA"]) || array_key_exists("checkedLVA", $context) ? $context["checkedLVA"] : (function () { throw new RuntimeError('Variable "checkedLVA" does not exist.', 199, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
echo " - LVA ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 200
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedLVB"]) || array_key_exists("checkedLVB", $context) ? $context["checkedLVB"] : (function () { throw new RuntimeError('Variable "checkedLVB" does not exist.', 200, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
echo " - LVB ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 201
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedAge"]) || array_key_exists("checkedAge", $context) ? $context["checkedAge"] : (function () { throw new RuntimeError('Variable "checkedAge" does not exist.', 201, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
echo " - ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 202
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["checkedDiplomes"]) || array_key_exists("checkedDiplomes", $context) ? $context["checkedDiplomes"] : (function () { throw new RuntimeError('Variable "checkedDiplomes" does not exist.', 202, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 203
echo " ";
if (twig_in_filter("--", $context["item"])) {
// line 204
echo " ";
$context["diplome"] = twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, $context["item"], "--"), 1, [], "array", false, false, false, 204));
// line 205
echo " - ";
echo twig_escape_filter($this->env, (isset($context["diplome"]) || array_key_exists("diplome", $context) ? $context["diplome"] : (function () { throw new RuntimeError('Variable "diplome" does not exist.', 205, $this->source); })()), "html", null, true);
echo "
";
} else {
// line 207
echo " - ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ItemsInsertionExtension']->itemIdLibelle($context["item"]), "html", null, true);
echo "
";
}
// line 209
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 210
echo " ";
// line 211
$context["departement"] = $this->extensions['App\Twig\LieuExtension']->lieuDepartement((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 211, $this->source); })()));
// line 212
$context["ville"] = $this->extensions['App\Twig\LieuExtension']->lieuVille((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 212, $this->source); })()));
// line 213
if ((0 !== twig_compare($this->extensions['App\Twig\LieuExtension']->lieuLibelle((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 213, $this->source); })())), "DEFAULT"))) {
// line 214
echo "-";
// line 215
if ( !twig_test_empty((isset($context["ville"]) || array_key_exists("ville", $context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.', 215, $this->source); })()))) {
// line 216
echo " ";
echo $this->extensions['App\Twig\LieuExtension']->lieuLibelle((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 216, $this->source); })()));
echo " - ";
echo twig_get_attribute($this->env, $this->source, (isset($context["departement"]) || array_key_exists("departement", $context) ? $context["departement"] : (function () { throw new RuntimeError('Variable "departement" does not exist.', 216, $this->source); })()), "libelle", [], "any", false, false, false, 216);
} else {
// line 218
echo " ";
echo $this->extensions['App\Twig\LieuExtension']->lieuLibelle((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 218, $this->source); })()));
}
}
$___internal_parse_7_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 86
echo twig_spaceless($___internal_parse_7_);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 345
public function block_javascripts($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(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 346
echo " ";
if ((isset($context["seoTextePart2"]) || array_key_exists("seoTextePart2", $context) ? $context["seoTextePart2"] : (function () { throw new RuntimeError('Variable "seoTextePart2" does not exist.', 346, $this->source); })())) {
// line 347
echo " <script>
let div = document.getElementById(\"about-part1\");
let paragraphs = div.querySelectorAll(\"p\");
let lastParagraphIndex = paragraphs.length - 1;
let lastParagraph = paragraphs[lastParagraphIndex];
";
// line 356
echo " </script>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 360
public function block_data_layer($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(), "block", "data_layer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "data_layer"));
// line 361
echo "<script>
";
// line 362
$context["lieuLibelle"] = $this->extensions['App\Twig\LieuExtension']->lieuLibelle((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 362, $this->source); })()));
// line 363
$context["region"] = (((isset($context["region"]) || array_key_exists("region", $context) ? $context["region"] : (function () { throw new RuntimeError('Variable "region" does not exist.', 363, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["region"]) || array_key_exists("region", $context) ? $context["region"] : (function () { throw new RuntimeError('Variable "region" does not exist.', 363, $this->source); })()), "libelle", [], "any", false, false, false, 363)) : (null));
// line 364
$context["departement"] = (((isset($context["departement"]) || array_key_exists("departement", $context) ? $context["departement"] : (function () { throw new RuntimeError('Variable "departement" does not exist.', 364, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["departement"]) || array_key_exists("departement", $context) ? $context["departement"] : (function () { throw new RuntimeError('Variable "departement" does not exist.', 364, $this->source); })()), "id", [], "any", false, false, false, 364)) : (null));
// line 365
$context["ville"] = (((isset($context["ville"]) || array_key_exists("ville", $context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.', 365, $this->source); })())) ? (twig_get_attribute($this->env, $this->source, (isset($context["ville"]) || array_key_exists("ville", $context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.', 365, $this->source); })()), "libelle", [], "any", false, false, false, 365)) : (null));
// line 366
$context["listItems"] = [];
// line 367
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["etablissements"]) || array_key_exists("etablissements", $context) ? $context["etablissements"] : (function () { throw new RuntimeError('Variable "etablissements" does not exist.', 367, $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["etablissement"]) {
// line 368
echo " ";
$context["listItems"] = twig_array_merge((isset($context["listItems"]) || array_key_exists("listItems", $context) ? $context["listItems"] : (function () { throw new RuntimeError('Variable "listItems" does not exist.', 368, $this->source); })()), [0 => ["item_id" => twig_get_attribute($this->env, $this->source, // line 369
$context["etablissement"], "id", [], "any", false, false, false, 369), "item_name" => twig_get_attribute($this->env, $this->source, // line 370
$context["etablissement"], "denomination", [], "any", false, false, false, 370), "item_category" => "etablissement", "item_category2" => (( // line 372
array_key_exists("typeOnglet", $context)) ? (_twig_default_filter((isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 372, $this->source); })()), null)) : (null)), "item_category3" => null, "item_category4" => ((twig_get_attribute($this->env, $this->source, // line 374
$context["etablissement"], "sousContrat", [], "any", false, false, false, 374)) ? ("sous_contrat") : ("hors_contrat")), "location_id" => ((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 375
$context["etablissement"], "ville", [], "any", false, false, false, 375), "departement", [], "any", false, false, false, 375), "id", [], "any", false, false, false, 375) . "_") . twig_get_attribute($this->env, $this->source, $context["etablissement"], "codePostal", [], "any", false, false, false, 375)) . "_") . twig_replace_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["etablissement"], "ville", [], "any", false, false, false, 375), "slug", [], "any", false, false, false, 375), ["-" => "_"])), "etablissement_segment" => ((twig_get_attribute($this->env, $this->source, // line 376
$context["etablissement"], "isClient", [], "any", false, false, false, 376)) ? ("client") : ("prospect")), "index" => (twig_get_attribute($this->env, $this->source, // line 377
$context["loop"], "index", [], "any", false, false, false, 377) + ((((twig_get_attribute($this->env, $this->source, ($context["etablissements"] ?? null), "currentPageNumber", [], "any", true, true, false, 377)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["etablissements"] ?? null), "currentPageNumber", [], "any", false, false, false, 377), 1)) : (1)) - 1) * ((twig_get_attribute($this->env, $this->source, ($context["etablissements"] ?? null), "getItemNumberPerPage", [], "method", true, true, false, 377)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["etablissements"] ?? null), "getItemNumberPerPage", [], "method", false, false, false, 377), 0)) : (0))))]]);
++$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['etablissement'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 380
echo "
// 1. Contexte global de la page liste
dataLayer.push({
event: \"page_context\",
page_type: \"liste_etablissements\",
liste_type: ";
// line 385
echo json_encode(((array_key_exists("liste_type", $context)) ? (_twig_default_filter((isset($context["liste_type"]) || array_key_exists("liste_type", $context) ? $context["liste_type"] : (function () { throw new RuntimeError('Variable "liste_type" does not exist.', 385, $this->source); })()), null)) : (null)));
echo ",
site_section: \"annuaire\",
education_niveau: ";
// line 388
echo json_encode(((array_key_exists("typeOnglet", $context)) ? (_twig_default_filter((isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 388, $this->source); })()), null)) : (null)));
echo ",
education_sous_niveau: ";
// line 389
echo json_encode(((array_key_exists("niveauOnglet", $context)) ? (_twig_default_filter((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 389, $this->source); })()), null)) : (null)));
echo ",
region: ";
// line 391
echo json_encode((($context["region"]) ?? (null)), twig_constant("JSON_UNESCAPED_UNICODE"));
echo ",
departement: ";
// line 392
echo json_encode((($context["departement"]) ?? (null)), twig_constant("JSON_UNESCAPED_UNICODE"));
echo ",
ville: ";
// line 393
echo json_encode(((array_key_exists("ville", $context)) ? (_twig_default_filter((isset($context["ville"]) || array_key_exists("ville", $context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.', 393, $this->source); })()), null)) : (null)), twig_constant("JSON_UNESCAPED_UNICODE"));
echo ",
code_postal: ";
// line 394
echo json_encode((((twig_get_attribute($this->env, $this->source, ($context["lieu"] ?? null), "codePostal", [], "any", true, true, false, 394) && !(null === twig_get_attribute($this->env, $this->source, ($context["lieu"] ?? null), "codePostal", [], "any", false, false, false, 394)))) ? (twig_get_attribute($this->env, $this->source, ($context["lieu"] ?? null), "codePostal", [], "any", false, false, false, 394)) : (null)));
echo ",
recherche_type: ";
// line 396
echo json_encode(((array_key_exists("recherche_type", $context)) ? (_twig_default_filter((isset($context["recherche_type"]) || array_key_exists("recherche_type", $context) ? $context["recherche_type"] : (function () { throw new RuntimeError('Variable "recherche_type" does not exist.', 396, $this->source); })()), null)) : (null)));
echo ",
total_resultats: ";
// line 397
echo twig_escape_filter($this->env, ((array_key_exists("count", $context)) ? (_twig_default_filter((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 397, $this->source); })()), 0)) : (0)), "html", null, true);
echo ",
numero_pagination: ";
// line 398
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["etablissements"] ?? null), "currentPageNumber", [], "any", true, true, false, 398)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["etablissements"] ?? null), "currentPageNumber", [], "any", false, false, false, 398), 1)) : (1)), "html", null, true);
echo "
});
// 2. Événement métier : affichage des établissements réellement présents dans la liste
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: \"view_item_list\",
ecommerce: {
item_list_id: ";
// line 406
echo json_encode(twig_replace_filter(twig_lower_filter($this->env, ((((("annuaire_" . ((array_key_exists("typeOnglet", $context)) ? (_twig_default_filter((isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 406, $this->source); })()), "")) : (""))) . "_") . ((array_key_exists("niveauOnglet", $context)) ? (_twig_default_filter((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 406, $this->source); })()), "")) : (""))) . "_") . (((0 !== twig_compare((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 406, $this->source); })()), "DEFAULT"))) ? (twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 406, $this->source); })()), "id", [], "any", false, false, false, 406), ["-" => "_"])) : ("tous")))), ["-" => "_"]));
echo ",
item_list_name: ";
// line 407
echo json_encode(((((("Annuaire - " . ((array_key_exists("typeOnglet", $context)) ? (_twig_default_filter((isset($context["typeOnglet"]) || array_key_exists("typeOnglet", $context) ? $context["typeOnglet"] : (function () { throw new RuntimeError('Variable "typeOnglet" does not exist.', 407, $this->source); })()), "")) : (""))) . " - ") . ((array_key_exists("niveauOnglet", $context)) ? (_twig_default_filter((isset($context["niveauOnglet"]) || array_key_exists("niveauOnglet", $context) ? $context["niveauOnglet"] : (function () { throw new RuntimeError('Variable "niveauOnglet" does not exist.', 407, $this->source); })()), "")) : (""))) . " - ") . (((0 !== twig_compare((isset($context["lieuLibelle"]) || array_key_exists("lieuLibelle", $context) ? $context["lieuLibelle"] : (function () { throw new RuntimeError('Variable "lieuLibelle" does not exist.', 407, $this->source); })()), "DEFAULT"))) ? ((isset($context["lieuLibelle"]) || array_key_exists("lieuLibelle", $context) ? $context["lieuLibelle"] : (function () { throw new RuntimeError('Variable "lieuLibelle" does not exist.', 407, $this->source); })())) : ("tous"))), twig_constant("JSON_UNESCAPED_UNICODE"));
echo ",
items: ";
// line 408
echo json_encode((isset($context["listItems"]) || array_key_exists("listItems", $context) ? $context["listItems"] : (function () { throw new RuntimeError('Variable "listItems" does not exist.', 408, $this->source); })()), twig_constant("JSON_UNESCAPED_UNICODE"));
echo "
}
});
console.log(dataLayer);
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "annuaire/liste.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1095 => 408, 1091 => 407, 1087 => 406, 1076 => 398, 1072 => 397, 1068 => 396, 1063 => 394, 1059 => 393, 1055 => 392, 1051 => 391, 1046 => 389, 1042 => 388, 1036 => 385, 1029 => 380, 1015 => 377, 1014 => 376, 1013 => 375, 1012 => 374, 1011 => 372, 1010 => 370, 1009 => 369, 1007 => 368, 990 => 367, 988 => 366, 986 => 365, 984 => 364, 982 => 363, 980 => 362, 977 => 361, 967 => 360, 955 => 356, 947 => 347, 944 => 346, 934 => 345, 924 => 86, 918 => 218, 912 => 216, 910 => 215, 908 => 214, 906 => 213, 904 => 212, 902 => 211, 900 => 210, 894 => 209, 888 => 207, 882 => 205, 879 => 204, 876 => 203, 871 => 202, 860 => 201, 849 => 200, 838 => 199, 833 => 194, 822 => 190, 820 => 189, 816 => 188, 814 => 187, 805 => 183, 803 => 182, 799 => 181, 797 => 180, 788 => 176, 786 => 175, 782 => 174, 780 => 173, 774 => 171, 771 => 170, 768 => 169, 765 => 168, 763 => 167, 760 => 164, 750 => 160, 748 => 159, 744 => 158, 742 => 157, 739 => 154, 729 => 150, 727 => 149, 723 => 148, 721 => 147, 719 => 146, 711 => 144, 709 => 143, 702 => 140, 696 => 139, 694 => 138, 690 => 137, 688 => 136, 686 => 135, 677 => 131, 675 => 130, 671 => 129, 669 => 128, 667 => 126, 665 => 123, 664 => 122, 663 => 121, 662 => 120, 659 => 116, 654 => 114, 652 => 113, 643 => 109, 641 => 108, 637 => 107, 635 => 106, 626 => 102, 624 => 101, 620 => 100, 618 => 99, 616 => 97, 614 => 96, 612 => 95, 608 => 93, 606 => 92, 604 => 91, 602 => 90, 600 => 89, 598 => 88, 596 => 87, 594 => 86, 584 => 85, 570 => 339, 567 => 338, 564 => 337, 561 => 336, 558 => 335, 555 => 334, 552 => 333, 550 => 332, 543 => 328, 539 => 327, 531 => 321, 529 => 320, 525 => 318, 523 => 316, 522 => 315, 521 => 314, 517 => 312, 513 => 309, 509 => 305, 506 => 304, 503 => 302, 499 => 300, 493 => 299, 485 => 297, 477 => 295, 474 => 294, 471 => 293, 466 => 292, 464 => 291, 461 => 290, 450 => 288, 445 => 287, 434 => 285, 429 => 284, 418 => 282, 413 => 281, 402 => 279, 397 => 278, 386 => 276, 381 => 275, 370 => 273, 365 => 272, 354 => 270, 349 => 269, 340 => 267, 335 => 266, 326 => 264, 322 => 263, 318 => 261, 316 => 260, 312 => 258, 310 => 257, 306 => 254, 304 => 253, 301 => 252, 298 => 250, 292 => 246, 289 => 245, 286 => 244, 283 => 243, 281 => 242, 275 => 238, 272 => 237, 270 => 236, 266 => 234, 261 => 230, 256 => 222, 253 => 85, 248 => 74, 246 => 71, 245 => 70, 244 => 69, 243 => 68, 242 => 67, 241 => 66, 240 => 65, 239 => 64, 238 => 63, 231 => 60, 221 => 59, 210 => 45, 208 => 32, 204 => 44, 201 => 43, 198 => 42, 196 => 41, 195 => 38, 193 => 37, 190 => 36, 187 => 35, 184 => 34, 181 => 33, 179 => 32, 169 => 31, 156 => 27, 150 => 24, 146 => 23, 142 => 22, 139 => 20, 135 => 19, 132 => 18, 128 => 17, 123 => 15, 119 => 14, 115 => 13, 113 => 12, 109 => 11, 103 => 10, 101 => 9, 91 => 8, 80 => 1, 78 => 57, 76 => 56, 74 => 55, 72 => 54, 70 => 53, 68 => 52, 66 => 51, 64 => 50, 62 => 49, 60 => 48, 57 => 5, 55 => 4, 53 => 3, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% set niveau = '' %}
{% if 'diplome' == sousTypeOnglet and diplomeLibelle is not null %}
{% set niveau = diplomeLibelle.libelle %}
{% endif %}
{%- block title -%}
{%- if block('h1') is defined-%}
{{ block('h1') }} - {{ count | number_format(0, ' ', ' ') }}
etablissement{%- if count > 1 -%}s{%- endif -%}
{%- elseif seoTitre -%}
{{ seoTitre | replace({'[region]': lieu.libelle, '[dept]': lieu | lieuLibelle, '[ville]': lieu | lieuLibelle }) | striptags }}
- {{ count | number_format(0, ' ', ' ') }}
etablissement{%- if count > 1 -%}s{%- endif -%}
{%- else -%}
{%- if app.request.attributes.get('_route') == \"annuaire_liste\" or app.request.attributes.get('_route') == \"annuaire_quoi\" %} {{ quoi.libelle }}
{%- elseif app.request.attributes.get('_route') == \"annuaire_prive\" -%} Enseignement privé
{%- elseif app.request.attributes.get('_route') == \"annuaire_catho\" -%} Enseignement catholique
{%- else -%}{{ quoi.libelle | replace({'---': ''}) | typeEtablissementLibelle -}}
{%- endif -%}
{%- if lieu | lieuLibelle != 'DEFAULT' %} à {{ lieu | lieuLibelle -}}
{%- elseif niveau -%} - {{ niveau }}
{%- elseif niveauOnglet != 'tout' %} - {{ niveauOnglet | niveauLibelle -}}
{%- endif -%}
{%- endif -%}
{%- if etablissements.currentPageNumber > 1 %} - Page {{ etablissements.currentPageNumber -}}
\t{%- endif -%}
{%- endblock %}
{% block description %}
{% apply spaceless %}
{% if seoTextePart1 %}
{% autoescape false %}{{ metadesc | u.truncate(160, '...', false) }}{% endautoescape %}
{% else %}
{% set descriptionContent %}
{% include [
('annuaire/text-desc/metadesc-' ~ typeOnglet ~ '.html.twig'),
'annuaire/text-desc/metadesc-default.html.twig'
]
with {'lieu' : lieu | lieuLibelle } %}
{% endset %}
{% autoescape false %}{{ descriptionContent | u.truncate(160, '...', false) }}{% endautoescape %}
{% endif %}
{% endapply %}
{% endblock %}
{% set checkedNiveau = app.request.query.get('niveau') %}
{% set checkedAge = app.request.query.get('age') %}
{% set checkedAutre = app.request.query.get('autre') %}
{% set checkedStatut = app.request.query.get('statut') %}
{% set checkedAlternance = app.request.query.get('alternance') %}
{% set checkedFilieres = app.request.query.get('filiere') %}
{% set checkedDiplomes = app.request.query.get('diplome') %}
{% set checkedLVA = app.request.query.get('lva') %}
{% set checkedLVB = app.request.query.get('lvb') %}
{% set checkedEds = app.request.query.get('eds') %}
{% block body %}
<section class=\"container page-list {{ typeOnglet }}\">
<div id=\"breadcrumb\">
{% include 'annuaire/_includes/breadcrumb.html.twig' with {
'quoi' : quoi,
'lieu' : lieu,
'typeOnglet' : typeOnglet,
'niveauOnglet' : niveauOnglet,
'niveau' : niveau,
'currentURL' : currentURL,
'diplomeLibelle' : diplomeLibelle,
'count': count,
}
only %}
</div>
<ul class=\"page-topnav search-infos\">
<li class=\"title-search mb-4\">
{#
{{ app.request.attributes.get('_route') }} | annuaire_liste_par_onglet
{{ app.request.attributes.get('typeOnglet') }} | lycee
{{ app.request.attributes.get('niveauOnglet') }} | technologique
{{ app.request.attributes.get('niveau') }} |
{{ app.request.attributes.get('sousTypeOnglet') }} |
{{ niveauOnglet}} | technologique
#}
<h1>{%- block h1 -%}
{%- apply spaceless -%}
{%- if app.request.attributes.get('_route') == \"annuaire_liste\" or app.request.attributes.get('_route') == \"annuaire_quoi\" -%}
{%- elseif app.request.attributes.get('_route') == \"annuaire_prive\" -%}
Enseignement privé
{%- elseif app.request.attributes.get('_route') == \"annuaire_catho\" -%}
Enseignement catholique
{%- elseif app.request.attributes.get('typeOnglet') and typeOnglet not in [ 'annuaire-enseignement-prive', 'annuaire-enseignement-catholique'] and app.request.attributes.get('niveauOnglet') == 'tout' -%}
{{ seoTypeOnglet(typeOnglet) }}
{# ----- Supérieur ----------------------------------------------------------- #}
{%- elseif app.request.attributes.get('_route') == \"annuaire_liste_par_onglet_sup\" and app.request.attributes.get('niveauOnglet') == 'tout' -%}
{{ seoTypeOnglet(typeOnglet) }}
{%- elseif app.request.attributes.get('_route') == \"annuaire_liste_par_onglet_sup\" or app.request.attributes.get('_route') == \"annuaire_liste_par_onglet_sup_localisation\" and app.request.attributes.get('niveauOnglet') and niveauOnglet not in [ 'annuaire-enseignement-prive', 'annuaire-enseignement-catholique'] and app.request.attributes.get('niveauOnglet') != 'tout' -%}
{# ----- Filtres Avec filière ----------------------------------------- #}
{%- if checkedFilieres is not empty -%}
{%- for filiere in filieres -%}
{%- if checkedFilieres[0] == filiere.id -%}
{{ seoFiliere(niveauOnglet) }} {{ filiere.libelleMep ?? filiere.libelle }}
{%- endif -%}
{%- endfor -%}
{# ----- Filtres Avec diplôme ----------------------------------------- #}
{%- elseif checkedDiplomes is not empty -%}
{%- for diplome in diplomes -%}
{%- if checkedDiplomes[0] == diplome.id -%}
{{ seoDiplome(niveauOnglet) }} {{ diplome.libelleMep ?? diplome.libelle }}
{%- endif -%}
{%- endfor -%}
{# ----- Items Menu Avec Diplôme ----------------------------------------- #}
{%- elseif diplomeLibelle is not empty -%}
{{ seoTypeOnglet(typeOnglet) }} - {{ diplomeLibelle.libelleMep ?? diplomeLibelle.libelle }}
{%- else -%}
{{ seoNiveauOnglet(niveauOnglet) }}
{%- endif -%}
{# ----- Sous-Onglet ----------------------------------------------------------- #}
{%- elseif
app.request.attributes.get('_route') == \"annuaire_liste_par_onglet\" and
niveauOnglet not in [ 'annuaire-enseignement-prive', 'annuaire-enseignement-catholique'] and
app.request.attributes.get('niveauOnglet') and
app.request.attributes.get('niveauOnglet') != 'tout'-%}
{# ----- Condition Type Onglet + pas de Localisation ----------------------------------------- #}
{%- if lieu | lieuLibelle == 'DEFAULT' -%}
{# ----- Filtres Avec spécialité (lycée général) ----------------------------------------- #}
{%- if checkedEds is not empty -%}
{%- for specialite in enseignementsDeSpecialite -%}
{%- if checkedEds[0] == specialite.id -%}
{{ seoFiliere(niveauOnglet) }} {{ specialite.libelleMep ?? specialite.libelle }}
{%- endif -%}
{%- endfor -%}
{# ----- Filtres Avec filière ----------------------------------------- #}
{%- elseif checkedFilieres is not empty -%}
{% set foundTitle = false %}
{%- for filiere in filieres -%}
{%- if checkedFilieres[0] == filiere.id -%}
{{ seoFiliere(niveauOnglet) }} {{ filiere.libelleMep ?? filiere.libelle }}
{% set foundTitle = true %}
{%- endif -%}
{%- endfor -%}
{% if not foundTitle %}
{{ seoFiliere(niveauOnglet) }} {{ checkedFilieres[0] | itemIdLibelle }}
{% endif %}
{# ----- Filtres Avec diplôme ----------------------------------------- #}
{%- elseif checkedDiplomes is not empty -%}
{%- for diplome in diplomes -%}
{%- if checkedDiplomes[0] == diplome.id -%}
{{ seoDiplome(niveauOnglet) }} {{ diplome.libelleMep ?? diplome.libelle }}
{%- endif -%}
{%- endfor -%}
{%- else -%}
{{ seoNiveauOnglet(niveauOnglet) }}
{%- endif -%}
{# ----- Filtres Avec spécialité (lycée général) si localisation ----------------------------------------- #}
{%- elseif checkedEds is not empty -%}
{%- for specialite in enseignementsDeSpecialite -%}
{%- if checkedEds[0] == specialite.id -%}
{{ seoTypeOnglet(typeOnglet) }} avec une spécialité {{ specialite.libelleMep ?? specialite.libelle }}
{%- endif -%}
{%- endfor -%}
{%- else -%}
{{ seoTypeOnglet(typeOnglet) }}
{%- endif -%}
{# ----- Sous-Onglet + Localisation ----------------------------------------- #}
{%- elseif app.request.attributes.get('_route') == \"annuaire_liste_par_onglet_localisation\" and app.request.attributes.get('niveauOnglet') and niveauOnglet not in [ 'annuaire-enseignement-prive', 'annuaire-enseignement-catholique'] and app.request.attributes.get('niveauOnglet') and app.request.attributes.get('niveauOnglet') != 'tout' -%}
{# ----- Filtres Avec spécialité (lycée général) ----------------------------------------- #}
{% set seo_h1_global = seo_h1() %} {# ceci fusionne les 3 IF ci-dessous car on peut trouver - par exp - une checkedFilieres dans diplomes ! #}
{% if seo_h1_global %}
{{ seo_h1_global }}
{% else %}
{%- if checkedEds is not empty -%}
{%- for specialite in enseignementsDeSpecialite -%}
{%- if checkedEds[0] == specialite.id -%}
{{ seoDiplome(niveauOnglet) }} {{ specialite.libelleMep ?? specialite.libelle }}
{%- endif -%}
{%- endfor -%}
{# ----- Filtres Avec filière ----------------------------------------- #}
{%- elseif checkedFilieres is not empty -%}
{%- for filiere in filieres -%}
{%- if checkedFilieres[0] == filiere.id -%}
{{ seoFiliere(niveauOnglet) }} {{ filiere.libelleMep ?? filiere.libelle }}
{%- endif -%}
{%- endfor -%}
{# ----- Filtres Avec diplôme ----------------------------------------- #}
{%- elseif checkedDiplomes is not empty -%}
{%- for diplome in diplomes -%}
{%- if checkedDiplomes[0] == diplome.id -%}
?? {{ seoDiplome(niveauOnglet) }} {{ diplome.libelleMep ?? diplome.libelle }}
{%- endif -%}
{%- endfor -%}
{%- else -%}
{{ seoNiveauOnglet(niveauOnglet) }}
{%- endif -%}
{% endif %}
{%- endif -%}
{# ----- Les filtres ---------------------------------------------------- #}
{% for item in checkedLVA %} - LVA {{ item | itemIdLibelle }}{% endfor %}
{% for item in checkedLVB %} - LVB {{ item | itemIdLibelle }}{% endfor %}
{% for item in checkedAge %} - {{ item | itemIdLibelle }}{% endfor %}
{% for item in checkedDiplomes %}
{% if '--' in item %}
{% set diplome = item | split('--')[1] | upper %}
- {{ diplome }}
{% else %}
- {{ item | itemIdLibelle }}
{% endif %}
{% endfor %}
{# ----- Lieu ----------------------------------------------------------- #}
{%- set departement = lieu | lieuDepartement -%}
{%- set ville = lieu | lieuVille -%}
{%- if lieu | lieuLibelle != 'DEFAULT' -%}
-
{%- if ville is not empty -%}
{{ lieu | lieuLibelle | raw }} - {{ departement.libelle | raw }}
{%- else -%}
{{ lieu | lieuLibelle | raw }}
{%- endif -%}
{%- endif -%}
{%- endapply -%}
{% endblock %}</h1>
<div class=\"triangle\"></div>
</li>
{#<li>
<span>{{ count | number_format(0, ' ', ' ') }}
résultat{% if count > 1 %}s{% endif %}
</span>
</li>#}
</ul>
<div class=\"wrap\">
{# {% cache \"annuaire_liste_par_onglet;section;v1;\" ~ cache_id %} #}
<section>
{% if pageOne and count > 15 %}
<div class=\"list-description\">
<!-- #DEBUG#SEO#[ {{formation}} ]# -->
<div class=\"content\">
{# SEO - Aide au choix Diplômes #}
{# {% if currentRoute in ['annuaire_liste_par_onglet', 'annuaire_liste_par_onglet_sup'] and typeOnglet in ['lycee', 'professionnel', 'superieur'] %} #}
{% if typeOnglet in ['ecole','college','lycee', 'professionnel', 'superieur','internat'] %}
{% include \"annuaire/_includes/aide-au-choix-diplomes_\"~typeOnglet~\".html.twig\" with {'position': 'header'}%}
{% endif %}
</div>
</div>
{% endif %}
{#<div class=\"d-lg-none\">#}
{% include 'annuaire/_includes/search-options.html.twig' %}
{#</div>#}
{# SEO - maillage - Liste niveau d’enseignement Vs Liste tous niveaux #}
{#{% include \"annuaire/_includes/autres-etablissements.html.twig\" %}#}
<div class=\"clearfix establishments-list\">
{% if app.request.query is not empty %}
<p class=\"options\">
<span class=\"search\">Ma recherche :</span>
{% for item in checkedNiveau %}
<span class=\"option-title\">{{ item | itemIdLibelle }}</span>
{% endfor %}
{% for item in checkedAge %}
<span class=\"option-title\">{{ item | itemIdLibelle }}</span>
{% endfor %}
{% for item in checkedAutre %}
<span data-id=\"{{item}}\" class=\"option-title\">{{ item | itemIdLibelle }}</span>
{% endfor %}
{% for item in checkedStatut %}
<span data-id=\"{{item}}\" class=\"option-title\">{{ item | itemIdLibelle }}</span>
{% endfor %}
{% for item in checkedAlternance %}
<span data-id=\"{{item}}\" class=\"option-title\">{{ item | itemIdLibelle }}</span>
{% endfor %}
{% for item in checkedFilieres %}
<span data-id=\"{{item}}\" class=\"option-title\">{{ item | itemIdLibelle }}</span>
{% endfor %}
{% for item in checkedLVA %}
<span data-id=\"{{item}}\" class=\"option-title lva\">{{ item | itemIdLibelle }}</span>
{% endfor %}
{% for item in checkedLVB %}
<span data-id=\"{{item}}\" class=\"option-title lvb\">{{ item | itemIdLibelle }}</span>
{% endfor %}
{% for item in checkedEds %}
<span data-id=\"{{item}}\" class=\"option-title\">{{ item | itemIdLibelle }}</span>
{% endfor %}
{% set diplome = '' %}
{% for item in checkedDiplomes %}
{% if '--' in item %}
{% set diplome = item | split('--')[1] | upper %}
<span data-id=\"{{item}}\" class=\"option-title\">{{ diplome }}</span>
{% else %}
<span data-id=\"{{item}}\" class=\"option-title\">{{ item | itemIdLibelle }}</span>
{% endif %}
{% endfor %}
</p>
{% endif %}
{# TODO : optimiz : 130 SQL ici #}
{% include 'annuaire/_includes/liste-item-list.html.twig' %}
</div>
{# SEO - maillage - Liste niveau d’enseignement Vs Liste tous niveaux #}{#
{% include \"annuaire/_includes/autres-etablissements.html.twig\" %}#}
</section>
{# {% endcache %} #}
<aside>
{% include '_includes/banners-list.html.twig' with {
'emplacement': onglet2banniereEmplacement(quoi.libelle) ?: etablissements2banniereEmplacement(etablissements),
'lieu': lieu.slug,
} only %}
<div class=\"d-none\">
{% include 'annuaire/_includes/search-options.html.twig' %}
</div>
<div class=\"last-flex\">
<ul class=\"banners\">
<li class=\"long banniere-container\"
data-type=\"{{ constant('App\\\\Entity\\\\Banniere::MEGA_BANNIERE') }}\"
data-emplacement=\"{{ emplacement | default('') }}\"
data-lieu=\"\" data-single=\"0\"></li>
</ul>
{% if internats %}
{% include 'annuaire/_includes/internats.html.twig' %}
{% endif %}
{% include 'annuaire/_includes/lien-guide.html.twig' %}
{% include '_includes/newsletter.html.twig' %}
{% include '_includes/last-search.html.twig' %}
{% include '_includes/last-establishment.html.twig' %}
</div>
</aside>
</div>
</section>
{% endblock %}
{% block javascripts %}
{% if seoTextePart2 %}
<script>
let div = document.getElementById(\"about-part1\");
let paragraphs = div.querySelectorAll(\"p\");
let lastParagraphIndex = paragraphs.length - 1;
let lastParagraph = paragraphs[lastParagraphIndex];
{# let newElement = document.createElement(\"span\");
newElement.innerHTML = \" <span class='show-more'><a href='javascript:void(0)'><u>Lire plus</u></a></span>\";
lastParagraph.appendChild(newElement); #}
</script>
{% endif %}
{% endblock %}
{% block data_layer %}
<script>
{% set lieuLibelle = lieu | lieuLibelle %}
{% set region = region ? region.libelle : null %}
{% set departement = departement ? departement.id : null %}
{% set ville = ville ? ville.libelle : null %}
{% set listItems = [] %}
{% for etablissement in etablissements %}
{% set listItems = listItems | merge([{
item_id: etablissement.id,
item_name: etablissement.denomination,
item_category: 'etablissement',
item_category2: typeOnglet | default(null),
item_category3: null,
item_category4: etablissement.sousContrat ? 'sous_contrat' : 'hors_contrat',
location_id: etablissement.ville.departement.id ~ \"_\" ~ etablissement.codePostal ~ \"_\" ~ etablissement.ville.slug | replace({'-': '_'}),
etablissement_segment: etablissement.isClient ? 'client' : 'prospect',
index: loop.index + ((etablissements.currentPageNumber | default(1) - 1) * (etablissements.getItemNumberPerPage() | default(0)))
}]) %}
{% endfor %}
// 1. Contexte global de la page liste
dataLayer.push({
event: \"page_context\",
page_type: \"liste_etablissements\",
liste_type: {{ liste_type | default(null) | json_encode | raw }},
site_section: \"annuaire\",
education_niveau: {{ typeOnglet | default(null) | json_encode | raw }},
education_sous_niveau: {{ niveauOnglet | default(null) | json_encode | raw }},
region: {{ (region ?? null) | json_encode(constant('JSON_UNESCAPED_UNICODE')) | raw }},
departement: {{ (departement ?? null) | json_encode(constant('JSON_UNESCAPED_UNICODE')) | raw }},
ville: {{ ville | default(null) | json_encode(constant('JSON_UNESCAPED_UNICODE')) | raw }},
code_postal: {{ (lieu.codePostal ?? null) | json_encode | raw }},
recherche_type: {{ recherche_type | default(null) | json_encode | raw }},
total_resultats: {{ count | default(0) }},
numero_pagination: {{ etablissements.currentPageNumber | default(1) }}
});
// 2. Événement métier : affichage des établissements réellement présents dans la liste
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: \"view_item_list\",
ecommerce: {
item_list_id: {{ ('annuaire_' ~ (typeOnglet | default('')) ~ '_' ~ (niveauOnglet | default('')) ~ '_' ~ (lieu != 'DEFAULT' ? lieu.id | replace({'-': '_'}) : 'tous')) | lower | replace({'-': '_'}) | json_encode | raw }},
item_list_name: {{ ('Annuaire - ' ~ (typeOnglet | default('')) ~ ' - ' ~ (niveauOnglet | default('')) ~ ' - ' ~ (lieuLibelle != 'DEFAULT' ? lieuLibelle : 'tous')) | json_encode(constant('JSON_UNESCAPED_UNICODE')) | raw }},
items: {{ listItems | json_encode(constant('JSON_UNESCAPED_UNICODE')) | raw }}
}
});
console.log(dataLayer);
</script>
{% endblock %}", "annuaire/liste.html.twig", "/app/templates/annuaire/liste.html.twig");
}
}