var/cache/dev/twig/f7/f7a5c909d081f876341181996d5e7f84a9b534a6d8bbfa7981b99aea1b9fe909.php line 242

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. /* partial/jpo-une.html.twig */
  14. class __TwigTemplate_7a65f8f52c83c70d879684894c872fca23f57e2b6d671b662438740e8b3328c2 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""partial/jpo-une.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""partial/jpo-une.html.twig"));
  33.         // line 1
  34.         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); })())))) {
  35.             // line 2
  36.             echo "<div class=\"block-jpo-une\">
  37. \t\t";
  38.             // line 3
  39.             if ((=== 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"))) {
  40.                 // line 4
  41.                 echo "\t\t\t";
  42.                 // line 5
  43.                 echo "\t\t\t<div class=\"dropdown jpo-month\" data-bs-display=\"static\">
  44. \t\t\t\t<div class=\"dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
  45. \t\t\t\t\tPériode : <a href=\"";
  46.                 // line 7
  47.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jpo-liste");
  48.                 echo "#";
  49.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse7), "date", [], "any"falsefalsefalse7), "n"), "html"nulltrue);
  50.                 echo "\" class=\"scroll-month\">";
  51.                 echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse7), "date", [], "any"falsefalsefalse7), "medium""MMMM Y"), "html"nulltrue);
  52.                 echo "</a>
  53. \t\t\t\t</div>
  54. \t\t\t\t<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">
  55. \t\t\t\t\t";
  56.                 // line 10
  57.                 $context['_parent'] = $context;
  58.                 $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); })()));
  59.                 $context['loop'] = [
  60.                   'parent' => $context['_parent'],
  61.                   'index0' => 0,
  62.                   'index'  => 1,
  63.                   'first'  => true,
  64.                 ];
  65.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  66.                     $length count($context['_seq']);
  67.                     $context['loop']['revindex0'] = $length 1;
  68.                     $context['loop']['revindex'] = $length;
  69.                     $context['loop']['length'] = $length;
  70.                     $context['loop']['last'] = === $length;
  71.                 }
  72.                 foreach ($context['_seq'] as $context["_key"] => $context["jpo"]) {
  73.                     // line 11
  74.                     echo "\t\t\t\t\t\t";
  75.                     if (twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse11)) {
  76.                         // line 12
  77.                         echo "\t\t\t\t\t\t\t";
  78.                         $context["previous_jpo"] = $context["jpo"];
  79.                         // line 13
  80.                         echo "\t\t\t\t\t\t";
  81.                     } else {
  82.                         // line 14
  83.                         echo "\t\t\t\t\t\t\t";
  84.                         $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"falsefalsefalse14) - 1), [], "array"falsefalsefalse14);
  85.                         // line 15
  86.                         echo "\t\t\t\t\t\t";
  87.                     }
  88.                     // line 16
  89.                     echo "\t\t\t\t\t\t";
  90.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse16)) {
  91.                         // line 17
  92.                         echo "\t\t\t\t\t\t\t";
  93.                         $context["next_jpo"] = $context["jpo"];
  94.                         // line 18
  95.                         echo "\t\t\t\t\t\t";
  96.                     } else {
  97.                         // line 19
  98.                         echo "\t\t\t\t\t\t\t";
  99.                         $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"falsefalsefalse19) + 1), [], "array"falsefalsefalse19);
  100.                         // line 20
  101.                         echo "\t\t\t\t\t\t";
  102.                     }
  103.                     // line 21
  104.                     echo "
  105. \t\t\t\t\t\t";
  106.                     // line 22
  107.                     if (((!== twig_compare(twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["jpo"], "date", [], "any"falsefalsefalse22), "m"), twig_date_format_filter($this->envtwig_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"falsefalsefalse22), "m"))) || (=== 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"])))) {
  108.                         // line 23
  109.                         echo "\t\t\t\t\t\t\t";
  110.                         $context['_parent'] = $context;
  111.                         $context['_seq'] = twig_ensure_traversable(range(112));
  112.                         foreach ($context['_seq'] as $context["_key"] => $context["month"]) {
  113.                             // line 24
  114.                             echo "\t\t\t\t\t\t\t\t";
  115.                             if ((=== twig_compare(twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["jpo"], "date", [], "any"falsefalsefalse24), "n"), $context["month"]))) {
  116.                                 // line 25
  117.                                 echo "\t\t\t\t\t\t\t\t\t<li><a href=\"";
  118.                                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jpo-liste");
  119.                                 echo "#";
  120.                                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["jpo"], "date", [], "any"falsefalsefalse25), "n"), "html"nulltrue);
  121.                                 echo "\" class=\"dropdown-item scroll-month\">";
  122.                                 echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source$context["jpo"], "date", [], "any"falsefalsefalse25), "medium""MMMM Y"), "html"nulltrue);
  123.                                 echo "</a></li>
  124. \t\t\t\t\t\t\t\t";
  125.                             }
  126.                             // line 27
  127.                             echo "\t\t\t\t\t\t\t";
  128.                         }
  129.                         $_parent $context['_parent'];
  130.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['month'], $context['_parent'], $context['loop']);
  131.                         $context array_intersect_key($context$_parent) + $_parent;
  132.                         // line 28
  133.                         echo "\t\t\t\t\t\t";
  134.                     }
  135.                     // line 29
  136.                     echo "\t\t\t\t\t";
  137.                     ++$context['loop']['index0'];
  138.                     ++$context['loop']['index'];
  139.                     $context['loop']['first'] = false;
  140.                     if (isset($context['loop']['length'])) {
  141.                         --$context['loop']['revindex0'];
  142.                         --$context['loop']['revindex'];
  143.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  144.                     }
  145.                 }
  146.                 $_parent $context['_parent'];
  147.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['jpo'], $context['_parent'], $context['loop']);
  148.                 $context array_intersect_key($context$_parent) + $_parent;
  149.                 // line 30
  150.                 echo "\t\t\t\t</ul>
  151. \t\t\t</div>
  152. \t\t";
  153.             } else {
  154.                 // line 33
  155.                 echo "\t\t\t<h2 class=\"mb-4\">À LA UNE</h2>
  156. \t\t";
  157.             }
  158.             // line 35
  159.             echo "\t\t<div class=\"position-relative\">
  160. \t\t\t<div class=\"overflow-visible\">
  161. \t\t\t<span id=\"jpo-next\" class=\"next-slide-jpo\"></span>
  162. \t\t\t<span id=\"jpo-prev\" class=\"prev-slide-jpo\"></span>
  163. \t\t\t<div class=\"jpo-une d-none d-md-block d-lg-block\">
  164. \t\t\t\t";
  165.             // line 40
  166.             $context['_parent'] = $context;
  167.             $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); })()));
  168.             $context['loop'] = [
  169.               'parent' => $context['_parent'],
  170.               'index0' => 0,
  171.               'index'  => 1,
  172.               'first'  => true,
  173.             ];
  174.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  175.                 $length count($context['_seq']);
  176.                 $context['loop']['revindex0'] = $length 1;
  177.                 $context['loop']['revindex'] = $length;
  178.                 $context['loop']['length'] = $length;
  179.                 $context['loop']['last'] = === $length;
  180.             }
  181.             foreach ($context['_seq'] as $context["_key"] => $context["jpo"]) {
  182.                 // line 41
  183.                 echo "\t\t\t\t\t";
  184.                 if ((((=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse41), 1)) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse41), 4))) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse41), 7)))) {
  185.                     // line 42
  186.                     echo "\t\t\t\t\t\t<div class=\"slide-jpo w-100\">
  187. \t\t\t\t\t";
  188.                 }
  189.                 // line 44
  190.                 echo "\t\t\t\t\t<article class=\"jpo position-relative\">
  191. \t\t\t\t\t\t<div class=\"w-100 d-flex justify-content-center mb-2\">
  192. \t\t\t\t\t\t\t<div class=\"icon\"></div>
  193. \t\t\t\t\t\t</div>
  194. \t\t\t\t\t\t";
  195.                 // line 48
  196.                 if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["jpo"], "etablissement", [], "any"falsefalsefalse48), "jpoPlus", [], "any"falsefalsefalse48), 1))) {
  197.                     // line 49
  198.                     echo "\t\t\t\t\t\t\t<span class=\"badge-plus-jpo\"></span>
  199. \t\t\t\t\t\t";
  200.                 }
  201.                 // line 51
  202.                 echo "\t\t\t\t\t\t<figure class=\"resize\">
  203. \t\t\t\t\t\t\t";
  204.                 // line 52
  205.                 $context["imgSrc"] = $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["jpo"], "etablissement", [], "any"falsefalsefalse52), "logo", [], "any"falsefalsefalse52), "logoFile");
  206.                 // line 53
  207.                 echo "\t\t\t\t\t\t\t";
  208.                 if ((isset($context["imgSrc"]) || array_key_exists("imgSrc"$context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.'53$this->source); })())) {
  209.                     // line 54
  210.                     echo "\t\t\t\t\t\t\t\t<img loading=\"lazy\" src=\"";
  211.                     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$context["jpo"], "etablissement", [], "any"falsefalsefalse54), "logo", [], "any"falsefalsefalse54), "logoFile"), "etab_hp_logo"), "html"nulltrue);
  212.                     echo "\" alt=\"";
  213.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["jpo"], "lieu", [], "any"falsefalsefalse54), "html"nulltrue);
  214.                     echo "\" title=\"";
  215.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["jpo"], "etablissement", [], "any"falsefalsefalse54), "denomination", [], "any"falsefalsefalse54), "html"nulltrue);
  216.                     echo "\">
  217. \t\t\t\t\t\t\t\t";
  218.                     // line 56
  219.                     echo "\t\t\t\t\t\t\t";
  220.                 }
  221.                 // line 57
  222.                 echo "\t\t\t\t\t\t\t";
  223.                 // line 65
  224.                 echo "\t\t\t\t\t\t</figure>
  225. \t\t\t\t\t\t<div class=\"content\">
  226. \t\t\t\t\t\t\t<p class=\"date\">";
  227.                 // line 67
  228.                 echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source$context["jpo"], "date", [], "any"falsefalsefalse67), "medium""d MMMM Y"), "html"nulltrue);
  229.                 echo "</p>
  230. \t\t\t\t\t\t\t";
  231.                 // line 69
  232.                 echo "\t\t\t\t\t\t\t<p class=\"city\">";
  233.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\LieuExtension']->lieuLibelle(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["jpo"], "etablissement", [], "any"falsefalsefalse69), "ville", [], "any"falsefalsefalse69)), "html"nulltrue);
  234.                 echo "</p>
  235. \t\t\t\t\t\t\t<p class=\"estab\">";
  236.                 // line 70
  237.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["jpo"], "etablissement", [], "any"falsefalsefalse70), "denomination", [], "any"falsefalsefalse70)), "truncate", [=> 50=> "…"=> true], "method"falsefalsefalse70), "html"nulltrue);
  238.                 echo "</p>
  239. \t\t\t\t\t\t</div>
  240. \t\t\t\t\t\t<a class=\"see-more\" href=\"";
  241.                 // line 72
  242.                 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"falsefalsefalse72)]), "html"nulltrue);
  243.                 echo "\" data-trace-action=\"";
  244.                 echo twig_escape_filter($this->envtwig_constant("App\\Entity\\Trace::JPO"), "html_attr");
  245.                 echo "\" data-trace-etab=\"";
  246.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["jpo"], "etablissement", [], "any"falsefalsefalse72), "id", [], "any"falsefalsefalse72), "html_attr");
  247.                 echo "\">Découvrir</a>
  248. \t\t\t\t\t</article>
  249. \t\t\t\t\t";
  250.                 // line 74
  251.                 if ((((=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse74), 3)) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse74), 6))) || twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse74))) {
  252.                     // line 75
  253.                     echo "\t\t\t\t\t\t</div>
  254. \t\t\t\t\t";
  255.                 }
  256.                 // line 77
  257.                 echo "\t\t\t\t";
  258.                 ++$context['loop']['index0'];
  259.                 ++$context['loop']['index'];
  260.                 $context['loop']['first'] = false;
  261.                 if (isset($context['loop']['length'])) {
  262.                     --$context['loop']['revindex0'];
  263.                     --$context['loop']['revindex'];
  264.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  265.                 }
  266.             }
  267.             $_parent $context['_parent'];
  268.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['jpo'], $context['_parent'], $context['loop']);
  269.             $context array_intersect_key($context$_parent) + $_parent;
  270.             // line 78
  271.             echo "\t\t\t</div>
  272. \t\t\t<div class=\"jpo-une d-block d-md-none d-lg-none\">
  273. \t\t\t\t";
  274.             // line 80
  275.             $context['_parent'] = $context;
  276.             $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); })()));
  277.             foreach ($context['_seq'] as $context["_key"] => $context["jpo"]) {
  278.                 // line 81
  279.                 echo "\t\t\t\t\t<div class=\"slide-jpo w-100\">
  280. \t\t\t\t\t\t<article class=\"jpo position-relative\">
  281. \t\t\t\t\t\t\t<div class=\"w-100 d-flex justify-content-center\">
  282. \t\t\t\t\t\t\t\t<div class=\"icon\"></div>
  283. \t\t\t\t\t\t\t</div>
  284. \t\t\t\t\t\t\t";
  285.                 // line 86
  286.                 if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["jpo"], "etablissement", [], "any"falsefalsefalse86), "jpoPlus", [], "any"falsefalsefalse86), 1))) {
  287.                     // line 87
  288.                     echo "\t\t\t\t\t\t\t\t<span class=\"badge-plus-jpo\"></span>
  289. \t\t\t\t\t\t\t";
  290.                 }
  291.                 // line 89
  292.                 echo "\t\t\t\t\t\t\t<figure class=\"resize\">
  293. \t\t\t\t\t\t\t\t";
  294.                 // line 90
  295.                 $context["imgSrc"] = $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["jpo"], "etablissement", [], "any"falsefalsefalse90), "logo", [], "any"falsefalsefalse90), "logoFile");
  296.                 // line 91
  297.                 echo "\t\t\t\t\t\t\t\t";
  298.                 if ((isset($context["imgSrc"]) || array_key_exists("imgSrc"$context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.'91$this->source); })())) {
  299.                     // line 92
  300.                     echo "\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" class=\"resp\" src='";
  301.                     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"nulltrue);
  302.                     echo "' alt='";
  303.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["jpo"], "lieu", [], "any"falsefalsefalse92), "html"nulltrue);
  304.                     echo "' width='140' height='140'/>
  305. \t\t\t\t\t\t\t\t";
  306.                     // line 100
  307.                     echo "\t\t\t\t\t\t\t\t";
  308.                 }
  309.                 // line 101
  310.                 echo "\t\t\t\t\t\t\t</figure>
  311. \t\t\t\t\t\t<div class=\"content\">
  312. \t\t\t\t\t\t\t<p class=\"date\">";
  313.                 // line 104
  314.                 echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source$context["jpo"], "date", [], "any"falsefalsefalse104), "medium""d MMMM Y"), "html"nulltrue);
  315.                 echo "</p>
  316. \t\t\t\t\t\t\t";
  317.                 // line 106
  318.                 echo "\t\t\t\t\t\t\t<p class=\"city\">";
  319.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\LieuExtension']->lieuLibelle(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["jpo"], "etablissement", [], "any"falsefalsefalse106), "ville", [], "any"falsefalsefalse106)), "html"nulltrue);
  320.                 echo "</p>
  321. \t\t\t\t\t\t\t<p class=\"estab\">";
  322.                 // line 107
  323.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["jpo"], "etablissement", [], "any"falsefalsefalse107), "denomination", [], "any"falsefalsefalse107)), "truncate", [=> 50=> "…"=> true], "method"falsefalsefalse107), "html"nulltrue);
  324.                 echo "</p>
  325. \t\t\t\t\t\t</div>
  326. \t\t\t\t\t\t<a class=\"see-more\" href=\"";
  327.                 // line 109
  328.                 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"falsefalsefalse109)]), "html"nulltrue);
  329.                 echo "\" data-trace-action=\"";
  330.                 echo twig_escape_filter($this->envtwig_constant("App\\Entity\\Trace::JPO"), "html_attr");
  331.                 echo "\" data-trace-etab=\"";
  332.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["jpo"], "etablissement", [], "any"falsefalsefalse109), "id", [], "any"falsefalsefalse109), "html_attr");
  333.                 echo "\">Découvrir</a>
  334. \t\t\t\t\t</article>
  335. \t\t\t\t\t</div>
  336. \t\t\t\t";
  337.             }
  338.             $_parent $context['_parent'];
  339.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['jpo'], $context['_parent'], $context['loop']);
  340.             $context array_intersect_key($context$_parent) + $_parent;
  341.             // line 113
  342.             echo "\t\t\t</div>
  343. \t\t\t</div>
  344. \t\t</div>
  345. \t\t";
  346.             // line 116
  347.             if ((=== 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"))) {
  348.                 // line 117
  349.                 echo "\t\t\t<div class=\"all-day\">
  350. \t\t\t\t<a href=\"";
  351.                 // line 118
  352.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jpo-liste");
  353.                 echo "\" class=\"btn-gris\">Toutes les journées portes ouvertes</a>
  354. \t\t\t</div>
  355. \t\t";
  356.             }
  357.             // line 121
  358.             echo "\t</div>
  359. ";
  360.         }
  361.         
  362.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  363.         
  364.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  365.     }
  366.     public function getTemplateName()
  367.     {
  368.         return "partial/jpo-une.html.twig";
  369.     }
  370.     public function isTraitable()
  371.     {
  372.         return false;
  373.     }
  374.     public function getDebugInfo()
  375.     {
  376.         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,);
  377.     }
  378.     public function getSourceContext()
  379.     {
  380.         return new Source("{% if jpos is defined and jpos is not empty %}
  381. <div class=\"block-jpo-une\">
  382. \t\t{% if type == 'home' %}
  383. \t\t\t{#<h2>JOURNÉES PORTES OUVERTES</h2>#}
  384. \t\t\t<div class=\"dropdown jpo-month\" data-bs-display=\"static\">
  385. \t\t\t\t<div class=\"dropdown-toggle\" type=\"button\" id=\"dropdownMenuButton\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
  386. \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>
  387. \t\t\t\t</div>
  388. \t\t\t\t<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">
  389. \t\t\t\t\t{% for jpo in jpos %}
  390. \t\t\t\t\t\t{% if loop.first %}
  391. \t\t\t\t\t\t\t{% set previous_jpo = jpo %}
  392. \t\t\t\t\t\t{% else %}
  393. \t\t\t\t\t\t\t{% set previous_jpo = jpos[loop.index0 - 1] %}
  394. \t\t\t\t\t\t{% endif %}
  395. \t\t\t\t\t\t{% if loop.last %}
  396. \t\t\t\t\t\t\t{% set next_jpo = jpo %}
  397. \t\t\t\t\t\t{% else %}
  398. \t\t\t\t\t\t\t{% set next_jpo = jpos[loop.index0 + 1] %}
  399. \t\t\t\t\t\t{% endif %}
  400. \t\t\t\t\t\t{% if jpo.date | date('m') != previous_jpo.date | date('m') or previous_jpo == jpo %}
  401. \t\t\t\t\t\t\t{% for month in 1..12 %}
  402. \t\t\t\t\t\t\t\t{% if jpo.date | date('n') == month %}
  403. \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>
  404. \t\t\t\t\t\t\t\t{% endif %}
  405. \t\t\t\t\t\t\t{% endfor %}
  406. \t\t\t\t\t\t{% endif %}
  407. \t\t\t\t\t{% endfor %}
  408. \t\t\t\t</ul>
  409. \t\t\t</div>
  410. \t\t{% else %}
  411. \t\t\t<h2 class=\"mb-4\">À LA UNE</h2>
  412. \t\t{% endif %}
  413. \t\t<div class=\"position-relative\">
  414. \t\t\t<div class=\"overflow-visible\">
  415. \t\t\t<span id=\"jpo-next\" class=\"next-slide-jpo\"></span>
  416. \t\t\t<span id=\"jpo-prev\" class=\"prev-slide-jpo\"></span>
  417. \t\t\t<div class=\"jpo-une d-none d-md-block d-lg-block\">
  418. \t\t\t\t{% for jpo in jpos %}
  419. \t\t\t\t\t{% if loop.index == 1 or loop.index == 4 or loop.index == 7  %}
  420. \t\t\t\t\t\t<div class=\"slide-jpo w-100\">
  421. \t\t\t\t\t{% endif %}
  422. \t\t\t\t\t<article class=\"jpo position-relative\">
  423. \t\t\t\t\t\t<div class=\"w-100 d-flex justify-content-center mb-2\">
  424. \t\t\t\t\t\t\t<div class=\"icon\"></div>
  425. \t\t\t\t\t\t</div>
  426. \t\t\t\t\t\t{% if jpo.etablissement.jpoPlus == 1 %}
  427. \t\t\t\t\t\t\t<span class=\"badge-plus-jpo\"></span>
  428. \t\t\t\t\t\t{% endif %}
  429. \t\t\t\t\t\t<figure class=\"resize\">
  430. \t\t\t\t\t\t\t{% set imgSrc = vich_uploader_asset(jpo.etablissement.logo, 'logoFile') %}
  431. \t\t\t\t\t\t\t{% if imgSrc %}
  432. \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 }}\">
  433. \t\t\t\t\t\t\t\t{#<img loading=\"lazy\" class=\"resp\" src='{{imgSrc}}' alt='{{jpo.lieu}}' width='140' height='140'/>#}
  434. \t\t\t\t\t\t\t{% endif %}
  435. \t\t\t\t\t\t\t{#{% elseif jpo.etablissement.imagesDiaporama is not empty %}
  436. \t\t\t\t\t\t\t\t<img 
  437. \t\t\t\t\t\t\t\t\tloading=\"lazy\"
  438. \t\t\t\t\t\t\t\t\tsrc=\"{{ asset('images/jouve/photo/' ~ jpo.etablissement.imagesDiaporama | first) | imagine_filter('etab_fiche')}}\"
  439. \t\t\t\t\t\t\t\t\tclass=\"resp\" 
  440. \t\t\t\t\t\t\t\t\talt=\"{{ jpo.lieu }}\" 
  441. \t\t\t\t\t\t\t\t\ttitle=\"{{ jpo.lieu }}\">
  442. \t\t\t\t\t\t\t{% endif %}#}
  443. \t\t\t\t\t\t</figure>
  444. \t\t\t\t\t\t<div class=\"content\">
  445. \t\t\t\t\t\t\t<p class=\"date\">{{jpo.date | format_date(pattern='d MMMM Y') }}</p>
  446. \t\t\t\t\t\t\t{#<p class=\"city\">{{jpo.lieu | u.truncate(30, '…', true)}}</p>#}
  447. \t\t\t\t\t\t\t<p class=\"city\">{{ jpo.etablissement.ville|lieuLibelle }}</p>
  448. \t\t\t\t\t\t\t<p class=\"estab\">{{ jpo.etablissement.denomination | u.truncate(50, '…', true)}}</p>
  449. \t\t\t\t\t\t</div>
  450. \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>
  451. \t\t\t\t\t</article>
  452. \t\t\t\t\t{% if loop.index == 3 or loop.index == 6 or loop.last  %}
  453. \t\t\t\t\t\t</div>
  454. \t\t\t\t\t{% endif %}
  455. \t\t\t\t{% endfor %}
  456. \t\t\t</div>
  457. \t\t\t<div class=\"jpo-une d-block d-md-none d-lg-none\">
  458. \t\t\t\t{% for jpo in jpos %}
  459. \t\t\t\t\t<div class=\"slide-jpo w-100\">
  460. \t\t\t\t\t\t<article class=\"jpo position-relative\">
  461. \t\t\t\t\t\t\t<div class=\"w-100 d-flex justify-content-center\">
  462. \t\t\t\t\t\t\t\t<div class=\"icon\"></div>
  463. \t\t\t\t\t\t\t</div>
  464. \t\t\t\t\t\t\t{% if jpo.etablissement.jpoPlus == 1 %}
  465. \t\t\t\t\t\t\t\t<span class=\"badge-plus-jpo\"></span>
  466. \t\t\t\t\t\t\t{% endif %}
  467. \t\t\t\t\t\t\t<figure class=\"resize\">
  468. \t\t\t\t\t\t\t\t{% set imgSrc = vich_uploader_asset(jpo.etablissement.logo, 'logoFile') %}
  469. \t\t\t\t\t\t\t\t{% if imgSrc %}
  470. \t\t\t\t\t\t\t\t\t<img loading=\"lazy\" class=\"resp\" src='{{imgSrc}}' alt='{{jpo.lieu}}' width='140' height='140'/>
  471. \t\t\t\t\t\t\t\t{#{% elseif jpo.etablissement.imagesDiaporama is not empty %}
  472. \t\t\t\t\t\t\t\t\t<img
  473. \t\t\t\t\t\t\t\t\t\tloading=\"lazy\"
  474. \t\t\t\t\t\t\t\t\t\tclass=\"resp\"
  475. \t\t\t\t\t\t\t\t\t\tsrc=\"{{ asset('images/jouve/photo/' ~ (jpo.etablissement.imagesDiaporama | first) ) | imagine_filter('etab_fiche')}}\"
  476. \t\t\t\t\t\t\t\t\t\talt=\"{{ jpo.lieu }}\"
  477. \t\t\t\t\t\t\t\t\t\ttitle=\"{{ jpo.lieu }}\">#}
  478. \t\t\t\t\t\t\t\t{% endif %}
  479. \t\t\t\t\t\t\t</figure>
  480. \t\t\t\t\t\t<div class=\"content\">
  481. \t\t\t\t\t\t\t<p class=\"date\">{{jpo.date | format_date(pattern='d MMMM Y') }}</p>
  482. \t\t\t\t\t\t\t{#<p class=\"city\">{{jpo.lieu | u.truncate(30, '…', true)}}</p>#}
  483. \t\t\t\t\t\t\t<p class=\"city\">{{ jpo.etablissement.ville|lieuLibelle }}</p>
  484. \t\t\t\t\t\t\t<p class=\"estab\">{{ jpo.etablissement.denomination | u.truncate(50, '…', true)}}</p>
  485. \t\t\t\t\t\t</div>
  486. \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>
  487. \t\t\t\t\t</article>
  488. \t\t\t\t\t</div>
  489. \t\t\t\t{% endfor %}
  490. \t\t\t</div>
  491. \t\t\t</div>
  492. \t\t</div>
  493. \t\t{% if type == 'home' %}
  494. \t\t\t<div class=\"all-day\">
  495. \t\t\t\t<a href=\"{{ path('jpo-liste')}}\" class=\"btn-gris\">Toutes les journées portes ouvertes</a>
  496. \t\t\t</div>
  497. \t\t{% endif %}
  498. \t</div>
  499. {% endif %}
  500. ""partial/jpo-une.html.twig""/app/templates/partial/jpo-une.html.twig");
  501.     }
  502. }