<?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;
/* partial/jpo-une.html.twig */
class __TwigTemplate_7a65f8f52c83c70d879684894c872fca23f57e2b6d671b662438740e8b3328c2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partial/jpo-une.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partial/jpo-une.html.twig"));
// line 1
if ((array_key_exists("jpos", $context) && !twig_test_empty((isset($context["jpos"]) || array_key_exists("jpos", $context) ? $context["jpos"] : (function () { throw new RuntimeError('Variable "jpos" does not exist.', 1, $this->source); })())))) {
// line 2
echo "<div class=\"block-jpo-une\">
\t\t";
// line 3
if ((0 === twig_compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 3, $this->source); })()), "home"))) {
// line 4
echo "\t\t\t";
// line 5
echo "\t\t\t<div class=\"dropdown jpo-month\" data-bs-display=\"static\">
\t\t\t\t<div class=\"dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
\t\t\t\t\tPériode : <a href=\"";
// line 7
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jpo-liste");
echo "#";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jpos"]) || array_key_exists("jpos", $context) ? $context["jpos"] : (function () { throw new RuntimeError('Variable "jpos" does not exist.', 7, $this->source); })()), 0, [], "array", false, false, false, 7), "date", [], "any", false, false, false, 7), "n"), "html", null, true);
echo "\" class=\"scroll-month\">";
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["jpos"]) || array_key_exists("jpos", $context) ? $context["jpos"] : (function () { throw new RuntimeError('Variable "jpos" does not exist.', 7, $this->source); })()), 0, [], "array", false, false, false, 7), "date", [], "any", false, false, false, 7), "medium", "MMMM Y"), "html", null, true);
echo "</a>
\t\t\t\t</div>
\t\t\t\t<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">
\t\t\t\t\t";
// line 10
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["jpos"]) || array_key_exists("jpos", $context) ? $context["jpos"] : (function () { throw new RuntimeError('Variable "jpos" does not exist.', 10, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["jpo"]) {
// line 11
echo "\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 11)) {
// line 12
echo "\t\t\t\t\t\t\t";
$context["previous_jpo"] = $context["jpo"];
// line 13
echo "\t\t\t\t\t\t";
} else {
// line 14
echo "\t\t\t\t\t\t\t";
$context["previous_jpo"] = twig_get_attribute($this->env, $this->source, (isset($context["jpos"]) || array_key_exists("jpos", $context) ? $context["jpos"] : (function () { throw new RuntimeError('Variable "jpos" does not exist.', 14, $this->source); })()), (twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 14) - 1), [], "array", false, false, false, 14);
// line 15
echo "\t\t\t\t\t\t";
}
// line 16
echo "\t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 16)) {
// line 17
echo "\t\t\t\t\t\t\t";
$context["next_jpo"] = $context["jpo"];
// line 18
echo "\t\t\t\t\t\t";
} else {
// line 19
echo "\t\t\t\t\t\t\t";
$context["next_jpo"] = twig_get_attribute($this->env, $this->source, (isset($context["jpos"]) || array_key_exists("jpos", $context) ? $context["jpos"] : (function () { throw new RuntimeError('Variable "jpos" does not exist.', 19, $this->source); })()), (twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 19) + 1), [], "array", false, false, false, 19);
// line 20
echo "\t\t\t\t\t\t";
}
// line 21
echo "
\t\t\t\t\t\t";
// line 22
if (((0 !== twig_compare(twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["jpo"], "date", [], "any", false, false, false, 22), "m"), twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["previous_jpo"]) || array_key_exists("previous_jpo", $context) ? $context["previous_jpo"] : (function () { throw new RuntimeError('Variable "previous_jpo" does not exist.', 22, $this->source); })()), "date", [], "any", false, false, false, 22), "m"))) || (0 === twig_compare((isset($context["previous_jpo"]) || array_key_exists("previous_jpo", $context) ? $context["previous_jpo"] : (function () { throw new RuntimeError('Variable "previous_jpo" does not exist.', 22, $this->source); })()), $context["jpo"])))) {
// line 23
echo "\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, 12));
foreach ($context['_seq'] as $context["_key"] => $context["month"]) {
// line 24
echo "\t\t\t\t\t\t\t\t";
if ((0 === twig_compare(twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["jpo"], "date", [], "any", false, false, false, 24), "n"), $context["month"]))) {
// line 25
echo "\t\t\t\t\t\t\t\t\t<li><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jpo-liste");
echo "#";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["jpo"], "date", [], "any", false, false, false, 25), "n"), "html", null, true);
echo "\" class=\"dropdown-item scroll-month\">";
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, $context["jpo"], "date", [], "any", false, false, false, 25), "medium", "MMMM Y"), "html", null, true);
echo "</a></li>
\t\t\t\t\t\t\t\t";
}
// line 27
echo "\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['month'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 28
echo "\t\t\t\t\t\t";
}
// line 29
echo "\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['jpo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 30
echo "\t\t\t\t</ul>
\t\t\t</div>
\t\t";
} else {
// line 33
echo "\t\t\t<h2 class=\"mb-4\">À LA UNE</h2>
\t\t";
}
// line 35
echo "\t\t<div class=\"position-relative\">
\t\t\t<div class=\"overflow-visible\">
\t\t\t<span id=\"jpo-next\" class=\"next-slide-jpo\"></span>
\t\t\t<span id=\"jpo-prev\" class=\"prev-slide-jpo\"></span>
\t\t\t<div class=\"jpo-une d-none d-md-block d-lg-block\">
\t\t\t\t";
// line 40
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["jpos"]) || array_key_exists("jpos", $context) ? $context["jpos"] : (function () { throw new RuntimeError('Variable "jpos" does not exist.', 40, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["jpo"]) {
// line 41
echo "\t\t\t\t\t";
if ((((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 41), 1)) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 41), 4))) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 41), 7)))) {
// line 42
echo "\t\t\t\t\t\t<div class=\"slide-jpo w-100\">
\t\t\t\t\t";
}
// line 44
echo "\t\t\t\t\t<article class=\"jpo position-relative\">
\t\t\t\t\t\t<div class=\"w-100 d-flex justify-content-center mb-2\">
\t\t\t\t\t\t\t<div class=\"icon\"></div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 48
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["jpo"], "etablissement", [], "any", false, false, false, 48), "jpoPlus", [], "any", false, false, false, 48), 1))) {
// line 49
echo "\t\t\t\t\t\t\t<span class=\"badge-plus-jpo\"></span>
\t\t\t\t\t\t";
}
// line 51
echo "\t\t\t\t\t\t<figure class=\"resize\">
\t\t\t\t\t\t\t";
// line 52
$context["imgSrc"] = $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["jpo"], "etablissement", [], "any", false, false, false, 52), "logo", [], "any", false, false, false, 52), "logoFile");
// line 53
echo "\t\t\t\t\t\t\t";
if ((isset($context["imgSrc"]) || array_key_exists("imgSrc", $context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.', 53, $this->source); })())) {
// line 54
echo "\t\t\t\t\t\t\t\t<img loading=\"lazy\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["jpo"], "etablissement", [], "any", false, false, false, 54), "logo", [], "any", false, false, false, 54), "logoFile"), "etab_hp_logo"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["jpo"], "lieu", [], "any", false, false, false, 54), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["jpo"], "etablissement", [], "any", false, false, false, 54), "denomination", [], "any", false, false, false, 54), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t";
// line 56
echo "\t\t\t\t\t\t\t";
}
// line 57
echo "\t\t\t\t\t\t\t";
// line 65
echo "\t\t\t\t\t\t</figure>
\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t<p class=\"date\">";
// line 67
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, $context["jpo"], "date", [], "any", false, false, false, 67), "medium", "d MMMM Y"), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t";
// line 69
echo "\t\t\t\t\t\t\t<p class=\"city\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\LieuExtension']->lieuLibelle(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["jpo"], "etablissement", [], "any", false, false, false, 69), "ville", [], "any", false, false, false, 69)), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t<p class=\"estab\">";
// line 70
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["jpo"], "etablissement", [], "any", false, false, false, 70), "denomination", [], "any", false, false, false, 70)), "truncate", [0 => 50, 1 => "…", 2 => true], "method", false, false, false, 70), "html", null, true);
echo "</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<a class=\"see-more\" href=\"";
// line 72
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jpo-etab", ["id" => twig_get_attribute($this->env, $this->source, $context["jpo"], "id", [], "any", false, false, false, 72)]), "html", null, true);
echo "\" data-trace-action=\"";
echo twig_escape_filter($this->env, twig_constant("App\\Entity\\Trace::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, $context["jpo"], "etablissement", [], "any", false, false, false, 72), "id", [], "any", false, false, false, 72), "html_attr");
echo "\">Découvrir</a>
\t\t\t\t\t</article>
\t\t\t\t\t";
// line 74
if ((((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 74), 3)) || (0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 74), 6))) || twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 74))) {
// line 75
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 77
echo "\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['jpo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 78
echo "\t\t\t</div>
\t\t\t<div class=\"jpo-une d-block d-md-none d-lg-none\">
\t\t\t\t";
// line 80
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["jpos"]) || array_key_exists("jpos", $context) ? $context["jpos"] : (function () { throw new RuntimeError('Variable "jpos" does not exist.', 80, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["jpo"]) {
// line 81
echo "\t\t\t\t\t<div class=\"slide-jpo w-100\">
\t\t\t\t\t\t<article class=\"jpo position-relative\">
\t\t\t\t\t\t\t<div class=\"w-100 d-flex justify-content-center\">
\t\t\t\t\t\t\t\t<div class=\"icon\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 86
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["jpo"], "etablissement", [], "any", false, false, false, 86), "jpoPlus", [], "any", false, false, false, 86), 1))) {
// line 87
echo "\t\t\t\t\t\t\t\t<span class=\"badge-plus-jpo\"></span>
\t\t\t\t\t\t\t";
}
// line 89
echo "\t\t\t\t\t\t\t<figure class=\"resize\">
\t\t\t\t\t\t\t\t";
// line 90
$context["imgSrc"] = $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["jpo"], "etablissement", [], "any", false, false, false, 90), "logo", [], "any", false, false, false, 90), "logoFile");
// line 91
echo "\t\t\t\t\t\t\t\t";
if ((isset($context["imgSrc"]) || array_key_exists("imgSrc", $context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.', 91, $this->source); })())) {
// line 92
echo "\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" class=\"resp\" src='";
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.', 92, $this->source); })()), "html", null, true);
echo "' alt='";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["jpo"], "lieu", [], "any", false, false, false, 92), "html", null, true);
echo "' width='140' height='140'/>
\t\t\t\t\t\t\t\t";
// line 100
echo "\t\t\t\t\t\t\t\t";
}
// line 101
echo "\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t<p class=\"date\">";
// line 104
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, twig_get_attribute($this->env, $this->source, $context["jpo"], "date", [], "any", false, false, false, 104), "medium", "d MMMM Y"), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t";
// line 106
echo "\t\t\t\t\t\t\t<p class=\"city\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\LieuExtension']->lieuLibelle(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["jpo"], "etablissement", [], "any", false, false, false, 106), "ville", [], "any", false, false, false, 106)), "html", null, true);
echo "</p>
\t\t\t\t\t\t\t<p class=\"estab\">";
// line 107
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["jpo"], "etablissement", [], "any", false, false, false, 107), "denomination", [], "any", false, false, false, 107)), "truncate", [0 => 50, 1 => "…", 2 => true], "method", false, false, false, 107), "html", null, true);
echo "</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<a class=\"see-more\" href=\"";
// line 109
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jpo-etab", ["id" => twig_get_attribute($this->env, $this->source, $context["jpo"], "id", [], "any", false, false, false, 109)]), "html", null, true);
echo "\" data-trace-action=\"";
echo twig_escape_filter($this->env, twig_constant("App\\Entity\\Trace::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, $context["jpo"], "etablissement", [], "any", false, false, false, 109), "id", [], "any", false, false, false, 109), "html_attr");
echo "\">Découvrir</a>
\t\t\t\t\t</article>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['jpo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 113
echo "\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t";
// line 116
if ((0 === twig_compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 116, $this->source); })()), "home"))) {
// line 117
echo "\t\t\t<div class=\"all-day\">
\t\t\t\t<a href=\"";
// line 118
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jpo-liste");
echo "\" class=\"btn-gris\">Toutes les journées portes ouvertes</a>
\t\t\t</div>
\t\t";
}
// line 121
echo "\t</div>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "partial/jpo-une.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 368 => 121, 362 => 118, 359 => 117, 357 => 116, 352 => 113, 338 => 109, 333 => 107, 328 => 106, 324 => 104, 319 => 101, 316 => 100, 309 => 92, 306 => 91, 304 => 90, 301 => 89, 297 => 87, 295 => 86, 288 => 81, 284 => 80, 280 => 78, 266 => 77, 262 => 75, 260 => 74, 251 => 72, 246 => 70, 241 => 69, 237 => 67, 233 => 65, 231 => 57, 228 => 56, 219 => 54, 216 => 53, 214 => 52, 211 => 51, 207 => 49, 205 => 48, 199 => 44, 195 => 42, 192 => 41, 175 => 40, 168 => 35, 164 => 33, 159 => 30, 145 => 29, 142 => 28, 136 => 27, 126 => 25, 123 => 24, 118 => 23, 116 => 22, 113 => 21, 110 => 20, 107 => 19, 104 => 18, 101 => 17, 98 => 16, 95 => 15, 92 => 14, 89 => 13, 86 => 12, 83 => 11, 66 => 10, 56 => 7, 52 => 5, 50 => 4, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% if jpos is defined and jpos is not empty %}
<div class=\"block-jpo-une\">
\t\t{% if type == 'home' %}
\t\t\t{#<h2>JOURNÉES PORTES OUVERTES</h2>#}
\t\t\t<div class=\"dropdown jpo-month\" data-bs-display=\"static\">
\t\t\t\t<div class=\"dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
\t\t\t\t\tPériode : <a href=\"{{ path('jpo-liste')}}#{{ jpos[0].date | date('n') }}\" class=\"scroll-month\">{{jpos[0].date | format_date(pattern='MMMM Y') }}</a>
\t\t\t\t</div>
\t\t\t\t<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">
\t\t\t\t\t{% for jpo in jpos %}
\t\t\t\t\t\t{% if loop.first %}
\t\t\t\t\t\t\t{% set previous_jpo = jpo %}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{% set previous_jpo = jpos[loop.index0 - 1] %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if loop.last %}
\t\t\t\t\t\t\t{% set next_jpo = jpo %}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{% set next_jpo = jpos[loop.index0 + 1] %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if jpo.date | date('m') != previous_jpo.date | date('m') or previous_jpo == jpo %}
\t\t\t\t\t\t\t{% for month in 1..12 %}
\t\t\t\t\t\t\t\t{% if jpo.date | date('n') == month %}
\t\t\t\t\t\t\t\t\t<li><a href=\"{{ path('jpo-liste')}}#{{ jpo.date | date('n') }}\" class=\"dropdown-item scroll-month\">{{jpo.date | format_date(pattern='MMMM Y') }}</a></li>
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t</ul>
\t\t\t</div>
\t\t{% else %}
\t\t\t<h2 class=\"mb-4\">À LA UNE</h2>
\t\t{% endif %}
\t\t<div class=\"position-relative\">
\t\t\t<div class=\"overflow-visible\">
\t\t\t<span id=\"jpo-next\" class=\"next-slide-jpo\"></span>
\t\t\t<span id=\"jpo-prev\" class=\"prev-slide-jpo\"></span>
\t\t\t<div class=\"jpo-une d-none d-md-block d-lg-block\">
\t\t\t\t{% for jpo in jpos %}
\t\t\t\t\t{% if loop.index == 1 or loop.index == 4 or loop.index == 7 %}
\t\t\t\t\t\t<div class=\"slide-jpo w-100\">
\t\t\t\t\t{% endif %}
\t\t\t\t\t<article class=\"jpo position-relative\">
\t\t\t\t\t\t<div class=\"w-100 d-flex justify-content-center mb-2\">
\t\t\t\t\t\t\t<div class=\"icon\"></div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% if jpo.etablissement.jpoPlus == 1 %}
\t\t\t\t\t\t\t<span class=\"badge-plus-jpo\"></span>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<figure class=\"resize\">
\t\t\t\t\t\t\t{% set imgSrc = vich_uploader_asset(jpo.etablissement.logo, 'logoFile') %}
\t\t\t\t\t\t\t{% if imgSrc %}
\t\t\t\t\t\t\t\t<img loading=\"lazy\" src=\"{{ vich_uploader_asset(jpo.etablissement.logo, 'logoFile') | imagine_filter('etab_hp_logo') }}\" alt=\"{{ jpo.lieu }}\" title=\"{{ jpo.etablissement.denomination }}\">
\t\t\t\t\t\t\t\t{#<img loading=\"lazy\" class=\"resp\" src='{{imgSrc}}' alt='{{jpo.lieu}}' width='140' height='140'/>#}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t{#{% elseif jpo.etablissement.imagesDiaporama is not empty %}
\t\t\t\t\t\t\t\t<img
\t\t\t\t\t\t\t\t\tloading=\"lazy\"
\t\t\t\t\t\t\t\t\tsrc=\"{{ asset('images/jouve/photo/' ~ jpo.etablissement.imagesDiaporama | first) | imagine_filter('etab_fiche')}}\"
\t\t\t\t\t\t\t\t\tclass=\"resp\"
\t\t\t\t\t\t\t\t\talt=\"{{ jpo.lieu }}\"
\t\t\t\t\t\t\t\t\ttitle=\"{{ jpo.lieu }}\">
\t\t\t\t\t\t\t{% endif %}#}
\t\t\t\t\t\t</figure>
\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t<p class=\"date\">{{jpo.date | format_date(pattern='d MMMM Y') }}</p>
\t\t\t\t\t\t\t{#<p class=\"city\">{{jpo.lieu | u.truncate(30, '…', true)}}</p>#}
\t\t\t\t\t\t\t<p class=\"city\">{{ jpo.etablissement.ville|lieuLibelle }}</p>
\t\t\t\t\t\t\t<p class=\"estab\">{{ jpo.etablissement.denomination | u.truncate(50, '…', true)}}</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<a class=\"see-more\" href=\"{{ path('jpo-etab', {'id': jpo.id}) }}\" data-trace-action=\"{{ constant('App\\\\Entity\\\\Trace::JPO') | e('html_attr') }}\" data-trace-etab=\"{{ jpo.etablissement.id | e('html_attr') }}\">Découvrir</a>
\t\t\t\t\t</article>
\t\t\t\t\t{% if loop.index == 3 or loop.index == 6 or loop.last %}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<div class=\"jpo-une d-block d-md-none d-lg-none\">
\t\t\t\t{% for jpo in jpos %}
\t\t\t\t\t<div class=\"slide-jpo w-100\">
\t\t\t\t\t\t<article class=\"jpo position-relative\">
\t\t\t\t\t\t\t<div class=\"w-100 d-flex justify-content-center\">
\t\t\t\t\t\t\t\t<div class=\"icon\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% if jpo.etablissement.jpoPlus == 1 %}
\t\t\t\t\t\t\t\t<span class=\"badge-plus-jpo\"></span>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t<figure class=\"resize\">
\t\t\t\t\t\t\t\t{% set imgSrc = vich_uploader_asset(jpo.etablissement.logo, 'logoFile') %}
\t\t\t\t\t\t\t\t{% if imgSrc %}
\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" class=\"resp\" src='{{imgSrc}}' alt='{{jpo.lieu}}' width='140' height='140'/>
\t\t\t\t\t\t\t\t{#{% elseif jpo.etablissement.imagesDiaporama is not empty %}
\t\t\t\t\t\t\t\t\t<img
\t\t\t\t\t\t\t\t\t\tloading=\"lazy\"
\t\t\t\t\t\t\t\t\t\tclass=\"resp\"
\t\t\t\t\t\t\t\t\t\tsrc=\"{{ asset('images/jouve/photo/' ~ (jpo.etablissement.imagesDiaporama | first) ) | imagine_filter('etab_fiche')}}\"
\t\t\t\t\t\t\t\t\t\talt=\"{{ jpo.lieu }}\"
\t\t\t\t\t\t\t\t\t\ttitle=\"{{ jpo.lieu }}\">#}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</figure>
\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t<p class=\"date\">{{jpo.date | format_date(pattern='d MMMM Y') }}</p>
\t\t\t\t\t\t\t{#<p class=\"city\">{{jpo.lieu | u.truncate(30, '…', true)}}</p>#}
\t\t\t\t\t\t\t<p class=\"city\">{{ jpo.etablissement.ville|lieuLibelle }}</p>
\t\t\t\t\t\t\t<p class=\"estab\">{{ jpo.etablissement.denomination | u.truncate(50, '…', true)}}</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<a class=\"see-more\" href=\"{{ path('jpo-etab', {'id': jpo.id}) }}\" data-trace-action=\"{{ constant('App\\\\Entity\\\\Trace::JPO') | e('html_attr') }}\" data-trace-etab=\"{{ jpo.etablissement.id | e('html_attr') }}\">Découvrir</a>
\t\t\t\t\t</article>
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t{% if type == 'home' %}
\t\t\t<div class=\"all-day\">
\t\t\t\t<a href=\"{{ path('jpo-liste')}}\" class=\"btn-gris\">Toutes les journées portes ouvertes</a>
\t\t\t</div>
\t\t{% endif %}
\t</div>
{% endif %}
", "partial/jpo-une.html.twig", "/app/templates/partial/jpo-une.html.twig");
}
}