var/cache/dev/twig/45/45620311818d83b2605b5f6ba545faf0860dad39944747d506ff8795aa3ed877.php line 172

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* annuaire/_includes/item-list.html.twig */
  14. class __TwigTemplate_f69f083fae4ee0e4c24c1fe9191751896d56978a774ecf213a32e4d48d9d0e0f extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""annuaire/_includes/item-list.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""annuaire/_includes/item-list.html.twig"));
  33.         // line 1
  34.         $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", [=> (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'1$this->source); })())], "method"falsefalsefalse1);
  35.         // line 2
  36.         $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", [=> (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'2$this->source); })())], "method"falsefalsefalse2);
  37.         // line 3
  38.         $context["imgAlt"] = twig_trim_filter(twig_join_filter([=> twig_get_attribute($this->env$this->source,         // line 4
  39. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'4$this->source); })()), "codePostal", [], "any"falsefalsefalse4), => ((twig_get_attribute($this->env$this->source,         // line 5
  40. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'5$this->source); })()), "ville", [], "any"falsefalsefalse5)) ? (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse5), "libelle", [], "any"falsefalsefalse5)) : ("")), => twig_get_attribute($this->env$this->source,         // line 6
  41. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'6$this->source); })()), "denomination", [], "any"falsefalsefalse6)], " - "), " -");
  42.         // line 8
  43.         $context["isForeignCityNear"] = ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source,         // line 9
  44. (isset($context["parametres"]) || array_key_exists("parametres"$context) ? $context["parametres"] : (function () { throw new RuntimeError('Variable "parametres" does not exist.'9$this->source); })()), "villes", [], "any"falsefalsefalse9)) && twig_get_attribute($this->env$this->source,         // line 10
  45. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'10$this->source); })()), "ville", [], "any"falsefalsefalse10)) && !twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 11
  46. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'11$this->source); })()), "ville", [], "any"falsefalsefalse11), "id", [], "any"falsefalsefalse11), 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"falsefalsefalse11)));
  47.         // line 13
  48.         $context["isPlus"] = (twig_get_attribute($this->env$this->source,         // line 14
  49. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'14$this->source); })()), "isClient", [], "any"falsefalsefalse14) && (((twig_get_attribute($this->env$this->source,         // line 15
  50. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'15$this->source); })()), "videoPlus", [], "any"falsefalsefalse15) || twig_get_attribute($this->env$this->source,         // line 16
  51. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'16$this->source); })()), "diapoPlus", [], "any"falsefalsefalse16)) || twig_get_attribute($this->env$this->source,         // line 17
  52. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'17$this->source); })()), "jpoPlus", [], "any"falsefalsefalse17)) || twig_get_attribute($this->env$this->source,         // line 18
  53. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'18$this->source); })()), "diplomePlus", [], "any"falsefalsefalse18)));
  54.         // line 21
  55.         echo "
  56. ";
  57.         // line 22
  58.         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); })()))) && (<= 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)))) {
  59.             // line 23
  60.             echo "    ";
  61.             if ((=== 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"falsefalsefalse23), 3))) {
  62.                 // line 24
  63.                 echo "        ";
  64.                 $this->loadTemplate("annuaire/_includes/diplome-list.html.twig""annuaire/_includes/item-list.html.twig"24)->display($context);
  65.                 // line 25
  66.                 echo "    ";
  67.             }
  68.         }
  69.         // line 27
  70.         echo "
  71. <article 
  72.     class=\"";
  73.         // line 29
  74.         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"falsefalsefalse29)) ? ("isClient") : ("non-client"));
  75.         echo " ";
  76.         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"falsefalsefalse29)), "html"nulltrue);
  77.         echo " item-fiche-etablissement\"
  78.     data-etablissement-id=\"";
  79.         // line 30
  80.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse30), "html"nulltrue);
  81.         echo "\"
  82.     data-etablissement-denomination=\"";
  83.         // line 31
  84.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse31), "html"nulltrue);
  85.         echo "\"
  86.     data-etablissement-type=\"";
  87.         // line 32
  88.         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"falsefalsefalse32)), null), "html"nulltrue);
  89.         echo "\"
  90.     data-etablissement-sous-contrat=\"";
  91.         // line 33
  92.         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"falsefalsefalse33)) ? ("sous_contrat") : ("hors_contrat"));
  93.         echo "\"
  94.     data-etablissement-location-id=\"";
  95.         // line 34
  96.         echo twig_escape_filter($this->env, ((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse34), "departement", [], "any"falsefalsefalse34), "id", [], "any"falsefalsefalse34) . "_") . 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"falsefalsefalse34)) . "_") . twig_replace_filter(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse34), "slug", [], "any"falsefalsefalse34), ["-" => "_"])), "html"nulltrue);
  97.         echo "\"
  98.     data-etablissement-segment=\"";
  99.         // line 35
  100.         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"falsefalsefalse35)) ? ("client") : ("prospect"));
  101.         echo "\"
  102.     data-etablissement-index=\"";
  103.         // line 36
  104.         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"falsefalsefalse36) + ((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"falsefalsefalse36) - 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"falsefalsefalse36))), "html"nulltrue);
  105.         echo "\"
  106.     data-index=\"";
  107.         // line 37
  108.         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"falsefalsefalse37) + ((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"falsefalsefalse37) - 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"falsefalsefalse37))), "html"nulltrue);
  109.         echo "\"
  110.     >
  111.     ";
  112.         // line 42
  113.         echo "    <header>
  114.         ";
  115.         // line 44
  116.         echo "        ";
  117.         // line 48
  118.         echo "        <div>
  119.             <strong>
  120.                 <a href=\"";
  121.         // line 50
  122.         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"nulltrue);
  123.         echo "\" class=\"url-fiche\">
  124.                     ";
  125.         // line 51
  126.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse51)), "truncate", [=> 80=> "…"=> false], "method"falsefalsefalse51), "html"nulltrue);
  127.         echo "
  128.                 </a>
  129.             </strong>
  130.             <p class=\"establishment-address\">
  131.                 ";
  132.         // line 55
  133.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse55), "html"nulltrue);
  134.         echo " ";
  135.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse55), "html"nulltrue);
  136.         echo " ";
  137.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse55), "html"nulltrue);
  138.         echo "<br>
  139.                 ";
  140.         // line 56
  141.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse56), "html"nulltrue);
  142.         echo " ";
  143.         ((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"falsefalsefalse56)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse56), "libelle", [], "any"falsefalsefalse56), "html"nulltrue))) : (print ("")));
  144.         echo "
  145.             </p>
  146.         </div>
  147.         <p class=\"keywords\">";
  148.         // line 59
  149.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse59), "html"nulltrue);
  150.         echo "</p>
  151.         ";
  152.         // line 60
  153.         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"falsefalsefalse60), [=> "08-LAGRI"=> "09-LPROF"=> "10-LEAP"=> "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"falsefalsefalse60))) {
  154.             // line 61
  155.             echo "            <div>
  156.                 <ul class=\"diplomes-list\">
  157.                     ";
  158.             // line 63
  159.             $context["limit"] = 2;
  160.             // line 64
  161.             echo "                    ";
  162.             $context['_parent'] = $context;
  163.             $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->envtwig_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"falsefalsefalse64), function ($__item__) use ($context$macros) { $context["item"] = $__item__; return (=== twig_compare(twig_get_attribute($this->env$this->source$context["item"], "diplomePlus", [], "any"falsefalsefalse64), true)); }));
  164.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  165.                 // line 65
  166.                 echo "                        ";
  167.                 if ((((((=== twig_compare(twig_get_attribute($this->env$this->source$context["item"], "onglet", [], "any"falsefalsefalse65), "Formations")) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["item"], "onglet", [], "any"falsefalsefalse65))) &&  !twig_in_filter("LANG"twig_get_attribute($this->env$this->source$context["item"], "pere", [], "any"falsefalsefalse65))) && (=== 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))) && (=== twig_compare(twig_get_attribute($this->env$this->source$context["item"], "niveau", [], "any"falsefalsefalse65), 4)))) {
  168.                     // line 66
  169.                     echo "                            <li class=\"diplome diplome-plus\">
  170.                                 ";
  171.                     // line 67
  172.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString($this->extensions['App\Twig\ItemsInsertionExtension']->itemLibelle($context["item"])), "truncate", [=> 50=> "…"=> false], "method"falsefalsefalse67), "html"nulltrue);
  173.                     echo " ";
  174.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["item"], "options", [], "any"falsefalsefalse67))) {
  175.                         echo " - ";
  176.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env$this->source$context["item"], "options", [], "any"falsefalsefalse67)), "truncate", [=> 20=> "…"=> false], "method"falsefalsefalse67), "html"nulltrue);
  177.                         echo " ";
  178.                     }
  179.                     // line 68
  180.                     echo "                            </li>
  181.                             ";
  182.                     // line 69
  183.                     $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);
  184.                     // line 70
  185.                     echo "                        ";
  186.                 }
  187.                 // line 71
  188.                 echo "                    ";
  189.             }
  190.             $_parent $context['_parent'];
  191.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  192.             $context array_intersect_key($context$_parent) + $_parent;
  193.             // line 72
  194.             echo "                    ";
  195.             $context['_parent'] = $context;
  196.             $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->envtwig_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"falsefalsefalse72), function ($__item__) use ($context$macros) { $context["item"] = $__item__; return ((=== twig_compare(twig_get_attribute($this->env$this->source$context["item"], "diplomePlus", [], "any"falsefalsefalse72), null)) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["item"], "diplomePlus", [], "any"falsefalsefalse72), false))); }));
  197.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  198.                 // line 73
  199.                 echo "                        ";
  200.                 if ((((((=== twig_compare(twig_get_attribute($this->env$this->source$context["item"], "onglet", [], "any"falsefalsefalse73), "Formations")) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["item"], "onglet", [], "any"falsefalsefalse73))) &&  !twig_in_filter("LANG"twig_get_attribute($this->env$this->source$context["item"], "pere", [], "any"falsefalsefalse73))) && (=== 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))) && (=== twig_compare(twig_get_attribute($this->env$this->source$context["item"], "niveau", [], "any"falsefalsefalse73), 4)))) {
  201.                     // line 74
  202.                     echo "                            <li class=\"diplome\">
  203.                                 ";
  204.                     // line 75
  205.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString($this->extensions['App\Twig\ItemsInsertionExtension']->itemLibelle($context["item"])), "truncate", [=> 50=> "…"=> false], "method"falsefalsefalse75), "html"nulltrue);
  206.                     echo " ";
  207.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["item"], "options", [], "any"falsefalsefalse75))) {
  208.                         echo " - ";
  209.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env$this->source$context["item"], "options", [], "any"falsefalsefalse75)), "truncate", [=> 20=> "…"=> false], "method"falsefalsefalse75), "html"nulltrue);
  210.                         echo " ";
  211.                     }
  212.                     // line 76
  213.                     echo "                            </li>
  214.                             ";
  215.                     // line 77
  216.                     $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);
  217.                     // line 78
  218.                     echo "                        ";
  219.                 }
  220.                 // line 79
  221.                 echo "                    ";
  222.             }
  223.             $_parent $context['_parent'];
  224.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  225.             $context array_intersect_key($context$_parent) + $_parent;
  226.             // line 80
  227.             echo "                </ul>
  228.                 ";
  229.             // line 81
  230.             if ((=== 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))) {
  231.                 // line 82
  232.                 echo "                    <div class=\"ts-diplome\">
  233.                         ";
  234.                 // line 83
  235.                 $this->loadTemplate("_includes/lien-masque.html.twig""annuaire/_includes/item-list.html.twig"83)->display(twig_to_array(["target" =>                 // line 84
  236. (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"]));
  237.                 // line 87
  238.                 echo "                    </div>
  239.                 ";
  240.             }
  241.             // line 89
  242.             echo "            </div>
  243.         ";
  244.         } else {
  245.             // line 92
  246.             echo "            
  247.             ";
  248.             // line 94
  249.             echo "            ";
  250.             // line 95
  251.             echo "            ";
  252.             $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"falsefalsefalse95);
  253.             // line 96
  254.             echo "            ";
  255.             if ((array_key_exists("compositionEnsembleScolaire"$context) && (!== twig_compare((isset($context["compositionEnsembleScolaire"]) || array_key_exists("compositionEnsembleScolaire"$context) ? $context["compositionEnsembleScolaire"] : (function () { throw new RuntimeError('Variable "compositionEnsembleScolaire" does not exist.'96$this->source); })()), "")))) {
  256.                 // line 97
  257.                 echo "                <div>
  258.                     <p class=\"configuration\">
  259.                         Composition de l'ensemble scolaire :<br class=\"mb-3\">
  260.                         ";
  261.                 // line 100
  262.                 echo (isset($context["compositionEnsembleScolaire"]) || array_key_exists("compositionEnsembleScolaire"$context) ? $context["compositionEnsembleScolaire"] : (function () { throw new RuntimeError('Variable "compositionEnsembleScolaire" does not exist.'100$this->source); })());
  263.                 echo "
  264.                     </p>
  265.                 </div>
  266.             ";
  267.             }
  268.             // line 103
  269.             echo "  
  270.         ";
  271.         }
  272.         // line 106
  273.         echo "    </header>
  274.     ";
  275.         // line 108
  276.         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"falsefalsefalse108)) {
  277.             // line 109
  278.             echo "        <figure class=\"resize\" data-href=\"";
  279.             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"falsefalsefalse109)) {
  280.                 echo " ";
  281.                 echo twig_escape_filter($this->envtwig_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", [=> (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'109$this->source); })()), => ["video-id" => "0"]], "method"falsefalsefalse109), "html"nulltrue);
  282.                 echo " ";
  283.             } else {
  284.                 echo " ";
  285.                 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"nulltrue);
  286.                 echo " ";
  287.             }
  288.             echo "\">
  289.             ";
  290.             // line 110
  291.             if ((isset($context["isForeignCityNear"]) || array_key_exists("isForeignCityNear"$context) ? $context["isForeignCityNear"] : (function () { throw new RuntimeError('Variable "isForeignCityNear" does not exist.'110$this->source); })())) {
  292.                 // line 111
  293.                 echo "                ";
  294.                 $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"falsefalsefalse111), 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"falsefalsefalse111)), "proximité");
  295.                 // line 112
  296.                 echo "                <span class=\"distance\">à ";
  297.                 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"nulltrue);
  298.                 echo "</span>
  299.             ";
  300.             }
  301.             // line 114
  302.             echo "
  303.             ";
  304.             // line 115
  305.             $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"falsefalsefalse115);
  306.             // line 116
  307.             echo "            ";
  308.             if ((isset($context["mainImageFromDiapo"]) || array_key_exists("mainImageFromDiapo"$context) ? $context["mainImageFromDiapo"] : (function () { throw new RuntimeError('Variable "mainImageFromDiapo" does not exist.'116$this->source); })())) {
  309.                 // line 117
  310.                 echo "                <img ";
  311.                 if ((=== 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"falsefalsefalse117), 0))) {
  312.                     echo "fetchpriority=\"high\"";
  313.                 }
  314.                 echo " loading=\"lazy\" class=\"resp etab_liste\" src=\"";
  315.                 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"nulltrue);
  316.                 echo "\" alt=\"";
  317.                 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"nulltrue);
  318.                 echo "\" title=\"";
  319.                 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"nulltrue);
  320.                 echo "\">
  321.             ";
  322.             } elseif ( !twig_test_empty(twig_get_attribute($this->env$this->source,             // line 118
  323. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'118$this->source); })()), "imagesDiaporama", [], "any"falsefalsefalse118))) {
  324.                 // line 119
  325.                 echo "                <img ";
  326.                 if ((=== 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"falsefalsefalse119), 0))) {
  327.                     echo "fetchpriority=\"high\"";
  328.                 }
  329.                 echo " loading=\"lazy\" class=\"resp etab_liste-2\" src=\"";
  330.                 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->envtwig_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"falsefalsefalse119)))), "etab_liste"), "html"nulltrue);
  331.                 echo "\" alt=\"";
  332.                 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"nulltrue);
  333.                 echo "\" title=\"";
  334.                 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"nulltrue);
  335.                 echo "\">
  336.             ";
  337.             } else {
  338.                 // line 121
  339.                 echo "                <span class=\"no-logo\"></span>
  340.             ";
  341.             }
  342.             // line 123
  343.             echo "
  344.             ";
  345.             // line 124
  346.             if ((isset($context["isPlus"]) || array_key_exists("isPlus"$context) ? $context["isPlus"] : (function () { throw new RuntimeError('Variable "isPlus" does not exist.'124$this->source); })())) {
  347.                 // line 125
  348.                 echo "                <span class=\"triangle-plus\"></span>
  349.                 <span class=\"star-plus\"></span>
  350.                 <div class=\"les-plus\">
  351.                     <span>Les + :</span>
  352.                     ";
  353.                 // line 130
  354.                 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"falsefalsefalse130)) {
  355.                     // line 131
  356.                     echo "                        <span class=\"icon diapo\"></span>
  357.                     ";
  358.                 }
  359.                 // line 133
  360.                 echo "                    ";
  361.                 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"falsefalsefalse133)) {
  362.                     // line 134
  363.                     echo "                        <span class=\"icon video\"></span>
  364.                     ";
  365.                 }
  366.                 // line 136
  367.                 echo "                    ";
  368.                 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"falsefalsefalse136)) {
  369.                     // line 137
  370.                     echo "                        <span class=\"icon jpo\"></span>
  371.                     ";
  372.                 }
  373.                 // line 139
  374.                 echo "                    ";
  375.                 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"falsefalsefalse139)) {
  376.                     // line 140
  377.                     echo "                        <span class=\"icon diplome\"></span>
  378.                     ";
  379.                 }
  380.                 // line 142
  381.                 echo "                </div>
  382.             ";
  383.             }
  384.             // line 144
  385.             echo "            
  386.             ";
  387.             // line 145
  388.             if (((=== twig_compare(twig_length_filter($this->envtwig_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"falsefalsefalse145)), 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"falsefalsefalse145))) {
  389.                 // line 146
  390.                 echo "                <i class=\"i-video\"></i>
  391.             ";
  392.             } elseif (((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source,             // line 147
  393. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'147$this->source); })()), "diaporamas", [], "any"falsefalsefalse147)), 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"falsefalsefalse147))) {
  394.                 // line 148
  395.                 echo "                <i class=\"i-diapo\"></i>
  396.             ";
  397.             }
  398.             // line 150
  399.             echo "        </figure>
  400.     ";
  401.         }
  402.         // line 152
  403.         echo "    <ul class=\"establishment-options ";
  404.         if ((isset($context["isPlus"]) || array_key_exists("isPlus"$context) ? $context["isPlus"] : (function () { throw new RuntimeError('Variable "isPlus" does not exist.'152$this->source); })())) {
  405.             echo "item-plus";
  406.         }
  407.         echo "\">
  408.           ";
  409.         // line 153
  410.         $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", [=> (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'153$this->source); })())], "method"falsefalsefalse153);
  411.         // line 154
  412.         echo "          ";
  413.         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"falsefalsefalse154) &&  !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"falsefalsefalse154)))) {
  414.             // line 155
  415.             echo "              <li class=\"logo\">
  416.                 <figure data-href=\"";
  417.             // line 156
  418.             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"falsefalsefalse156)) {
  419.                 echo " ";
  420.                 echo twig_escape_filter($this->envtwig_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", [=> (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'156$this->source); })()), => ["video-id" => "0"]], "method"falsefalsefalse156), "html"nulltrue);
  421.                 echo " ";
  422.             } else {
  423.                 echo " ";
  424.                 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"nulltrue);
  425.                 echo " ";
  426.             }
  427.             echo "\">
  428.                     <img ";
  429.             // line 157
  430.             if ((=== 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"falsefalsefalse157), 0))) {
  431.                 echo "fetchpriority=\"high\"";
  432.             }
  433.             echo " loading=\"lazy\" src=\"";
  434.             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"falsefalsefalse157), "logoFile"), "etab_fiche_logo"), "html"nulltrue);
  435.             echo "\" alt=\"";
  436.             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"nulltrue);
  437.             echo "\" title=\"";
  438.             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"nulltrue);
  439.             echo "\" class=\"etab_liste_logo\">
  440.                 </figure>
  441.               </li>
  442.           ";
  443.         }
  444.         // line 161
  445.         echo "          <li class=\"fav-toggle ";
  446.         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") : (""));
  447.         echo "\" data-id=\"";
  448.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse161), "html"nulltrue);
  449.         echo "\" title=\"";
  450.         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"));
  451.         echo "\"></li>
  452.         ";
  453.         // line 162
  454.         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"falsefalsefalse162)) {
  455.             // line 163
  456.             echo "            <li class=\"mail-list ";
  457.             if ((isset($context["isPlus"]) || array_key_exists("isPlus"$context) ? $context["isPlus"] : (function () { throw new RuntimeError('Variable "isPlus" does not exist.'163$this->source); })())) {
  458.                 echo "icon-etablissement-plus";
  459.             }
  460.             echo " ";
  461.             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"falsefalsefalse163)), "html"nulltrue);
  462.             echo " item-fiche-contact\">
  463.                 ";
  464.             // line 164
  465.             $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
  466. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'165$this->source); })()), "id", [], "any"falsefalsefalse165)]), "content" => "Contactez l’établissement"]));
  467.             // line 168
  468.             echo "            </li>
  469.         ";
  470.         }
  471.         // line 170
  472.         echo "        <li class=\"infos ";
  473.         if ((isset($context["isPlus"]) || array_key_exists("isPlus"$context) ? $context["isPlus"] : (function () { throw new RuntimeError('Variable "isPlus" does not exist.'170$this->source); })())) {
  474.             echo "icon-etablissement-plus";
  475.         } 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"falsefalsefalse170)) {
  476.             echo "icon-etablissement";
  477.         } else {
  478.             echo "icon-etablissement-no-client ";
  479.         }
  480.         echo "\">
  481.             ";
  482.         // line 171
  483.         $this->loadTemplate("_includes/lien-masque.html.twig""annuaire/_includes/item-list.html.twig"171)->display(twig_to_array(["target" =>         // line 172
  484. (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"]));
  485.         // line 175
  486.         echo "        </li>
  487.     </ul>
  488. </article>
  489. ";
  490.         
  491.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  492.         
  493.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  494.     }
  495.     public function getTemplateName()
  496.     {
  497.         return "annuaire/_includes/item-list.html.twig";
  498.     }
  499.     public function isTraitable()
  500.     {
  501.         return false;
  502.     }
  503.     public function getDebugInfo()
  504.     {
  505.         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,);
  506.     }
  507.     public function getSourceContext()
  508.     {
  509.         return new Source("{% set urlFiche = pathBuilder.buildFiche(etablissement) %}
  510. {% set urlFicheInternat = pathBuilder.buildFicheInternat(etablissement) %}
  511. {% set imgAlt = [
  512.     etablissement.codePostal,
  513.     (etablissement.ville ? etablissement.ville.libelle : ''),
  514.     etablissement.denomination,
  515. ]|join(' - ')|trim(' -') %}
  516. {% set isForeignCityNear =
  517.     parametres.villes | length and
  518.     etablissement.ville and
  519.     etablissement.ville.id not in parametres.villes
  520. %}
  521. {% set isPlus =
  522.     etablissement.isClient and (
  523.         etablissement.videoPlus or
  524.         etablissement.diapoPlus or
  525.         etablissement.jpoPlus   or
  526.         etablissement.diplomePlus
  527.     )
  528. %}
  529. {% if itemsInsertions and itemsInsertions is not empty and itemsInsertions|length >= 3 %}
  530.     {% if loop.index == 3 %}
  531.         {% include 'annuaire/_includes/diplome-list.html.twig' %}
  532.     {% endif %}
  533. {% endif %}
  534. <article 
  535.     class=\"{{etablissement.isClient ? 'isClient' : 'non-client'}} {{typeOnglet(etablissement.type)}} item-fiche-etablissement\"
  536.     data-etablissement-id=\"{{etablissement.id}}\"
  537.     data-etablissement-denomination=\"{{etablissement.denomination}}\"
  538.     data-etablissement-type=\"{{ typeEtablissementSimple(etablissement.type) | default(null) }}\"
  539.     data-etablissement-sous-contrat=\"{{etablissement.sousContrat ? 'sous_contrat' : 'hors_contrat'}}\"
  540.     data-etablissement-location-id=\"{{etablissement.ville.departement.id ~ '_' ~ etablissement.codePostal ~ '_' ~ etablissement.ville.slug | replace({'-': '_'})}}\"
  541.     data-etablissement-segment=\"{{etablissement.isClient ? 'client' : 'prospect'}}\"
  542.     data-etablissement-index=\"{{loop.index + (parametres.pageActuele-1) * parametres.maxParPage}}\"
  543.     data-index=\"{{loop.index + (parametres.pageActuele-1) * parametres.maxParPage}}\"
  544.     >
  545.     {#{% if etablissement.sousContrat == true %}
  546.         <p class=\"status\">Sous contrat</p>
  547.     {% endif %}#}
  548.     <header>
  549.         {# -- DEBUG --------  #}
  550.         {# <h6><span class=\"badge badge-danger\">{{ loop.index + (parametres.pageActuele-1) * parametres.maxParPage }}</span>
  551.         <span class=\"badge badge-warning\">{% if etablissement.catholique %}#C{%else%}!C{%endif%}</span>
  552.         <span class=\"badge badge-primary\">{% if etablissement.participant %}P{%endif%}</span>
  553.         </h6> #}
  554.         <div>
  555.             <strong>
  556.                 <a href=\"{{ urlFiche }}\" class=\"url-fiche\">
  557.                     {{ etablissement.denomination | u.truncate(80, '…', false)}}
  558.                 </a>
  559.             </strong>
  560.             <p class=\"establishment-address\">
  561.                 {{ etablissement.adresse1 }} {{ etablissement.adresse2 }} {{ etablissement.adresse3 }}<br>
  562.                 {{ etablissement.codePostal }} {{ etablissement.ville ? etablissement.ville.libelle : '' }}
  563.             </p>
  564.         </div>
  565.         <p class=\"keywords\">{{ etablissement.motsCles }}</p>
  566.         {% if etablissement.type in [ '08-LAGRI', '09-LPROF', '10-LEAP', '12-SUP' ] and etablissement.isClient %}
  567.             <div>
  568.                 <ul class=\"diplomes-list\">
  569.                     {% set limit = 2 %}
  570.                     {% for item in etablissement.itemsInsertions | filter( item => item.diplomePlus == true ) %}
  571.                         {% if item.onglet == 'Formations' and item.onglet is not empty and not ('LANG' in item.pere) and limit > 0 and item.niveau == 4 %}
  572.                             <li class=\"diplome diplome-plus\">
  573.                                 {{ item | itemLibelle | u.truncate(50, '…', false) }} {% if item.options is not empty %} - {{ item.options | u.truncate(20, '…', false) }} {% endif %}
  574.                             </li>
  575.                             {% set limit = limit - 1 %}
  576.                         {% endif %}
  577.                     {% endfor %}
  578.                     {% for item in etablissement.itemsInsertions | filter( item => item.diplomePlus == null or item.diplomePlus == false ) %}
  579.                         {% if item.onglet == 'Formations' and item.onglet is not empty and not ('LANG' in item.pere) and limit > 0 and item.niveau == 4 %}
  580.                             <li class=\"diplome\">
  581.                                 {{ item | itemLibelle | u.truncate(50, '…', false) }} {% if item.options is not empty %} - {{ item.options | u.truncate(20, '…', false) }} {% endif %}
  582.                             </li>
  583.                             {% set limit = limit - 1 %}
  584.                         {% endif %}
  585.                     {% endfor %}
  586.                 </ul>
  587.                 {% if limit == 0 %}
  588.                     <div class=\"ts-diplome\">
  589.                         {% include '_includes/lien-masque.html.twig' with {
  590.                             'target': urlFiche,
  591.                             'content': 'Afficher tous les diplômes'
  592.                         } only %}
  593.                     </div>
  594.                 {% endif %}
  595.             </div>
  596.         {% else %}
  597.             
  598.             {# environ 50 SQL ici !!! remplacé par une valeur pré-calculée #}
  599.             {# {% include 'annuaire/_includes/composition-ensemble-scolaire.html.twig' %} #}
  600.             {% set compositionEnsembleScolaire = etablissement.compositionEnsembleScolaire %}
  601.             {% if compositionEnsembleScolaire is defined and compositionEnsembleScolaire != '' %}
  602.                 <div>
  603.                     <p class=\"configuration\">
  604.                         Composition de l'ensemble scolaire :<br class=\"mb-3\">
  605.                         {{ compositionEnsembleScolaire | raw }}
  606.                     </p>
  607.                 </div>
  608.             {% endif %}  
  609.         {% endif %}
  610.     </header>
  611.     {% if etablissement.isClient %}
  612.         <figure class=\"resize\" data-href=\"{% if etablissement.videoPlus %} {{ pathBuilder.buildFiche(etablissement,{'video-id':'0'})}} {% else %} {{ urlFiche }} {% endif %}\">
  613.             {% if isForeignCityNear %}
  614.                 {% set distance = lieu | lieuDistance(etablissement.latitude, etablissement.longitude) | default('proximité') %}
  615.                 <span class=\"distance\">à {{ distance }}</span>
  616.             {% endif %}
  617.             {% set mainImageFromDiapo = etablissement.getMainImageFromDiapo %}
  618.             {% if mainImageFromDiapo %}
  619.                 <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 }}\">
  620.             {% elseif etablissement.imagesDiaporama is not empty %}
  621.                 <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 }}\">
  622.             {% else %}
  623.                 <span class=\"no-logo\"></span>
  624.             {% endif %}
  625.             {% if isPlus %}
  626.                 <span class=\"triangle-plus\"></span>
  627.                 <span class=\"star-plus\"></span>
  628.                 <div class=\"les-plus\">
  629.                     <span>Les + :</span>
  630.                     {% if etablissement.diapoPlus %}
  631.                         <span class=\"icon diapo\"></span>
  632.                     {% endif %}
  633.                     {% if etablissement.videoPlus %}
  634.                         <span class=\"icon video\"></span>
  635.                     {% endif %}
  636.                     {% if etablissement.jpoPlus %}
  637.                         <span class=\"icon jpo\"></span>
  638.                     {% endif %}
  639.                     {% if etablissement.diplomePlus %}
  640.                         <span class=\"icon diplome\"></span>
  641.                     {% endif %}
  642.                 </div>
  643.             {% endif %}
  644.             
  645.             {% if etablissement.videos|length > 0 and etablissement.videoPlus %}
  646.                 <i class=\"i-video\"></i>
  647.             {% elseif etablissement.diaporamas|length > 0 and etablissement.diapoPlus %}
  648.                 <i class=\"i-diapo\"></i>
  649.             {% endif %}
  650.         </figure>
  651.     {% endif %}
  652.     <ul class=\"establishment-options {% if isPlus %}item-plus{% endif %}\">
  653.           {% set isFav = favoris.has(etablissement) %}
  654.           {% if etablissement.isClient and etablissement.logo is not empty %}
  655.               <li class=\"logo\">
  656.                 <figure data-href=\"{% if etablissement.videoPlus %} {{ pathBuilder.buildFiche(etablissement,{'video-id':'0'})}} {% else %} {{ urlFiche }} {% endif %}\">
  657.                     <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\">
  658.                 </figure>
  659.               </li>
  660.           {% endif %}
  661.           <li class=\"fav-toggle {{ isFav ? 'fav-added' }}\" data-id=\"{{ etablissement.id }}\" title=\"{{ isFav ? 'Supprimer du favoris' : 'Ajouter aux favoris' }}\"></li>
  662.         {% if etablissement.isClient %}
  663.             <li class=\"mail-list {% if isPlus %}icon-etablissement-plus{% endif %} {{typeOnglet(etablissement.type)}} item-fiche-contact\">
  664.                 {% include '_includes/lien-masque.html.twig' with {
  665.                     'target': path('form-di', {id : etablissement.id}),
  666.                     'content': 'Contactez l’établissement',
  667.                 } only %}
  668.             </li>
  669.         {% endif %}
  670.         <li class=\"infos {% if isPlus %}icon-etablissement-plus{% elseif etablissement.isClient %}icon-etablissement{% else %}icon-etablissement-no-client {% endif %}\">
  671.             {% include '_includes/lien-masque.html.twig' with {
  672.                 'target': urlFiche,
  673.                 'content': 'Plus d\\'infos'
  674.             } only %}
  675.         </li>
  676.     </ul>
  677. </article>
  678. ""annuaire/_includes/item-list.html.twig""/app/templates/annuaire/_includes/item-list.html.twig");
  679.     }
  680. }