var/cache/dev/twig/67/6747ca99dedc355e7b65d01618dde90d594025952b60831f772e180754fde8b2.php line 891

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. /* fiche/index.html.twig */
  14. class __TwigTemplate_adfde8a2c181be34224da679610d8a5f379ebd5bbe29787c808990cc9c7f6724 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->blocks = [
  23.             'head' => [$this'block_head'],
  24.             'stylesheets' => [$this'block_stylesheets'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.             'etabLieu' => [$this'block_etabLieu'],
  27.             'title' => [$this'block_title'],
  28.             'description' => [$this'block_description'],
  29.             'body' => [$this'block_body'],
  30.             'contexte' => [$this'block_contexte'],
  31.             'data_layer' => [$this'block_data_layer'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context)
  35.     {
  36.         // line 1
  37.         return "base.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = [])
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""fiche/index.html.twig"));
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""fiche/index.html.twig"));
  46.         // line 185
  47.         $context["type"] = "";
  48.         // line 186
  49.         if ((=== twig_compare(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.'186$this->source); })()), "typeClient", [], "any"falsefalsefalse186), "internat"))) {
  50.             // line 187
  51.             $context["type"] = "internat";
  52.         } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source,         // line 188
  53. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'188$this->source); })()), "typeClient", [], "any"falsefalsefalse188), "organisme"))) {
  54.             // line 189
  55.             $context["type"] = "organisme";
  56.         } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source,         // line 190
  57. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'190$this->source); })()), "typeClient", [], "any"falsefalsefalse190), "fournisseur"))) {
  58.             // line 191
  59.             $context["type"] = "fournisseur";
  60.         }
  61.         // line 220
  62.         $context["siteLdJson"] = twig_array_merge((isset($context["siteLdJson"]) || array_key_exists("siteLdJson"$context) ? $context["siteLdJson"] : (function () { throw new RuntimeError('Variable "siteLdJson" does not exist.'220$this->source); })()), [=> "etablissement"]);
  63.         // line 1
  64.         $this->parent $this->loadTemplate("base.html.twig""fiche/index.html.twig"1);
  65.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  66.         
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  68.         
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  70.     }
  71.     // line 2
  72.     public function block_head($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  79.         // line 3
  80.         echo "    <script type=\"application/ld+json\">
  81.         {
  82.             \"@context\": \"https://schema.org\",
  83.             \"@type\": \"School\",
  84.             \"name\": \"";
  85.         // line 7
  86.         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.'7$this->source); })()), "denomination", [], "any"falsefalsefalse7), "html"nulltrue);
  87.         echo "\",
  88.             \"address\": {
  89.                 \"@type\": \"PostalAddress\",
  90.                 \"streetAddress\":\"";
  91.         // line 10
  92.         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.'10$this->source); })()), "adresse2", [], "any"falsefalsefalse10), "html"nulltrue);
  93.         echo "\",
  94.                 \"addressLocality\": \"";
  95.         // line 11
  96.         echo twig_escape_filter($this->envtwig_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.'11$this->source); })()), "ville", [], "any"falsefalsefalse11), "departement", [], "any"falsefalsefalse11), "libelle", [], "any"falsefalsefalse11), "html"nulltrue);
  97.         echo "\",
  98.                 \"addressRegion\": \"";
  99.         // line 12
  100.         echo 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.'12$this->source); })()), "region", [], "any"falsefalsefalse12), "id", [], "any"falsefalsefalse12), "html"nulltrue);
  101.         echo "\",
  102.                 \"postalCode\": \"";
  103.         // line 13
  104.         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.'13$this->source); })()), "codePostal", [], "any"falsefalsefalse13), "html"nulltrue);
  105.         echo "\",
  106.                 \"addressCountry\": \"";
  107.         // line 14
  108.         echo twig_escape_filter($this->envtwig_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.'14$this->source); })()), "region", [], "any"falsefalsefalse14), "pays", [], "any"falsefalsefalse14), "id", [], "any"falsefalsefalse14), "html"nulltrue);
  109.         echo "\"
  110.             },
  111.             \"geo\": {
  112.                 \"@type\": \"GeoCoordinates\",
  113.                 \"latitude\": \"";
  114.         // line 18
  115.         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.'18$this->source); })()), "latitude", [], "any"falsefalsefalse18), "html"nulltrue);
  116.         echo "\",
  117.                 \"longitude\": \"";
  118.         // line 19
  119.         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.'19$this->source); })()), "longitude", [], "any"falsefalsefalse19), "html"nulltrue);
  120.         echo "\"
  121.             },
  122.             \"url\": \"";
  123.         // line 21
  124.         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.'21$this->source); })()), "url", [], "any"falsefalsefalse21), "html"nulltrue);
  125.         echo "\",
  126.             \"telephone\": \"";
  127.         // line 22
  128.         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.'22$this->source); })()), "telephonePrincipal", [], "any"falsefalsefalse22), "html"nulltrue);
  129.         echo "\",
  130.             \"email\" : \"";
  131.         // line 23
  132.         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.'23$this->source); })()), "emailPrincipal", [], "any"falsefalsefalse23), "html"nulltrue);
  133.         echo "\"
  134.         }
  135.     </script>
  136. ";
  137.         
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  139.         
  140.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  141.     }
  142.     // line 30
  143.     public function block_stylesheets($context, array $blocks = [])
  144.     {
  145.         $macros $this->macros;
  146.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  147.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  148.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  149.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  150.         // line 31
  151.         echo "    ";
  152.         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.'31$this->source); })()), "autoriseTelephonePayant", [], "any"falsefalsefalse31)) {
  153.             // line 32
  154.             echo "        <link rel=\"preload\" href=\"https://wshiconnect.mediakiosque.com/hiconnectjs/css/style-1.0.2.css\" as=\"style\" onload=\"this.rel='stylesheet'\">
  155.         <noscript><link rel=\"stylesheet\" href=\"https://wshiconnect.mediakiosque.com/hiconnectjs/css/style-1.0.2.css\"></noscript>
  156.         <style>
  157.         .showNumberBtn .btn.green {
  158.             background: #fff !important;
  159.             all: unset;
  160.         }
  161.         </style>
  162.     ";
  163.         }
  164.         // line 42
  165.         echo "    <link rel=\"stylesheet\" href=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.css\" crossorigin=\"\"/>
  166.     ";
  167.         // line 45
  168.         echo "    <style>
  169.     
  170.     </style>
  171. ";
  172.         
  173.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  174.         
  175.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  176.     }
  177.     // line 52
  178.     public function block_javascripts($context, array $blocks = [])
  179.     {
  180.         $macros $this->macros;
  181.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  182.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  183.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  184.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  185.         // line 53
  186.         echo "    ";
  187.         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.'53$this->source); })()), "autoriseTelephonePayant", [], "any"falsefalsefalse53)) {
  188.             // line 54
  189.             echo "        <script type=\"text/javascript\" src=\"https://wshiconnect.mediakiosque.com/hiconnectjs/js/hmd_hiconnect-2.0.0-";
  190.             echo twig_escape_filter($this->env, (isset($context["hiConnectJskey"]) || array_key_exists("hiConnectJskey"$context) ? $context["hiConnectJskey"] : (function () { throw new RuntimeError('Variable "hiConnectJskey" does not exist.'54$this->source); })()), "html"nulltrue);
  191.             echo ".js?jquery=no\" defer></script>
  192.         <script>
  193.             var hiConnectInterval = setInterval(function() {
  194.             if (typeof(jQuery) !== 'undefined' && typeof(\$.fn.hmdHiconnect) !== 'undefined') {
  195.                 clearInterval(hiConnectInterval);
  196.                 \$(document).ready(function(\$) {
  197.                     \$('.hmd_hiconnect').hmdHiconnect();
  198.                 });
  199.             }
  200.         }, 100);
  201.         </script>
  202.     ";
  203.         }
  204.         // line 67
  205.         echo "
  206.     <script>
  207.         // Character counter
  208.         var textarea = document.querySelector(\"textarea\");
  209.         var maxlength = textarea.getAttribute(\"maxlength\");
  210.         document.getElementById('textarea_feedback').innerHTML = maxlength + \" caractères restants\";
  211.         textarea.addEventListener(\"input\", function(){
  212.             var maxlength = this.getAttribute(\"maxlength\");
  213.             var currentLength = this.value.length;
  214.             if( currentLength > maxlength ){
  215.                 message = \"Pas plus de \" + maxlength + \" caractères SVP.\";
  216.                 return;
  217.             }else{
  218.                 message = maxlength - currentLength + \"  caractères restants\";
  219.             }
  220.             document.getElementById('textarea_feedback').innerHTML = message;
  221.         });
  222.     </script>
  223.     <script src=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js\" crossorigin=\"\"></script>
  224.     <script>
  225.         // Map affichée directement dans la fiche
  226.         ";
  227.         // line 92
  228.         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.'92$this->source); })()), "isClient", [], "any"falsefalsefalse92)) {
  229.             // line 93
  230.             echo "        const mapzero = L.map('mapzero', {
  231.             zoomControl: false,
  232.             dragging: false,
  233.             scrollWheelZoom: false,
  234.             doubleClickZoom: false,
  235.             boxZoom: false,
  236.             keyboard: false,
  237.             tap: false,
  238.             touchZoom: false,
  239.         }).setView([";
  240.             // line 102
  241.             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.'102$this->source); })()), "latitude", [], "any"falsefalsefalse102), "html"nulltrue);
  242.             echo ", ";
  243.             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.'102$this->source); })()), "longitude", [], "any"falsefalsefalse102), "html"nulltrue);
  244.             echo "], 15);
  245.         L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
  246.             attribution: '',
  247.             interactive: false
  248.         }).addTo(mapzero);
  249.         L.marker([";
  250.             // line 107
  251.             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.'107$this->source); })()), "latitude", [], "any"falsefalsefalse107), "html"nulltrue);
  252.             echo ", ";
  253.             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.'107$this->source); })()), "longitude", [], "any"falsefalsefalse107), "html"nulltrue);
  254.             echo "], {interactive: false}).addTo(mapzero);
  255.         ";
  256.         } else {
  257.             // line 109
  258.             echo "        const mapzero = L.map('mapzero').setView([";
  259.             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.'109$this->source); })()), "latitude", [], "any"falsefalsefalse109), "html"nulltrue);
  260.             echo ", ";
  261.             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.'109$this->source); })()), "longitude", [], "any"falsefalsefalse109), "html"nulltrue);
  262.             echo "], 15);
  263.         L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
  264.             attribution: ''
  265.         }).addTo(mapzero);
  266.         L.marker([";
  267.             // line 113
  268.             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.'113$this->source); })()), "latitude", [], "any"falsefalsefalse113), "html"nulltrue);
  269.             echo ", ";
  270.             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.'113$this->source); })()), "longitude", [], "any"falsefalsefalse113), "html"nulltrue);
  271.             echo "]).addTo(mapzero);
  272.         ";
  273.         }
  274.         // line 115
  275.         echo "    </script>
  276.     
  277.     <script>
  278.     ";
  279.         // line 120
  280.         echo "    (function () {
  281.     const btn = document.querySelector('.container.page-fiche .contact-btn-like');
  282.     if (!btn) return;
  283.     window.addEventListener('scroll', () => {
  284.         const scrolled = window.scrollY;
  285.         const docHeight = document.documentElement.scrollHeight - window.innerHeight;
  286.         const percent = (scrolled / docHeight) * 100;
  287.         btn.classList.toggle('is-visible', percent >= 10); // Pourcentage de scroll avant d'afficher le bouton
  288.     }, { passive: true });
  289.     })();
  290.     ";
  291.         // line 134
  292.         echo "    (function() {
  293.         const el = document.getElementById('di-inline-mobile'); // ton élément
  294.         if (!el) {
  295.             console.log('Élément introuvable !');
  296.             return;
  297.         }
  298.         const observer = new IntersectionObserver(
  299.             ([entry]) => {
  300.                 const btn = document.querySelector('.container.page-fiche .contact-btn-like');
  301.                 if (entry.isIntersecting) {
  302.                     // console.log('Élément VISIBLE à l’écran');
  303.                     btn.classList.add('d-none');
  304.                 } else {
  305.                     // console.log('Élément NON visible à l’écran');
  306.                     btn.classList.remove('d-none');
  307.                 }
  308.             },
  309.             {
  310.             threshold: 0.2 // déclenche dès que 20% de l’élément est visible
  311.             }
  312.         );
  313.         observer.observe(el);
  314.     })();
  315.     ";
  316.         // line 161
  317.         echo "    ";
  318.         // line 179
  319.         echo "    </script>
  320. ";
  321.         
  322.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  323.         
  324.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  325.     }
  326.     // line 194
  327.     public function block_etabLieu($context, array $blocks = [])
  328.     {
  329.         $macros $this->macros;
  330.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  331.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""etabLieu"));
  332.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  333.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""etabLieu"));
  334.         // line 196
  335.         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.'196$this->source); })()), "denomination", [], "any"falsefalsefalse196);
  336.         echo " - ";
  337.         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.'196$this->source); })()), "codePostal", [], "any"falsefalsefalse196);
  338.         // line 197
  339.         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.'197$this->source); })()), "ville", [], "any"falsefalsefalse197)) {
  340.             // line 198
  341.             if (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.'198$this->source); })()), "ville", [], "any"falsefalsefalse198), "libelle", [], "any"falsefalsefalse198)) {
  342.                 echo " ";
  343.                 echo 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.'198$this->source); })()), "ville", [], "any"falsefalsefalse198), "libelle", [], "any"falsefalsefalse198);
  344.             }
  345.             // line 199
  346.             if ((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.'199$this->source); })()), "ville", [], "any"falsefalsefalse199), "departement", [], "any"falsefalsefalse199) && 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.'199$this->source); })()), "ville", [], "any"falsefalsefalse199), "departement", [], "any"falsefalsefalse199), "libelle", [], "any"falsefalsefalse199))) {
  347.                 // line 200
  348.                 echo "- ";
  349.                 echo 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.'200$this->source); })()), "ville", [], "any"falsefalsefalse200), "departement", [], "any"falsefalsefalse200), "id", [], "any"falsefalsefalse200);
  350.                 echo " ";
  351.                 echo 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.'200$this->source); })()), "ville", [], "any"falsefalsefalse200), "departement", [], "any"falsefalsefalse200), "libelle", [], "any"falsefalsefalse200);
  352.             }
  353.         }
  354.         
  355.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  356.         
  357.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  358.     }
  359.     // line 206
  360.     public function block_title($context, array $blocks = [])
  361.     {
  362.         $macros $this->macros;
  363.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  364.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  365.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  366.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  367.         // line 208
  368.         $this->displayBlock("etabLieu"$context$blocks);
  369.         // line 209
  370.         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.'209$this->source); })()), "categoriePrimaire", [], "any"falsefalsefalse209)) ? ((" - " 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.'209$this->source); })()), "categoriePrimaire", [], "any"falsefalsefalse209), "libelle", [], "any"falsefalsefalse209))) : (""));
  371.         
  372.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  373.         
  374.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  375.     }
  376.     // line 213
  377.     public function block_description($context, array $blocks = [])
  378.     {
  379.         $macros $this->macros;
  380.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  381.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  382.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  383.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  384.         // line 215
  385.         $this->displayBlock("etabLieu"$context$blocks);
  386.         echo " ";
  387.         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.'215$this->source); })()), "motsCles", [], "any"falsefalsefalse215);
  388.         
  389.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  390.         
  391.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  392.     }
  393.     // line 225
  394.     public function block_body($context, array $blocks = [])
  395.     {
  396.         $macros $this->macros;
  397.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  398.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  399.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  400.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  401.         // line 226
  402.         echo "
  403. ";
  404.         // line 227
  405.         $context["imgAlt"] = twig_trim_filter(twig_join_filter([=> twig_get_attribute($this->env$this->source,         // line 228
  406. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'228$this->source); })()), "codePostal", [], "any"falsefalsefalse228), => ((twig_get_attribute($this->env$this->source,         // line 229
  407. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'229$this->source); })()), "ville", [], "any"falsefalsefalse229)) ? (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.'229$this->source); })()), "ville", [], "any"falsefalsefalse229), "libelle", [], "any"falsefalsefalse229)) : ("")), => twig_get_attribute($this->env$this->source,         // line 230
  408. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'230$this->source); })()), "denomination", [], "any"falsefalsefalse230)], " - "), " -");
  409.         // line 232
  410.         echo "
  411. <section class=\"container page-fiche ";
  412.         // line 233
  413.         echo twig_escape_filter($this->env, (((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'233$this->source); })())) ? ((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'233$this->source); })())) : ($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.'233$this->source); })()), "type", [], "any"falsefalsefalse233)))), "html"nulltrue);
  414.         echo "  \">
  415.     ";
  416.         // line 235
  417.         echo "
  418.     <div id=\"breadcrumb\">
  419.         ";
  420.         // line 237
  421.         $this->loadTemplate("_includes/breadcrumb-etablissement.html.twig""fiche/index.html.twig"237)->display(twig_to_array(["etablissement" =>         // line 238
  422. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'238$this->source); })())]));
  423.         // line 240
  424.         echo "    </div>
  425.     <div>
  426.         <header>
  427.             ";
  428.         // line 244
  429.         echo "            <div class=\"col\">
  430.                 ";
  431.         // line 246
  432.         echo "                <div class=\"container description-new mt-3 mb-3\">
  433.                     <div class=\"row align-items-center\">
  434.                         <div class=\"col-lg-2 col-md-2\" style=\"\">
  435.                             <div class=\"row g-0\">
  436.                                 <div class=\"col\">
  437.                                     <figure class=\"fiche-logo\">
  438.                                         ";
  439.         // line 252
  440.         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.'252$this->source); })()), "isClient", [], "any"falsefalsefalse252) && 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.'252$this->source); })()), "logo", [], "any"falsefalsefalse252))) {
  441.             // line 253
  442.             echo "                                            <img src=\"";
  443.             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.'253$this->source); })()), "logo", [], "any"falsefalsefalse253), "logoFile"), "etab_fiche_logo"), "html"nulltrue);
  444.             echo "\" alt=\"";
  445.             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.'253$this->source); })()), "html"nulltrue);
  446.             echo "\" title=\"";
  447.             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.'253$this->source); })()), "html"nulltrue);
  448.             echo "\">
  449.                                             ";
  450.             // line 254
  451.             $context["figure"] = $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.'254$this->source); })()), "logo", [], "any"falsefalsefalse254), "logoFile"), "etab_fiche_logo");
  452.             // line 255
  453.             echo "                                        ";
  454.         } else {
  455.             // line 256
  456.             echo "                                            <span class=\"no-logo\"></span>
  457.                                         ";
  458.         }
  459.         // line 258
  460.         echo "                                    </figure>
  461.                                 </div>
  462.                                 <div class=\"col-auto d-md-none text-end\">
  463.                                     ";
  464.         // line 262
  465.         echo "                                    <div class=\"text-center contact-btn-like-top\" onclick=\"document.getElementById('di-inline').scrollIntoView({ behavior: 'smooth' });\">
  466.                                         <div id=\"top-level1\">Besoin d'informations ?</div>
  467.                                         <div id=\"top-level2\">Contactez l'établissement</div>
  468.                                     </div>
  469.                                 </div>
  470.                             </div>
  471.                         </div>
  472.                         <div class=\"col-lg-10 col-md-10 col-sm-12\">
  473.                             <h1 class=\"denomination\">";
  474.         // line 270
  475.         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.'270$this->source); })()), "denomination", [], "any"falsefalsefalse270), "html"nulltrue);
  476.         echo "</h1>
  477.                             ";
  478.         // line 271
  479.         if (((!== twig_compare((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'271$this->source); })()), "fournisseur")) && (!== twig_compare((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'271$this->source); })()), "organisme")))) {
  480.             // line 272
  481.             echo "                            <div class=\"denomination-footer\">
  482.                                 ";
  483.             // line 273
  484.             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.'273$this->source); })()), "catholique", [], "any"falsefalsefalse273)) {
  485.                 echo "Enseignement catholique";
  486.             }
  487.             // line 274
  488.             echo "                                ";
  489.             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.'274$this->source); })()), "sousContrat", [], "any"falsefalsefalse274)) {
  490.                 echo "<span class=\"badge-sous-contrat\">Sous contrat</span>";
  491.             }
  492.             // line 275
  493.             echo "                            </div>
  494.                             ";
  495.         }
  496.         // line 277
  497.         echo "                        </div>
  498.                     </div>
  499.                 </div>
  500.                 ";
  501.         // line 282
  502.         echo "                <div class=\"container contact\">
  503.                     <div class=\"row contact-bloc \">
  504.                         <div class=\"col-lg-4\">
  505.                             ";
  506.         // line 286
  507.         echo "                            ";
  508.         $this->loadTemplate("fiche/_includes/diaporama.html.twig""fiche/index.html.twig"286)->display(twig_to_array(["etablissement" =>         // line 287
  509. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'287$this->source); })())]));
  510.         // line 289
  511.         echo "                        </div>
  512.                         <div class=\"col-lg-4 mt-4 mt-lg-0\">
  513.                             ";
  514.         // line 293
  515.         echo "                            ";
  516.         if (( !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.'293$this->source); })()), "chiffres", [], "any"falsefalsefalse293)) && (!== twig_compare(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.'293$this->source); })()), "chiffres", [], "any"falsefalsefalse293), "0")))) {
  517.             // line 294
  518.             echo "                            <div class=\"titre-haut-1\">Quelques chiffres</div>
  519.                             <ul class=\"list-unstyled liste-chiffres\">
  520.                                 ";
  521.             // line 296
  522.             echo $this->extensions['App\Twig\DonneeComplementaireExtension']->enQuelquesChiffres(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.'296$this->source); })()), "chiffres", [], "any"falsefalsefalse296));
  523.             echo "
  524.                             </ul>
  525.                             ";
  526.         } elseif (( !twig_test_empty(twig_get_attribute($this->env$this->source,         // line 298
  527. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'298$this->source); })()), "getData", [], "any"falsefalsefalse298)) && (!== twig_compare(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.'298$this->source); })()), "chiffres", [], "any"falsefalsefalse298), "0")))) {
  528.             // line 299
  529.             echo "                            <div class=\"titre-haut-1\">Quelques chiffres</div>
  530.                             <ul class=\"list-unstyled liste-chiffres\">
  531.                                 ";
  532.             // line 301
  533.             $context['_parent'] = $context;
  534.             $context['_seq'] = twig_ensure_traversable(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.'301$this->source); })()), "getData", [], "any"falsefalsefalse301));
  535.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  536.                 // line 302
  537.                 echo "                                <li>";
  538.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "label", [], "any"falsefalsefalse302), "html"nulltrue);
  539.                 echo ": <b>";
  540.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "value", [], "any"falsefalsefalse302), "html"nulltrue);
  541.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "suffix", [], "any"falsefalsefalse302), "html"nulltrue);
  542.                 echo "</b> </li>
  543.                                 ";
  544.             }
  545.             $_parent $context['_parent'];
  546.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  547.             $context array_intersect_key($context$_parent) + $_parent;
  548.             // line 304
  549.             echo "                            </ul>
  550.                             ";
  551.         }
  552.         // line 306
  553.         echo "                            
  554.                             ";
  555.         // line 308
  556.         echo "                            <div class=\"coords\">
  557.                                 ";
  558.         // line 309
  559.         $this->loadTemplate("fiche/_includes/address.html.twig""fiche/index.html.twig"309)->display(twig_to_array(["etablissement" =>         // line 310
  560. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'310$this->source); })())]));
  561.         // line 312
  562.         echo "                            </div>
  563.                             ";
  564.         // line 314
  565.         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.'314$this->source); })()), "isClient", [], "any"falsefalsefalse314)) {
  566.             // line 315
  567.             echo "                            ";
  568.             // line 316
  569.             echo "                            ";
  570.             $this->loadTemplate("fiche/_includes/infos.html.twig""fiche/index.html.twig"316)->display($context);
  571.             // line 317
  572.             echo "                            ";
  573.         }
  574.         // line 318
  575.         echo "
  576.                             ";
  577.         // line 319
  578.         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.'319$this->source); })()), "isClient", [], "any"falsefalsefalse319) || 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.'319$this->source); })()), "typeClient", [], "any"falsefalsefalse319), [=> "organisme"=> "fournisseur"]))) {
  579.             // line 320
  580.             echo "                            ";
  581.             // line 321
  582.             echo "                            <div class=\"contact-btn-like text-center\" onclick=\"document.getElementById('di-inline').scrollIntoView({ behavior: 'smooth' });\">
  583.                                 <div id=\"level1\">Besoin d'informations ?</div>
  584.                                 <div id=\"level2\">Contactez l'établissement</div>
  585.                             </div>
  586.                             ";
  587.         }
  588.         // line 326
  589.         echo "
  590.                             ";
  591.         // line 327
  592.         $this->loadTemplate("fiche/_includes/telephone-payant.html.twig""fiche/index.html.twig"327)->display(twig_to_array(["etablissement" => (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'327$this->source); })())]));
  593.         // line 328
  594.         echo "                        </div>
  595.                         <div class=\"col-lg-4 carte mt-4 mt-lg-0\">
  596.                             ";
  597.         // line 332
  598.         echo "                            ";
  599.         if (( !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.'332$this->source); })()), "latitude", [], "any"falsefalsefalse332)) &&  !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.'332$this->source); })()), "longitude", [], "any"falsefalsefalse332)))) {
  600.             // line 333
  601.             echo "                            <div id=\"static-map\" style=\"min-height: 260px; height: 100%;\" class=\"d-none d-lg-block\">
  602.                                 
  603.                                
  604.                                     <div id=\"mapzero\" style=\"width: 100%; height: 100%;\">La carte de l'établissement...</div>
  605.                                     <div class=\"itineraire-map\">
  606.                                         <a href=\"";
  607.             // line 338
  608.             echo twig_escape_filter($this->env, (((("https://www.google.com/maps/dir/?api=1&destination=" 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.'338$this->source); })()), "latitude", [], "any"falsefalsefalse338)) . "%2C") . 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.'338$this->source); })()), "longitude", [], "any"falsefalsefalse338)) . "&dir_action=navigate"), "html"nulltrue);
  609.             echo "\" class=\"itineraire\" target=\"_blank\" rel=\"noopener\">
  610.                                         Itinéraire
  611.                                         </a>
  612.                                     </div>
  613.                                     
  614.                                 <span class=\"map_marker\"></span>
  615.                             </div>
  616.                             ";
  617.         }
  618.         // line 346
  619.         echo "                        </div>
  620.                     </div>
  621.                 </div> 
  622.             </div>
  623.             <div class=\"d-block d-lg-none d-xl-none mb-4\">
  624.                 ";
  625.         // line 351
  626.         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.'351$this->source); })()), "isClient", [], "any"falsefalsefalse351)) {
  627.             // line 352
  628.             echo "                    ";
  629.             // line 353
  630.             echo "                    ";
  631.             $this->loadTemplate("fiche/_includes/diplomes.html.twig""fiche/index.html.twig"353)->display($context);
  632.             // line 354
  633.             echo "                ";
  634.         }
  635.         // line 355
  636.         echo "            </div>
  637.            
  638.             <div class=\"d-none d-lg-block d-xl-block w-100\">
  639.                 ";
  640.         // line 358
  641.         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.'358$this->source); })()), "isClient", [], "any"falsefalsefalse358)) {
  642.             // line 359
  643.             echo "                    ";
  644.             // line 360
  645.             echo "                    ";
  646.             $this->loadTemplate("fiche/_includes/diplomes.html.twig""fiche/index.html.twig"360)->display($context);
  647.             // line 361
  648.             echo "                ";
  649.         }
  650.         // line 362
  651.         echo "            </div>
  652.         </header>
  653.     </div>
  654.     <div class=\"wrap mt-4\">
  655.         <section class=\"content\">
  656.             <article>
  657.             ";
  658.         // line 370
  659.         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.'370$this->source); })()), "isClient", [], "any"falsefalsefalse370) || 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.'370$this->source); })()), "typeClient", [], "any"falsefalsefalse370), [=> "organisme"=> "fournisseur"]))) {
  660.             // line 371
  661.             echo "
  662.                 ";
  663.             // line 373
  664.             echo "                ";
  665.             $this->loadTemplate("fiche/_includes/insertion.html.twig""fiche/index.html.twig"373)->display($context);
  666.             // line 374
  667.             echo "                <span id=\"di-inline-mobile\"></span>
  668.                 ";
  669.             // line 377
  670.             echo "                <div class=\"fiche-coords d-none d-lg-flex\">
  671.                   ";
  672.             // line 378
  673.             if ((=== twig_compare((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'378$this->source); })()), "fournisseur"))) {
  674.                 // line 379
  675.                 echo "                  <div class=\"form\">
  676.                       ";
  677.                 // line 380
  678.                 $this->loadTemplate("_includes/lien-masque.html.twig""fiche/index.html.twig"380)->display(twig_to_array(["target" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("form-di", ["id" => twig_get_attribute($this->env$this->source,                 // line 381
  679. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'381$this->source); })()), "id", [], "any"falsefalsefalse381)]), "content" => "Contacter le fournisseur"]));
  680.                 // line 384
  681.                 echo "                    </div>
  682.                   ";
  683.             } elseif ((=== twig_compare(            // line 385
  684. (isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'385$this->source); })()), "organisme"))) {
  685.                 // line 386
  686.                 echo "                  <div class=\"form\">
  687.                       ";
  688.                 // line 387
  689.                 $this->loadTemplate("_includes/lien-masque.html.twig""fiche/index.html.twig"387)->display(twig_to_array(["target" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("form-di", ["id" => twig_get_attribute($this->env$this->source,                 // line 388
  690. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'388$this->source); })()), "id", [], "any"falsefalsefalse388)]), "content" => "Contacter l'organisme"]));
  691.                 // line 391
  692.                 echo "                      </div>
  693.                   ";
  694.             } else {
  695.                 // line 392
  696.                 echo " ";
  697.                 // line 393
  698.                 echo "                      ";
  699.                 $this->loadTemplate("fiche/_includes/static-slider.html.twig""fiche/index.html.twig"393)->display($context);
  700.                 echo "                      
  701.                   ";
  702.             }
  703.             // line 395
  704.             echo "                </div>
  705.             ";
  706.         } else {
  707.             // line 397
  708.             echo "
  709.                 ";
  710.             // line 399
  711.             echo "                ";
  712.             $this->loadTemplate("fiche/_includes/options-non-participant.html.twig""fiche/index.html.twig"399)->display($context);
  713.             // line 400
  714.             echo "            ";
  715.         }
  716.         // line 401
  717.         echo "            </article>
  718.             ";
  719.         // line 404
  720.         echo "            ";
  721.         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.'404$this->source); })()), "isClient", [], "any"falsefalsefalse404) && 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.'404$this->source); })()), "typeClient", [], "any"falsefalsefalse404), [=> "établissement"=> "internat"]))) {
  722.             // line 405
  723.             echo "                ";
  724.             $this->loadTemplate("fiche/_includes/etablissements-proches-prospect.html.twig""fiche/index.html.twig"405)->display(twig_to_array(["etablissement" =>             // line 406
  725. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'406$this->source); })()), "etablissementsProches" =>             // line 407
  726. (isset($context["etablissementsProches"]) || array_key_exists("etablissementsProches"$context) ? $context["etablissementsProches"] : (function () { throw new RuntimeError('Variable "etablissementsProches" does not exist.'407$this->source); })())]));
  727.             // line 409
  728.             echo "            ";
  729.         }
  730.         // line 410
  731.         echo "
  732.             ";
  733.         // line 411
  734.         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.'411$this->source); })()), "typeClient", [], "any"falsefalsefalse411), [=> "établissement"=> "internat"])) {
  735.             // line 412
  736.             echo "                ";
  737.             $this->loadTemplate("fiche/_includes/etablissements-du-meme-groupe.html.twig""fiche/index.html.twig"412)->display($context);
  738.             // line 413
  739.             echo "            ";
  740.         }
  741.         // line 414
  742.         echo "
  743.             ";
  744.         // line 416
  745.         echo "            <div class=\"fiche-module informations-contact\">
  746.                 <h2 id=\"informations-contact\">Autres contacts établissement</h2>
  747.                 <ul class=\"list-unstyled card-two-columns-old\">
  748.                     <li>
  749.                         ";
  750.         // line 420
  751.         $this->loadTemplate("fiche/_includes/telephone.html.twig""fiche/index.html.twig"420)->display(twig_to_array(["etablissement" =>         // line 421
  752. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'421$this->source); })())]));
  753.         // line 423
  754.         echo "                    </li>
  755.                     ";
  756.         // line 424
  757.         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.'424$this->source); })()), "isClient", [], "any"falsefalsefalse424)) {
  758.             // line 425
  759.             echo "                    <li class=\"website\">
  760.                         ";
  761.             // line 426
  762.             $this->loadTemplate("fiche/_includes/siteweb.html.twig""fiche/index.html.twig"426)->display(twig_to_array(["etablissement" =>             // line 427
  763. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'427$this->source); })())]));
  764.             // line 429
  765.             echo "                    </li>
  766.                     <li class=\"facebook\">
  767.                         ";
  768.             // line 431
  769.             $this->loadTemplate("fiche/_includes/facebook.html.twig""fiche/index.html.twig"431)->display(twig_to_array(["etablissement" =>             // line 432
  770. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'432$this->source); })())]));
  771.             // line 434
  772.             echo "                    ";
  773.         }
  774.         // line 435
  775.         echo "                    </li>
  776.                 </ul>
  777.             </div>
  778.             ";
  779.         // line 440
  780.         echo "            ";
  781.         $this->displayBlock('contexte'$context$blocks);
  782.         // line 443
  783.         echo "
  784.         </section>
  785.         <aside>
  786.             ";
  787.         // line 446
  788.         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.'446$this->source); })()), "isClient", [], "any"falsefalsefalse446)) {
  789.             // line 447
  790.             echo "                ";
  791.             $this->loadTemplate("fiche/_includes/form-contacter-etablissement.html.twig""fiche/index.html.twig"447)->display($context);
  792.             // line 448
  793.             echo "            ";
  794.         }
  795.         // line 449
  796.         echo "
  797.             <div class=\"last-flex\">
  798.                 ";
  799.         // line 451
  800.         $this->loadTemplate("annuaire/_includes/lien-guide.html.twig""fiche/index.html.twig"451)->display($context);
  801.         // line 452
  802.         echo "
  803.                 ";
  804.         // line 453
  805.         if ((=== twig_compare(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.'453$this->source); })()), "participant", [], "any"falsefalsefalse453), false))) {
  806.             // line 454
  807.             echo "                ";
  808.             $this->loadTemplate("_includes/banners-list.html.twig""fiche/index.html.twig"454)->display(twig_to_array(["emplacement" => []]));
  809.             // line 457
  810.             echo "                ";
  811.         }
  812.         // line 458
  813.         echo "
  814.                 ";
  815.         // line 459
  816.         $this->loadTemplate("_includes/newsletter.html.twig""fiche/index.html.twig"459)->display($context);
  817.         // line 460
  818.         echo "                ";
  819.         $this->loadTemplate("_includes/last-search.html.twig""fiche/index.html.twig"460)->display($context);
  820.         // line 461
  821.         echo "                ";
  822.         $this->loadTemplate("_includes/last-establishment.html.twig""fiche/index.html.twig"461)->display($context);
  823.         // line 462
  824.         echo "            </div>
  825.         </aside>
  826.     </div>
  827. </section>
  828. ";
  829.         // line 468
  830.         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.'468$this->source); })()), "isClient", [], "any"falsefalsefalse468) && 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.'468$this->source); })()), "typeClient", [], "any"falsefalsefalse468), [=> "établissement"=> "internat"]))) {
  831.             // line 469
  832.             echo "    ";
  833.             $this->loadTemplate("fiche/_includes/etablissements-proches-client.html.twig""fiche/index.html.twig"469)->display(twig_to_array(["quoi" => twig_get_attribute($this->env$this->source,             // line 470
  834. (isset($context["contexte"]) || array_key_exists("contexte"$context) ? $context["contexte"] : (function () { throw new RuntimeError('Variable "contexte" does not exist.'470$this->source); })()), "quoi", [], "any"falsefalsefalse470), "lieu" => twig_get_attribute($this->env$this->source,             // line 471
  835. (isset($context["contexte"]) || array_key_exists("contexte"$context) ? $context["contexte"] : (function () { throw new RuntimeError('Variable "contexte" does not exist.'471$this->source); })()), "lieu", [], "any"falsefalsefalse471), "etablissement" =>             // line 472
  836. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'472$this->source); })()), "etablissementsProches" =>             // line 473
  837. (isset($context["etablissementsProches"]) || array_key_exists("etablissementsProches"$context) ? $context["etablissementsProches"] : (function () { throw new RuntimeError('Variable "etablissementsProches" does not exist.'473$this->source); })())]));
  838.         }
  839.         // line 476
  840.         echo "
  841. ";
  842.         
  843.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  844.         
  845.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  846.     }
  847.     // line 440
  848.     public function block_contexte($context, array $blocks = [])
  849.     {
  850.         $macros $this->macros;
  851.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  852.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contexte"));
  853.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  854.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contexte"));
  855.         // line 441
  856.         echo "                ";
  857.         $this->loadTemplate("fiche/_includes/contexte-recherche.html.twig""fiche/index.html.twig"441)->display(twig_to_array((isset($context["contexte"]) || array_key_exists("contexte"$context) ? $context["contexte"] : (function () { throw new RuntimeError('Variable "contexte" does not exist.'441$this->source); })())));
  858.         // line 442
  859.         echo "            ";
  860.         
  861.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  862.         
  863.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  864.     }
  865.     // line 479
  866.     public function block_data_layer($context, array $blocks = [])
  867.     {
  868.         $macros $this->macros;
  869.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  870.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""data_layer"));
  871.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  872.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""data_layer"));
  873.         // line 480
  874.         echo "<script>
  875. // 1. Contexte global de la page
  876. dataLayer.push(";
  877.         // line 482
  878.         echo json_encode(["event" => "page_context""page_type" => "fiche_etablissement""fiche_type" => twig_get_attribute($this->env$this->source,         // line 485
  879. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'485$this->source); })()), "typeClient", [], "any"falsefalsefalse485), "site_section" => "annuaire""education_niveau" => $this->extensions['App\Twig\TypeOngletExtension']->type(twig_get_attribute($this->env$this->source,         // line 488
  880. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'488$this->source); })()), "type", [], "any"falsefalsefalse488)), "education_sous_niveau" => null"region" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 491
  881. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'491$this->source); })()), "ville", [], "any"falsefalsefalse491), "departement", [], "any"falsefalsefalse491), "region", [], "any"falsefalsefalse491), "libelle", [], "any"falsefalsefalse491), "departement" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 492
  882. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'492$this->source); })()), "ville", [], "any"falsefalsefalse492), "departement", [], "any"falsefalsefalse492), "id", [], "any"falsefalsefalse492), "ville" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 493
  883. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'493$this->source); })()), "ville", [], "any"falsefalsefalse493), "libelle", [], "any"falsefalsefalse493), "code_postal" => twig_get_attribute($this->env$this->source,         // line 494
  884. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'494$this->source); })()), "codePostal", [], "any"falsefalsefalse494), "etablissement_id" => twig_get_attribute($this->env$this->source,         // line 496
  885. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'496$this->source); })()), "id", [], "any"falsefalsefalse496), "etablissement_nom" => twig_get_attribute($this->env$this->source,         // line 497
  886. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'497$this->source); })()), "denomination", [], "any"falsefalsefalse497), "etablissement_segment" => ((twig_get_attribute($this->env$this->source,         // line 498
  887. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'498$this->source); })()), "isClient", [], "any"falsefalsefalse498)) ? ("client") : ("prospect")), "contrat_type" => ((twig_get_attribute($this->env$this->source,         // line 499
  888. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'499$this->source); })()), "sousContrat", [], "any"falsefalsefalse499)) ? ("sous_contrat") : ("hors_contrat"))], twig_constant("JSON_UNESCAPED_UNICODE"));
  889.         // line 500
  890.         echo ");
  891. // 2. Événement métier : vue d’un établissement
  892. dataLayer.push({ ecommerce: null });
  893. dataLayer.push(";
  894.         // line 504
  895.         echo json_encode(["event" => "view_item""ecommerce" => ["items" => [=> ["item_id" => twig_get_attribute($this->env$this->source,         // line 509
  896. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'509$this->source); })()), "id", [], "any"falsefalsefalse509), "item_name" => twig_get_attribute($this->env$this->source,         // line 510
  897. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'510$this->source); })()), "denomination", [], "any"falsefalsefalse510), "item_category" => twig_get_attribute($this->env$this->source,         // line 511
  898. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'511$this->source); })()), "typeClient", [], "any"falsefalsefalse511), "item_category2" => $this->extensions['App\Twig\TypeOngletExtension']->type(twig_get_attribute($this->env$this->source,         // line 512
  899. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'512$this->source); })()), "type", [], "any"falsefalsefalse512)), "item_category3" => null"item_category4" => ((twig_get_attribute($this->env$this->source,         // line 514
  900. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'514$this->source); })()), "sousContrat", [], "any"falsefalsefalse514)) ? ("sous_contrat") : ("hors_contrat")), "location_id" => ((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 515
  901. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'515$this->source); })()), "ville", [], "any"falsefalsefalse515), "departement", [], "any"falsefalsefalse515), "id", [], "any"falsefalsefalse515) . "-") . 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.'515$this->source); })()), "codePostal", [], "any"falsefalsefalse515)) . "-") . 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.'515$this->source); })()), "ville", [], "any"falsefalsefalse515), "libelle", [], "any"falsefalsefalse515))]]]], twig_constant("JSON_UNESCAPED_UNICODE"));
  902.         // line 519
  903.         echo ");
  904. </script>
  905. ";
  906.         // line 522
  907.         if ((isset($context["diEnvoyee"]) || array_key_exists("diEnvoyee"$context) ? $context["diEnvoyee"] : (function () { throw new RuntimeError('Variable "diEnvoyee" does not exist.'522$this->source); })())) {
  908.             // line 523
  909.             echo "<script>
  910.     dataLayer.push(";
  911.             // line 524
  912.             echo json_encode(["event" => "lead_demande_information""etablissement_id" => twig_get_attribute($this->env$this->source,             // line 526
  913. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'526$this->source); })()), "id", [], "any"falsefalsefalse526), "etablissement_nom" => twig_get_attribute($this->env$this->source,             // line 527
  914. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'527$this->source); })()), "denomination", [], "any"falsefalsefalse527), "etablissement_segment" => "client"], twig_constant("JSON_UNESCAPED_UNICODE"));
  915.             // line 529
  916.             echo ");
  917. </script>
  918. ";
  919.         }
  920.         
  921.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  922.         
  923.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  924.     }
  925.     public function getTemplateName()
  926.     {
  927.         return "fiche/index.html.twig";
  928.     }
  929.     public function isTraitable()
  930.     {
  931.         return false;
  932.     }
  933.     public function getDebugInfo()
  934.     {
  935.         return array (  998 => 529,  996 => 527,  995 => 526,  994 => 524,  991 => 523,  989 => 522,  984 => 519,  982 => 515,  981 => 514,  980 => 512,  979 => 511,  978 => 510,  977 => 509,  976 => 504,  970 => 500,  968 => 499,  967 => 498,  966 => 497,  965 => 496,  964 => 494,  963 => 493,  962 => 492,  961 => 491,  960 => 488,  959 => 485,  958 => 482,  954 => 480,  944 => 479,  934 => 442,  931 => 441,  921 => 440,  910 => 476,  907 => 473,  906 => 472,  905 => 471,  904 => 470,  902 => 469,  900 => 468,  893 => 462,  890 => 461,  887 => 460,  885 => 459,  882 => 458,  879 => 457,  876 => 454,  874 => 453,  871 => 452,  869 => 451,  865 => 449,  862 => 448,  859 => 447,  857 => 446,  852 => 443,  849 => 440,  843 => 435,  840 => 434,  838 => 432,  837 => 431,  833 => 429,  831 => 427,  830 => 426,  827 => 425,  825 => 424,  822 => 423,  820 => 421,  819 => 420,  813 => 416,  810 => 414,  807 => 413,  804 => 412,  802 => 411,  799 => 410,  796 => 409,  794 => 407,  793 => 406,  791 => 405,  788 => 404,  784 => 401,  781 => 400,  778 => 399,  775 => 397,  771 => 395,  765 => 393,  763 => 392,  759 => 391,  757 => 388,  756 => 387,  753 => 386,  751 => 385,  748 => 384,  746 => 381,  745 => 380,  742 => 379,  740 => 378,  737 => 377,  733 => 374,  730 => 373,  727 => 371,  725 => 370,  715 => 362,  712 => 361,  709 => 360,  707 => 359,  705 => 358,  700 => 355,  697 => 354,  694 => 353,  692 => 352,  690 => 351,  683 => 346,  672 => 338,  665 => 333,  662 => 332,  657 => 328,  655 => 327,  652 => 326,  645 => 321,  643 => 320,  641 => 319,  638 => 318,  635 => 317,  632 => 316,  630 => 315,  628 => 314,  624 => 312,  622 => 310,  621 => 309,  618 => 308,  615 => 306,  611 => 304,  599 => 302,  595 => 301,  591 => 299,  589 => 298,  584 => 296,  580 => 294,  577 => 293,  572 => 289,  570 => 287,  568 => 286,  563 => 282,  557 => 277,  553 => 275,  548 => 274,  544 => 273,  541 => 272,  539 => 271,  535 => 270,  525 => 262,  520 => 258,  516 => 256,  513 => 255,  511 => 254,  502 => 253,  500 => 252,  492 => 246,  489 => 244,  484 => 240,  482 => 238,  481 => 237,  477 => 235,  473 => 233,  470 => 232,  468 => 230,  467 => 229,  466 => 228,  465 => 227,  462 => 226,  452 => 225,  440 => 215,  430 => 213,  420 => 209,  418 => 208,  408 => 206,  393 => 200,  391 => 199,  386 => 198,  384 => 197,  380 => 196,  370 => 194,  358 => 179,  356 => 161,  328 => 134,  313 => 120,  307 => 115,  300 => 113,  290 => 109,  283 => 107,  273 => 102,  262 => 93,  260 => 92,  233 => 67,  216 => 54,  213 => 53,  203 => 52,  190 => 45,  186 => 42,  174 => 32,  171 => 31,  161 => 30,  146 => 23,  142 => 22,  138 => 21,  133 => 19,  129 => 18,  122 => 14,  118 => 13,  114 => 12,  110 => 11,  106 => 10,  100 => 7,  94 => 3,  84 => 2,  73 => 1,  71 => 220,  68 => 191,  66 => 190,  64 => 189,  62 => 188,  60 => 187,  58 => 186,  56 => 185,  43 => 1,);
  936.     }
  937.     public function getSourceContext()
  938.     {
  939.         return new Source("{% extends 'base.html.twig' %}
  940. {% block head %}
  941.     <script type=\"application/ld+json\">
  942.         {
  943.             \"@context\": \"https://schema.org\",
  944.             \"@type\": \"School\",
  945.             \"name\": \"{{ etablissement.denomination }}\",
  946.             \"address\": {
  947.                 \"@type\": \"PostalAddress\",
  948.                 \"streetAddress\":\"{{ etablissement.adresse2 }}\",
  949.                 \"addressLocality\": \"{{etablissement.ville.departement.libelle}}\",
  950.                 \"addressRegion\": \"{{ etablissement.region.id }}\",
  951.                 \"postalCode\": \"{{ etablissement.codePostal }}\",
  952.                 \"addressCountry\": \"{{ etablissement.region.pays.id }}\"
  953.             },
  954.             \"geo\": {
  955.                 \"@type\": \"GeoCoordinates\",
  956.                 \"latitude\": \"{{ etablissement.latitude }}\",
  957.                 \"longitude\": \"{{ etablissement.longitude }}\"
  958.             },
  959.             \"url\": \"{{ etablissement.url }}\",
  960.             \"telephone\": \"{{ etablissement.telephonePrincipal }}\",
  961.             \"email\" : \"{{ etablissement.emailPrincipal }}\"
  962.         }
  963.     </script>
  964. {% endblock %}
  965. {% block stylesheets %}
  966.     {% if etablissement.autoriseTelephonePayant %}
  967.         <link rel=\"preload\" href=\"https://wshiconnect.mediakiosque.com/hiconnectjs/css/style-1.0.2.css\" as=\"style\" onload=\"this.rel='stylesheet'\">
  968.         <noscript><link rel=\"stylesheet\" href=\"https://wshiconnect.mediakiosque.com/hiconnectjs/css/style-1.0.2.css\"></noscript>
  969.         <style>
  970.         .showNumberBtn .btn.green {
  971.             background: #fff !important;
  972.             all: unset;
  973.         }
  974.         </style>
  975.     {% endif %}
  976.     <link rel=\"stylesheet\" href=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.css\" crossorigin=\"\"/>
  977.     {# Btn Sticky sur mobile #}
  978.     <style>
  979.     
  980.     </style>
  981. {% endblock %}
  982. {# ----- javascripts -------------------------------------------------------- #}
  983. {% block javascripts %}
  984.     {% if etablissement.autoriseTelephonePayant %}
  985.         <script type=\"text/javascript\" src=\"https://wshiconnect.mediakiosque.com/hiconnectjs/js/hmd_hiconnect-2.0.0-{{ hiConnectJskey }}.js?jquery=no\" defer></script>
  986.         <script>
  987.             var hiConnectInterval = setInterval(function() {
  988.             if (typeof(jQuery) !== 'undefined' && typeof(\$.fn.hmdHiconnect) !== 'undefined') {
  989.                 clearInterval(hiConnectInterval);
  990.                 \$(document).ready(function(\$) {
  991.                     \$('.hmd_hiconnect').hmdHiconnect();
  992.                 });
  993.             }
  994.         }, 100);
  995.         </script>
  996.     {% endif %}
  997.     <script>
  998.         // Character counter
  999.         var textarea = document.querySelector(\"textarea\");
  1000.         var maxlength = textarea.getAttribute(\"maxlength\");
  1001.         document.getElementById('textarea_feedback').innerHTML = maxlength + \" caractères restants\";
  1002.         textarea.addEventListener(\"input\", function(){
  1003.             var maxlength = this.getAttribute(\"maxlength\");
  1004.             var currentLength = this.value.length;
  1005.             if( currentLength > maxlength ){
  1006.                 message = \"Pas plus de \" + maxlength + \" caractères SVP.\";
  1007.                 return;
  1008.             }else{
  1009.                 message = maxlength - currentLength + \"  caractères restants\";
  1010.             }
  1011.             document.getElementById('textarea_feedback').innerHTML = message;
  1012.         });
  1013.     </script>
  1014.     <script src=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js\" crossorigin=\"\"></script>
  1015.     <script>
  1016.         // Map affichée directement dans la fiche
  1017.         {% if not etablissement.isClient %}
  1018.         const mapzero = L.map('mapzero', {
  1019.             zoomControl: false,
  1020.             dragging: false,
  1021.             scrollWheelZoom: false,
  1022.             doubleClickZoom: false,
  1023.             boxZoom: false,
  1024.             keyboard: false,
  1025.             tap: false,
  1026.             touchZoom: false,
  1027.         }).setView([{{etablissement.latitude}}, {{etablissement.longitude}}], 15);
  1028.         L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
  1029.             attribution: '',
  1030.             interactive: false
  1031.         }).addTo(mapzero);
  1032.         L.marker([{{etablissement.latitude}}, {{etablissement.longitude}}], {interactive: false}).addTo(mapzero);
  1033.         {% else %}
  1034.         const mapzero = L.map('mapzero').setView([{{etablissement.latitude}}, {{etablissement.longitude}}], 15);
  1035.         L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
  1036.             attribution: ''
  1037.         }).addTo(mapzero);
  1038.         L.marker([{{etablissement.latitude}}, {{etablissement.longitude}}]).addTo(mapzero);
  1039.         {% endif %}
  1040.     </script>
  1041.     
  1042.     <script>
  1043.     {# Afficher le bouton \"Contacter l'étab\" au scroll sur la fiche établissement après 20% de scroll #}
  1044.     (function () {
  1045.     const btn = document.querySelector('.container.page-fiche .contact-btn-like');
  1046.     if (!btn) return;
  1047.     window.addEventListener('scroll', () => {
  1048.         const scrolled = window.scrollY;
  1049.         const docHeight = document.documentElement.scrollHeight - window.innerHeight;
  1050.         const percent = (scrolled / docHeight) * 100;
  1051.         btn.classList.toggle('is-visible', percent >= 10); // Pourcentage de scroll avant d'afficher le bouton
  1052.     }, { passive: true });
  1053.     })();
  1054.     {# Cacher le btn quand le form est visible #}
  1055.     (function() {
  1056.         const el = document.getElementById('di-inline-mobile'); // ton élément
  1057.         if (!el) {
  1058.             console.log('Élément introuvable !');
  1059.             return;
  1060.         }
  1061.         const observer = new IntersectionObserver(
  1062.             ([entry]) => {
  1063.                 const btn = document.querySelector('.container.page-fiche .contact-btn-like');
  1064.                 if (entry.isIntersecting) {
  1065.                     // console.log('Élément VISIBLE à l’écran');
  1066.                     btn.classList.add('d-none');
  1067.                 } else {
  1068.                     // console.log('Élément NON visible à l’écran');
  1069.                     btn.classList.remove('d-none');
  1070.                 }
  1071.             },
  1072.             {
  1073.             threshold: 0.2 // déclenche dès que 20% de l’élément est visible
  1074.             }
  1075.         );
  1076.         observer.observe(el);
  1077.     })();
  1078.     {# déplacer la carte après le formulaire, en version mobile #}
  1079.     {#
  1080.     document.addEventListener('DOMContentLoaded', function() {
  1081.         const staticMap = document.getElementById('static-map');
  1082.         const diInline = document.getElementById('di-inline-mobile');
  1083.         function moveMap() {
  1084.             if (window.innerWidth <= 767 && staticMap && diInline) {
  1085.                 // Vérifie si la map n'est pas déjà déplacée
  1086.                 if (!diInline.nextElementSibling || diInline.nextElementSibling.id !== 'static-map') {
  1087.                     diInline.insertAdjacentElement('afterend', staticMap);
  1088.                 }
  1089.             }
  1090.         }
  1091.         moveMap();
  1092.         window.addEventListener('resize', moveMap);
  1093.     });
  1094.     #}
  1095.     </script>
  1096. {% endblock %}
  1097. {# ----- title, description et autres metadatas ----------------------------- #}
  1098. {% set type = \"\" %}
  1099. {% if etablissement.typeClient == 'internat' %}
  1100.     {% set type = \"internat\" %}
  1101. {% elseif etablissement.typeClient == 'organisme' %}
  1102.     {% set type = \"organisme\" %}
  1103. {% elseif etablissement.typeClient == 'fournisseur' %}
  1104.     {% set type = \"fournisseur\" %}
  1105. {% endif %}
  1106. {%- block etabLieu -%}
  1107.     {%- autoescape false -%}
  1108.         {{ etablissement.denomination }} - {{ etablissement.codePostal }}
  1109.         {%- if etablissement.ville %}
  1110.             {%- if etablissement.ville.libelle %} {{  etablissement.ville.libelle -}}{%- endif -%}
  1111.             {%- if etablissement.ville.departement and etablissement.ville.departement.libelle -%}
  1112.                 - {{ etablissement.ville.departement.id }} {{ etablissement.ville.departement.libelle -}}
  1113.             {%- endif -%}
  1114.         {%- endif -%}
  1115.     {%- endautoescape -%}
  1116. {%- endblock -%}
  1117. {% block title -%}
  1118.     {%- autoescape false -%}
  1119.         {{- block('etabLieu') -}}
  1120.         {{- etablissement.categoriePrimaire ? ' - ' ~ etablissement.categoriePrimaire.libelle -}}
  1121.     {%- endautoescape -%}
  1122. {%- endblock %}
  1123. {% block description -%}
  1124. {%- autoescape false -%}
  1125. {{- block('etabLieu') }} {{ etablissement.motsCles -}}
  1126. {# {{- (etablissement.compileTexteReferencement | default(etablissement.motsCles)) | striptags | u.truncate(160, '...', false) -}} #}
  1127. {%- endautoescape -%}
  1128. {%- endblock %}
  1129. {% set siteLdJson = siteLdJson | merge(['etablissement']) %}
  1130. {# ----- contenu ------------------------------------------------------------ #}
  1131. {% block body %}
  1132. {% set imgAlt = [
  1133.     etablissement.codePostal,
  1134.     (etablissement.ville ? etablissement.ville.libelle : ''),
  1135.     etablissement.denomination,
  1136. ]|join(' - ')|trim(' -') %}
  1137. <section class=\"container page-fiche {{ type ? type : typeOnglet(etablissement.type) }}  \">
  1138.     {# ----- Breadcrumb ----------------------------------------------------- #}
  1139.     <div id=\"breadcrumb\">
  1140.         {% include '_includes/breadcrumb-etablissement.html.twig' with {
  1141.             'etablissement': etablissement,
  1142.         } only %}
  1143.     </div>
  1144.     <div>
  1145.         <header>
  1146.             {# <div class=\"col-12 col-lg-6 d-left\"> #}
  1147.             <div class=\"col\">
  1148.                 {# Logo + Dénomination #}
  1149.                 <div class=\"container description-new mt-3 mb-3\">
  1150.                     <div class=\"row align-items-center\">
  1151.                         <div class=\"col-lg-2 col-md-2\" style=\"\">
  1152.                             <div class=\"row g-0\">
  1153.                                 <div class=\"col\">
  1154.                                     <figure class=\"fiche-logo\">
  1155.                                         {% if etablissement.isClient and etablissement.logo %}
  1156.                                             <img src=\"{{ vich_uploader_asset(etablissement.logo, 'logoFile') | imagine_filter('etab_fiche_logo') }}\" alt=\"{{ imgAlt }}\" title=\"{{ imgAlt }}\">
  1157.                                             {% set figure = vich_uploader_asset(etablissement.logo, 'logoFile') | imagine_filter('etab_fiche_logo') %}
  1158.                                         {% else %}
  1159.                                             <span class=\"no-logo\"></span>
  1160.                                         {% endif %}
  1161.                                     </figure>
  1162.                                 </div>
  1163.                                 <div class=\"col-auto d-md-none text-end\">
  1164.                                     {# Bouton de contact #}
  1165.                                     <div class=\"text-center contact-btn-like-top\" onclick=\"document.getElementById('di-inline').scrollIntoView({ behavior: 'smooth' });\">
  1166.                                         <div id=\"top-level1\">Besoin d'informations ?</div>
  1167.                                         <div id=\"top-level2\">Contactez l'établissement</div>
  1168.                                     </div>
  1169.                                 </div>
  1170.                             </div>
  1171.                         </div>
  1172.                         <div class=\"col-lg-10 col-md-10 col-sm-12\">
  1173.                             <h1 class=\"denomination\">{{ etablissement.denomination }}</h1>
  1174.                             {% if type != 'fournisseur' and type != 'organisme' %}
  1175.                             <div class=\"denomination-footer\">
  1176.                                 {% if etablissement.catholique %}Enseignement catholique{% endif %}
  1177.                                 {% if etablissement.sousContrat %}<span class=\"badge-sous-contrat\">Sous contrat</span>{% endif %}
  1178.                             </div>
  1179.                             {% endif %}
  1180.                         </div>
  1181.                     </div>
  1182.                 </div>
  1183.                 {# image étab + coords + btn \"contact\" + map #}
  1184.                 <div class=\"container contact\">
  1185.                     <div class=\"row contact-bloc \">
  1186.                         <div class=\"col-lg-4\">
  1187.                             {# ----- Diaporama/photo ---------------------------------------------- #}
  1188.                             {% include 'fiche/_includes/diaporama.html.twig' with {
  1189.                                 'etablissement': etablissement,
  1190.                             } only %}
  1191.                         </div>
  1192.                         <div class=\"col-lg-4 mt-4 mt-lg-0\">
  1193.                             {# ----- Quelques chiffres  ------------------------------------------ #}
  1194.                             {% if etablissement.chiffres is not empty and etablissement.chiffres != \"0\" %}
  1195.                             <div class=\"titre-haut-1\">Quelques chiffres</div>
  1196.                             <ul class=\"list-unstyled liste-chiffres\">
  1197.                                 {{ en_quelques_chiffres(etablissement.chiffres) | raw }}
  1198.                             </ul>
  1199.                             {% elseif etablissement.getData is not empty and etablissement.chiffres != \"0\" %}
  1200.                             <div class=\"titre-haut-1\">Quelques chiffres</div>
  1201.                             <ul class=\"list-unstyled liste-chiffres\">
  1202.                                 {% for item in etablissement.getData %}
  1203.                                 <li>{{item.label}}: <b>{{item.value}}{{item.suffix}}</b> </li>
  1204.                                 {% endfor %}
  1205.                             </ul>
  1206.                             {% endif %}
  1207.                             
  1208.                             {# ----- Adresse/Coordonnées (bloc \"Localisation\" )---------------------- #}
  1209.                             <div class=\"coords\">
  1210.                                 {% include 'fiche/_includes/address.html.twig' with {
  1211.                                     'etablissement': etablissement,
  1212.                                 } only %}
  1213.                             </div>
  1214.                             {% if etablissement.isClient %}
  1215.                             {# ----- JPO, actualité, offre d'emploi -- #}
  1216.                             {% include 'fiche/_includes/infos.html.twig' %}
  1217.                             {% endif %}
  1218.                             {% if etablissement.isClient or etablissement.typeClient in ['organisme', 'fournisseur'] %}
  1219.                             {# Bouton de contact #}
  1220.                             <div class=\"contact-btn-like text-center\" onclick=\"document.getElementById('di-inline').scrollIntoView({ behavior: 'smooth' });\">
  1221.                                 <div id=\"level1\">Besoin d'informations ?</div>
  1222.                                 <div id=\"level2\">Contactez l'établissement</div>
  1223.                             </div>
  1224.                             {% endif %}
  1225.                             {% include 'fiche/_includes/telephone-payant.html.twig' with {'etablissement': etablissement} only %}
  1226.                         </div>
  1227.                         <div class=\"col-lg-4 carte mt-4 mt-lg-0\">
  1228.                             {# ----- Carte ---------------------------------------------- #}
  1229.                             {% if etablissement.latitude is not empty and etablissement.longitude is not empty %}
  1230.                             <div id=\"static-map\" style=\"min-height: 260px; height: 100%;\" class=\"d-none d-lg-block\">
  1231.                                 
  1232.                                
  1233.                                     <div id=\"mapzero\" style=\"width: 100%; height: 100%;\">La carte de l'établissement...</div>
  1234.                                     <div class=\"itineraire-map\">
  1235.                                         <a href=\"{{\"https://www.google.com/maps/dir/?api=1&destination=\"~ etablissement.latitude ~\"%2C\"~ etablissement.longitude ~\"&dir_action=navigate\"}}\" class=\"itineraire\" target=\"_blank\" rel=\"noopener\">
  1236.                                         Itinéraire
  1237.                                         </a>
  1238.                                     </div>
  1239.                                     
  1240.                                 <span class=\"map_marker\"></span>
  1241.                             </div>
  1242.                             {% endif %}
  1243.                         </div>
  1244.                     </div>
  1245.                 </div> 
  1246.             </div>
  1247.             <div class=\"d-block d-lg-none d-xl-none mb-4\">
  1248.                 {% if etablissement.isClient %}
  1249.                     {# ----- Diplômes -- #}
  1250.                     {% include 'fiche/_includes/diplomes.html.twig' %}
  1251.                 {% endif %}
  1252.             </div>
  1253.            
  1254.             <div class=\"d-none d-lg-block d-xl-block w-100\">
  1255.                 {% if etablissement.isClient %}
  1256.                     {# ----- Diplômes -- #}
  1257.                     {% include 'fiche/_includes/diplomes.html.twig' %}
  1258.                 {% endif %}
  1259.             </div>
  1260.         </header>
  1261.     </div>
  1262.     <div class=\"wrap mt-4\">
  1263.         <section class=\"content\">
  1264.             <article>
  1265.             {% if etablissement.isClient or etablissement.typeClient in ['organisme', 'fournisseur'] %}
  1266.                 {# ----- Insertion -------------------------------------- #}
  1267.                 {% include 'fiche/_includes/insertion.html.twig'  %}
  1268.                 <span id=\"di-inline-mobile\"></span>
  1269.                 {# ----- Contacter établissement (bas de la fiche) ---------------- #}
  1270.                 <div class=\"fiche-coords d-none d-lg-flex\">
  1271.                   {% if type == 'fournisseur' %}
  1272.                   <div class=\"form\">
  1273.                       {% include '_includes/lien-masque.html.twig' with {
  1274.                           'target': path('form-di', {id : etablissement.id}),
  1275.                           'content': 'Contacter le fournisseur',
  1276.                       } only %}
  1277.                     </div>
  1278.                   {% elseif type == 'organisme' %}
  1279.                   <div class=\"form\">
  1280.                       {% include '_includes/lien-masque.html.twig' with {
  1281.                           'target': path('form-di', {id : etablissement.id}),
  1282.                           'content': 'Contacter l\\'organisme',
  1283.                       } only %}
  1284.                       </div>
  1285.                   {% else %} {# établissement ou internat #}
  1286.                       {% include 'fiche/_includes/static-slider.html.twig' %}                      
  1287.                   {% endif %}
  1288.                 </div>
  1289.             {% else %}
  1290.                 {# ----- Options pour non-participant ------------------- #}
  1291.                 {% include 'fiche/_includes/options-non-participant.html.twig' %}
  1292.             {% endif %}
  1293.             </article>
  1294.             {# ----- Recommandations ---------------------------------------- #}
  1295.             {% if not etablissement.isClient and etablissement.typeClient in ['établissement', 'internat'] %}
  1296.                 {% include 'fiche/_includes/etablissements-proches-prospect.html.twig' with {
  1297.                     'etablissement': etablissement,
  1298.                     'etablissementsProches': etablissementsProches,
  1299.                 } only %}
  1300.             {% endif %}
  1301.             {% if etablissement.typeClient in ['établissement', 'internat'] %}
  1302.                 {% include 'fiche/_includes/etablissements-du-meme-groupe.html.twig' %}
  1303.             {% endif %}
  1304.             {# ----- Informations de contact ---------------------------------------- #}
  1305.             <div class=\"fiche-module informations-contact\">
  1306.                 <h2 id=\"informations-contact\">Autres contacts établissement</h2>
  1307.                 <ul class=\"list-unstyled card-two-columns-old\">
  1308.                     <li>
  1309.                         {% include 'fiche/_includes/telephone.html.twig' with {
  1310.                             'etablissement': etablissement,
  1311.                         } only %}
  1312.                     </li>
  1313.                     {% if etablissement.isClient %}
  1314.                     <li class=\"website\">
  1315.                         {% include 'fiche/_includes/siteweb.html.twig' with {
  1316.                             'etablissement': etablissement,
  1317.                         } only %}
  1318.                     </li>
  1319.                     <li class=\"facebook\">
  1320.                         {% include 'fiche/_includes/facebook.html.twig' with {
  1321.                             'etablissement': etablissement,
  1322.                         } only %}
  1323.                     {% endif %}
  1324.                     </li>
  1325.                 </ul>
  1326.             </div>
  1327.             {# ----- Contexte recherche --------------------------------------------- #}
  1328.             {% block contexte %}
  1329.                 {% include 'fiche/_includes/contexte-recherche.html.twig' with contexte only %}
  1330.             {% endblock %}
  1331.         </section>
  1332.         <aside>
  1333.             {% if etablissement.isClient %}
  1334.                 {% include 'fiche/_includes/form-contacter-etablissement.html.twig' %}
  1335.             {% endif %}
  1336.             <div class=\"last-flex\">
  1337.                 {% include 'annuaire/_includes/lien-guide.html.twig' %}
  1338.                 {% if etablissement.participant == false %}
  1339.                 {% include '_includes/banners-list.html.twig' with {
  1340.                     'emplacement': [],
  1341.                 } only %}
  1342.                 {% endif %}
  1343.                 {% include '_includes/newsletter.html.twig' %}
  1344.                 {% include '_includes/last-search.html.twig' %}
  1345.                 {% include '_includes/last-establishment.html.twig' %}
  1346.             </div>
  1347.         </aside>
  1348.     </div>
  1349. </section>
  1350. {# ----- Recommandations ---------------------------------------- #}
  1351. {% if etablissement.isClient and etablissement.typeClient in ['établissement', 'internat'] %}
  1352.     {% include 'fiche/_includes/etablissements-proches-client.html.twig' with {
  1353.         'quoi': contexte.quoi,
  1354.         'lieu': contexte.lieu,
  1355.         'etablissement': etablissement,
  1356.         'etablissementsProches': etablissementsProches,
  1357.     } only %}
  1358. {% endif %}
  1359. {% endblock %}
  1360. {% block data_layer %}
  1361. <script>
  1362. // 1. Contexte global de la page
  1363. dataLayer.push({{ {
  1364.     event: \"page_context\",
  1365.     page_type: \"fiche_etablissement\",
  1366.     fiche_type: etablissement.typeClient,
  1367.     site_section: \"annuaire\",
  1368.     education_niveau: typeOnglet(etablissement.type),
  1369.     education_sous_niveau: null,
  1370.     region: etablissement.ville.departement.region.libelle,
  1371.     departement: etablissement.ville.departement.id,
  1372.     ville: etablissement.ville.libelle,
  1373.     code_postal: etablissement.codePostal,
  1374.     etablissement_id: etablissement.id,
  1375.     etablissement_nom: etablissement.denomination,
  1376.     etablissement_segment: etablissement.isClient ? \"client\" : \"prospect\",
  1377.     contrat_type: etablissement.sousContrat ? \"sous_contrat\" : \"hors_contrat\"
  1378. }|json_encode(constant('JSON_UNESCAPED_UNICODE'))|raw }});
  1379. // 2. Événement métier : vue d’un établissement
  1380. dataLayer.push({ ecommerce: null });
  1381. dataLayer.push({{ {
  1382.     event: \"view_item\",
  1383.     ecommerce: {
  1384.         items: [
  1385.             {
  1386.                 item_id: etablissement.id,
  1387.                 item_name: etablissement.denomination,
  1388.                 item_category: etablissement.typeClient,
  1389.                 item_category2: typeOnglet(etablissement.type),
  1390.                 item_category3: null,
  1391.                 item_category4: etablissement.sousContrat ? \"sous_contrat\" : \"hors_contrat\",
  1392.                 location_id: etablissement.ville.departement.id ~ \"-\" ~ etablissement.codePostal ~ \"-\" ~ etablissement.ville.libelle
  1393.             }
  1394.         ]
  1395.     }
  1396. }|json_encode(constant('JSON_UNESCAPED_UNICODE'))|raw }});
  1397. </script>
  1398. {% if diEnvoyee %}
  1399. <script>
  1400.     dataLayer.push({{ {
  1401.         event: \"lead_demande_information\",
  1402.         etablissement_id: etablissement.id,
  1403.         etablissement_nom: etablissement.denomination,
  1404.         etablissement_segment: \"client\"
  1405.     }|json_encode(constant('JSON_UNESCAPED_UNICODE'))|raw }});
  1406. </script>
  1407. {% endif %}
  1408. {% endblock %}""fiche/index.html.twig""/app/templates/fiche/index.html.twig");
  1409.     }
  1410. }