<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* annuaire/_includes/item-list.html.twig */
class __TwigTemplate_f69f083fae4ee0e4c24c1fe9191751896d56978a774ecf213a32e4d48d9d0e0f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "annuaire/_includes/item-list.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "annuaire/_includes/item-list.html.twig"));
// line 1
$context["urlFiche"] = twig_get_attribute($this->env, $this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder", $context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.', 1, $this->source); })()), "buildFiche", [0 => (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 1, $this->source); })())], "method", false, false, false, 1);
// line 2
$context["urlFicheInternat"] = twig_get_attribute($this->env, $this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder", $context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.', 2, $this->source); })()), "buildFicheInternat", [0 => (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 2, $this->source); })())], "method", false, false, false, 2);
// line 3
$context["imgAlt"] = twig_trim_filter(twig_join_filter([0 => twig_get_attribute($this->env, $this->source, // line 4
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 4, $this->source); })()), "codePostal", [], "any", false, false, false, 4), 1 => ((twig_get_attribute($this->env, $this->source, // line 5
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 5, $this->source); })()), "ville", [], "any", false, false, false, 5)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 5, $this->source); })()), "ville", [], "any", false, false, false, 5), "libelle", [], "any", false, false, false, 5)) : ("")), 2 => twig_get_attribute($this->env, $this->source, // line 6
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 6, $this->source); })()), "denomination", [], "any", false, false, false, 6)], " - "), " -");
// line 8
$context["isForeignCityNear"] = ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, // line 9
(isset($context["parametres"]) || array_key_exists("parametres", $context) ? $context["parametres"] : (function () { throw new RuntimeError('Variable "parametres" does not exist.', 9, $this->source); })()), "villes", [], "any", false, false, false, 9)) && twig_get_attribute($this->env, $this->source, // line 10
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 10, $this->source); })()), "ville", [], "any", false, false, false, 10)) && !twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 11
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 11, $this->source); })()), "ville", [], "any", false, false, false, 11), "id", [], "any", false, false, false, 11), twig_get_attribute($this->env, $this->source, (isset($context["parametres"]) || array_key_exists("parametres", $context) ? $context["parametres"] : (function () { throw new RuntimeError('Variable "parametres" does not exist.', 11, $this->source); })()), "villes", [], "any", false, false, false, 11)));
// line 13
$context["isPlus"] = (twig_get_attribute($this->env, $this->source, // line 14
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 14, $this->source); })()), "isClient", [], "any", false, false, false, 14) && (((twig_get_attribute($this->env, $this->source, // line 15
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 15, $this->source); })()), "videoPlus", [], "any", false, false, false, 15) || twig_get_attribute($this->env, $this->source, // line 16
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 16, $this->source); })()), "diapoPlus", [], "any", false, false, false, 16)) || twig_get_attribute($this->env, $this->source, // line 17
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 17, $this->source); })()), "jpoPlus", [], "any", false, false, false, 17)) || twig_get_attribute($this->env, $this->source, // line 18
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 18, $this->source); })()), "diplomePlus", [], "any", false, false, false, 18)));
// line 21
echo "
";
// line 22
if ((((isset($context["itemsInsertions"]) || array_key_exists("itemsInsertions", $context) ? $context["itemsInsertions"] : (function () { throw new RuntimeError('Variable "itemsInsertions" does not exist.', 22, $this->source); })()) && !twig_test_empty((isset($context["itemsInsertions"]) || array_key_exists("itemsInsertions", $context) ? $context["itemsInsertions"] : (function () { throw new RuntimeError('Variable "itemsInsertions" does not exist.', 22, $this->source); })()))) && (0 <= twig_compare(twig_length_filter($this->env, (isset($context["itemsInsertions"]) || array_key_exists("itemsInsertions", $context) ? $context["itemsInsertions"] : (function () { throw new RuntimeError('Variable "itemsInsertions" does not exist.', 22, $this->source); })())), 3)))) {
// line 23
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["loop"]) || array_key_exists("loop", $context) ? $context["loop"] : (function () { throw new RuntimeError('Variable "loop" does not exist.', 23, $this->source); })()), "index", [], "any", false, false, false, 23), 3))) {
// line 24
echo " ";
$this->loadTemplate("annuaire/_includes/diplome-list.html.twig", "annuaire/_includes/item-list.html.twig", 24)->display($context);
// line 25
echo " ";
}
}
// line 27
echo "
<article
class=\"";
// line 29
echo ((twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 29, $this->source); })()), "isClient", [], "any", false, false, false, 29)) ? ("isClient") : ("non-client"));
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\TypeOngletExtension']->type(twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 29, $this->source); })()), "type", [], "any", false, false, false, 29)), "html", null, true);
echo " item-fiche-etablissement\"
data-etablissement-id=\"";
// line 30
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 30, $this->source); })()), "id", [], "any", false, false, false, 30), "html", null, true);
echo "\"
data-etablissement-denomination=\"";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 31, $this->source); })()), "denomination", [], "any", false, false, false, 31), "html", null, true);
echo "\"
data-etablissement-type=\"";
// line 32
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['App\Twig\TypeEtablissementExtension']->typeSimple(twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 32, $this->source); })()), "type", [], "any", false, false, false, 32)), null), "html", null, true);
echo "\"
data-etablissement-sous-contrat=\"";
// line 33
echo ((twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 33, $this->source); })()), "sousContrat", [], "any", false, false, false, 33)) ? ("sous_contrat") : ("hors_contrat"));
echo "\"
data-etablissement-location-id=\"";
// line 34
echo twig_escape_filter($this->env, ((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 34, $this->source); })()), "ville", [], "any", false, false, false, 34), "departement", [], "any", false, false, false, 34), "id", [], "any", false, false, false, 34) . "_") . twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 34, $this->source); })()), "codePostal", [], "any", false, false, false, 34)) . "_") . twig_replace_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 34, $this->source); })()), "ville", [], "any", false, false, false, 34), "slug", [], "any", false, false, false, 34), ["-" => "_"])), "html", null, true);
echo "\"
data-etablissement-segment=\"";
// line 35
echo ((twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 35, $this->source); })()), "isClient", [], "any", false, false, false, 35)) ? ("client") : ("prospect"));
echo "\"
data-etablissement-index=\"";
// line 36
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, (isset($context["loop"]) || array_key_exists("loop", $context) ? $context["loop"] : (function () { throw new RuntimeError('Variable "loop" does not exist.', 36, $this->source); })()), "index", [], "any", false, false, false, 36) + ((twig_get_attribute($this->env, $this->source, (isset($context["parametres"]) || array_key_exists("parametres", $context) ? $context["parametres"] : (function () { throw new RuntimeError('Variable "parametres" does not exist.', 36, $this->source); })()), "pageActuele", [], "any", false, false, false, 36) - 1) * twig_get_attribute($this->env, $this->source, (isset($context["parametres"]) || array_key_exists("parametres", $context) ? $context["parametres"] : (function () { throw new RuntimeError('Variable "parametres" does not exist.', 36, $this->source); })()), "maxParPage", [], "any", false, false, false, 36))), "html", null, true);
echo "\"
data-index=\"";
// line 37
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, (isset($context["loop"]) || array_key_exists("loop", $context) ? $context["loop"] : (function () { throw new RuntimeError('Variable "loop" does not exist.', 37, $this->source); })()), "index", [], "any", false, false, false, 37) + ((twig_get_attribute($this->env, $this->source, (isset($context["parametres"]) || array_key_exists("parametres", $context) ? $context["parametres"] : (function () { throw new RuntimeError('Variable "parametres" does not exist.', 37, $this->source); })()), "pageActuele", [], "any", false, false, false, 37) - 1) * twig_get_attribute($this->env, $this->source, (isset($context["parametres"]) || array_key_exists("parametres", $context) ? $context["parametres"] : (function () { throw new RuntimeError('Variable "parametres" does not exist.', 37, $this->source); })()), "maxParPage", [], "any", false, false, false, 37))), "html", null, true);
echo "\"
>
";
// line 42
echo " <header>
";
// line 44
echo " ";
// line 48
echo " <div>
<strong>
<a href=\"";
// line 50
echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche", $context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.', 50, $this->source); })()), "html", null, true);
echo "\" class=\"url-fiche\">
";
// line 51
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 51, $this->source); })()), "denomination", [], "any", false, false, false, 51)), "truncate", [0 => 80, 1 => "…", 2 => false], "method", false, false, false, 51), "html", null, true);
echo "
</a>
</strong>
<p class=\"establishment-address\">
";
// line 55
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 55, $this->source); })()), "adresse1", [], "any", false, false, false, 55), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 55, $this->source); })()), "adresse2", [], "any", false, false, false, 55), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 55, $this->source); })()), "adresse3", [], "any", false, false, false, 55), "html", null, true);
echo "<br>
";
// line 56
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 56, $this->source); })()), "codePostal", [], "any", false, false, false, 56), "html", null, true);
echo " ";
((twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 56, $this->source); })()), "ville", [], "any", false, false, false, 56)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 56, $this->source); })()), "ville", [], "any", false, false, false, 56), "libelle", [], "any", false, false, false, 56), "html", null, true))) : (print ("")));
echo "
</p>
</div>
<p class=\"keywords\">";
// line 59
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 59, $this->source); })()), "motsCles", [], "any", false, false, false, 59), "html", null, true);
echo "</p>
";
// line 60
if ((twig_in_filter(twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 60, $this->source); })()), "type", [], "any", false, false, false, 60), [0 => "08-LAGRI", 1 => "09-LPROF", 2 => "10-LEAP", 3 => "12-SUP"]) && twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 60, $this->source); })()), "isClient", [], "any", false, false, false, 60))) {
// line 61
echo " <div>
<ul class=\"diplomes-list\">
";
// line 63
$context["limit"] = 2;
// line 64
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 64, $this->source); })()), "itemsInsertions", [], "any", false, false, false, 64), function ($__item__) use ($context, $macros) { $context["item"] = $__item__; return (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "diplomePlus", [], "any", false, false, false, 64), true)); }));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 65
echo " ";
if ((((((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "onglet", [], "any", false, false, false, 65), "Formations")) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["item"], "onglet", [], "any", false, false, false, 65))) && !twig_in_filter("LANG", twig_get_attribute($this->env, $this->source, $context["item"], "pere", [], "any", false, false, false, 65))) && (1 === twig_compare((isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 65, $this->source); })()), 0))) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "niveau", [], "any", false, false, false, 65), 4)))) {
// line 66
echo " <li class=\"diplome diplome-plus\">
";
// line 67
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString($this->extensions['App\Twig\ItemsInsertionExtension']->itemLibelle($context["item"])), "truncate", [0 => 50, 1 => "…", 2 => false], "method", false, false, false, 67), "html", null, true);
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["item"], "options", [], "any", false, false, false, 67))) {
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, $context["item"], "options", [], "any", false, false, false, 67)), "truncate", [0 => 20, 1 => "…", 2 => false], "method", false, false, false, 67), "html", null, true);
echo " ";
}
// line 68
echo " </li>
";
// line 69
$context["limit"] = ((isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 69, $this->source); })()) - 1);
// line 70
echo " ";
}
// line 71
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 72
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 72, $this->source); })()), "itemsInsertions", [], "any", false, false, false, 72), function ($__item__) use ($context, $macros) { $context["item"] = $__item__; return ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "diplomePlus", [], "any", false, false, false, 72), null)) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "diplomePlus", [], "any", false, false, false, 72), false))); }));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 73
echo " ";
if ((((((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "onglet", [], "any", false, false, false, 73), "Formations")) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["item"], "onglet", [], "any", false, false, false, 73))) && !twig_in_filter("LANG", twig_get_attribute($this->env, $this->source, $context["item"], "pere", [], "any", false, false, false, 73))) && (1 === twig_compare((isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 73, $this->source); })()), 0))) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "niveau", [], "any", false, false, false, 73), 4)))) {
// line 74
echo " <li class=\"diplome\">
";
// line 75
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString($this->extensions['App\Twig\ItemsInsertionExtension']->itemLibelle($context["item"])), "truncate", [0 => 50, 1 => "…", 2 => false], "method", false, false, false, 75), "html", null, true);
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["item"], "options", [], "any", false, false, false, 75))) {
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, $context["item"], "options", [], "any", false, false, false, 75)), "truncate", [0 => 20, 1 => "…", 2 => false], "method", false, false, false, 75), "html", null, true);
echo " ";
}
// line 76
echo " </li>
";
// line 77
$context["limit"] = ((isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 77, $this->source); })()) - 1);
// line 78
echo " ";
}
// line 79
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 80
echo " </ul>
";
// line 81
if ((0 === twig_compare((isset($context["limit"]) || array_key_exists("limit", $context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.', 81, $this->source); })()), 0))) {
// line 82
echo " <div class=\"ts-diplome\">
";
// line 83
$this->loadTemplate("_includes/lien-masque.html.twig", "annuaire/_includes/item-list.html.twig", 83)->display(twig_to_array(["target" => // line 84
(isset($context["urlFiche"]) || array_key_exists("urlFiche", $context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.', 84, $this->source); })()), "content" => "Afficher tous les diplômes"]));
// line 87
echo " </div>
";
}
// line 89
echo " </div>
";
} else {
// line 92
echo "
";
// line 94
echo " ";
// line 95
echo " ";
$context["compositionEnsembleScolaire"] = twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 95, $this->source); })()), "compositionEnsembleScolaire", [], "any", false, false, false, 95);
// line 96
echo " ";
if ((array_key_exists("compositionEnsembleScolaire", $context) && (0 !== twig_compare((isset($context["compositionEnsembleScolaire"]) || array_key_exists("compositionEnsembleScolaire", $context) ? $context["compositionEnsembleScolaire"] : (function () { throw new RuntimeError('Variable "compositionEnsembleScolaire" does not exist.', 96, $this->source); })()), "")))) {
// line 97
echo " <div>
<p class=\"configuration\">
Composition de l'ensemble scolaire :<br class=\"mb-3\">
";
// line 100
echo (isset($context["compositionEnsembleScolaire"]) || array_key_exists("compositionEnsembleScolaire", $context) ? $context["compositionEnsembleScolaire"] : (function () { throw new RuntimeError('Variable "compositionEnsembleScolaire" does not exist.', 100, $this->source); })());
echo "
</p>
</div>
";
}
// line 103
echo "
";
}
// line 106
echo " </header>
";
// line 108
if (twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 108, $this->source); })()), "isClient", [], "any", false, false, false, 108)) {
// line 109
echo " <figure class=\"resize\" data-href=\"";
if (twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 109, $this->source); })()), "videoPlus", [], "any", false, false, false, 109)) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder", $context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.', 109, $this->source); })()), "buildFiche", [0 => (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 109, $this->source); })()), 1 => ["video-id" => "0"]], "method", false, false, false, 109), "html", null, true);
echo " ";
} else {
echo " ";
echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche", $context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.', 109, $this->source); })()), "html", null, true);
echo " ";
}
echo "\">
";
// line 110
if ((isset($context["isForeignCityNear"]) || array_key_exists("isForeignCityNear", $context) ? $context["isForeignCityNear"] : (function () { throw new RuntimeError('Variable "isForeignCityNear" does not exist.', 110, $this->source); })())) {
// line 111
echo " ";
$context["distance"] = _twig_default_filter($this->extensions['App\Twig\GeoExtension']->lieuDistance((isset($context["lieu"]) || array_key_exists("lieu", $context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.', 111, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 111, $this->source); })()), "latitude", [], "any", false, false, false, 111), twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 111, $this->source); })()), "longitude", [], "any", false, false, false, 111)), "proximité");
// line 112
echo " <span class=\"distance\">à ";
echo twig_escape_filter($this->env, (isset($context["distance"]) || array_key_exists("distance", $context) ? $context["distance"] : (function () { throw new RuntimeError('Variable "distance" does not exist.', 112, $this->source); })()), "html", null, true);
echo "</span>
";
}
// line 114
echo "
";
// line 115
$context["mainImageFromDiapo"] = twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 115, $this->source); })()), "getMainImageFromDiapo", [], "any", false, false, false, 115);
// line 116
echo " ";
if ((isset($context["mainImageFromDiapo"]) || array_key_exists("mainImageFromDiapo", $context) ? $context["mainImageFromDiapo"] : (function () { throw new RuntimeError('Variable "mainImageFromDiapo" does not exist.', 116, $this->source); })())) {
// line 117
echo " <img ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["loop"]) || array_key_exists("loop", $context) ? $context["loop"] : (function () { throw new RuntimeError('Variable "loop" does not exist.', 117, $this->source); })()), "index0", [], "any", false, false, false, 117), 0))) {
echo "fetchpriority=\"high\"";
}
echo " loading=\"lazy\" class=\"resp etab_liste\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["mainImageFromDiapo"]) || array_key_exists("mainImageFromDiapo", $context) ? $context["mainImageFromDiapo"] : (function () { throw new RuntimeError('Variable "mainImageFromDiapo" does not exist.', 117, $this->source); })()), "photoFile"), "etab_liste"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, (isset($context["imgAlt"]) || array_key_exists("imgAlt", $context) ? $context["imgAlt"] : (function () { throw new RuntimeError('Variable "imgAlt" does not exist.', 117, $this->source); })()), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["imgAlt"]) || array_key_exists("imgAlt", $context) ? $context["imgAlt"] : (function () { throw new RuntimeError('Variable "imgAlt" does not exist.', 117, $this->source); })()), "html", null, true);
echo "\">
";
} elseif ( !twig_test_empty(twig_get_attribute($this->env, $this->source, // line 118
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 118, $this->source); })()), "imagesDiaporama", [], "any", false, false, false, 118))) {
// line 119
echo " <img ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["loop"]) || array_key_exists("loop", $context) ? $context["loop"] : (function () { throw new RuntimeError('Variable "loop" does not exist.', 119, $this->source); })()), "index0", [], "any", false, false, false, 119), 0))) {
echo "fetchpriority=\"high\"";
}
echo " loading=\"lazy\" class=\"resp etab_liste-2\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/jouve/photo/" . twig_first($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 119, $this->source); })()), "imagesDiaporama", [], "any", false, false, false, 119)))), "etab_liste"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, (isset($context["imgAlt"]) || array_key_exists("imgAlt", $context) ? $context["imgAlt"] : (function () { throw new RuntimeError('Variable "imgAlt" does not exist.', 119, $this->source); })()), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["imgAlt"]) || array_key_exists("imgAlt", $context) ? $context["imgAlt"] : (function () { throw new RuntimeError('Variable "imgAlt" does not exist.', 119, $this->source); })()), "html", null, true);
echo "\">
";
} else {
// line 121
echo " <span class=\"no-logo\"></span>
";
}
// line 123
echo "
";
// line 124
if ((isset($context["isPlus"]) || array_key_exists("isPlus", $context) ? $context["isPlus"] : (function () { throw new RuntimeError('Variable "isPlus" does not exist.', 124, $this->source); })())) {
// line 125
echo " <span class=\"triangle-plus\"></span>
<span class=\"star-plus\"></span>
<div class=\"les-plus\">
<span>Les + :</span>
";
// line 130
if (twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 130, $this->source); })()), "diapoPlus", [], "any", false, false, false, 130)) {
// line 131
echo " <span class=\"icon diapo\"></span>
";
}
// line 133
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 133, $this->source); })()), "videoPlus", [], "any", false, false, false, 133)) {
// line 134
echo " <span class=\"icon video\"></span>
";
}
// line 136
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 136, $this->source); })()), "jpoPlus", [], "any", false, false, false, 136)) {
// line 137
echo " <span class=\"icon jpo\"></span>
";
}
// line 139
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 139, $this->source); })()), "diplomePlus", [], "any", false, false, false, 139)) {
// line 140
echo " <span class=\"icon diplome\"></span>
";
}
// line 142
echo " </div>
";
}
// line 144
echo "
";
// line 145
if (((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 145, $this->source); })()), "videos", [], "any", false, false, false, 145)), 0)) && twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 145, $this->source); })()), "videoPlus", [], "any", false, false, false, 145))) {
// line 146
echo " <i class=\"i-video\"></i>
";
} elseif (((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, // line 147
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 147, $this->source); })()), "diaporamas", [], "any", false, false, false, 147)), 0)) && twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 147, $this->source); })()), "diapoPlus", [], "any", false, false, false, 147))) {
// line 148
echo " <i class=\"i-diapo\"></i>
";
}
// line 150
echo " </figure>
";
}
// line 152
echo " <ul class=\"establishment-options ";
if ((isset($context["isPlus"]) || array_key_exists("isPlus", $context) ? $context["isPlus"] : (function () { throw new RuntimeError('Variable "isPlus" does not exist.', 152, $this->source); })())) {
echo "item-plus";
}
echo "\">
";
// line 153
$context["isFav"] = twig_get_attribute($this->env, $this->source, (isset($context["favoris"]) || array_key_exists("favoris", $context) ? $context["favoris"] : (function () { throw new RuntimeError('Variable "favoris" does not exist.', 153, $this->source); })()), "has", [0 => (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 153, $this->source); })())], "method", false, false, false, 153);
// line 154
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 154, $this->source); })()), "isClient", [], "any", false, false, false, 154) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 154, $this->source); })()), "logo", [], "any", false, false, false, 154)))) {
// line 155
echo " <li class=\"logo\">
<figure data-href=\"";
// line 156
if (twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 156, $this->source); })()), "videoPlus", [], "any", false, false, false, 156)) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder", $context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.', 156, $this->source); })()), "buildFiche", [0 => (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 156, $this->source); })()), 1 => ["video-id" => "0"]], "method", false, false, false, 156), "html", null, true);
echo " ";
} else {
echo " ";
echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche", $context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.', 156, $this->source); })()), "html", null, true);
echo " ";
}
echo "\">
<img ";
// line 157
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["loop"]) || array_key_exists("loop", $context) ? $context["loop"] : (function () { throw new RuntimeError('Variable "loop" does not exist.', 157, $this->source); })()), "index0", [], "any", false, false, false, 157), 0))) {
echo "fetchpriority=\"high\"";
}
echo " loading=\"lazy\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 157, $this->source); })()), "logo", [], "any", false, false, false, 157), "logoFile"), "etab_fiche_logo"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, (isset($context["imgAlt"]) || array_key_exists("imgAlt", $context) ? $context["imgAlt"] : (function () { throw new RuntimeError('Variable "imgAlt" does not exist.', 157, $this->source); })()), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["imgAlt"]) || array_key_exists("imgAlt", $context) ? $context["imgAlt"] : (function () { throw new RuntimeError('Variable "imgAlt" does not exist.', 157, $this->source); })()), "html", null, true);
echo "\" class=\"etab_liste_logo\">
</figure>
</li>
";
}
// line 161
echo " <li class=\"fav-toggle ";
echo (((isset($context["isFav"]) || array_key_exists("isFav", $context) ? $context["isFav"] : (function () { throw new RuntimeError('Variable "isFav" does not exist.', 161, $this->source); })())) ? ("fav-added") : (""));
echo "\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 161, $this->source); })()), "id", [], "any", false, false, false, 161), "html", null, true);
echo "\" title=\"";
echo (((isset($context["isFav"]) || array_key_exists("isFav", $context) ? $context["isFav"] : (function () { throw new RuntimeError('Variable "isFav" does not exist.', 161, $this->source); })())) ? ("Supprimer du favoris") : ("Ajouter aux favoris"));
echo "\"></li>
";
// line 162
if (twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 162, $this->source); })()), "isClient", [], "any", false, false, false, 162)) {
// line 163
echo " <li class=\"mail-list ";
if ((isset($context["isPlus"]) || array_key_exists("isPlus", $context) ? $context["isPlus"] : (function () { throw new RuntimeError('Variable "isPlus" does not exist.', 163, $this->source); })())) {
echo "icon-etablissement-plus";
}
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\TypeOngletExtension']->type(twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 163, $this->source); })()), "type", [], "any", false, false, false, 163)), "html", null, true);
echo " item-fiche-contact\">
";
// line 164
$this->loadTemplate("_includes/lien-masque.html.twig", "annuaire/_includes/item-list.html.twig", 164)->display(twig_to_array(["target" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("form-di", ["id" => twig_get_attribute($this->env, $this->source, // line 165
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 165, $this->source); })()), "id", [], "any", false, false, false, 165)]), "content" => "Contactez l’établissement"]));
// line 168
echo " </li>
";
}
// line 170
echo " <li class=\"infos ";
if ((isset($context["isPlus"]) || array_key_exists("isPlus", $context) ? $context["isPlus"] : (function () { throw new RuntimeError('Variable "isPlus" does not exist.', 170, $this->source); })())) {
echo "icon-etablissement-plus";
} elseif (twig_get_attribute($this->env, $this->source, (isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 170, $this->source); })()), "isClient", [], "any", false, false, false, 170)) {
echo "icon-etablissement";
} else {
echo "icon-etablissement-no-client ";
}
echo "\">
";
// line 171
$this->loadTemplate("_includes/lien-masque.html.twig", "annuaire/_includes/item-list.html.twig", 171)->display(twig_to_array(["target" => // line 172
(isset($context["urlFiche"]) || array_key_exists("urlFiche", $context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.', 172, $this->source); })()), "content" => "Plus d'infos"]));
// line 175
echo " </li>
</ul>
</article>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "annuaire/_includes/item-list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 499 => 175, 497 => 172, 496 => 171, 485 => 170, 481 => 168, 479 => 165, 478 => 164, 469 => 163, 467 => 162, 458 => 161, 443 => 157, 431 => 156, 428 => 155, 425 => 154, 423 => 153, 416 => 152, 412 => 150, 408 => 148, 406 => 147, 403 => 146, 401 => 145, 398 => 144, 394 => 142, 390 => 140, 387 => 139, 383 => 137, 380 => 136, 376 => 134, 373 => 133, 369 => 131, 367 => 130, 360 => 125, 358 => 124, 355 => 123, 351 => 121, 337 => 119, 335 => 118, 322 => 117, 319 => 116, 317 => 115, 314 => 114, 308 => 112, 305 => 111, 303 => 110, 290 => 109, 288 => 108, 284 => 106, 279 => 103, 272 => 100, 267 => 97, 264 => 96, 261 => 95, 259 => 94, 256 => 92, 251 => 89, 247 => 87, 245 => 84, 244 => 83, 241 => 82, 239 => 81, 236 => 80, 230 => 79, 227 => 78, 225 => 77, 222 => 76, 214 => 75, 211 => 74, 208 => 73, 203 => 72, 197 => 71, 194 => 70, 192 => 69, 189 => 68, 181 => 67, 178 => 66, 175 => 65, 170 => 64, 168 => 63, 164 => 61, 162 => 60, 158 => 59, 150 => 56, 142 => 55, 135 => 51, 131 => 50, 127 => 48, 125 => 44, 122 => 42, 117 => 37, 113 => 36, 109 => 35, 105 => 34, 101 => 33, 97 => 32, 93 => 31, 89 => 30, 83 => 29, 79 => 27, 75 => 25, 72 => 24, 69 => 23, 67 => 22, 64 => 21, 62 => 18, 61 => 17, 60 => 16, 59 => 15, 58 => 14, 57 => 13, 55 => 11, 54 => 10, 53 => 9, 52 => 8, 50 => 6, 49 => 5, 48 => 4, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set urlFiche = pathBuilder.buildFiche(etablissement) %}
{% set urlFicheInternat = pathBuilder.buildFicheInternat(etablissement) %}
{% set imgAlt = [
etablissement.codePostal,
(etablissement.ville ? etablissement.ville.libelle : ''),
etablissement.denomination,
]|join(' - ')|trim(' -') %}
{% set isForeignCityNear =
parametres.villes | length and
etablissement.ville and
etablissement.ville.id not in parametres.villes
%}
{% set isPlus =
etablissement.isClient and (
etablissement.videoPlus or
etablissement.diapoPlus or
etablissement.jpoPlus or
etablissement.diplomePlus
)
%}
{% if itemsInsertions and itemsInsertions is not empty and itemsInsertions|length >= 3 %}
{% if loop.index == 3 %}
{% include 'annuaire/_includes/diplome-list.html.twig' %}
{% endif %}
{% endif %}
<article
class=\"{{etablissement.isClient ? 'isClient' : 'non-client'}} {{typeOnglet(etablissement.type)}} item-fiche-etablissement\"
data-etablissement-id=\"{{etablissement.id}}\"
data-etablissement-denomination=\"{{etablissement.denomination}}\"
data-etablissement-type=\"{{ typeEtablissementSimple(etablissement.type) | default(null) }}\"
data-etablissement-sous-contrat=\"{{etablissement.sousContrat ? 'sous_contrat' : 'hors_contrat'}}\"
data-etablissement-location-id=\"{{etablissement.ville.departement.id ~ '_' ~ etablissement.codePostal ~ '_' ~ etablissement.ville.slug | replace({'-': '_'})}}\"
data-etablissement-segment=\"{{etablissement.isClient ? 'client' : 'prospect'}}\"
data-etablissement-index=\"{{loop.index + (parametres.pageActuele-1) * parametres.maxParPage}}\"
data-index=\"{{loop.index + (parametres.pageActuele-1) * parametres.maxParPage}}\"
>
{#{% if etablissement.sousContrat == true %}
<p class=\"status\">Sous contrat</p>
{% endif %}#}
<header>
{# -- DEBUG -------- #}
{# <h6><span class=\"badge badge-danger\">{{ loop.index + (parametres.pageActuele-1) * parametres.maxParPage }}</span>
<span class=\"badge badge-warning\">{% if etablissement.catholique %}#C{%else%}!C{%endif%}</span>
<span class=\"badge badge-primary\">{% if etablissement.participant %}P{%endif%}</span>
</h6> #}
<div>
<strong>
<a href=\"{{ urlFiche }}\" class=\"url-fiche\">
{{ etablissement.denomination | u.truncate(80, '…', false)}}
</a>
</strong>
<p class=\"establishment-address\">
{{ etablissement.adresse1 }} {{ etablissement.adresse2 }} {{ etablissement.adresse3 }}<br>
{{ etablissement.codePostal }} {{ etablissement.ville ? etablissement.ville.libelle : '' }}
</p>
</div>
<p class=\"keywords\">{{ etablissement.motsCles }}</p>
{% if etablissement.type in [ '08-LAGRI', '09-LPROF', '10-LEAP', '12-SUP' ] and etablissement.isClient %}
<div>
<ul class=\"diplomes-list\">
{% set limit = 2 %}
{% for item in etablissement.itemsInsertions | filter( item => item.diplomePlus == true ) %}
{% if item.onglet == 'Formations' and item.onglet is not empty and not ('LANG' in item.pere) and limit > 0 and item.niveau == 4 %}
<li class=\"diplome diplome-plus\">
{{ item | itemLibelle | u.truncate(50, '…', false) }} {% if item.options is not empty %} - {{ item.options | u.truncate(20, '…', false) }} {% endif %}
</li>
{% set limit = limit - 1 %}
{% endif %}
{% endfor %}
{% for item in etablissement.itemsInsertions | filter( item => item.diplomePlus == null or item.diplomePlus == false ) %}
{% if item.onglet == 'Formations' and item.onglet is not empty and not ('LANG' in item.pere) and limit > 0 and item.niveau == 4 %}
<li class=\"diplome\">
{{ item | itemLibelle | u.truncate(50, '…', false) }} {% if item.options is not empty %} - {{ item.options | u.truncate(20, '…', false) }} {% endif %}
</li>
{% set limit = limit - 1 %}
{% endif %}
{% endfor %}
</ul>
{% if limit == 0 %}
<div class=\"ts-diplome\">
{% include '_includes/lien-masque.html.twig' with {
'target': urlFiche,
'content': 'Afficher tous les diplômes'
} only %}
</div>
{% endif %}
</div>
{% else %}
{# environ 50 SQL ici !!! remplacé par une valeur pré-calculée #}
{# {% include 'annuaire/_includes/composition-ensemble-scolaire.html.twig' %} #}
{% set compositionEnsembleScolaire = etablissement.compositionEnsembleScolaire %}
{% if compositionEnsembleScolaire is defined and compositionEnsembleScolaire != '' %}
<div>
<p class=\"configuration\">
Composition de l'ensemble scolaire :<br class=\"mb-3\">
{{ compositionEnsembleScolaire | raw }}
</p>
</div>
{% endif %}
{% endif %}
</header>
{% if etablissement.isClient %}
<figure class=\"resize\" data-href=\"{% if etablissement.videoPlus %} {{ pathBuilder.buildFiche(etablissement,{'video-id':'0'})}} {% else %} {{ urlFiche }} {% endif %}\">
{% if isForeignCityNear %}
{% set distance = lieu | lieuDistance(etablissement.latitude, etablissement.longitude) | default('proximité') %}
<span class=\"distance\">à {{ distance }}</span>
{% endif %}
{% set mainImageFromDiapo = etablissement.getMainImageFromDiapo %}
{% if mainImageFromDiapo %}
<img {% if loop.index0 == 0 %}fetchpriority=\"high\"{% endif %} loading=\"lazy\" class=\"resp etab_liste\" src=\"{{ vich_uploader_asset(mainImageFromDiapo, 'photoFile')| imagine_filter('etab_liste') }}\" alt=\"{{ imgAlt }}\" title=\"{{ imgAlt }}\">
{% elseif etablissement.imagesDiaporama is not empty %}
<img {% if loop.index0 == 0 %}fetchpriority=\"high\"{% endif %} loading=\"lazy\" class=\"resp etab_liste-2\" src=\"{{ asset('images/jouve/photo/' ~ etablissement.imagesDiaporama | first) | imagine_filter('etab_liste')}}\" alt=\"{{ imgAlt }}\" title=\"{{ imgAlt }}\">
{% else %}
<span class=\"no-logo\"></span>
{% endif %}
{% if isPlus %}
<span class=\"triangle-plus\"></span>
<span class=\"star-plus\"></span>
<div class=\"les-plus\">
<span>Les + :</span>
{% if etablissement.diapoPlus %}
<span class=\"icon diapo\"></span>
{% endif %}
{% if etablissement.videoPlus %}
<span class=\"icon video\"></span>
{% endif %}
{% if etablissement.jpoPlus %}
<span class=\"icon jpo\"></span>
{% endif %}
{% if etablissement.diplomePlus %}
<span class=\"icon diplome\"></span>
{% endif %}
</div>
{% endif %}
{% if etablissement.videos|length > 0 and etablissement.videoPlus %}
<i class=\"i-video\"></i>
{% elseif etablissement.diaporamas|length > 0 and etablissement.diapoPlus %}
<i class=\"i-diapo\"></i>
{% endif %}
</figure>
{% endif %}
<ul class=\"establishment-options {% if isPlus %}item-plus{% endif %}\">
{% set isFav = favoris.has(etablissement) %}
{% if etablissement.isClient and etablissement.logo is not empty %}
<li class=\"logo\">
<figure data-href=\"{% if etablissement.videoPlus %} {{ pathBuilder.buildFiche(etablissement,{'video-id':'0'})}} {% else %} {{ urlFiche }} {% endif %}\">
<img {% if loop.index0 == 0 %}fetchpriority=\"high\"{% endif %} loading=\"lazy\" src=\"{{ vich_uploader_asset(etablissement.logo, 'logoFile') | imagine_filter('etab_fiche_logo') }}\" alt=\"{{ imgAlt }}\" title=\"{{ imgAlt }}\" class=\"etab_liste_logo\">
</figure>
</li>
{% endif %}
<li class=\"fav-toggle {{ isFav ? 'fav-added' }}\" data-id=\"{{ etablissement.id }}\" title=\"{{ isFav ? 'Supprimer du favoris' : 'Ajouter aux favoris' }}\"></li>
{% if etablissement.isClient %}
<li class=\"mail-list {% if isPlus %}icon-etablissement-plus{% endif %} {{typeOnglet(etablissement.type)}} item-fiche-contact\">
{% include '_includes/lien-masque.html.twig' with {
'target': path('form-di', {id : etablissement.id}),
'content': 'Contactez l’établissement',
} only %}
</li>
{% endif %}
<li class=\"infos {% if isPlus %}icon-etablissement-plus{% elseif etablissement.isClient %}icon-etablissement{% else %}icon-etablissement-no-client {% endif %}\">
{% include '_includes/lien-masque.html.twig' with {
'target': urlFiche,
'content': 'Plus d\\'infos'
} only %}
</li>
</ul>
</article>
", "annuaire/_includes/item-list.html.twig", "/app/templates/annuaire/_includes/item-list.html.twig");
}
}