var/cache/website/dev/twig/3a/3ad5150b5770fc91b2a0d1e3cbd3827cf8f2654ea9534f005abb18ef47280b84.php line 213

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* blocks/previews/preview-agenda-logic.html.twig */
  15. class __TwigTemplate_de9698cd9fa2c8afeac0fa30d2891c1c10dc233e2aa4fdd8bc4ee30ae6b6ac2b extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blocks/previews/preview-agenda-logic.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blocks/previews/preview-agenda-logic.html.twig"));
  34.         // line 1
  35.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["article"] ?? null), "excerpt", [], "any"falsetruefalse1), "categories", [], "any"truetruefalse1) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'1$this->source); })()), "excerpt", [], "any"falsefalsefalse1), "categories", [], "any"falsefalsefalse1)))) {
  36.             // line 2
  37.             yield "\t";
  38.             $context["categories"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'2$this->source); })()), "excerpt", [], "any"falsefalsefalse2), "categories", [], "any"falsefalsefalse2);
  39.         }
  40.         // line 4
  41.         if ((array_key_exists("articleContentLinkedWith"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["articleContentLinkedWith"]) || array_key_exists("articleContentLinkedWith"$context) ? $context["articleContentLinkedWith"] : (function () { throw new RuntimeError('Variable "articleContentLinkedWith" does not exist.'4$this->source); })())))) {
  42.             // line 5
  43.             yield "\t";
  44.             $context["articleContent"] = (isset($context["articleContentLinkedWith"]) || array_key_exists("articleContentLinkedWith"$context) ? $context["articleContentLinkedWith"] : (function () { throw new RuntimeError('Variable "articleContentLinkedWith" does not exist.'5$this->source); })());
  45.         } else {
  46.             // line 7
  47.             yield "\t";
  48.             if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["article"] ?? null), "content", [], "any"falsetruefalse7), "content", [], "any"truetruefalse7) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'7$this->source); })()), "content", [], "any"falsefalsefalse7), "content", [], "any"falsefalsefalse7)))) {
  49.                 // line 8
  50.                 yield "\t\t";
  51.                 $context["articleContent"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'8$this->source); })()), "content", [], "any"falsefalsefalse8), "content", [], "any"falsefalsefalse8);
  52.                 // line 9
  53.                 yield "\t";
  54.             }
  55.         }
  56.         // line 11
  57.         if ((CoreExtension::getAttribute($this->env$this->source, ($context["articleContent"] ?? null), "header_img", [], "any"truetruefalse11) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'11$this->source); })()), "header_img", [], "any"falsefalsefalse11)))) {
  58.             // line 12
  59.             yield "\t";
  60.             $context["img"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'12$this->source); })()), "header_img", [], "any"falsefalsefalse12);
  61.         }
  62.         // line 14
  63.         if ((CoreExtension::getAttribute($this->env$this->source, ($context["articleContent"] ?? null), "chapo", [], "any"truetruefalse14) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'14$this->source); })()), "chapo", [], "any"falsefalsefalse14)))) {
  64.             // line 15
  65.             yield "\t";
  66.             $context["chapo"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'15$this->source); })()), "chapo", [], "any"falsefalsefalse15);
  67.         }
  68.         // line 17
  69.         if ((CoreExtension::getAttribute($this->env$this->source, ($context["articleContent"] ?? null), "date", [], "any"truetruefalse17) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'17$this->source); })()), "date", [], "any"falsefalsefalse17)))) {
  70.             // line 18
  71.             yield "\t";
  72.             $context["date"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'18$this->source); })()), "date", [], "any"falsefalsefalse18);
  73.         }
  74.         // line 20
  75.         if ((CoreExtension::getAttribute($this->env$this->source, ($context["articleContent"] ?? null), "time", [], "any"truetruefalse20) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'20$this->source); })()), "time", [], "any"falsefalsefalse20)))) {
  76.             // line 21
  77.             yield "\t";
  78.             $context["time"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'21$this->source); })()), "time", [], "any"falsefalsefalse21);
  79.         }
  80.         // line 23
  81.         if ((CoreExtension::getAttribute($this->env$this->source, ($context["articleContent"] ?? null), "price", [], "any"truetruefalse23) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'23$this->source); })()), "price", [], "any"falsefalsefalse23)))) {
  82.             // line 24
  83.             yield "\t";
  84.             $context["price"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'24$this->source); })()), "price", [], "any"falsefalsefalse24);
  85.         }
  86.         // line 26
  87.         if ((CoreExtension::getAttribute($this->env$this->source, ($context["articleContent"] ?? null), "event_type", [], "any"truetruefalse26) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'26$this->source); })()), "event_type", [], "any"falsefalsefalse26)))) {
  88.             // line 27
  89.             yield "\t";
  90.             $context["event_type"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'27$this->source); })()), "event_type", [], "any"falsefalsefalse27);
  91.         }
  92.         // line 29
  93.         yield "
  94. ";
  95.         // line 30
  96.         if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "slider_mode", [], "any"truetruefalse30) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'30$this->source); })()), "slider_mode", [], "any"falsefalsefalse30)))) {
  97.             // line 31
  98.             yield "\t<li class=\"splide__slide\">
  99. \t\t<div class=\"preview-container agenda br8 dflex fdc\">
  100. \t\t";
  101.         } else {
  102.             // line 34
  103.             yield "\t\t\t<div class=\"preview-container br8 dflex fdc agenda";
  104.             if ((=== CoreExtension::compare((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'34$this->source); })()), 2))) {
  105.                 yield " not-visible-mobile-article";
  106.             }
  107.             if ((=== CoreExtension::compare((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'34$this->source); })()), 3))) {
  108.                 yield " not-visible-tablette-article";
  109.             }
  110.             yield "\">
  111. \t\t\t";
  112.         }
  113.         // line 36
  114.         yield "
  115. \t\t\t<div class=\"preview-header\">
  116. \t\t\t\t";
  117.         // line 38
  118.         if ((array_key_exists("img"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'38$this->source); })())))) {
  119.             // line 39
  120.             yield "\t\t\t\t\t";
  121.             yield from             $this->loadTemplate("blocks/previews/img/image.html.twig""blocks/previews/preview-agenda-logic.html.twig"39)->unwrap()->yield($context);
  122.             // line 40
  123.             yield "\t\t\t\t";
  124.         } else {
  125.             // line 41
  126.             yield "\t\t\t\t\t";
  127.             yield from             $this->loadTemplate("blocks/previews/img/default-image.html.twig""blocks/previews/preview-agenda-logic.html.twig"41)->unwrap()->yield($context);
  128.             // line 42
  129.             yield "\t\t\t\t";
  130.         }
  131.         // line 43
  132.         yield "\t\t\t\t";
  133.         if ((array_key_exists("date"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["date"]) || array_key_exists("date"$context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.'43$this->source); })())))) {
  134.             // line 44
  135.             yield "\t\t\t\t\t";
  136.             $context["day"] = CoreExtension::getAttribute($this->env$this->sourceTwig\Extension\CoreExtension::split($this->env->getCharset(), $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, (isset($context["date"]) || array_key_exists("date"$context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.'44$this->source); })()), "medium"""null"gregorian""fr"), " "), 0, [], "array"falsefalsefalse44);
  137.             // line 45
  138.             yield "\t\t\t\t\t";
  139.             $context["month"] = Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->sourceTwig\Extension\CoreExtension::split($this->env->getCharset(), $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, (isset($context["date"]) || array_key_exists("date"$context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.'45$this->source); })()), "medium"""null"gregorian""fr"), " "), 1, [], "array"falsefalsefalse45));
  140.             // line 46
  141.             yield "\t\t\t\t\t";
  142.             $context["year"] = CoreExtension::getAttribute($this->env$this->sourceTwig\Extension\CoreExtension::split($this->env->getCharset(), $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, (isset($context["date"]) || array_key_exists("date"$context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.'46$this->source); })()), "medium"""null"gregorian""fr"), " "), 2, [], "array"falsefalsefalse46);
  143.             // line 47
  144.             yield "\t\t\t\t\t<div class=\"agenda-date dflex fdc aic br6 fs20 lh20 corange shadow-small\">
  145. \t\t\t\t\t\t<span>";
  146.             // line 48
  147.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["day"]) || array_key_exists("day"$context) ? $context["day"] : (function () { throw new RuntimeError('Variable "day" does not exist.'48$this->source); })()), "html"nulltrue);
  148.             yield "</span>
  149. \t\t\t\t\t\t<span>";
  150.             // line 49
  151.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'49$this->source); })()), "html"nulltrue);
  152.             yield "</span>
  153. \t\t\t\t\t\t<span class=\"fs12 lh16 fw400\">";
  154.             // line 50
  155.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'50$this->source); })()), "html"nulltrue);
  156.             yield "</span>
  157. \t\t\t\t\t</div>
  158. \t\t\t\t";
  159.         }
  160.         // line 53
  161.         yield "\t\t\t\t";
  162.         if ((array_key_exists("event_type"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["event_type"]) || array_key_exists("event_type"$context) ? $context["event_type"] : (function () { throw new RuntimeError('Variable "event_type" does not exist.'53$this->source); })())))) {
  163.             // line 54
  164.             yield "\t\t\t\t\t";
  165.             $context["text"] = "";
  166.             // line 55
  167.             yield "\t\t\t\t\t";
  168.             if ((=== CoreExtension::compare((isset($context["event_type"]) || array_key_exists("event_type"$context) ? $context["event_type"] : (function () { throw new RuntimeError('Variable "event_type" does not exist.'55$this->source); })()), "presentiel"))) {
  169.                 // line 56
  170.                 yield "\t\t\t\t\t\t";
  171.                 $context["text"] = "PrĂ©sentiel";
  172.                 // line 57
  173.                 yield "\t\t\t\t\t";
  174.             } else {
  175.                 // line 58
  176.                 yield "\t\t\t\t\t\t";
  177.                 $context["text"] = "Distanciel";
  178.                 // line 59
  179.                 yield "\t\t\t\t\t";
  180.             }
  181.             // line 60
  182.             yield "
  183. \t\t\t\t\t<div class=\"agenda-type lh20 fs14 shadow-small\">";
  184.             // line 61
  185.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["text"]) || array_key_exists("text"$context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.'61$this->source); })()), "html"nulltrue);
  186.             yield "</div>
  187. \t\t\t\t";
  188.         }
  189.         // line 63
  190.         yield "\t\t\t\t<div class=\"background-color-orange\"></div>
  191. \t\t\t</div>
  192. \t\t\t<div class=\"preview-content cwhite\">
  193. \t\t\t\t<a href=\"";
  194.         // line 66
  195.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(CoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'66$this->source); })()), "routePath", [], "any"falsefalsefalse66)), "html"nulltrue);
  196.         yield "\" class=\"cblue nodeco dblock\">
  197. \t\t\t\t\t<div class=\"fw500 fs20 preview-h3 lh28 cwhite\">";
  198.         // line 67
  199.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'67$this->source); })()), "title", [], "any"falsefalsefalse67), "html"nulltrue);
  200.         yield "</div>
  201. \t\t\t\t</a>
  202. \t\t\t\t";
  203.         // line 69
  204.         yield from         $this->loadTemplate("blocks/previews-from-controller/blocks/categories.html.twig""blocks/previews/preview-agenda-logic.html.twig"69)->unwrap()->yield($context);
  205.         // line 70
  206.         yield "
  207. \t\t\t\t";
  208.         // line 71
  209.         yield from         $this->loadTemplate("blocks/previews-from-controller/blocks/place.html.twig""blocks/previews/preview-agenda-logic.html.twig"71)->unwrap()->yield(CoreExtension::merge($context, ["placeholder" => (isset($context["articleContent"]) || array_key_exists("articleContent"$context) ? $context["articleContent"] : (function () { throw new RuntimeError('Variable "articleContent" does not exist.'71$this->source); })())]));
  210.         // line 72
  211.         yield "
  212. \t\t\t\t";
  213.         // line 73
  214.         if ((array_key_exists("date"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["date"]) || array_key_exists("date"$context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.'73$this->source); })())))) {
  215.             // line 74
  216.             yield "\t\t\t\t\t<div class=\"date\">
  217. \t\t\t\t\t\t";
  218.             // line 75
  219.             $context["dateArray"] = Twig\Extension\CoreExtension::split($this->env->getCharset(), $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, (isset($context["date"]) || array_key_exists("date"$context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.'75$this->source); })()), "full""full"""null"gregorian""fr"), " ");
  220.             // line 76
  221.             yield "\t\t\t\t\t\t<img src=\"/resources/img/agenda/calendar-icon.svg\" alt=\"calendar\" width=\"16\" height=\"16\" loading=\"lazy\">
  222. \t\t\t\t\t\t";
  223.             // line 77
  224.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((((Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source, (isset($context["dateArray"]) || array_key_exists("dateArray"$context) ? $context["dateArray"] : (function () { throw new RuntimeError('Variable "dateArray" does not exist.'77$this->source); })()), 0, [], "array"falsefalsefalse77)) . " ") . CoreExtension::getAttribute($this->env$this->source, (isset($context["dateArray"]) || array_key_exists("dateArray"$context) ? $context["dateArray"] : (function () { throw new RuntimeError('Variable "dateArray" does not exist.'77$this->source); })()), 1, [], "array"falsefalsefalse77)) . " ") . Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source, (isset($context["dateArray"]) || array_key_exists("dateArray"$context) ? $context["dateArray"] : (function () { throw new RuntimeError('Variable "dateArray" does not exist.'77$this->source); })()), 2, [], "array"falsefalsefalse77))) . " ") . CoreExtension::getAttribute($this->env$this->source, (isset($context["dateArray"]) || array_key_exists("dateArray"$context) ? $context["dateArray"] : (function () { throw new RuntimeError('Variable "dateArray" does not exist.'77$this->source); })()), 3, [], "array"falsefalsefalse77)), "html"nulltrue);
  225.             yield "
  226. \t\t\t\t\t</div>
  227. \t\t\t\t";
  228.         }
  229.         // line 80
  230.         yield "\t\t\t\t<div>
  231. \t\t\t\t\t";
  232.         // line 81
  233.         if ((array_key_exists("time"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["time"]) || array_key_exists("time"$context) ? $context["time"] : (function () { throw new RuntimeError('Variable "time" does not exist.'81$this->source); })())))) {
  234.             // line 82
  235.             yield "\t\t\t\t\t\t<span class=\"time diblock\">
  236. \t\t\t\t\t\t\t<img src=\"/resources/img/agenda/clock-icon.svg\" alt=\"Agenda\" width=\"17\" height=\"16\" loading=\"lazy\">
  237. \t\t\t\t\t\t\t";
  238.             // line 84
  239.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["time"]) || array_key_exists("time"$context) ? $context["time"] : (function () { throw new RuntimeError('Variable "time" does not exist.'84$this->source); })()), "html"nulltrue);
  240.             yield "
  241. \t\t\t\t\t\t</span>
  242. \t\t\t\t\t";
  243.         }
  244.         // line 87
  245.         yield "\t\t\t\t\t";
  246.         if ((array_key_exists("price"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'87$this->source); })())))) {
  247.             // line 88
  248.             yield "\t\t\t\t\t\t<span class=\"price\"><img src=\"/resources/img/agenda/cash-icon.svg\" alt=\"Prix\" width=\"17\" height=\"12\" loading=\"lazy\">";
  249.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["price"]) || array_key_exists("price"$context) ? $context["price"] : (function () { throw new RuntimeError('Variable "price" does not exist.'88$this->source); })()), "html"nulltrue);
  250.             yield "€</span>
  251. \t\t\t\t\t";
  252.         }
  253.         // line 90
  254.         yield "\t\t\t\t</div>
  255. \t\t\t\t";
  256.         // line 92
  257.         if ((array_key_exists("chapo"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["chapo"]) || array_key_exists("chapo"$context) ? $context["chapo"] : (function () { throw new RuntimeError('Variable "chapo" does not exist.'92$this->source); })())))) {
  258.             // line 93
  259.             yield "\t\t\t\t\t<div class=\"lh24 preview-chapo ";
  260.             if (((array_key_exists("categories"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'93$this->source); })()))) && (=== CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'93$this->source); })())), 2)))) {
  261.                 yield " threelines";
  262.             }
  263.             if (((array_key_exists("categories"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'93$this->source); })()))) && (=== CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'93$this->source); })())), 3)))) {
  264.                 yield " twolines";
  265.             }
  266.             yield "\">
  267. \t\t\t\t\t\t";
  268.             // line 94
  269.             yield Twig\Extension\CoreExtension::striptags((isset($context["chapo"]) || array_key_exists("chapo"$context) ? $context["chapo"] : (function () { throw new RuntimeError('Variable "chapo" does not exist.'94$this->source); })()));
  270.             yield "
  271. \t\t\t\t\t</div>
  272. \t\t\t\t\t";
  273.             // line 96
  274.             if ((=== CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["chapo"]) || array_key_exists("chapo"$context) ? $context["chapo"] : (function () { throw new RuntimeError('Variable "chapo" does not exist.'96$this->source); })())), 200))) {
  275.                 // line 97
  276.                 yield "\t\t\t\t\t\t<a href=\"";
  277.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(CoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'97$this->source); })()), "routePath", [], "any"falsefalsefalse97)), "html"nulltrue);
  278.                 yield "\" class=\"cwhite\">Lire la suite</a>
  279. \t\t\t\t\t";
  280.             }
  281.             // line 99
  282.             yield "\t\t\t\t";
  283.         }
  284.         // line 100
  285.         yield "\t\t\t</div>
  286. \t\t\t";
  287.         // line 101
  288.         if ((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "slider_mode", [], "any"truetruefalse101) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["block"]) || array_key_exists("block"$context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.'101$this->source); })()), "slider_mode", [], "any"falsefalsefalse101)))) {
  289.             // line 102
  290.             yield "\t\t\t</div>
  291. \t\t</li>
  292. ";
  293.         } else {
  294.             // line 105
  295.             yield "\t</div>
  296. ";
  297.         }
  298.         
  299.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  300.         
  301.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  302.         return; yield '';
  303.     }
  304.     /**
  305.      * @codeCoverageIgnore
  306.      */
  307.     public function getTemplateName()
  308.     {
  309.         return "blocks/previews/preview-agenda-logic.html.twig";
  310.     }
  311.     /**
  312.      * @codeCoverageIgnore
  313.      */
  314.     public function isTraitable()
  315.     {
  316.         return false;
  317.     }
  318.     /**
  319.      * @codeCoverageIgnore
  320.      */
  321.     public function getDebugInfo()
  322.     {
  323.         return array (  305 => 105,  300 => 102,  298 => 101,  295 => 100,  292 => 99,  286 => 97,  284 => 96,  279 => 94,  269 => 93,  267 => 92,  263 => 90,  257 => 88,  254 => 87,  248 => 84,  244 => 82,  242 => 81,  239 => 80,  233 => 77,  230 => 76,  228 => 75,  225 => 74,  223 => 73,  220 => 72,  218 => 71,  215 => 70,  213 => 69,  208 => 67,  204 => 66,  199 => 63,  194 => 61,  191 => 60,  188 => 59,  185 => 58,  182 => 57,  179 => 56,  176 => 55,  173 => 54,  170 => 53,  164 => 50,  160 => 49,  156 => 48,  153 => 47,  150 => 46,  147 => 45,  144 => 44,  141 => 43,  138 => 42,  135 => 41,  132 => 40,  129 => 39,  127 => 38,  123 => 36,  112 => 34,  107 => 31,  105 => 30,  102 => 29,  98 => 27,  96 => 26,  92 => 24,  90 => 23,  86 => 21,  84 => 20,  80 => 18,  78 => 17,  74 => 15,  72 => 14,  68 => 12,  66 => 11,  62 => 9,  59 => 8,  56 => 7,  52 => 5,  50 => 4,  46 => 2,  44 => 1,);
  324.     }
  325.     public function getSourceContext()
  326.     {
  327.         return new Source("{% if article.excerpt.categories is defined and article.excerpt.categories is not empty %}
  328. \t{% set categories = article.excerpt.categories %}
  329. {% endif %}
  330. {% if articleContentLinkedWith is defined and articleContentLinkedWith is not empty %}
  331. \t{% set articleContent = articleContentLinkedWith %}
  332. {% else %}
  333. \t{% if article.content.content is defined and article.content.content is not empty %}
  334. \t\t{% set articleContent = article.content.content %}
  335. \t{% endif %}
  336. {% endif %}
  337. {% if articleContent.header_img is defined and articleContent.header_img is not empty %}
  338. \t{% set img = articleContent.header_img %}
  339. {% endif %}
  340. {% if articleContent.chapo is defined and articleContent.chapo is not empty %}
  341. \t{% set chapo = articleContent.chapo %}
  342. {% endif %}
  343. {% if articleContent.date is defined and articleContent.date is not empty %}
  344. \t{% set date = articleContent.date %}
  345. {% endif %}
  346. {% if articleContent.time is defined and articleContent.time is not empty %}
  347. \t{% set time = articleContent.time %}
  348. {% endif %}
  349. {% if articleContent.price is defined and articleContent.price is not empty %}
  350. \t{% set price = articleContent.price %}
  351. {% endif %}
  352. {% if articleContent.event_type is defined and articleContent.event_type is not empty %}
  353. \t{% set event_type = articleContent.event_type %}
  354. {% endif %}
  355. {% if block.slider_mode is defined and block.slider_mode is not empty %}
  356. \t<li class=\"splide__slide\">
  357. \t\t<div class=\"preview-container agenda br8 dflex fdc\">
  358. \t\t{% else %}
  359. \t\t\t<div class=\"preview-container br8 dflex fdc agenda{% if i > 2 %} not-visible-mobile-article{% endif %}{% if i > 3 %} not-visible-tablette-article{% endif %}\">
  360. \t\t\t{% endif %}
  361. \t\t\t<div class=\"preview-header\">
  362. \t\t\t\t{% if img is defined and img is not empty %}
  363. \t\t\t\t\t{% include \"blocks/previews/img/image.html.twig\" %}
  364. \t\t\t\t{% else %}
  365. \t\t\t\t\t{% include \"blocks/previews/img/default-image.html.twig\" %}
  366. \t\t\t\t{% endif %}
  367. \t\t\t\t{% if date is defined and date is not empty %}
  368. \t\t\t\t\t{% set day = date|format_date(locale='fr')|split(' ')[0] %}
  369. \t\t\t\t\t{% set month = date|format_date(locale='fr')|split(' ')[1]|capitalize %}
  370. \t\t\t\t\t{% set year = date|format_date(locale='fr')|split(' ')[2] %}
  371. \t\t\t\t\t<div class=\"agenda-date dflex fdc aic br6 fs20 lh20 corange shadow-small\">
  372. \t\t\t\t\t\t<span>{{ day }}</span>
  373. \t\t\t\t\t\t<span>{{ month }}</span>
  374. \t\t\t\t\t\t<span class=\"fs12 lh16 fw400\">{{ year }}</span>
  375. \t\t\t\t\t</div>
  376. \t\t\t\t{% endif %}
  377. \t\t\t\t{% if event_type is defined and event_type is not empty %}
  378. \t\t\t\t\t{% set text = \"\" %}
  379. \t\t\t\t\t{% if event_type == \"presentiel\" %}
  380. \t\t\t\t\t\t{% set text = \"PrĂ©sentiel\" %}
  381. \t\t\t\t\t{% else %}
  382. \t\t\t\t\t\t{% set text = \"Distanciel\" %}
  383. \t\t\t\t\t{% endif %}
  384. \t\t\t\t\t<div class=\"agenda-type lh20 fs14 shadow-small\">{{ text }}</div>
  385. \t\t\t\t{% endif %}
  386. \t\t\t\t<div class=\"background-color-orange\"></div>
  387. \t\t\t</div>
  388. \t\t\t<div class=\"preview-content cwhite\">
  389. \t\t\t\t<a href=\"{{ sulu_content_path(article.routePath) }}\" class=\"cblue nodeco dblock\">
  390. \t\t\t\t\t<div class=\"fw500 fs20 preview-h3 lh28 cwhite\">{{ article.title }}</div>
  391. \t\t\t\t</a>
  392. \t\t\t\t{% include \"blocks/previews-from-controller/blocks/categories.html.twig\" %}
  393. \t\t\t\t{% include \"blocks/previews-from-controller/blocks/place.html.twig\" with { placeholder: articleContent } %}
  394. \t\t\t\t{% if date is defined and date is not empty %}
  395. \t\t\t\t\t<div class=\"date\">
  396. \t\t\t\t\t\t{% set dateArray = date|format_datetime('full', 'full', locale='fr')|split(' ') %}
  397. \t\t\t\t\t\t<img src=\"/resources/img/agenda/calendar-icon.svg\" alt=\"calendar\" width=\"16\" height=\"16\" loading=\"lazy\">
  398. \t\t\t\t\t\t{{ dateArray[0]|capitalize ~ \" \" ~ dateArray[1] ~ \" \" ~ dateArray[2]|capitalize ~ \" \" ~ dateArray[3] }}
  399. \t\t\t\t\t</div>
  400. \t\t\t\t{% endif %}
  401. \t\t\t\t<div>
  402. \t\t\t\t\t{% if time is defined and time is not empty %}
  403. \t\t\t\t\t\t<span class=\"time diblock\">
  404. \t\t\t\t\t\t\t<img src=\"/resources/img/agenda/clock-icon.svg\" alt=\"Agenda\" width=\"17\" height=\"16\" loading=\"lazy\">
  405. \t\t\t\t\t\t\t{{ time }}
  406. \t\t\t\t\t\t</span>
  407. \t\t\t\t\t{% endif %}
  408. \t\t\t\t\t{% if price is defined and price is not empty %}
  409. \t\t\t\t\t\t<span class=\"price\"><img src=\"/resources/img/agenda/cash-icon.svg\" alt=\"Prix\" width=\"17\" height=\"12\" loading=\"lazy\">{{ price }}€</span>
  410. \t\t\t\t\t{% endif %}
  411. \t\t\t\t</div>
  412. \t\t\t\t{% if chapo is defined and chapo is not empty %}
  413. \t\t\t\t\t<div class=\"lh24 preview-chapo {% if categories is defined and categories is not empty and categories|length == 2 %} threelines{% endif %}{% if categories is defined and categories is not empty and categories|length == 3 %} twolines{% endif %}\">
  414. \t\t\t\t\t\t{{ chapo|striptags|raw }}
  415. \t\t\t\t\t</div>
  416. \t\t\t\t\t{% if chapo|length > 200 %}
  417. \t\t\t\t\t\t<a href=\"{{ sulu_content_path(article.routePath) }}\" class=\"cwhite\">Lire la suite</a>
  418. \t\t\t\t\t{% endif %}
  419. \t\t\t\t{% endif %}
  420. \t\t\t</div>
  421. \t\t\t{% if block.slider_mode is defined and block.slider_mode is not empty %}
  422. \t\t\t</div>
  423. \t\t</li>
  424. {% else %}
  425. \t</div>
  426. {% endif %}
  427. ""blocks/previews/preview-agenda-logic.html.twig""/var/www/html/templates/blocks/previews/preview-agenda-logic.html.twig");
  428.     }
  429. }