<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* blocks/previews/preview-agenda-logic.html.twig */
class __TwigTemplate_de9698cd9fa2c8afeac0fa30d2891c1c10dc233e2aa4fdd8bc4ee30ae6b6ac2b 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", "blocks/previews/preview-agenda-logic.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "blocks/previews/preview-agenda-logic.html.twig"));
// line 1
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["article"] ?? null), "excerpt", [], "any", false, true, false, 1), "categories", [], "any", true, true, false, 1) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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.', 1, $this->source); })()), "excerpt", [], "any", false, false, false, 1), "categories", [], "any", false, false, false, 1)))) {
// line 2
yield "\t";
$context["categories"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 2, $this->source); })()), "excerpt", [], "any", false, false, false, 2), "categories", [], "any", false, false, false, 2);
}
// line 4
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); })())))) {
// line 5
yield "\t";
$context["articleContent"] = (isset($context["articleContentLinkedWith"]) || array_key_exists("articleContentLinkedWith", $context) ? $context["articleContentLinkedWith"] : (function () { throw new RuntimeError('Variable "articleContentLinkedWith" does not exist.', 5, $this->source); })());
} else {
// line 7
yield "\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["article"] ?? null), "content", [], "any", false, true, false, 7), "content", [], "any", true, true, false, 7) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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.', 7, $this->source); })()), "content", [], "any", false, false, false, 7), "content", [], "any", false, false, false, 7)))) {
// line 8
yield "\t\t";
$context["articleContent"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 8, $this->source); })()), "content", [], "any", false, false, false, 8), "content", [], "any", false, false, false, 8);
// line 9
yield "\t";
}
}
// line 11
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["articleContent"] ?? null), "header_img", [], "any", true, true, false, 11) && !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", false, false, false, 11)))) {
// line 12
yield "\t";
$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", false, false, false, 12);
}
// line 14
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["articleContent"] ?? null), "chapo", [], "any", true, true, false, 14) && !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", false, false, false, 14)))) {
// line 15
yield "\t";
$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", false, false, false, 15);
}
// line 17
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["articleContent"] ?? null), "date", [], "any", true, true, false, 17) && !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", false, false, false, 17)))) {
// line 18
yield "\t";
$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", false, false, false, 18);
}
// line 20
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["articleContent"] ?? null), "time", [], "any", true, true, false, 20) && !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", false, false, false, 20)))) {
// line 21
yield "\t";
$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", false, false, false, 21);
}
// line 23
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["articleContent"] ?? null), "price", [], "any", true, true, false, 23) && !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", false, false, false, 23)))) {
// line 24
yield "\t";
$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", false, false, false, 24);
}
// line 26
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["articleContent"] ?? null), "event_type", [], "any", true, true, false, 26) && !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", false, false, false, 26)))) {
// line 27
yield "\t";
$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", false, false, false, 27);
}
// line 29
yield "
";
// line 30
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "slider_mode", [], "any", true, true, false, 30) && !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", false, false, false, 30)))) {
// line 31
yield "\t<li class=\"splide__slide\">
\t\t<div class=\"preview-container agenda br8 dflex fdc\">
\t\t";
} else {
// line 34
yield "\t\t\t<div class=\"preview-container br8 dflex fdc agenda";
if ((1 === 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))) {
yield " not-visible-mobile-article";
}
if ((1 === 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))) {
yield " not-visible-tablette-article";
}
yield "\">
\t\t\t";
}
// line 36
yield "
\t\t\t<div class=\"preview-header\">
\t\t\t\t";
// line 38
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); })())))) {
// line 39
yield "\t\t\t\t\t";
yield from $this->loadTemplate("blocks/previews/img/image.html.twig", "blocks/previews/preview-agenda-logic.html.twig", 39)->unwrap()->yield($context);
// line 40
yield "\t\t\t\t";
} else {
// line 41
yield "\t\t\t\t\t";
yield from $this->loadTemplate("blocks/previews/img/default-image.html.twig", "blocks/previews/preview-agenda-logic.html.twig", 41)->unwrap()->yield($context);
// line 42
yield "\t\t\t\t";
}
// line 43
yield "\t\t\t\t";
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); })())))) {
// line 44
yield "\t\t\t\t\t";
$context["day"] = CoreExtension::getAttribute($this->env, $this->source, Twig\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", false, false, false, 44);
// line 45
yield "\t\t\t\t\t";
$context["month"] = Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, Twig\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", false, false, false, 45));
// line 46
yield "\t\t\t\t\t";
$context["year"] = CoreExtension::getAttribute($this->env, $this->source, Twig\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", false, false, false, 46);
// line 47
yield "\t\t\t\t\t<div class=\"agenda-date dflex fdc aic br6 fs20 lh20 corange shadow-small\">
\t\t\t\t\t\t<span>";
// line 48
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", null, true);
yield "</span>
\t\t\t\t\t\t<span>";
// line 49
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", null, true);
yield "</span>
\t\t\t\t\t\t<span class=\"fs12 lh16 fw400\">";
// line 50
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", null, true);
yield "</span>
\t\t\t\t\t</div>
\t\t\t\t";
}
// line 53
yield "\t\t\t\t";
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); })())))) {
// line 54
yield "\t\t\t\t\t";
$context["text"] = "";
// line 55
yield "\t\t\t\t\t";
if ((0 === 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"))) {
// line 56
yield "\t\t\t\t\t\t";
$context["text"] = "Présentiel";
// line 57
yield "\t\t\t\t\t";
} else {
// line 58
yield "\t\t\t\t\t\t";
$context["text"] = "Distanciel";
// line 59
yield "\t\t\t\t\t";
}
// line 60
yield "
\t\t\t\t\t<div class=\"agenda-type lh20 fs14 shadow-small\">";
// line 61
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", null, true);
yield "</div>
\t\t\t\t";
}
// line 63
yield "\t\t\t\t<div class=\"background-color-orange\"></div>
\t\t\t</div>
\t\t\t<div class=\"preview-content cwhite\">
\t\t\t\t<a href=\"";
// line 66
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", false, false, false, 66)), "html", null, true);
yield "\" class=\"cblue nodeco dblock\">
\t\t\t\t\t<div class=\"fw500 fs20 preview-h3 lh28 cwhite\">";
// line 67
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", false, false, false, 67), "html", null, true);
yield "</div>
\t\t\t\t</a>
\t\t\t\t";
// line 69
yield from $this->loadTemplate("blocks/previews-from-controller/blocks/categories.html.twig", "blocks/previews/preview-agenda-logic.html.twig", 69)->unwrap()->yield($context);
// line 70
yield "
\t\t\t\t";
// line 71
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); })())]));
// line 72
yield "
\t\t\t\t";
// line 73
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); })())))) {
// line 74
yield "\t\t\t\t\t<div class=\"date\">
\t\t\t\t\t\t";
// line 75
$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"), " ");
// line 76
yield "\t\t\t\t\t\t<img src=\"/resources/img/agenda/calendar-icon.svg\" alt=\"calendar\" width=\"16\" height=\"16\" loading=\"lazy\">
\t\t\t\t\t\t";
// line 77
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", false, false, false, 77)) . " ") . 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", false, false, false, 77)) . " ") . 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", false, false, false, 77))) . " ") . 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", false, false, false, 77)), "html", null, true);
yield "
\t\t\t\t\t</div>
\t\t\t\t";
}
// line 80
yield "\t\t\t\t<div>
\t\t\t\t\t";
// line 81
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); })())))) {
// line 82
yield "\t\t\t\t\t\t<span class=\"time diblock\">
\t\t\t\t\t\t\t<img src=\"/resources/img/agenda/clock-icon.svg\" alt=\"Agenda\" width=\"17\" height=\"16\" loading=\"lazy\">
\t\t\t\t\t\t\t";
// line 84
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", null, true);
yield "
\t\t\t\t\t\t</span>
\t\t\t\t\t";
}
// line 87
yield "\t\t\t\t\t";
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); })())))) {
// line 88
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\">";
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", null, true);
yield "€</span>
\t\t\t\t\t";
}
// line 90
yield "\t\t\t\t</div>
\t\t\t\t";
// line 92
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); })())))) {
// line 93
yield "\t\t\t\t\t<div class=\"lh24 preview-chapo ";
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); })()))) && (0 === 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)))) {
yield " threelines";
}
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); })()))) && (0 === 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)))) {
yield " twolines";
}
yield "\">
\t\t\t\t\t\t";
// line 94
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); })()));
yield "
\t\t\t\t\t</div>
\t\t\t\t\t";
// line 96
if ((1 === 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))) {
// line 97
yield "\t\t\t\t\t\t<a href=\"";
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", false, false, false, 97)), "html", null, true);
yield "\" class=\"cwhite\">Lire la suite</a>
\t\t\t\t\t";
}
// line 99
yield "\t\t\t\t";
}
// line 100
yield "\t\t\t</div>
\t\t\t";
// line 101
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "slider_mode", [], "any", true, true, false, 101) && !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", false, false, false, 101)))) {
// line 102
yield "\t\t\t</div>
\t\t</li>
";
} else {
// line 105
yield "\t</div>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "blocks/previews/preview-agenda-logic.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% if article.excerpt.categories is defined and article.excerpt.categories is not empty %}
\t{% set categories = article.excerpt.categories %}
{% endif %}
{% if articleContentLinkedWith is defined and articleContentLinkedWith is not empty %}
\t{% set articleContent = articleContentLinkedWith %}
{% else %}
\t{% if article.content.content is defined and article.content.content is not empty %}
\t\t{% set articleContent = article.content.content %}
\t{% endif %}
{% endif %}
{% if articleContent.header_img is defined and articleContent.header_img is not empty %}
\t{% set img = articleContent.header_img %}
{% endif %}
{% if articleContent.chapo is defined and articleContent.chapo is not empty %}
\t{% set chapo = articleContent.chapo %}
{% endif %}
{% if articleContent.date is defined and articleContent.date is not empty %}
\t{% set date = articleContent.date %}
{% endif %}
{% if articleContent.time is defined and articleContent.time is not empty %}
\t{% set time = articleContent.time %}
{% endif %}
{% if articleContent.price is defined and articleContent.price is not empty %}
\t{% set price = articleContent.price %}
{% endif %}
{% if articleContent.event_type is defined and articleContent.event_type is not empty %}
\t{% set event_type = articleContent.event_type %}
{% endif %}
{% if block.slider_mode is defined and block.slider_mode is not empty %}
\t<li class=\"splide__slide\">
\t\t<div class=\"preview-container agenda br8 dflex fdc\">
\t\t{% else %}
\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 %}\">
\t\t\t{% endif %}
\t\t\t<div class=\"preview-header\">
\t\t\t\t{% if img is defined and img is not empty %}
\t\t\t\t\t{% include \"blocks/previews/img/image.html.twig\" %}
\t\t\t\t{% else %}
\t\t\t\t\t{% include \"blocks/previews/img/default-image.html.twig\" %}
\t\t\t\t{% endif %}
\t\t\t\t{% if date is defined and date is not empty %}
\t\t\t\t\t{% set day = date|format_date(locale='fr')|split(' ')[0] %}
\t\t\t\t\t{% set month = date|format_date(locale='fr')|split(' ')[1]|capitalize %}
\t\t\t\t\t{% set year = date|format_date(locale='fr')|split(' ')[2] %}
\t\t\t\t\t<div class=\"agenda-date dflex fdc aic br6 fs20 lh20 corange shadow-small\">
\t\t\t\t\t\t<span>{{ day }}</span>
\t\t\t\t\t\t<span>{{ month }}</span>
\t\t\t\t\t\t<span class=\"fs12 lh16 fw400\">{{ year }}</span>
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t\t{% if event_type is defined and event_type is not empty %}
\t\t\t\t\t{% set text = \"\" %}
\t\t\t\t\t{% if event_type == \"presentiel\" %}
\t\t\t\t\t\t{% set text = \"Présentiel\" %}
\t\t\t\t\t{% else %}
\t\t\t\t\t\t{% set text = \"Distanciel\" %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t<div class=\"agenda-type lh20 fs14 shadow-small\">{{ text }}</div>
\t\t\t\t{% endif %}
\t\t\t\t<div class=\"background-color-orange\"></div>
\t\t\t</div>
\t\t\t<div class=\"preview-content cwhite\">
\t\t\t\t<a href=\"{{ sulu_content_path(article.routePath) }}\" class=\"cblue nodeco dblock\">
\t\t\t\t\t<div class=\"fw500 fs20 preview-h3 lh28 cwhite\">{{ article.title }}</div>
\t\t\t\t</a>
\t\t\t\t{% include \"blocks/previews-from-controller/blocks/categories.html.twig\" %}
\t\t\t\t{% include \"blocks/previews-from-controller/blocks/place.html.twig\" with { placeholder: articleContent } %}
\t\t\t\t{% if date is defined and date is not empty %}
\t\t\t\t\t<div class=\"date\">
\t\t\t\t\t\t{% set dateArray = date|format_datetime('full', 'full', locale='fr')|split(' ') %}
\t\t\t\t\t\t<img src=\"/resources/img/agenda/calendar-icon.svg\" alt=\"calendar\" width=\"16\" height=\"16\" loading=\"lazy\">
\t\t\t\t\t\t{{ dateArray[0]|capitalize ~ \" \" ~ dateArray[1] ~ \" \" ~ dateArray[2]|capitalize ~ \" \" ~ dateArray[3] }}
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t\t<div>
\t\t\t\t\t{% if time is defined and time is not empty %}
\t\t\t\t\t\t<span class=\"time diblock\">
\t\t\t\t\t\t\t<img src=\"/resources/img/agenda/clock-icon.svg\" alt=\"Agenda\" width=\"17\" height=\"16\" loading=\"lazy\">
\t\t\t\t\t\t\t{{ time }}
\t\t\t\t\t\t</span>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if price is defined and price is not empty %}
\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>
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t\t{% if chapo is defined and chapo is not empty %}
\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 %}\">
\t\t\t\t\t\t{{ chapo|striptags|raw }}
\t\t\t\t\t</div>
\t\t\t\t\t{% if chapo|length > 200 %}
\t\t\t\t\t\t<a href=\"{{ sulu_content_path(article.routePath) }}\" class=\"cwhite\">Lire la suite</a>
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t\t{% if block.slider_mode is defined and block.slider_mode is not empty %}
\t\t\t</div>
\t\t</li>
{% else %}
\t</div>
{% endif %}
", "blocks/previews/preview-agenda-logic.html.twig", "/var/www/html/templates/blocks/previews/preview-agenda-logic.html.twig");
}
}