<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* jpo/fiche.html.twig */
class __TwigTemplate_2203b7f49ea85b0863f6581cfaf17d8a000a828e63527e8a938e2310ea9c695b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'description' => [$this, 'block_description'],
'body' => [$this, 'block_body'],
'data_layer' => [$this, 'block_data_layer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "jpo/fiche.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "jpo/fiche.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "jpo/fiche.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 5
echo "Journées portes ouvertes - ";
echo $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, 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.', 5, $this->source); })()), "date", [], "any", false, false, false, 5), "medium", "d/M/Y");
// line 6
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", false, false, false, 6)) {
// line 7
echo "- ";
echo twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, 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.', 7, $this->source); })()), "etablissement", [], "any", false, false, false, 7), "denomination", [], "any", false, false, false, 7)), "truncate", [0 => 40, 1 => "...", 2 => false], "method", false, false, false, 7);
// line 8
if ((twig_get_attribute($this->env, $this->source, 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.', 8, $this->source); })()), "etablissement", [], "any", false, false, false, 8), "ville", [], "any", false, false, false, 8) && !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 8, $this->source); })()), "etablissement", [], "any", false, false, false, 8), "ville", [], "any", false, false, false, 8), "empty", [], "any", false, false, false, 8))) {
// line 9
echo "- ";
echo $this->extensions['App\Twig\LieuExtension']->lieuLibelle(twig_get_attribute($this->env, $this->source, 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.', 9, $this->source); })()), "etablissement", [], "any", false, false, false, 9), "ville", [], "any", false, false, false, 9));
}
} else {
// line 12
echo "- enseignement-prive.info";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 17
public function block_description($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
// line 19
echo "Journées portes ouvertes - ";
echo $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, 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.', 19, $this->source); })()), "date", [], "any", false, false, false, 19), "medium", "d MMMM Y");
// line 20
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", false, false, false, 20)) {
// line 21
echo "- ";
echo twig_get_attribute($this->env, $this->source, 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.', 21, $this->source); })()), "etablissement", [], "any", false, false, false, 21), "denomination", [], "any", false, false, false, 21);
// line 22
if ((twig_get_attribute($this->env, $this->source, 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.', 22, $this->source); })()), "etablissement", [], "any", false, false, false, 22), "ville", [], "any", false, false, false, 22) && !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 22, $this->source); })()), "etablissement", [], "any", false, false, false, 22), "ville", [], "any", false, false, false, 22), "empty", [], "any", false, false, false, 22))) {
// line 23
echo "- ";
echo $this->extensions['App\Twig\LieuExtension']->lieuLibelle(twig_get_attribute($this->env, $this->source, 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.', 23, $this->source); })()), "etablissement", [], "any", false, false, false, 23), "ville", [], "any", false, false, false, 23));
}
} else {
// line 26
echo "- enseignement-prive.info";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 31
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 32
echo "
";
// line 33
$context["imgAlt"] = twig_trim_filter(twig_join_filter([0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 34
(isset($context["jpo"]) || array_key_exists("jpo", $context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.', 34, $this->source); })()), "etablissement", [], "any", false, false, false, 34), "codePostal", [], "any", false, false, false, 34), 1 => ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 35
(isset($context["jpo"]) || array_key_exists("jpo", $context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.', 35, $this->source); })()), "etablissement", [], "any", false, false, false, 35), "ville", [], "any", false, false, false, 35)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 35, $this->source); })()), "etablissement", [], "any", false, false, false, 35), "ville", [], "any", false, false, false, 35), "libelle", [], "any", false, false, false, 35)) : ("")), 2 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 36
(isset($context["jpo"]) || array_key_exists("jpo", $context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.', 36, $this->source); })()), "etablissement", [], "any", false, false, false, 36), "denomination", [], "any", false, false, false, 36)], " - "), " -");
// line 38
echo "
";
// line 39
$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", [0 => 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", false, false, false, 39)], "method", false, false, false, 39);
// line 40
echo "
<section class=\"container page-jpo single\">
<div id=\"breadcrumb\">
";
// line 43
$this->loadTemplate("jpo/_includes/breadcrumb.html.twig", "jpo/fiche.html.twig", 43)->display(twig_to_array(["jpo" => // line 44
(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
(isset($context["currentURL"]) || array_key_exists("currentURL", $context) ? $context["currentURL"] : (function () { throw new RuntimeError('Variable "currentURL" does not exist.', 45, $this->source); })())]));
// line 48
echo " </div>
<div class=\"title\">
<h1>Journées portes ouvertes</h1>
<div class=\"triangle-defaut\"></div>
</div>
";
// line 56
echo "
<div class=\"recherche-contexte\" role=\"group\">
<a href=\"";
// line 58
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jpo-liste");
echo "\" class=\"liste \">
Retour à la liste
</a>
</div>
<section>
<article>
<div class=\"illustration\">
";
// line 66
$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");
// line 67
echo " ";
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->source, 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.', 67, $this->source); })()), "etablissement", [], "any", false, false, false, 67), "isClient", [], "any", false, false, false, 67))) {
// line 68
echo " <ul class=\"cycle internal\">
<li style=\"background-image: url('";
// line 69
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", null, true);
echo "');\"></li>
</ul>
";
} elseif (( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 71
(isset($context["jpo"]) || array_key_exists("jpo", $context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.', 71, $this->source); })()), "etablissement", [], "any", false, false, false, 71), "imagesDiaporama", [], "any", false, false, false, 71)) && twig_get_attribute($this->env, $this->source, 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.', 71, $this->source); })()), "etablissement", [], "any", false, false, false, 71), "isClient", [], "any", false, false, false, 71))) {
// line 72
echo " <ul class=\"cycle\">
";
// line 73
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, 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.', 73, $this->source); })()), "etablissement", [], "any", false, false, false, 73), "imagesDiaporama", [], "any", false, false, false, 73));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 74
echo " <li style=\"background-image: url('";
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", null, true);
echo "');\"></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 76
echo " </ul>
";
} else {
// line 78
echo " <div class=\"no-diapo\"><span class=\"no-logo\"></span></div>
";
}
// line 80
echo " <div class=\"col-12 d-flex flex-wrap p-0 mt-3\">
";
// line 81
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", false, false, false, 81))) {
// line 82
echo " <div class=\"block-document\">
<h2>Documents</h2>
<div class=\"col-12 document-icon\">
<a href=\"";
// line 85
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", null, true);
echo "\" download>";
echo twig_escape_filter($this->env, 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.', 85, $this->source); })()), "legende", [], "any", false, false, false, 85), "html", null, true);
echo "</a>
</div>
</div>
";
}
// line 90
echo " </div>
</div>
<div class=\"content\">
<figure>
";
// line 95
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, 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.', 95, $this->source); })()), "etablissement", [], "any", false, false, false, 95), "logo", [], "any", false, false, false, 95))) {
// line 96
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, 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.', 96, $this->source); })()), "etablissement", [], "any", false, false, false, 96), "logo", [], "any", false, false, false, 96), "logoFile"), "etab_fiche_logo"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, (isset($context["imgAlt"]) || array_key_exists("imgAlt", $context) ? $context["imgAlt"] : (function () { throw new RuntimeError('Variable "imgAlt" does not exist.', 96, $this->source); })()), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["imgAlt"]) || array_key_exists("imgAlt", $context) ? $context["imgAlt"] : (function () { throw new RuntimeError('Variable "imgAlt" does not exist.', 96, $this->source); })()), "html", null, true);
echo "\">
";
// line 97
$context["figure"] = $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, 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.', 97, $this->source); })()), "etablissement", [], "any", false, false, false, 97), "logo", [], "any", false, false, false, 97), "logoFile"), "etab_fiche_logo");
// line 98
echo " ";
} else {
// line 99
echo " <span class=\"no-logo\"></span>
";
}
// line 101
echo " </figure>
<span class=\"date\">
";
// line 103
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, 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.', 103, $this->source); })()), "etablissement", [], "any", false, false, false, 103), "jPOs", [], "any", false, false, false, 103));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 104
echo " <span class=\"";
echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["item"], "date", [], "any", false, false, false, 104), 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", false, false, false, 104)))) ? ("idem") : (""));
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "date", [], "any", false, false, false, 104), "medium", "d MMMM Y"), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
echo " </span>
<p class=\"city\">";
// line 107
echo twig_escape_filter($this->env, 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.', 107, $this->source); })()), "lieu", [], "any", false, false, false, 107), "html", null, true);
echo "</p>
<p class=\"estab\">";
// line 108
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 108, $this->source); })()), "etablissement", [], "any", false, false, false, 108), "denomination", [], "any", false, false, false, 108), "html", null, true);
echo "</p>
<p class=\"schedule\">
Le ";
// line 110
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, 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.', 110, $this->source); })()), "date", [], "any", false, false, false, 110), "medium", "d MMMM Y"), "html", null, true);
echo "
";
// line 111
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", false, false, false, 111))) {
echo " de ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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", false, false, false, 111), "H\\hi"), "html", null, true);
}
// line 112
echo " ";
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", false, false, false, 112))) {
echo " à ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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", false, false, false, 112), "H\\hi"), "html", null, true);
}
// line 113
echo " </p>
<p>";
// line 114
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", false, false, false, 114);
echo "</p>
";
// line 116
if ((twig_get_attribute($this->env, $this->source, ($context["jpo"] ?? null), "etablissement", [], "any", true, true, false, 116) && !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", false, false, false, 116)))) {
// line 117
echo " <div class=\"links\">
<a class=\"fiche-link\" href=\"";
// line 118
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", null, true);
echo "\" data-trace-action=\"";
echo twig_escape_filter($this->env, twig_constant("App\\Entity\\Trace::CLIC_FICHE_JPO"), "html_attr");
echo "\" data-trace-etab=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 118, $this->source); })()), "etablissement", [], "any", false, false, false, 118), "id", [], "any", false, false, false, 118), "html_attr");
echo "\">Voir la fiche établissement</a>
";
// line 119
$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->source, twig_get_attribute($this->env, $this->source, // line 121
(isset($context["jpo"]) || array_key_exists("jpo", $context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.', 121, $this->source); })()), "etablissement", [], "any", false, false, false, 121), "id", [], "any", false, false, false, 121)]), "content" => "Contacter l'établissement"]));
// line 125
echo " </div>
";
}
// line 127
echo " </div>
</article>
</section>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 134
public function block_data_layer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "data_layer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "data_layer"));
// line 135
echo "<script>
window.dataLayer = window.dataLayer || [];
";
// line 138
$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", false, false, false, 138);
// line 139
$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", false, false, false, 139);
// line 140
$context["item"] = ["item_id" => twig_get_attribute($this->env, $this->source, // line 141
(isset($context["jpo"]) || array_key_exists("jpo", $context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.', 141, $this->source); })()), "id", [], "any", false, false, false, 141), "item_name" => ((("JPO - " . twig_get_attribute($this->env, $this->source, // line 142
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 142, $this->source); })()), "denomination", [], "any", false, false, false, 142)) . " - ") . $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, 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.', 142, $this->source); })()), "date", [], "any", false, false, false, 142), "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
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 144, $this->source); })()), "type", [], "any", false, false, false, 144)), "item_category3" => twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, // line 145
(isset($context["jpo"]) || array_key_exists("jpo", $context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.', 145, $this->source); })()), "date", [], "any", false, false, false, 145), "Y-m"), "item_category4" => (( // line 146
(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", false, false, false, 146), ["-" => "_"])) : (null)), "location_id" => (( // line 147
(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->source, twig_get_attribute($this->env, $this->source, (isset($context["ville"]) || array_key_exists("ville", $context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.', 147, $this->source); })()), "departement", [], "any", false, false, false, 147), "id", [], "any", false, false, false, 147) . "-") . 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", false, false, false, 147)) . "-") . 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", false, false, false, 147))) : (null)), "jpo_date" => twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, // line 148
(isset($context["jpo"]) || array_key_exists("jpo", $context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.', 148, $this->source); })()), "date", [], "any", false, false, false, 148), "Y-m-d"), "etablissement_id" => twig_get_attribute($this->env, $this->source, // line 149
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 149, $this->source); })()), "id", [], "any", false, false, false, 149), "etablissement_nom" => twig_get_attribute($this->env, $this->source, // line 150
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 150, $this->source); })()), "denomination", [], "any", false, false, false, 150), "etablissement_segment" => ((twig_get_attribute($this->env, $this->source, // line 151
(isset($context["etablissement"]) || array_key_exists("etablissement", $context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.', 151, $this->source); })()), "isClient", [], "any", false, false, false, 151)) ? ("client") : ("prospect"))];
// line 153
echo "
dataLayer.push({
event: \"page_context\",
page_type: \"fiche_jpo\",
fiche_type: \"portes_ouvertes\",
site_section: \"portes_ouvertes\",
jpo_id: ";
// line 159
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", false, false, false, 159));
echo ",
jpo_nom: ";
// line 160
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", false, false, false, 160), twig_constant("JSON_UNESCAPED_UNICODE"));
echo ",
jpo_date: ";
// line 161
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", false, false, false, 161));
echo ",
jpo_mois: ";
// line 162
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", false, false, false, 162));
echo ",
education_niveau: ";
// line 163
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", false, false, false, 163));
echo ",
region: ";
// line 164
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->source, twig_get_attribute($this->env, $this->source, ($context["ville"] ?? null), "departement", [], "any", false, true, false, 164), "region", [], "any", true, true, false, 164))) ? (json_encode(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["ville"]) || array_key_exists("ville", $context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.', 164, $this->source); })()), "departement", [], "any", false, false, false, 164), "region", [], "any", false, false, false, 164), "slug", [], "any", false, false, false, 164))) : ("null"));
echo ",
departement: ";
// line 165
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->source, twig_get_attribute($this->env, $this->source, (isset($context["ville"]) || array_key_exists("ville", $context) ? $context["ville"] : (function () { throw new RuntimeError('Variable "ville" does not exist.', 165, $this->source); })()), "departement", [], "any", false, false, false, 165), "id", [], "any", false, false, false, 165))) : ("null"));
echo ",
ville: ";
// line 166
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", false, false, false, 166), twig_constant("JSON_UNESCAPED_UNICODE"))) : ("null"));
echo ",
code_postal: ";
// line 167
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", false, false, false, 167));
echo ",
etablissement_id: ";
// line 168
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", false, false, false, 168));
echo ",
etablissement_nom: ";
// line 169
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", false, false, false, 169), twig_constant("JSON_UNESCAPED_UNICODE"));
echo ",
etablissement_segment: ";
// line 170
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", false, false, false, 170));
echo "
});
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: \"view_item\",
ecommerce: {
items: [";
// line 177
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"));
echo "]
}
});
console.log(dataLayer);
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "jpo/fiche.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{%- block title -%}
{%- autoescape false -%}
Journées portes ouvertes - {{ jpo.date | format_date(pattern='d/M/Y') -}}
{%- if jpo.etablissement -%}
- {{ jpo.etablissement.denomination | u.truncate(40, '...', false) }}
{%- if jpo.etablissement.ville and not jpo.etablissement.ville.empty -%}
- {{ jpo.etablissement.ville|lieuLibelle }}
{%- endif -%}
{%- else -%}
- enseignement-prive.info
{%- endif -%}
{%- endautoescape -%}
{%- endblock -%}
{% block description -%}
{%- autoescape false -%}
Journées portes ouvertes - {{ jpo.date | format_date(pattern='d MMMM Y') -}}
{%- if jpo.etablissement -%}
- {{ jpo.etablissement.denomination }}
{%- if jpo.etablissement.ville and not jpo.etablissement.ville.empty -%}
- {{ jpo.etablissement.ville|lieuLibelle }}
{%- endif -%}
{%- else -%}
- enseignement-prive.info
{%- endif -%}
{%- endautoescape -%}
{%- endblock %}
{% block body %}
{% set imgAlt = [
jpo.etablissement.codePostal,
(jpo.etablissement.ville ? jpo.etablissement.ville.libelle : ''),
jpo.etablissement.denomination,
]|join(' - ')|trim(' -') %}
{% set urlFiche = pathBuilder.buildFiche(jpo.etablissement) %}
<section class=\"container page-jpo single\">
<div id=\"breadcrumb\">
{% include 'jpo/_includes/breadcrumb.html.twig' with {
'jpo' : jpo,
'currentURL' : currentURL,
}
only %}
</div>
<div class=\"title\">
<h1>Journées portes ouvertes</h1>
<div class=\"triangle-defaut\"></div>
</div>
{# ----- Contexte recherche --------------------------------------------- #}
<div class=\"recherche-contexte\" role=\"group\">
<a href=\"{{ path('jpo-liste') }}\" class=\"liste \">
Retour à la liste
</a>
</div>
<section>
<article>
<div class=\"illustration\">
{% set imgSrc = vich_uploader_asset(jpo, 'image1File') %}
{% if imgSrc and jpo.etablissement.isClient %}
<ul class=\"cycle internal\">
<li style=\"background-image: url('{{ imgSrc }}');\"></li>
</ul>
{% elseif jpo.etablissement.imagesDiaporama is not empty and jpo.etablissement.isClient %}
<ul class=\"cycle\">
{% for item in jpo.etablissement.imagesDiaporama %}
<li style=\"background-image: url('{{ asset('images/jouve/photo/' ~ item) | imagine_filter('diapo_list') }}');\"></li>
{% endfor %}
</ul>
{% else %}
<div class=\"no-diapo\"><span class=\"no-logo\"></span></div>
{% endif %}
<div class=\"col-12 d-flex flex-wrap p-0 mt-3\">
{% if jpo.fileName is not null %}
<div class=\"block-document\">
<h2>Documents</h2>
<div class=\"col-12 document-icon\">
<a href=\"{{vich_uploader_asset(jpo, 'jpoFile')}}\" download>{{ jpo.legende }}</a>
</div>
</div>
{% endif %}
</div>
</div>
<div class=\"content\">
<figure>
{% if jpo.etablissement.logo is not empty %}
<img src=\"{{ vich_uploader_asset(jpo.etablissement.logo, 'logoFile') | imagine_filter('etab_fiche_logo') }}\" alt=\"{{ imgAlt }}\" title=\"{{ imgAlt }}\">
{% set figure = vich_uploader_asset(jpo.etablissement.logo, 'logoFile') | imagine_filter('etab_fiche_logo') %}
{% else %}
<span class=\"no-logo\"></span>
{% endif %}
</figure>
<span class=\"date\">
{% for item in jpo.etablissement.jPOs %}
<span class=\"{{ (item.date == jpo.date) ? 'idem' : '' }}\">{{ item.date | format_date(pattern='d MMMM Y') }}</span>
{% endfor %}
</span>
<p class=\"city\">{{ jpo.lieu }}</p>
<p class=\"estab\">{{ jpo.etablissement.denomination }}</p>
<p class=\"schedule\">
Le {{ jpo.date | format_date(pattern='d MMMM Y') }}
{% if jpo.heureDebut is not empty %} de {{ jpo.heureDebut | date(\"H\\\\hi\") }}{% endif %}
{% if jpo.heureFin is not empty %} à {{ jpo.heureFin | date(\"H\\\\hi\") }}{% endif %}
</p>
<p>{{ jpo.contenu | raw }}</p>
{% if jpo.etablissement is defined and jpo.etablissement is not empty %}
<div class=\"links\">
<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>
{% include '_includes/lien-masque.html.twig' with {
'target': path('form-di',
{id : jpo.etablissement.id}
),
'content': 'Contacter l\\'établissement',
} only %}
</div>
{% endif %}
</div>
</article>
</section>
</section>
{% endblock %}
{% block data_layer %}
<script>
window.dataLayer = window.dataLayer || [];
{% set etablissement = jpo.etablissement %}
{% set ville = etablissement.ville %}
{% set item = {
'item_id': jpo.id,
'item_name': 'JPO - ' ~ etablissement.denomination ~ ' - ' ~ (jpo.date | format_date(pattern='d MMMM Y')),
'item_category': 'journee_portes_ouvertes',
'item_category2': typeEtablissementSimple(etablissement.type),
'item_category3': jpo.date | date('Y-m'),
'item_category4': ville ? ville.slug | replace({'-': '_'}) : null,
'location_id': ville ? ville.departement.id ~ '-' ~ etablissement.codePostal ~ '-' ~ ville.libelle : null,
'jpo_date': jpo.date | date('Y-m-d'),
'etablissement_id': etablissement.id,
'etablissement_nom': etablissement.denomination,
'etablissement_segment': etablissement.isClient ? 'client' : 'prospect'
} %}
dataLayer.push({
event: \"page_context\",
page_type: \"fiche_jpo\",
fiche_type: \"portes_ouvertes\",
site_section: \"portes_ouvertes\",
jpo_id: {{ jpo.id|json_encode|raw }},
jpo_nom: {{ item.item_name|json_encode(constant('JSON_UNESCAPED_UNICODE'))|raw }},
jpo_date: {{ item.jpo_date|json_encode|raw }},
jpo_mois: {{ item.item_category3|json_encode|raw }},
education_niveau: {{ item.item_category2|json_encode|raw }},
region: {{ ville and ville.departement.region is defined ? ville.departement.region.slug|json_encode|raw : 'null' }},
departement: {{ ville ? ville.departement.id|json_encode|raw : 'null' }},
ville: {{ ville ? ville.libelle|json_encode(constant('JSON_UNESCAPED_UNICODE'))|raw : 'null' }},
code_postal: {{ etablissement.codePostal|json_encode|raw }},
etablissement_id: {{ etablissement.id|json_encode|raw }},
etablissement_nom: {{ etablissement.denomination|json_encode(constant('JSON_UNESCAPED_UNICODE'))|raw }},
etablissement_segment: {{ item.etablissement_segment|json_encode|raw }}
});
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: \"view_item\",
ecommerce: {
items: [{{ item|json_encode(constant('JSON_UNESCAPED_UNICODE'))|raw }}]
}
});
console.log(dataLayer);
</script>
{% endblock %}", "jpo/fiche.html.twig", "/app/templates/jpo/fiche.html.twig");
}
}