<?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-article-logic.html.twig */
class __TwigTemplate_7991407b1c2f041b0e346f5fb783cb5999f258190b33b3825337d86f87c45b9c 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-article-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-article-logic.html.twig"));
// line 1
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.', 1, $this->source); })())))) {
// line 2
yield "\t";
$context["articleContent"] = (isset($context["articleContentLinkedWith"]) || array_key_exists("articleContentLinkedWith", $context) ? $context["articleContentLinkedWith"] : (function () { throw new RuntimeError('Variable "articleContentLinkedWith" does not exist.', 2, $this->source); })());
} else {
// line 4
yield "\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["article"] ?? null), "content", [], "any", false, true, false, 4), "content", [], "any", true, true, false, 4) && !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.', 4, $this->source); })()), "content", [], "any", false, false, false, 4), "content", [], "any", false, false, false, 4)))) {
// line 5
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.', 5, $this->source); })()), "content", [], "any", false, false, false, 5), "content", [], "any", false, false, false, 5);
// line 6
yield "\t";
}
}
// line 8
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["articleContent"] ?? null), "header_img", [], "any", true, true, false, 8) && !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.', 8, $this->source); })()), "header_img", [], "any", false, false, false, 8)))) {
// line 9
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.', 9, $this->source); })()), "header_img", [], "any", false, false, false, 9);
}
// line 11
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["article"] ?? null), "excerpt", [], "any", false, true, false, 11), "categories", [], "any", true, true, false, 11) && !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.', 11, $this->source); })()), "excerpt", [], "any", false, false, false, 11), "categories", [], "any", false, false, false, 11)))) {
// line 12
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.', 12, $this->source); })()), "excerpt", [], "any", false, false, false, 12), "categories", [], "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), "contributors", [], "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); })()), "contributors", [], "any", false, false, false, 17)))) {
// line 18
yield "\t";
$context["contributors"] = 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); })()), "contributors", [], "any", false, false, false, 18);
}
// line 20
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["article"] ?? null), "authorFullName", [], "any", true, true, false, 20) && !Twig\Extension\CoreExtension::testEmpty(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.', 20, $this->source); })()), "authorFullName", [], "any", false, false, false, 20)))) {
// line 21
yield "\t";
$context["author"] = 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.', 21, $this->source); })()), "authorFullName", [], "any", false, false, false, 21);
}
// line 23
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["articleContent"] ?? null), "readtime", [], "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); })()), "readtime", [], "any", false, false, false, 23)))) {
// line 24
yield "\t";
$context["readtime"] = 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); })()), "readtime", [], "any", false, false, false, 24);
}
// line 26
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "slider_mode", [], "any", true, true, false, 26) && !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.', 26, $this->source); })()), "slider_mode", [], "any", false, false, false, 26)))) {
// line 27
yield "\t<li class=\"splide__slide\">
\t\t<div class=\"preview-container ";
// line 28
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.', 28, $this->source); })()), "type", [], "any", false, false, false, 28), "html", null, true);
yield " br8 dflex fdc\">
\t\t";
} else {
// line 30
yield "\t\t\t<div class=\"preview-container ";
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.', 30, $this->source); })()), "type", [], "any", false, false, false, 30), "html", null, true);
yield " br8 dflex fdc";
if ((((1 === CoreExtension::compare((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 30, $this->source); })()), 2)) && array_key_exists("cancel", $context)) && !(isset($context["cancel"]) || array_key_exists("cancel", $context) ? $context["cancel"] : (function () { throw new RuntimeError('Variable "cancel" does not exist.', 30, $this->source); })()))) {
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.', 30, $this->source); })()), 3)) && array_key_exists("cancel", $context)) && !(isset($context["cancel"]) || array_key_exists("cancel", $context) ? $context["cancel"] : (function () { throw new RuntimeError('Variable "cancel" does not exist.', 30, $this->source); })()))) {
yield " not-visible-tablette-article";
}
yield "\">
\t\t\t";
}
// line 32
yield "\t\t\t<div class=\"preview-header\">
\t\t\t\t";
// line 33
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.', 33, $this->source); })())))) {
// line 34
yield "\t\t\t\t\t";
yield from $this->loadTemplate("blocks/previews/img/image.html.twig", "blocks/previews/preview-article-logic.html.twig", 34)->unwrap()->yield($context);
// line 35
yield "\t\t\t\t";
} else {
// line 36
yield "\t\t\t\t\t";
yield from $this->loadTemplate("blocks/previews/img/default-image.html.twig", "blocks/previews/preview-article-logic.html.twig", 36)->unwrap()->yield($context);
// line 37
yield "\t\t\t\t";
}
// line 38
yield "\t\t\t\t";
if ((0 === CoreExtension::compare(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.', 38, $this->source); })()), "type", [], "any", false, false, false, 38), "analyses"))) {
// line 39
yield "\t\t\t\t\t<div class=\"background-color-blue\"></div>
\t\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, // line 40
(isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 40, $this->source); })()), "type", [], "any", false, false, false, 40), "guides_outils"))) {
// line 41
yield "\t\t\t\t\t<div class=\"background-color-orange\"></div>
\t\t\t\t";
}
// line 43
yield "\t\t\t\t<p class=\"fs14 lh20 dflex aic\">
\t\t\t\t\t";
// line 44
if ((0 === CoreExtension::compare(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.', 44, $this->source); })()), "type", [], "any", false, false, false, 44), "analyses"))) {
// line 45
yield "\t\t\t\t\t\tAnalyse
\t\t\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, // line 46
(isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 46, $this->source); })()), "type", [], "any", false, false, false, 46), "guides_outils"))) {
// line 47
yield "\t\t\t\t\t\tGuide / Outil
\t\t\t\t\t";
} else {
// line 49
yield "\t\t\t\t\t\tArticle
\t\t\t\t\t";
}
// line 51
yield "\t\t\t\t</p>
\t\t\t</div>
\t\t\t<div class=\"preview-content";
// line 53
if ((0 !== CoreExtension::compare(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.', 53, $this->source); })()), "type", [], "any", false, false, false, 53), " articles"))) {
yield " dflex fdc";
}
yield "\">
\t\t\t\t";
// line 54
yield from $this->loadTemplate("blocks/previews-from-controller/blocks/categories.html.twig", "blocks/previews/preview-article-logic.html.twig", 54)->unwrap()->yield($context);
// line 55
yield "\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.', 55, $this->source); })()), "routePath", [], "any", false, false, false, 55)), "html", null, true);
yield "\" class=\"cblue nodeco";
if ((0 !== CoreExtension::compare(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.', 55, $this->source); })()), "type", [], "any", false, false, false, 55), " articles"))) {
yield " reverse";
}
yield "\">
\t\t\t\t\t<div class=\"fw500 fs20 preview-h3 lh28 mt-8px\">";
// line 56
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.', 56, $this->source); })()), "title", [], "any", false, false, false, 56), "html", null, true);
yield "</div>
\t\t\t\t</a>
\t\t\t\t";
// line 58
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.', 58, $this->source); })())))) {
// line 59
yield "\t\t\t\t\t";
$context["number"] = 0;
// line 60
yield "\t\t\t\t\t";
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.', 60, $this->source); })()))) && CoreExtension::getAttribute($this->env, $this->source, ($context["article"] ?? null), "title", [], "any", true, true, false, 60)) && !Twig\Extension\CoreExtension::testEmpty(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.', 60, $this->source); })()), "title", [], "any", false, false, false, 60)))) {
// line 61
yield "\t\t\t\t\t\t";
if ((((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.', 61, $this->source); })())), 3)) && (-1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), 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.', 61, $this->source); })()), "title", [], "any", false, false, false, 61)), 90))) || ((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.', 61, $this->source); })())), 2)) && (0 <= CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), 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.', 61, $this->source); })()), "title", [], "any", false, false, false, 61)), 90))))) {
// line 62
yield "\t\t\t\t\t\t\t";
$context["number"] = 137;
// line 63
yield "\t\t\t\t\t\t";
} elseif ((((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.', 63, $this->source); })())), 3)) && (1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), 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.', 63, $this->source); })()), "title", [], "any", false, false, false, 63)), 90))) || ((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.', 63, $this->source); })())), 2)) && (1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), 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.', 63, $this->source); })()), "title", [], "any", false, false, false, 63)), 90))))) {
// line 64
yield "\t\t\t\t\t\t\t";
$context["number"] = 87;
// line 65
yield "\t\t\t\t\t\t";
} else {
// line 66
yield "\t\t\t\t\t\t\t";
$context["number"] = 192;
// line 67
yield "\t\t\t\t\t\t";
}
// line 68
yield "\t\t\t\t\t";
}
// line 69
yield "\t\t\t\t\t<div class=\"lh24 preview-chapo\">
\t\t\t\t\t\t";
// line 70
yield Twig\Extension\CoreExtension::striptags(Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["chapo"]) || array_key_exists("chapo", $context) ? $context["chapo"] : (function () { throw new RuntimeError('Variable "chapo" does not exist.', 70, $this->source); })()), 0, (isset($context["number"]) || array_key_exists("number", $context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.', 70, $this->source); })())));
yield "
\t\t\t\t\t\t";
// line 71
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.', 71, $this->source); })())), (isset($context["number"]) || array_key_exists("number", $context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.', 71, $this->source); })())))) {
// line 72
yield "\t\t\t\t\t\t\t...
\t\t\t\t\t\t\t<a href=\"";
// line 73
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.', 73, $this->source); })()), "routePath", [], "any", false, false, false, 73)), "html", null, true);
yield "\" class=\"cgrey\">Lire la suite</a>
\t\t\t\t\t\t";
}
// line 75
yield "\t\t\t\t\t</div>
\t\t\t\t";
}
// line 78
yield "\t\t\t</div>
\t\t\t<div class=\"mta\">
\t\t\t\t<div class=\"mt-12px\">
\t\t\t\t\t<div class=\"dflex jcsb mt-8px\">
\t\t\t\t\t\t<div class=\"preview-contributors\">
\t\t\t\t\t\t\t";
// line 83
if ((0 === CoreExtension::compare(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.', 83, $this->source); })()), "type", [], "any", false, false, false, 83), "articles"))) {
// line 84
yield "\t\t\t\t\t\t\t\t";
$context["set_article"] = true;
// line 85
yield "\t\t\t\t\t\t\t";
}
// line 86
yield "\t\t\t\t\t\t\t";
yield from $this->loadTemplate("users/contributorDisplay.html.twig", "blocks/previews/preview-article-logic.html.twig", 86)->unwrap()->yield(CoreExtension::merge($context, ["article" => (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 86, $this->source); })())]));
// line 87
yield "\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 88
if ((array_key_exists("readtime", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["readtime"]) || array_key_exists("readtime", $context) ? $context["readtime"] : (function () { throw new RuntimeError('Variable "readtime" does not exist.', 88, $this->source); })())))) {
// line 89
yield "\t\t\t\t\t\t\t<div class=\"cgrey fs14 lh20\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["readtime"]) || array_key_exists("readtime", $context) ? $context["readtime"] : (function () { throw new RuntimeError('Variable "readtime" does not exist.', 89, $this->source); })()), "html", null, true);
yield "
\t\t\t\t\t\t\t\tmin de lecture
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 93
yield "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
// line 95
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["article"] ?? null), "authored", [], "any", true, true, false, 95) && !Twig\Extension\CoreExtension::testEmpty(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.', 95, $this->source); })()), "authored", [], "any", false, false, false, 95)))) {
// line 96
yield "\t\t\t\t\t<span class=\"cgrey fs14 lh20\">PubliƩ le
\t\t\t\t\t\t";
// line 97
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, 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); })()), "authored", [], "any", false, false, false, 97), "short", "none", "", null, "gregorian", "fr"), "html", null, true);
yield "
\t\t\t\t\t</span>
\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-article-logic.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 302 => 105, 297 => 102, 295 => 101, 292 => 100, 286 => 97, 283 => 96, 281 => 95, 277 => 93, 269 => 89, 267 => 88, 264 => 87, 261 => 86, 258 => 85, 255 => 84, 253 => 83, 246 => 78, 241 => 75, 236 => 73, 233 => 72, 231 => 71, 227 => 70, 224 => 69, 221 => 68, 218 => 67, 215 => 66, 212 => 65, 209 => 64, 206 => 63, 203 => 62, 200 => 61, 197 => 60, 194 => 59, 192 => 58, 187 => 56, 178 => 55, 176 => 54, 170 => 53, 166 => 51, 162 => 49, 158 => 47, 156 => 46, 153 => 45, 151 => 44, 148 => 43, 144 => 41, 142 => 40, 139 => 39, 136 => 38, 133 => 37, 130 => 36, 127 => 35, 124 => 34, 122 => 33, 119 => 32, 106 => 30, 101 => 28, 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, 60 => 8, 56 => 6, 53 => 5, 50 => 4, 46 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 article.excerpt.categories is defined and article.excerpt.categories is not empty %}
\t{% set categories = article.excerpt.categories %}
{% endif %}
{% if articleContent.chapo is defined and articleContent.chapo is not empty %}
\t{% set chapo = articleContent.chapo %}
{% endif %}
{% if articleContent.contributors is defined and articleContent.contributors is not empty %}
\t{% set contributors = articleContent.contributors %}
{% endif %}
{% if article.authorFullName is defined and article.authorFullName is not empty %}
\t{% set author = article.authorFullName %}
{% endif %}
{% if articleContent.readtime is defined and articleContent.readtime is not empty %}
\t{% set readtime = articleContent.readtime %}
{% 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 {{ article.type }} br8 dflex fdc\">
\t\t{% else %}
\t\t\t<div class=\"preview-container {{ article.type }} br8 dflex fdc{% if i > 2 and cancel is defined and not cancel %} not-visible-mobile-article{% endif %}{% if i > 3 and cancel is defined and not cancel %} 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 article.type == \"analyses\" %}
\t\t\t\t\t<div class=\"background-color-blue\"></div>
\t\t\t\t{% elseif article.type == \"guides_outils\" %}
\t\t\t\t\t<div class=\"background-color-orange\"></div>
\t\t\t\t{% endif %}
\t\t\t\t<p class=\"fs14 lh20 dflex aic\">
\t\t\t\t\t{% if article.type == \"analyses\" %}
\t\t\t\t\t\tAnalyse
\t\t\t\t\t{% elseif article.type == \"guides_outils\" %}
\t\t\t\t\t\tGuide / Outil
\t\t\t\t\t{% else %}
\t\t\t\t\t\tArticle
\t\t\t\t\t{% endif %}
\t\t\t\t</p>
\t\t\t</div>
\t\t\t<div class=\"preview-content{% if article.type != \" articles\" %} dflex fdc{% endif %}\">
\t\t\t\t{% include \"blocks/previews-from-controller/blocks/categories.html.twig\" %}
\t\t\t\t<a href=\"{{ sulu_content_path(article.routePath) }}\" class=\"cblue nodeco{% if article.type != \" articles\" %} reverse{% endif %}\">
\t\t\t\t\t<div class=\"fw500 fs20 preview-h3 lh28 mt-8px\">{{ article.title }}</div>
\t\t\t\t</a>
\t\t\t\t{% if chapo is defined and chapo is not empty %}
\t\t\t\t\t{% set number = 0 %}
\t\t\t\t\t{% if categories is defined and categories is not empty and article.title is defined and article.title is not empty %}
\t\t\t\t\t\t{% if (categories|length == 3 and article.title|length < 90) or (categories|length == 2 and article.title|length >= 90) %}
\t\t\t\t\t\t\t{% set number = 137 %}
\t\t\t\t\t\t{% elseif (categories|length == 3 and article.title|length > 90) or (categories|length == 2 and article.title|length > 90) %}
\t\t\t\t\t\t\t{% set number = 87 %}
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t{% set number = 192 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t<div class=\"lh24 preview-chapo\">
\t\t\t\t\t\t{{ chapo|slice(0, number)|striptags|raw }}
\t\t\t\t\t\t{% if chapo|length > number %}
\t\t\t\t\t\t\t...
\t\t\t\t\t\t\t<a href=\"{{ sulu_content_path(article.routePath) }}\" class=\"cgrey\">Lire la suite</a>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t\t<div class=\"mta\">
\t\t\t\t<div class=\"mt-12px\">
\t\t\t\t\t<div class=\"dflex jcsb mt-8px\">
\t\t\t\t\t\t<div class=\"preview-contributors\">
\t\t\t\t\t\t\t{% if article.type == \"articles\" %}
\t\t\t\t\t\t\t\t{% set set_article = true %}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t{% include \"users/contributorDisplay.html.twig\" with { article: article} %}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% if readtime is defined and readtime is not empty %}
\t\t\t\t\t\t\t<div class=\"cgrey fs14 lh20\">{{ readtime }}
\t\t\t\t\t\t\t\tmin de lecture
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t{% if article.authored is defined and article.authored is not empty %}
\t\t\t\t\t<span class=\"cgrey fs14 lh20\">PubliƩ le
\t\t\t\t\t\t{{ article.authored|format_datetime('short', 'none', locale='fr') }}
\t\t\t\t\t</span>
\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-article-logic.html.twig", "/var/www/html/templates/blocks/previews/preview-article-logic.html.twig");
}
}