<?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/preview-content.html.twig */
class __TwigTemplate_6795ac7fcee7465cd23a7192f3de1c36230235e506fc8a056fa09a6d351df5c5 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/preview-content.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/preview-content.html.twig"));
// line 1
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "title", [], "any", true, true, false, 1) && !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.', 1, $this->source); })()), "title", [], "any", false, false, false, 1)))) {
// line 2
yield "\t<section class=\"preview-thematique mt-80px mb-80px apercu-bloc\">
\t\t<div class=\"preview-thematique-header prelative br8 p-";
// line 3
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "title_position", [], "any", true, true, false, 3) && !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.', 3, $this->source); })()), "title_position", [], "any", false, false, false, 3)))) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 3, $this->source); })()), "title_position", [], "any", false, false, false, 3), "html", null, true);
}
yield "\">
\t\t\t<div class=\"magic-margin\"></div>
\t\t\t<div class=\"preview-thematique-title shadow-standard w100 cwhite br8\" ";
// line 5
if (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.', 5, $this->source); })()), "bg_color", [], "any", false, false, false, 5)) {
yield " style=\"background: ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 5, $this->source); })()), "bg_color", [], "any", false, false, false, 5), "html", null, true);
yield "\" ";
}
yield ">
\t\t\t\t";
// line 6
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "icon", [], "any", true, true, false, 6) && !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.', 6, $this->source); })()), "icon", [], "any", false, false, false, 6)))) {
// line 7
yield "\t\t\t\t\t<svg class=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 7, $this->source); })()), "icon", [], "any", false, false, false, 7), 0, [], "array", false, false, false, 7), "html", null, true);
yield "\" aria-hidden=\"true\" focusable=\"false\">
\t\t\t\t\t\t<use xlink:href='#";
// line 8
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 8, $this->source); })()), "icon", [], "any", false, false, false, 8), 0, [], "array", false, false, false, 8), "html", null, true);
yield "'/>
\t\t\t\t\t</svg>
\t\t\t\t";
}
// line 11
yield "\t\t\t\t<h2>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 11, $this->source); })()), "title", [], "any", false, false, false, 11), "html", null, true);
yield "</h2>
\t\t\t\t";
// line 12
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "chapo", [], "any", true, true, false, 12) && !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.', 12, $this->source); })()), "chapo", [], "any", false, false, false, 12)))) {
// line 13
yield "\t\t\t\t\t<p class=\"lh24\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 13, $this->source); })()), "chapo", [], "any", false, false, false, 13), "html", null, true);
yield "</p>
\t\t\t\t";
}
// line 15
yield "\t\t\t</div>
\t\t\t<div class=\"preview-thematique-image shadow-standard w100\">
\t\t\t\t";
// line 17
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "image", [], "any", true, true, false, 17) && !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.', 17, $this->source); })()), "image", [], "any", false, false, false, 17)))) {
// line 18
yield "\t\t\t\t\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 18, $this->source); })()), "image", [], "any", false, false, false, 18), "formats", [], "any", false, false, false, 18), "600x.webp", [], "array", false, false, false, 18), "html", null, true);
yield "\" srcset=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 18, $this->source); })()), "image", [], "any", false, false, false, 18), "formats", [], "any", false, false, false, 18), "300x.webp", [], "array", false, false, false, 18), "html", null, true);
yield " 300w, ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 18, $this->source); })()), "image", [], "any", false, false, false, 18), "formats", [], "any", false, false, false, 18), "600x.webp", [], "array", false, false, false, 18), "html", null, true);
yield " 600w, ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 18, $this->source); })()), "image", [], "any", false, false, false, 18), "formats", [], "any", false, false, false, 18), "1000x.webp", [], "array", false, false, false, 18), "html", null, true);
yield " 1000w\" sizes=\"646px\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AltImageExtension']->getCopyrightOrDescriptionOrTitle(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.', 18, $this->source); })()), "image", [], "any", false, false, false, 18)), "html", null, true);
yield "\" class=\"br8\" loading=\"lazy\" width=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 18, $this->source); })()), "image", [], "any", false, false, false, 18), "fileVersion", [], "any", false, false, false, 18), "properties", [], "any", false, false, false, 18), "width", [], "any", false, false, false, 18), "html", null, true);
yield "\" height=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 18, $this->source); })()), "image", [], "any", false, false, false, 18), "fileVersion", [], "any", false, false, false, 18), "properties", [], "any", false, false, false, 18), "height", [], "any", false, false, false, 18), "html", null, true);
yield "\">
\t\t\t\t";
}
// line 20
yield "\t\t\t</div>
\t\t</div>
\t\t";
// line 22
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "articles", [], "any", true, true, false, 22) && !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.', 22, $this->source); })()), "articles", [], "any", false, false, false, 22))) && (1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), 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.', 22, $this->source); })()), "articles", [], "any", false, false, false, 22)), 0)))) {
// line 23
yield "\t\t\t";
yield from $this->loadTemplate("blocks/preview-content-logic.html.twig", "blocks/preview-content.html.twig", 23)->unwrap()->yield(CoreExtension::merge($context, ["articles" => 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.', 23, $this->source); })()), "articles", [], "any", false, false, false, 23)]));
// line 24
yield "\t\t";
}
// line 25
yield "\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "categories", [], "any", true, true, false, 25) && !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.', 25, $this->source); })()), "categories", [], "any", false, false, false, 25)))) {
// line 26
yield "\t\t\t";
yield from $this->loadTemplate("blocks/preview-thematiques-logic.html.twig", "blocks/preview-content.html.twig", 26)->unwrap()->yield(CoreExtension::merge($context, ["categories" => 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); })()), "categories", [], "any", false, false, false, 26)]));
// line 27
yield "\t\t";
}
// line 28
yield "\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "link", [], "any", true, true, false, 28) && !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.', 28, $this->source); })()), "link", [], "any", false, false, false, 28)))) {
// line 29
yield "\t\t\t<div class=\"tac\">
\t\t\t\t<a href=\"";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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); })()), "link", [], "any", false, false, false, 30), "html", null, true);
yield "\" class=\"CTA diblock nodeco lh28 mt-40px ma w100\"><img src=\"/resources/img/plus-icon.svg\" alt=\"Lien\" class=\"mr-8px\" loading=\"lazy\" width=\"15\" height=\"14\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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); })()), "link_text", [], "any", false, false, false, 30), "html", null, true);
yield "</a>
\t\t\t</div>
\t\t";
}
// line 33
yield "\t\t<hr class=\"bold\">
\t</section>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "blocks/preview-content.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 149 => 33, 141 => 30, 138 => 29, 135 => 28, 132 => 27, 129 => 26, 126 => 25, 123 => 24, 120 => 23, 118 => 22, 114 => 20, 96 => 18, 94 => 17, 90 => 15, 84 => 13, 82 => 12, 77 => 11, 71 => 8, 66 => 7, 64 => 6, 56 => 5, 49 => 3, 46 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% if block.title is defined and block.title is not empty %}
\t<section class=\"preview-thematique mt-80px mb-80px apercu-bloc\">
\t\t<div class=\"preview-thematique-header prelative br8 p-{% if block.title_position is defined and block.title_position is not empty %}{{ block.title_position }}{% endif %}\">
\t\t\t<div class=\"magic-margin\"></div>
\t\t\t<div class=\"preview-thematique-title shadow-standard w100 cwhite br8\" {% if block.bg_color %} style=\"background: {{ block.bg_color }}\" {% endif %}>
\t\t\t\t{% if block.icon is defined and block.icon is not empty %}
\t\t\t\t\t<svg class=\"{{ block.icon[0] }}\" aria-hidden=\"true\" focusable=\"false\">
\t\t\t\t\t\t<use xlink:href='#{{ block.icon[0] }}'/>
\t\t\t\t\t</svg>
\t\t\t\t{% endif %}
\t\t\t\t<h2>{{ block.title }}</h2>
\t\t\t\t{% if block.chapo is defined and block.chapo is not empty %}
\t\t\t\t\t<p class=\"lh24\">{{ block.chapo }}</p>
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t\t<div class=\"preview-thematique-image shadow-standard w100\">
\t\t\t\t{% if block.image is defined and block.image is not empty %}
\t\t\t\t\t<img src=\"{{ block.image.formats['600x.webp'] }}\" srcset=\"{{ block.image.formats['300x.webp'] }} 300w, {{ block.image.formats['600x.webp'] }} 600w, {{ block.image.formats['1000x.webp'] }} 1000w\" sizes=\"646px\" alt=\"{{ block.image | copyright_or_description_or_title }}\" class=\"br8\" loading=\"lazy\" width=\"{{ block.image.fileVersion.properties.width }}\" height=\"{{ block.image.fileVersion.properties.height }}\">
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t</div>
\t\t{% if block.articles is defined and block.articles is not empty and block.articles|length > 0 %}
\t\t\t{% include \"blocks/preview-content-logic.html.twig\" with {articles: block.articles} %}
\t\t{% endif %}
\t\t{% if block.categories is defined and block.categories is not empty %}
\t\t\t{% include \"blocks/preview-thematiques-logic.html.twig\" with {categories: block.categories} %}
\t\t{% endif %}
\t\t{% if block.link is defined and block.link is not empty %}
\t\t\t<div class=\"tac\">
\t\t\t\t<a href=\"{{ block.link }}\" class=\"CTA diblock nodeco lh28 mt-40px ma w100\"><img src=\"/resources/img/plus-icon.svg\" alt=\"Lien\" class=\"mr-8px\" loading=\"lazy\" width=\"15\" height=\"14\">{{ block.link_text }}</a>
\t\t\t</div>
\t\t{% endif %}
\t\t<hr class=\"bold\">
\t</section>
{% endif %}", "blocks/preview-content.html.twig", "/var/www/html/templates/blocks/preview-content.html.twig");
}
}