var/cache/dev/twig/4d/4d978b28a7aeeb2c1b604d7ac41415fef72f1436313cb170ffeb8f9220529948.php line 51

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. /* jpo/fiche.html.twig */
  14. class __TwigTemplate_2203b7f49ea85b0863f6581cfaf17d8a000a828e63527e8a938e2310ea9c695b 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.             'title' => [$this'block_title'],
  24.             'description' => [$this'block_description'],
  25.             'body' => [$this'block_body'],
  26.             'data_layer' => [$this'block_data_layer'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""jpo/fiche.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""jpo/fiche.html.twig"));
  41.         $this->parent $this->loadTemplate("base.html.twig""jpo/fiche.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_title($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         // line 5
  57.         echo "Journées portes ouvertes - ";
  58.         echo $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'5$this->source); })()), "date", [], "any"falsefalsefalse5), "medium""d/M/Y");
  59.         // line 6
  60.         if (twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'6$this->source); })()), "etablissement", [], "any"falsefalsefalse6)) {
  61.             // line 7
  62.             echo "- ";
  63.             echo twig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'7$this->source); })()), "etablissement", [], "any"falsefalsefalse7), "denomination", [], "any"falsefalsefalse7)), "truncate", [=> 40=> "..."=> false], "method"falsefalsefalse7);
  64.             // line 8
  65.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'8$this->source); })()), "etablissement", [], "any"falsefalsefalse8), "ville", [], "any"falsefalsefalse8) &&  !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'8$this->source); })()), "etablissement", [], "any"falsefalsefalse8), "ville", [], "any"falsefalsefalse8), "empty", [], "any"falsefalsefalse8))) {
  66.                 // line 9
  67.                 echo "- ";
  68.                 echo $this->extensions['App\Twig\LieuExtension']->lieuLibelle(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'9$this->source); })()), "etablissement", [], "any"falsefalsefalse9), "ville", [], "any"falsefalsefalse9));
  69.             }
  70.         } else {
  71.             // line 12
  72.             echo "- enseignement-prive.info";
  73.         }
  74.         
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  76.         
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  78.     }
  79.     // line 17
  80.     public function block_description($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  87.         // line 19
  88.         echo "Journées portes ouvertes - ";
  89.         echo $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'19$this->source); })()), "date", [], "any"falsefalsefalse19), "medium""d MMMM Y");
  90.         // line 20
  91.         if (twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'20$this->source); })()), "etablissement", [], "any"falsefalsefalse20)) {
  92.             // line 21
  93.             echo "- ";
  94.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'21$this->source); })()), "etablissement", [], "any"falsefalsefalse21), "denomination", [], "any"falsefalsefalse21);
  95.             // line 22
  96.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'22$this->source); })()), "etablissement", [], "any"falsefalsefalse22), "ville", [], "any"falsefalsefalse22) &&  !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'22$this->source); })()), "etablissement", [], "any"falsefalsefalse22), "ville", [], "any"falsefalsefalse22), "empty", [], "any"falsefalsefalse22))) {
  97.                 // line 23
  98.                 echo "- ";
  99.                 echo $this->extensions['App\Twig\LieuExtension']->lieuLibelle(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'23$this->source); })()), "etablissement", [], "any"falsefalsefalse23), "ville", [], "any"falsefalsefalse23));
  100.             }
  101.         } else {
  102.             // line 26
  103.             echo "- enseignement-prive.info";
  104.         }
  105.         
  106.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  107.         
  108.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  109.     }
  110.     // line 31
  111.     public function block_body($context, array $blocks = [])
  112.     {
  113.         $macros $this->macros;
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  115.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  117.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  118.         // line 32
  119.         echo "
  120. ";
  121.         // line 33
  122.         $context["imgAlt"] = twig_trim_filter(twig_join_filter([=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 34
  123. (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'34$this->source); })()), "etablissement", [], "any"falsefalsefalse34), "codePostal", [], "any"falsefalsefalse34), => ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 35
  124. (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'35$this->source); })()), "etablissement", [], "any"falsefalsefalse35), "ville", [], "any"falsefalsefalse35)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'35$this->source); })()), "etablissement", [], "any"falsefalsefalse35), "ville", [], "any"falsefalsefalse35), "libelle", [], "any"falsefalsefalse35)) : ("")), => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 36
  125. (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'36$this->source); })()), "etablissement", [], "any"falsefalsefalse36), "denomination", [], "any"falsefalsefalse36)], " - "), " -");
  126.         // line 38
  127.         echo "
  128. ";
  129.         // line 39
  130.         $context["urlFiche"] = twig_get_attribute($this->env$this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder"$context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.'39$this->source); })()), "buildFiche", [=> twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'39$this->source); })()), "etablissement", [], "any"falsefalsefalse39)], "method"falsefalsefalse39);
  131.         // line 40
  132.         echo "
  133. <section class=\"container page-jpo single\">
  134.     <div id=\"breadcrumb\">
  135.         ";
  136.         // line 43
  137.         $this->loadTemplate("jpo/_includes/breadcrumb.html.twig""jpo/fiche.html.twig"43)->display(twig_to_array(["jpo" =>         // line 44
  138. (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'44$this->source); })()), "currentURL" =>         // line 45
  139. (isset($context["currentURL"]) || array_key_exists("currentURL"$context) ? $context["currentURL"] : (function () { throw new RuntimeError('Variable "currentURL" does not exist.'45$this->source); })())]));
  140.         // line 48
  141.         echo "    </div>
  142.     <div class=\"title\">
  143.         <h1>Journées portes ouvertes</h1>
  144.         <div class=\"triangle-defaut\"></div>
  145.     </div>
  146.     ";
  147.         // line 56
  148.         echo "
  149.     <div class=\"recherche-contexte\" role=\"group\">
  150.         <a href=\"";
  151.         // line 58
  152.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jpo-liste");
  153.         echo "\" class=\"liste \">
  154.             Retour à la liste
  155.         </a>
  156.     </div>
  157.     <section>
  158.         <article>
  159.             <div class=\"illustration\">
  160.                 ";
  161.         // line 66
  162.         $context["imgSrc"] = $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'66$this->source); })()), "image1File");
  163.         // line 67
  164.         echo "                ";
  165.         if (((isset($context["imgSrc"]) || array_key_exists("imgSrc"$context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.'67$this->source); })()) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'67$this->source); })()), "etablissement", [], "any"falsefalsefalse67), "isClient", [], "any"falsefalsefalse67))) {
  166.             // line 68
  167.             echo "                    <ul class=\"cycle internal\">
  168.                         <li style=\"background-image: url('";
  169.             // line 69
  170.             echo twig_escape_filter($this->env, (isset($context["imgSrc"]) || array_key_exists("imgSrc"$context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.'69$this->source); })()), "html"nulltrue);
  171.             echo "');\"></li>
  172.                     </ul>
  173.                 ";
  174.         } elseif (( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 71
  175. (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'71$this->source); })()), "etablissement", [], "any"falsefalsefalse71), "imagesDiaporama", [], "any"falsefalsefalse71)) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'71$this->source); })()), "etablissement", [], "any"falsefalsefalse71), "isClient", [], "any"falsefalsefalse71))) {
  176.             // line 72
  177.             echo "                    <ul class=\"cycle\">
  178.                         ";
  179.             // line 73
  180.             $context['_parent'] = $context;
  181.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'73$this->source); })()), "etablissement", [], "any"falsefalsefalse73), "imagesDiaporama", [], "any"falsefalsefalse73));
  182.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  183.                 // line 74
  184.                 echo "                            <li style=\"background-image: url('";
  185.                 echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/jouve/photo/" $context["item"])), "diapo_list"), "html"nulltrue);
  186.                 echo "');\"></li>
  187.                         ";
  188.             }
  189.             $_parent $context['_parent'];
  190.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  191.             $context array_intersect_key($context$_parent) + $_parent;
  192.             // line 76
  193.             echo "                    </ul>
  194.                 ";
  195.         } else {
  196.             // line 78
  197.             echo "                    <div class=\"no-diapo\"><span class=\"no-logo\"></span></div>
  198.                 ";
  199.         }
  200.         // line 80
  201.         echo "                <div class=\"col-12 d-flex flex-wrap p-0 mt-3\">
  202.                     ";
  203.         // line 81
  204.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'81$this->source); })()), "fileName", [], "any"falsefalsefalse81))) {
  205.             // line 82
  206.             echo "                        <div class=\"block-document\">
  207.                             <h2>Documents</h2>
  208.                             <div class=\"col-12 document-icon\">
  209.                                 <a href=\"";
  210.             // line 85
  211.             echo twig_escape_filter($this->env$this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'85$this->source); })()), "jpoFile"), "html"nulltrue);
  212.             echo "\" download>";
  213.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'85$this->source); })()), "legende", [], "any"falsefalsefalse85), "html"nulltrue);
  214.             echo "</a>
  215.                             </div>
  216.                         </div>
  217.                     ";
  218.         }
  219.         // line 90
  220.         echo "                </div>
  221.             </div>
  222.             <div class=\"content\">
  223.                 <figure>
  224.                     ";
  225.         // line 95
  226.         if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'95$this->source); })()), "etablissement", [], "any"falsefalsefalse95), "logo", [], "any"falsefalsefalse95))) {
  227.             // line 96
  228.             echo "                        <img src=\"";
  229.             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->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'96$this->source); })()), "etablissement", [], "any"falsefalsefalse96), "logo", [], "any"falsefalsefalse96), "logoFile"), "etab_fiche_logo"), "html"nulltrue);
  230.             echo "\" alt=\"";
  231.             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.'96$this->source); })()), "html"nulltrue);
  232.             echo "\" title=\"";
  233.             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.'96$this->source); })()), "html"nulltrue);
  234.             echo "\">
  235.                         ";
  236.             // line 97
  237.             $context["figure"] = $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'97$this->source); })()), "etablissement", [], "any"falsefalsefalse97), "logo", [], "any"falsefalsefalse97), "logoFile"), "etab_fiche_logo");
  238.             // line 98
  239.             echo "                    ";
  240.         } else {
  241.             // line 99
  242.             echo "                        <span class=\"no-logo\"></span>
  243.                     ";
  244.         }
  245.         // line 101
  246.         echo "                </figure>
  247.                 <span class=\"date\">
  248.                     ";
  249.         // line 103
  250.         $context['_parent'] = $context;
  251.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'103$this->source); })()), "etablissement", [], "any"falsefalsefalse103), "jPOs", [], "any"falsefalsefalse103));
  252.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  253.             // line 104
  254.             echo "                        <span class=\"";
  255.             echo (((=== twig_compare(twig_get_attribute($this->env$this->source$context["item"], "date", [], "any"falsefalsefalse104), twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'104$this->source); })()), "date", [], "any"falsefalsefalse104)))) ? ("idem") : (""));
  256.             echo "\">";
  257.             echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source$context["item"], "date", [], "any"falsefalsefalse104), "medium""d MMMM Y"), "html"nulltrue);
  258.             echo "</span>
  259.                     ";
  260.         }
  261.         $_parent $context['_parent'];
  262.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  263.         $context array_intersect_key($context$_parent) + $_parent;
  264.         // line 106
  265.         echo "                </span>
  266.                 <p class=\"city\">";
  267.         // line 107
  268.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'107$this->source); })()), "lieu", [], "any"falsefalsefalse107), "html"nulltrue);
  269.         echo "</p>
  270.                 <p class=\"estab\">";
  271.         // line 108
  272.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'108$this->source); })()), "etablissement", [], "any"falsefalsefalse108), "denomination", [], "any"falsefalsefalse108), "html"nulltrue);
  273.         echo "</p>
  274.                 <p class=\"schedule\">
  275.                     Le ";
  276.         // line 110
  277.         echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'110$this->source); })()), "date", [], "any"falsefalsefalse110), "medium""d MMMM Y"), "html"nulltrue);
  278.         echo "
  279.                   ";
  280.         // line 111
  281.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'111$this->source); })()), "heureDebut", [], "any"falsefalsefalse111))) {
  282.             echo " de ";
  283.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'111$this->source); })()), "heureDebut", [], "any"falsefalsefalse111), "H\\hi"), "html"nulltrue);
  284.         }
  285.         // line 112
  286.         echo "                ";
  287.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'112$this->source); })()), "heureFin", [], "any"falsefalsefalse112))) {
  288.             echo " à ";
  289.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'112$this->source); })()), "heureFin", [], "any"falsefalsefalse112), "H\\hi"), "html"nulltrue);
  290.         }
  291.         // line 113
  292.         echo "                </p>
  293.                 <p>";
  294.         // line 114
  295.         echo twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'114$this->source); })()), "contenu", [], "any"falsefalsefalse114);
  296.         echo "</p>
  297.                 ";
  298.         // line 116
  299.         if ((twig_get_attribute($this->env$this->source, ($context["jpo"] ?? null), "etablissement", [], "any"truetruefalse116) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'116$this->source); })()), "etablissement", [], "any"falsefalsefalse116)))) {
  300.             // line 117
  301.             echo "                    <div class=\"links\">
  302.                         <a class=\"fiche-link\" href=\"";
  303.             // line 118
  304.             echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche"$context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.'118$this->source); })()), "html"nulltrue);
  305.             echo "\" data-trace-action=\"";
  306.             echo twig_escape_filter($this->envtwig_constant("App\\Entity\\Trace::CLIC_FICHE_JPO"), "html_attr");
  307.             echo "\" data-trace-etab=\"";
  308.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'118$this->source); })()), "etablissement", [], "any"falsefalsefalse118), "id", [], "any"falsefalsefalse118), "html_attr");
  309.             echo "\">Voir la fiche établissement</a>
  310.                         ";
  311.             // line 119
  312.             $this->loadTemplate("_includes/lien-masque.html.twig""jpo/fiche.html.twig"119)->display(twig_to_array(["target" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("form-di", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 121
  313. (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'121$this->source); })()), "etablissement", [], "any"falsefalsefalse121), "id", [], "any"falsefalsefalse121)]), "content" => "Contacter l'établissement"]));
  314.             // line 125
  315.             echo "                    </div>
  316.                 ";
  317.         }
  318.         // line 127
  319.         echo "            </div>
  320.         </article>
  321.     </section>
  322. </section>
  323. ";
  324.         
  325.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  326.         
  327.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  328.     }
  329.     // line 134
  330.     public function block_data_layer($context, array $blocks = [])
  331.     {
  332.         $macros $this->macros;
  333.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  334.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""data_layer"));
  335.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  336.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""data_layer"));
  337.         // line 135
  338.         echo "<script>
  339. window.dataLayer = window.dataLayer || [];
  340. ";
  341.         // line 138
  342.         $context["etablissement"] = twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'138$this->source); })()), "etablissement", [], "any"falsefalsefalse138);
  343.         // line 139
  344.         $context["ville"] = twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'139$this->source); })()), "ville", [], "any"falsefalsefalse139);
  345.         // line 140
  346.         $context["item"] = ["item_id" => twig_get_attribute($this->env$this->source,         // line 141
  347. (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'141$this->source); })()), "id", [], "any"falsefalsefalse141), "item_name" => ((("JPO - " twig_get_attribute($this->env$this->source,         // line 142
  348. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'142$this->source); })()), "denomination", [], "any"falsefalsefalse142)) . " - ") . $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'142$this->source); })()), "date", [], "any"falsefalsefalse142), "medium""d MMMM Y")), "item_category" => "journee_portes_ouvertes""item_category2" => $this->extensions['App\Twig\TypeEtablissementExtension']->typeSimple(twig_get_attribute($this->env$this->source,         // line 144
  349. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'144$this->source); })()), "type", [], "any"falsefalsefalse144)), "item_category3" => twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source,         // line 145
  350. (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'145$this->source); })()), "date", [], "any"falsefalsefalse145), "Y-m"), "item_category4" => ((        // line 146
  351. (isset($context["ville"]) || array_key_exists("ville"$context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.'146$this->source); })())) ? (twig_replace_filter(twig_get_attribute($this->env$this->source, (isset($context["ville"]) || array_key_exists("ville"$context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.'146$this->source); })()), "slug", [], "any"falsefalsefalse146), ["-" => "_"])) : (null)), "location_id" => ((        // line 147
  352. (isset($context["ville"]) || array_key_exists("ville"$context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.'147$this->source); })())) ? (((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ville"]) || array_key_exists("ville"$context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.'147$this->source); })()), "departement", [], "any"falsefalsefalse147), "id", [], "any"falsefalsefalse147) . "-") . twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'147$this->source); })()), "codePostal", [], "any"falsefalsefalse147)) . "-") . twig_get_attribute($this->env$this->source, (isset($context["ville"]) || array_key_exists("ville"$context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.'147$this->source); })()), "libelle", [], "any"falsefalsefalse147))) : (null)), "jpo_date" => twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source,         // line 148
  353. (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'148$this->source); })()), "date", [], "any"falsefalsefalse148), "Y-m-d"), "etablissement_id" => twig_get_attribute($this->env$this->source,         // line 149
  354. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'149$this->source); })()), "id", [], "any"falsefalsefalse149), "etablissement_nom" => twig_get_attribute($this->env$this->source,         // line 150
  355. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'150$this->source); })()), "denomination", [], "any"falsefalsefalse150), "etablissement_segment" => ((twig_get_attribute($this->env$this->source,         // line 151
  356. (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'151$this->source); })()), "isClient", [], "any"falsefalsefalse151)) ? ("client") : ("prospect"))];
  357.         // line 153
  358.         echo "
  359. dataLayer.push({
  360.     event: \"page_context\",
  361.     page_type: \"fiche_jpo\",
  362.     fiche_type: \"portes_ouvertes\",
  363.     site_section: \"portes_ouvertes\",
  364.     jpo_id: ";
  365.         // line 159
  366.         echo json_encode(twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'159$this->source); })()), "id", [], "any"falsefalsefalse159));
  367.         echo ",
  368.     jpo_nom: ";
  369.         // line 160
  370.         echo json_encode(twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'160$this->source); })()), "item_name", [], "any"falsefalsefalse160), twig_constant("JSON_UNESCAPED_UNICODE"));
  371.         echo ",
  372.     jpo_date: ";
  373.         // line 161
  374.         echo json_encode(twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'161$this->source); })()), "jpo_date", [], "any"falsefalsefalse161));
  375.         echo ",
  376.     jpo_mois: ";
  377.         // line 162
  378.         echo json_encode(twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'162$this->source); })()), "item_category3", [], "any"falsefalsefalse162));
  379.         echo ",
  380.     education_niveau: ";
  381.         // line 163
  382.         echo json_encode(twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'163$this->source); })()), "item_category2", [], "any"falsefalsefalse163));
  383.         echo ",
  384.     region: ";
  385.         // line 164
  386.         echo ((((isset($context["ville"]) || array_key_exists("ville"$context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.'164$this->source); })()) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["ville"] ?? null), "departement", [], "any"falsetruefalse164), "region", [], "any"truetruefalse164))) ? (json_encode(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ville"]) || array_key_exists("ville"$context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.'164$this->source); })()), "departement", [], "any"falsefalsefalse164), "region", [], "any"falsefalsefalse164), "slug", [], "any"falsefalsefalse164))) : ("null"));
  387.         echo ",
  388.     departement: ";
  389.         // line 165
  390.         echo (((isset($context["ville"]) || array_key_exists("ville"$context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.'165$this->source); })())) ? (json_encode(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["ville"]) || array_key_exists("ville"$context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.'165$this->source); })()), "departement", [], "any"falsefalsefalse165), "id", [], "any"falsefalsefalse165))) : ("null"));
  391.         echo ",
  392.     ville: ";
  393.         // line 166
  394.         echo (((isset($context["ville"]) || array_key_exists("ville"$context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.'166$this->source); })())) ? (json_encode(twig_get_attribute($this->env$this->source, (isset($context["ville"]) || array_key_exists("ville"$context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.'166$this->source); })()), "libelle", [], "any"falsefalsefalse166), twig_constant("JSON_UNESCAPED_UNICODE"))) : ("null"));
  395.         echo ",
  396.     code_postal: ";
  397.         // line 167
  398.         echo json_encode(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.'167$this->source); })()), "codePostal", [], "any"falsefalsefalse167));
  399.         echo ",
  400.     etablissement_id: ";
  401.         // line 168
  402.         echo json_encode(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.'168$this->source); })()), "id", [], "any"falsefalsefalse168));
  403.         echo ",
  404.     etablissement_nom: ";
  405.         // line 169
  406.         echo json_encode(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.'169$this->source); })()), "denomination", [], "any"falsefalsefalse169), twig_constant("JSON_UNESCAPED_UNICODE"));
  407.         echo ",
  408.     etablissement_segment: ";
  409.         // line 170
  410.         echo json_encode(twig_get_attribute($this->env$this->source, (isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'170$this->source); })()), "etablissement_segment", [], "any"falsefalsefalse170));
  411.         echo "
  412. });
  413. dataLayer.push({ ecommerce: null });
  414. dataLayer.push({
  415.     event: \"view_item\",
  416.     ecommerce: {
  417.         items: [";
  418.         // line 177
  419.         echo json_encode((isset($context["item"]) || array_key_exists("item"$context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.'177$this->source); })()), twig_constant("JSON_UNESCAPED_UNICODE"));
  420.         echo "]
  421.     }
  422. });
  423. console.log(dataLayer);
  424. </script>
  425. ";
  426.         
  427.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  428.         
  429.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  430.     }
  431.     public function getTemplateName()
  432.     {
  433.         return "jpo/fiche.html.twig";
  434.     }
  435.     public function isTraitable()
  436.     {
  437.         return false;
  438.     }
  439.     public function getDebugInfo()
  440.     {
  441.         return array (  458 => 177,  448 => 170,  444 => 169,  440 => 168,  436 => 167,  432 => 166,  428 => 165,  424 => 164,  420 => 163,  416 => 162,  412 => 161,  408 => 160,  404 => 159,  396 => 153,  394 => 151,  393 => 150,  392 => 149,  391 => 148,  390 => 147,  389 => 146,  388 => 145,  387 => 144,  386 => 142,  385 => 141,  384 => 140,  382 => 139,  380 => 138,  375 => 135,  365 => 134,  349 => 127,  345 => 125,  343 => 121,  342 => 119,  334 => 118,  331 => 117,  329 => 116,  324 => 114,  321 => 113,  315 => 112,  310 => 111,  306 => 110,  301 => 108,  297 => 107,  294 => 106,  283 => 104,  279 => 103,  275 => 101,  271 => 99,  268 => 98,  266 => 97,  257 => 96,  255 => 95,  248 => 90,  238 => 85,  233 => 82,  231 => 81,  228 => 80,  224 => 78,  220 => 76,  211 => 74,  207 => 73,  204 => 72,  202 => 71,  197 => 69,  194 => 68,  191 => 67,  189 => 66,  178 => 58,  174 => 56,  165 => 48,  163 => 45,  162 => 44,  161 => 43,  156 => 40,  154 => 39,  151 => 38,  149 => 36,  148 => 35,  147 => 34,  146 => 33,  143 => 32,  133 => 31,  122 => 26,  117 => 23,  115 => 22,  112 => 21,  110 => 20,  107 => 19,  97 => 17,  86 => 12,  81 => 9,  79 => 8,  76 => 7,  74 => 6,  71 => 5,  61 => 3,  38 => 1,);
  442.     }
  443.     public function getSourceContext()
  444.     {
  445.         return new Source("{% extends 'base.html.twig' %}
  446. {%- block title -%}
  447. {%- autoescape false -%}
  448.     Journées portes ouvertes - {{ jpo.date | format_date(pattern='d/M/Y') -}}
  449.     {%- if jpo.etablissement -%}
  450.         - {{ jpo.etablissement.denomination | u.truncate(40, '...', false) }}
  451.         {%- if jpo.etablissement.ville and not jpo.etablissement.ville.empty -%}
  452.             - {{ jpo.etablissement.ville|lieuLibelle }}
  453.         {%- endif -%}
  454.     {%- else -%}
  455.     - enseignement-prive.info
  456.     {%- endif -%}
  457. {%- endautoescape -%}    
  458. {%- endblock -%}
  459. {% block description -%}
  460. {%- autoescape false -%}
  461.     Journées portes ouvertes - {{ jpo.date | format_date(pattern='d MMMM Y') -}}
  462.     {%- if jpo.etablissement -%}
  463.         - {{ jpo.etablissement.denomination }}
  464.         {%- if jpo.etablissement.ville and not jpo.etablissement.ville.empty -%}
  465.             - {{ jpo.etablissement.ville|lieuLibelle }}
  466.         {%- endif -%}
  467.     {%- else -%}
  468.     - enseignement-prive.info
  469.     {%- endif -%}
  470. {%- endautoescape -%}   
  471. {%- endblock %}
  472. {% block body %}
  473. {% set imgAlt = [
  474.     jpo.etablissement.codePostal,
  475.     (jpo.etablissement.ville ? jpo.etablissement.ville.libelle : ''),
  476.     jpo.etablissement.denomination,
  477. ]|join(' - ')|trim(' -') %}
  478. {% set urlFiche = pathBuilder.buildFiche(jpo.etablissement) %}
  479. <section class=\"container page-jpo single\">
  480.     <div id=\"breadcrumb\">
  481.         {% include 'jpo/_includes/breadcrumb.html.twig' with {
  482.             'jpo' : jpo,
  483.             'currentURL' : currentURL,
  484.         }
  485.             only %}
  486.     </div>
  487.     <div class=\"title\">
  488.         <h1>Journées portes ouvertes</h1>
  489.         <div class=\"triangle-defaut\"></div>
  490.     </div>
  491.     {# ----- Contexte recherche --------------------------------------------- #}
  492.     <div class=\"recherche-contexte\" role=\"group\">
  493.         <a href=\"{{ path('jpo-liste') }}\" class=\"liste \">
  494.             Retour à la liste
  495.         </a>
  496.     </div>
  497.     <section>
  498.         <article>
  499.             <div class=\"illustration\">
  500.                 {% set imgSrc = vich_uploader_asset(jpo, 'image1File') %}
  501.                 {% if imgSrc and jpo.etablissement.isClient %}
  502.                     <ul class=\"cycle internal\">
  503.                         <li style=\"background-image: url('{{ imgSrc }}');\"></li>
  504.                     </ul>
  505.                 {% elseif jpo.etablissement.imagesDiaporama is not empty and jpo.etablissement.isClient %}
  506.                     <ul class=\"cycle\">
  507.                         {% for item in jpo.etablissement.imagesDiaporama %}
  508.                             <li style=\"background-image: url('{{ asset('images/jouve/photo/' ~ item) | imagine_filter('diapo_list') }}');\"></li>
  509.                         {% endfor %}
  510.                     </ul>
  511.                 {% else %}
  512.                     <div class=\"no-diapo\"><span class=\"no-logo\"></span></div>
  513.                 {% endif %}
  514.                 <div class=\"col-12 d-flex flex-wrap p-0 mt-3\">
  515.                     {% if jpo.fileName is not null %}
  516.                         <div class=\"block-document\">
  517.                             <h2>Documents</h2>
  518.                             <div class=\"col-12 document-icon\">
  519.                                 <a href=\"{{vich_uploader_asset(jpo, 'jpoFile')}}\" download>{{ jpo.legende }}</a>
  520.                             </div>
  521.                         </div>
  522.                     {% endif %}
  523.                 </div>
  524.             </div>
  525.             <div class=\"content\">
  526.                 <figure>
  527.                     {% if jpo.etablissement.logo is not empty %}
  528.                         <img src=\"{{ vich_uploader_asset(jpo.etablissement.logo, 'logoFile') | imagine_filter('etab_fiche_logo') }}\" alt=\"{{ imgAlt }}\" title=\"{{ imgAlt }}\">
  529.                         {% set figure = vich_uploader_asset(jpo.etablissement.logo, 'logoFile') | imagine_filter('etab_fiche_logo') %}
  530.                     {% else %}
  531.                         <span class=\"no-logo\"></span>
  532.                     {% endif %}
  533.                 </figure>
  534.                 <span class=\"date\">
  535.                     {% for item in jpo.etablissement.jPOs %}
  536.                         <span class=\"{{ (item.date == jpo.date) ? 'idem' : '' }}\">{{ item.date | format_date(pattern='d MMMM Y') }}</span>
  537.                     {% endfor %}
  538.                 </span>
  539.                 <p class=\"city\">{{ jpo.lieu }}</p>
  540.                 <p class=\"estab\">{{ jpo.etablissement.denomination }}</p>
  541.                 <p class=\"schedule\">
  542.                     Le {{ jpo.date | format_date(pattern='d MMMM Y') }}
  543.                   {% if jpo.heureDebut is not empty %} de {{ jpo.heureDebut | date(\"H\\\\hi\") }}{% endif %}
  544.                 {% if jpo.heureFin is not empty %} à {{ jpo.heureFin | date(\"H\\\\hi\") }}{% endif %}
  545.                 </p>
  546.                 <p>{{ jpo.contenu | raw }}</p>
  547.                 {% if jpo.etablissement is defined and jpo.etablissement is not empty %}
  548.                     <div class=\"links\">
  549.                         <a class=\"fiche-link\" href=\"{{ urlFiche }}\" data-trace-action=\"{{ constant('App\\\\Entity\\\\Trace::CLIC_FICHE_JPO') | e('html_attr') }}\" data-trace-etab=\"{{ jpo.etablissement.id | e('html_attr') }}\">Voir la fiche établissement</a>
  550.                         {% include '_includes/lien-masque.html.twig' with {
  551.                             'target': path('form-di',
  552.                                 {id : jpo.etablissement.id}
  553.                             ),
  554.                             'content': 'Contacter l\\'établissement',
  555.                         } only %}
  556.                     </div>
  557.                 {% endif %}
  558.             </div>
  559.         </article>
  560.     </section>
  561. </section>
  562. {% endblock %}
  563. {% block data_layer %}
  564. <script>
  565. window.dataLayer = window.dataLayer || [];
  566. {% set etablissement = jpo.etablissement %}
  567. {% set ville = etablissement.ville %}
  568. {% set item = {
  569.     'item_id': jpo.id,
  570.     'item_name': 'JPO - ' ~ etablissement.denomination ~ ' - ' ~ (jpo.date | format_date(pattern='d MMMM Y')),
  571.     'item_category': 'journee_portes_ouvertes',
  572.     'item_category2': typeEtablissementSimple(etablissement.type),
  573.     'item_category3': jpo.date | date('Y-m'),
  574.     'item_category4': ville ? ville.slug | replace({'-': '_'}) : null,
  575.     'location_id': ville ? ville.departement.id ~ '-' ~ etablissement.codePostal ~ '-' ~ ville.libelle : null,
  576.     'jpo_date': jpo.date | date('Y-m-d'),
  577.     'etablissement_id': etablissement.id,
  578.     'etablissement_nom': etablissement.denomination,
  579.     'etablissement_segment': etablissement.isClient ? 'client' : 'prospect'
  580. } %}
  581. dataLayer.push({
  582.     event: \"page_context\",
  583.     page_type: \"fiche_jpo\",
  584.     fiche_type: \"portes_ouvertes\",
  585.     site_section: \"portes_ouvertes\",
  586.     jpo_id: {{ jpo.id|json_encode|raw }},
  587.     jpo_nom: {{ item.item_name|json_encode(constant('JSON_UNESCAPED_UNICODE'))|raw }},
  588.     jpo_date: {{ item.jpo_date|json_encode|raw }},
  589.     jpo_mois: {{ item.item_category3|json_encode|raw }},
  590.     education_niveau: {{ item.item_category2|json_encode|raw }},
  591.     region: {{ ville and ville.departement.region is defined ? ville.departement.region.slug|json_encode|raw : 'null' }},
  592.     departement: {{ ville ? ville.departement.id|json_encode|raw : 'null' }},
  593.     ville: {{ ville ? ville.libelle|json_encode(constant('JSON_UNESCAPED_UNICODE'))|raw : 'null' }},
  594.     code_postal: {{ etablissement.codePostal|json_encode|raw }},
  595.     etablissement_id: {{ etablissement.id|json_encode|raw }},
  596.     etablissement_nom: {{ etablissement.denomination|json_encode(constant('JSON_UNESCAPED_UNICODE'))|raw }},
  597.     etablissement_segment: {{ item.etablissement_segment|json_encode|raw }}
  598. });
  599. dataLayer.push({ ecommerce: null });
  600. dataLayer.push({
  601.     event: \"view_item\",
  602.     ecommerce: {
  603.         items: [{{ item|json_encode(constant('JSON_UNESCAPED_UNICODE'))|raw }}]
  604.     }
  605. });
  606. console.log(dataLayer);
  607. </script>
  608. {% endblock %}""jpo/fiche.html.twig""/app/templates/jpo/fiche.html.twig");
  609.     }
  610. }