<?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;
/* pages/fiche-thematique.html.twig */
class __TwigTemplate_b1bf46f4a47939ae39dd681993395b55752e9c5f8654586b0b30f503b6a296f4 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'style' => [$this, 'block_style'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
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", "pages/fiche-thematique.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/fiche-thematique.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "pages/fiche-thematique.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 2
public function block_style($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(), "block", "style"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "style"));
// line 3
yield "\t";
yield from $this->yieldParentBlock("style", $context, $blocks);
yield "
\t";
// line 4
yield from $this->loadTemplate("css/une-page-thematique-critical-css.html.twig", "pages/fiche-thematique.html.twig", 4)->unwrap()->yield($context);
// line 5
yield "\t";
yield from $this->loadTemplate("pages/headers/encore-entry-css-files.html.twig", "pages/fiche-thematique.html.twig", 5)->unwrap()->yield(CoreExtension::merge($context, ["file" => "evenementavenir_css"]));
// line 6
yield "\t";
yield from $this->loadTemplate("pages/headers/encore-entry-css-files.html.twig", "pages/fiche-thematique.html.twig", 6)->unwrap()->yield(CoreExtension::merge($context, ["file" => "splide_css"]));
// line 7
yield "\t";
yield from $this->loadTemplate("pages/headers/encore-entry-css-files.html.twig", "pages/fiche-thematique.html.twig", 7)->unwrap()->yield(CoreExtension::merge($context, ["file" => "articles_css"]));
// line 8
yield "\t";
yield from $this->loadTemplate("pages/headers/encore-entry-css-files.html.twig", "pages/fiche-thematique.html.twig", 8)->unwrap()->yield(CoreExtension::merge($context, ["file" => "previews_css"]));
// line 9
yield "\t";
yield from $this->loadTemplate("pages/headers/encore-entry-css-files.html.twig", "pages/fiche-thematique.html.twig", 9)->unwrap()->yield(CoreExtension::merge($context, ["file" => "preview_thematique_css"]));
// line 10
yield "\t";
yield from $this->loadTemplate("pages/headers/encore-entry-css-files.html.twig", "pages/fiche-thematique.html.twig", 10)->unwrap()->yield(CoreExtension::merge($context, ["file" => "sns_icons_css"]));
// line 11
yield "\t";
if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 11, $this->source); })()), "main_content", [], "any", false, false, false, 11)), 0))) {
// line 12
yield "\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["content"], "main_content", [], "any", false, false, false, 12));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
// line 13
yield "\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["content"], "type", [], "any", false, false, false, 13), "fiche_thematique_section"))) {
// line 14
yield "\t\t\t\t";
if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["content"], "content", [], "any", false, false, false, 14)), 0))) {
// line 15
yield "\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["content"], "content", [], "any", false, false, false, 15));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["child_content"]) {
// line 16
yield "\t\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["child_content"], "type", [], "any", false, false, false, 16), "media"))) {
// line 17
yield "\t\t\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["child_content"], "select", [], "any", false, false, false, 17), "youtube_link"))) {
// line 18
yield "\t\t\t\t\t\t\t\t";
yield from $this->loadTemplate("pages/headers/encore-entry-css-files.html.twig", "pages/fiche-thematique.html.twig", 18)->unwrap()->yield(CoreExtension::merge($context, ["file" => "youtube_css"]));
// line 19
yield "\t\t\t\t\t\t\t";
}
// line 20
yield "\t\t\t\t\t\t";
}
// line 21
yield "\t\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["child_content"], "type", [], "any", false, false, false, 21), "citation"))) {
// line 22
yield "\t\t\t\t\t\t\t";
yield from $this->loadTemplate("pages/headers/encore-entry-css-files.html.twig", "pages/fiche-thematique.html.twig", 22)->unwrap()->yield(CoreExtension::merge($context, ["file" => "citation_css"]));
// line 23
yield "\t\t\t\t\t\t";
}
// line 24
yield "\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child_content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
yield "\t\t\t\t";
}
// line 26
yield "\t\t\t";
}
// line 27
yield "\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 28
yield "\t";
}
// line 29
yield "\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "header_img", [], "any", true, true, false, 29) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 29, $this->source); })()), "header_img", [], "any", false, false, false, 29)))) {
// line 30
yield "\t\t<link rel=\"preload\" fetchpriority=\"high\" as=\"image\" href=\"";
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["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 30, $this->source); })()), "header_img", [], "any", false, false, false, 30), "formats", [], "any", false, false, false, 30), "1000x.webp", [], "array", false, false, false, 30), "html", null, true);
yield "\" type=\"image/webp\">
\t";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 33
public function block_content($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(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 34
yield "\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "color", [], "any", true, true, false, 34) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 34, $this->source); })()), "color", [], "any", false, false, false, 34)))) {
// line 35
yield "\t\t";
$context["background_color"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 35, $this->source); })()), "color", [], "any", false, false, false, 35);
// line 36
yield "\t";
} else {
// line 37
yield "\t\t";
$context["background_color"] = "#354161";
// line 38
yield "\t";
}
// line 39
yield "\t";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 39, $this->source); })()), "fil_ariane", [], "any", false, false, false, 39)) {
// line 40
yield "\t\t";
yield from $this->loadTemplate("blocks/breadcrumb-normal.html.twig", "pages/fiche-thematique.html.twig", 40)->unwrap()->yield($context);
// line 41
yield "\t";
}
// line 42
yield "\t";
$context["associated_category_id"] = null;
// line 43
yield "\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "associated_category", [], "any", true, true, false, 43) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 43, $this->source); })()), "associated_category", [], "any", false, false, false, 43)))) {
// line 44
yield "\t\t";
$context["associated_category_id"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 44, $this->source); })()), "associated_category", [], "any", false, false, false, 44), "id", [], "any", false, false, false, 44);
// line 45
yield "\t";
}
// line 46
yield "\t<div class=\"main-container w100 plr-1em\">
\t\t<div class=\"content fdc fiche-thematique\">
\t\t\t<div class=\"";
// line 48
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "header_img", [], "any", true, true, false, 48) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 48, $this->source); })()), "header_img", [], "any", false, false, false, 48)))) {
yield "main-title";
} else {
yield "small-main-title";
}
yield " dflex aic jcc prelative br8\">
\t\t\t\t";
// line 49
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "header_img", [], "any", true, true, false, 49) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 49, $this->source); })()), "header_img", [], "any", false, false, false, 49)))) {
// line 50
yield "\t\t\t\t\t";
// line 51
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["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 51, $this->source); })()), "header_img", [], "any", false, false, false, 51), "formats", [], "any", false, false, false, 51), "1000x.webp", [], "array", false, false, false, 51), "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["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 51, $this->source); })()), "header_img", [], "any", false, false, false, 51), "formats", [], "any", false, false, false, 51), "300x.webp", [], "array", false, false, false, 51), "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["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 51, $this->source); })()), "header_img", [], "any", false, false, false, 51), "formats", [], "any", false, false, false, 51), "600x.webp", [], "array", false, false, false, 51), "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["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 51, $this->source); })()), "header_img", [], "any", false, false, false, 51), "formats", [], "any", false, false, false, 51), "1000x.webp", [], "array", false, false, false, 51), "html", null, true);
yield " 1000w\" sizes=\"1000px\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AltImageExtension']->getCopyrightOrDescriptionOrTitle(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 51, $this->source); })()), "header_img", [], "any", false, false, false, 51)), "html", null, true);
yield "\" 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["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 51, $this->source); })()), "header_img", [], "any", false, false, false, 51), "fileVersion", [], "any", false, false, false, 51), "properties", [], "any", false, false, false, 51), "width", [], "any", false, false, false, 51), "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["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 51, $this->source); })()), "header_img", [], "any", false, false, false, 51), "fileVersion", [], "any", false, false, false, 51), "properties", [], "any", false, false, false, 51), "height", [], "any", false, false, false, 51), "html", null, true);
yield "\">
\t\t\t\t";
}
// line 53
yield "\t\t\t\t<div class=\"zi1\">
\t\t\t\t\t<h1 class=\"center";
// line 54
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "header_img", [], "any", true, true, false, 54) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 54, $this->source); })()), "header_img", [], "any", false, false, false, 54)))) {
yield " cwhite fiche-thematique-title";
}
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 54, $this->source); })()), "page_title", [], "any", false, false, false, 54), "html", null, true);
yield "</h1>
\t\t\t\t</div>
\t\t\t\t";
// line 56
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "header_img", [], "any", true, true, false, 56) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 56, $this->source); })()), "header_img", [], "any", false, false, false, 56)))) {
// line 57
yield "\t\t\t\t\t<div class=\"background-color\" style=\"background: ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["background_color"]) || array_key_exists("background_color", $context) ? $context["background_color"] : (function () { throw new RuntimeError('Variable "background_color" does not exist.', 57, $this->source); })()), "html", null, true);
yield "\"></div>
\t\t\t\t";
}
// line 59
yield "\t\t\t</div>
\t\t\t<div class=\"dflex jcsb lh28 fwwrap\">
\t\t\t\t<div>
\t\t\t\t\t";
// line 62
if ((((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "header_img", [], "any", true, true, false, 62) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 62, $this->source); })()), "header_img", [], "any", false, false, false, 62))) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "header_img", [], "any", false, true, false, 62), "credits", [], "any", true, true, false, 62)) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 62, $this->source); })()), "header_img", [], "any", false, false, false, 62), "credits", [], "any", false, false, false, 62)))) {
// line 63
yield "\t\t\t\t\t\t<div class=\"cgrey fs12 lh16 credit mt-8px\">© Crédit Photo
\t\t\t\t\t\t\t";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 64, $this->source); })()), "header_img", [], "any", false, false, false, 64), "credits", [], "any", false, false, false, 64), "html", null, true);
yield "</div>
\t\t\t\t\t";
}
// line 66
yield "\t\t\t\t\t<div class=\"date cgrey\">
\t\t\t\t\t\t";
// line 67
if ((array_key_exists("authored", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["authored"]) || array_key_exists("authored", $context) ? $context["authored"] : (function () { throw new RuntimeError('Variable "authored" does not exist.', 67, $this->source); })())))) {
// line 68
yield "\t\t\t\t\t\t\tPublié le
\t\t\t\t\t\t\t";
// line 69
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env, (isset($context["authored"]) || array_key_exists("authored", $context) ? $context["authored"] : (function () { throw new RuntimeError('Variable "authored" does not exist.', 69, $this->source); })()), "short", "none"), "html", null, true);
yield "
\t\t\t\t\t\t";
}
// line 71
yield "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"taright\">
\t\t\t\t\t";
// line 74
yield from $this->loadTemplate("articles-blocks/share-buttons.html.twig", "pages/fiche-thematique.html.twig", 74)->unwrap()->yield(CoreExtension::merge($context, ["url" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 74, $this->source); })()), "url", [], "any", false, false, false, 74)]));
// line 75
yield "\t\t\t\t</div>
\t\t\t</div>
\t\t\t";
// line 77
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "chapo", [], "any", true, true, false, 77) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 77, $this->source); })()), "chapo", [], "any", false, false, false, 77)))) {
// line 78
yield "\t\t\t\t<div class=\"mt-20px fw500 fs20 text cgrey lh24\">";
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 78, $this->source); })()), "chapo", [], "any", false, false, false, 78);
yield "</div>
\t\t\t";
}
// line 80
yield "\t\t\t<div class=\"blocks w100 dflex fiche-thematique jcsb\">
\t\t\t\t<div class=\"main-content mb-40px pr-1em w100\">
\t\t\t\t\t";
// line 82
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "main_content", [], "any", true, true, false, 82) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 82, $this->source); })()), "main_content", [], "any", false, false, false, 82))) && (1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 82, $this->source); })()), "main_content", [], "any", false, false, false, 82)), 0)))) {
// line 83
yield "\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 83, $this->source); })()), "main_content", [], "any", false, false, false, 83));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
// line 84
yield "\t\t\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 84), "fiche_thematique_section"))) {
// line 85
yield "\t\t\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/articles-content.html.twig", "pages/fiche-thematique.html.twig", 85)->unwrap()->yield(CoreExtension::merge($context, ["h2_in_list" => true, "main_h2_title" => CoreExtension::getAttribute($this->env, $this->source, $context["data"], "main_title", [], "any", false, false, false, 85), "mobile_gray_theme" => "thematique-mobile-gray"]));
// line 86
yield "\t\t\t\t\t\t\t";
}
// line 87
yield "\t\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
yield "\t\t\t\t\t";
}
// line 89
yield "\t\t\t\t</div>
\t\t\t\t<section class=\"evenementsavenir fiche-thematique mt-20px mb-40px prelative\">
\t\t\t\t\t<h2 class=\"fs30 lh36 fw400\">
\t\t\t\t\t\t<a href=\"/actualites/agenda?theme=";
// line 93
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["associated_category_id"]) || array_key_exists("associated_category_id", $context) ? $context["associated_category_id"] : (function () { throw new RuntimeError('Variable "associated_category_id" does not exist.', 93, $this->source); })()), "html", null, true);
yield "\" class=\"nodeco cblue\">Agenda</a>
\t\t\t\t\t</h2>
\t\t\t\t\t";
// line 95
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Website\\ArticlesController::getIncomingEventsForThematiques", ["id" => (isset($context["associated_category_id"]) || array_key_exists("associated_category_id", $context) ? $context["associated_category_id"] : (function () { throw new RuntimeError('Variable "associated_category_id" does not exist.', 95, $this->source); })())]));
yield "
\t\t\t\t</section>
\t\t\t</div>
\t\t\t<div class=\"dflex blocks fiche-thematique\">
\t\t\t\t<div class=\"thematiques-links-cont\">
\t\t\t\t\t";
// line 100
yield from $this->loadTemplate("pages/aside-fiche-thematique.html.twig", "pages/fiche-thematique.html.twig", 100)->unwrap()->yield($context);
// line 101
yield "\t\t\t\t</div>
\t\t\t\t<section class=\"evenementsavenir fiche-thematique mt-20px mb-40px prelative\">
\t\t\t\t\t<h2 class=\"fs30 lh36 fw400\">
\t\t\t\t\t\t<span>Nouvelles Ressources</span>
\t\t\t\t\t</h2>
\t\t\t\t\t";
// line 106
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Website\\ArticlesController::getActualitesForThematiques", ["id" => (isset($context["associated_category_id"]) || array_key_exists("associated_category_id", $context) ? $context["associated_category_id"] : (function () { throw new RuntimeError('Variable "associated_category_id" does not exist.', 106, $this->source); })())]));
yield "
\t\t\t\t</section>
\t\t\t</div>
\t\t\t";
// line 109
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "main_content", [], "any", true, true, false, 109) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 109, $this->source); })()), "main_content", [], "any", false, false, false, 109))) && (1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 109, $this->source); })()), "main_content", [], "any", false, false, false, 109)), 0)))) {
// line 110
yield "\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 110, $this->source); })()), "main_content", [], "any", false, false, false, 110));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
// line 111
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 111), "linked_with"))) {
// line 112
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/linked-with-thematique.html.twig", "pages/fiche-thematique.html.twig", 112)->unwrap()->yield($context);
// line 113
yield "\t\t\t\t\t";
}
// line 114
yield "\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 115
yield "\t\t\t";
}
// line 116
yield "
\t\t\t";
// line 117
yield from $this->loadTemplate("blocks/aside/referents-pqna.html.twig", "pages/fiche-thematique.html.twig", 117)->unwrap()->yield(CoreExtension::merge($context, ["title" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 117, $this->source); })()), "referents_title", [], "any", false, false, false, 117)]));
// line 118
yield "\t\t</div>
\t</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 121
public function block_javascripts($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(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 122
yield "\t";
if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 122, $this->source); })()), "main_content", [], "any", false, false, false, 122)), 0))) {
// line 123
yield "\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["content"], "main_content", [], "any", false, false, false, 123));
foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
// line 124
yield "\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["content"], "type", [], "any", false, false, false, 124), "fiche_thematique_section"))) {
// line 125
yield "\t\t\t\t";
if ((1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["content"], "content", [], "any", false, false, false, 125)), 0))) {
// line 126
yield "\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["content"], "content", [], "any", false, false, false, 126));
foreach ($context['_seq'] as $context["_key"] => $context["child_content"]) {
// line 127
yield "\t\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["child_content"], "type", [], "any", false, false, false, 127), "media"))) {
// line 128
yield "\t\t\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["child_content"], "select", [], "any", false, false, false, 128), "youtube_link"))) {
// line 129
yield "\t\t\t\t\t\t\t\t";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("lite-youtube");
yield "
\t\t\t\t\t\t\t\t";
// line 130
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("youtube_defer");
yield "
\t\t\t\t\t\t\t";
}
// line 132
yield "\t\t\t\t\t\t";
}
// line 133
yield "\t\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["child_content"], "type", [], "any", false, false, false, 133), "photo_report"))) {
// line 134
yield "\t\t\t\t\t\t\t";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("splide");
yield "
\t\t\t\t\t\t";
}
// line 136
yield "\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child_content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 137
yield "\t\t\t\t";
}
// line 138
yield "\t\t\t";
}
// line 139
yield "\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 140
yield "\t";
}
// line 141
yield "\t";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("open_fiche_them_section");
yield "
\t";
// line 142
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("splide");
yield "
\t";
// line 143
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "pages/fiche-thematique.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 602 => 143, 598 => 142, 593 => 141, 590 => 140, 584 => 139, 581 => 138, 578 => 137, 572 => 136, 566 => 134, 563 => 133, 560 => 132, 555 => 130, 550 => 129, 547 => 128, 544 => 127, 539 => 126, 536 => 125, 533 => 124, 528 => 123, 525 => 122, 515 => 121, 502 => 118, 500 => 117, 497 => 116, 494 => 115, 480 => 114, 477 => 113, 474 => 112, 471 => 111, 453 => 110, 451 => 109, 445 => 106, 438 => 101, 436 => 100, 428 => 95, 423 => 93, 417 => 89, 414 => 88, 400 => 87, 397 => 86, 394 => 85, 391 => 84, 373 => 83, 371 => 82, 367 => 80, 361 => 78, 359 => 77, 355 => 75, 353 => 74, 348 => 71, 343 => 69, 340 => 68, 338 => 67, 335 => 66, 330 => 64, 327 => 63, 325 => 62, 320 => 59, 314 => 57, 312 => 56, 303 => 54, 300 => 53, 282 => 51, 280 => 50, 278 => 49, 270 => 48, 266 => 46, 263 => 45, 260 => 44, 257 => 43, 254 => 42, 251 => 41, 248 => 40, 245 => 39, 242 => 38, 239 => 37, 236 => 36, 233 => 35, 230 => 34, 220 => 33, 205 => 30, 202 => 29, 199 => 28, 185 => 27, 182 => 26, 179 => 25, 165 => 24, 162 => 23, 159 => 22, 156 => 21, 153 => 20, 150 => 19, 147 => 18, 144 => 17, 141 => 16, 123 => 15, 120 => 14, 117 => 13, 99 => 12, 96 => 11, 93 => 10, 90 => 9, 87 => 8, 84 => 7, 81 => 6, 78 => 5, 76 => 4, 71 => 3, 61 => 2, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block style %}
\t{{ parent() }}
\t{% include \"css/une-page-thematique-critical-css.html.twig\" %}
\t{% include \"pages/headers/encore-entry-css-files.html.twig\" with {file: 'evenementavenir_css'} %}
\t{% include \"pages/headers/encore-entry-css-files.html.twig\" with {file: 'splide_css'} %}
\t{% include \"pages/headers/encore-entry-css-files.html.twig\" with {file: 'articles_css'} %}
\t{% include \"pages/headers/encore-entry-css-files.html.twig\" with {file: 'previews_css'} %}
\t{% include \"pages/headers/encore-entry-css-files.html.twig\" with {file: 'preview_thematique_css'} %}
\t{% include \"pages/headers/encore-entry-css-files.html.twig\" with {file: 'sns_icons_css'} %}
\t{% if content.main_content|length > 0 %}
\t\t{% for content in content.main_content %}
\t\t\t{% if content.type == \"fiche_thematique_section\" %}
\t\t\t\t{% if content.content|length > 0 %}
\t\t\t\t\t{% for child_content in content.content %}
\t\t\t\t\t\t{% if child_content.type == \"media\" %}
\t\t\t\t\t\t\t{% if child_content.select == \"youtube_link\" %}
\t\t\t\t\t\t\t\t{% include \"pages/headers/encore-entry-css-files.html.twig\" with {file: 'youtube_css'} %}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if child_content.type == \"citation\" %}
\t\t\t\t\t\t\t{% include \"pages/headers/encore-entry-css-files.html.twig\" with {file: 'citation_css'} %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t{% endif %}
\t\t\t{% endif %}
\t\t{% endfor %}
\t{% endif %}
\t{% if content.header_img is defined and content.header_img is not empty %}
\t\t<link rel=\"preload\" fetchpriority=\"high\" as=\"image\" href=\"{{ content.header_img.formats['1000x.webp'] }}\" type=\"image/webp\">
\t{% endif %}
{% endblock %}
{% block content %}
\t{% if content.color is defined and content.color is not empty %}
\t\t{% set background_color = content.color %}
\t{% else %}
\t\t{% set background_color = \"#354161\" %}
\t{% endif %}
\t{% if content.fil_ariane %}
\t\t{% include \"blocks/breadcrumb-normal.html.twig\" %}
\t{% endif %}
\t{% set associated_category_id = null %}
\t{% if content.associated_category is defined and content.associated_category is not empty %}
\t\t{% set associated_category_id = content.associated_category.id %}
\t{% endif %}
\t<div class=\"main-container w100 plr-1em\">
\t\t<div class=\"content fdc fiche-thematique\">
\t\t\t<div class=\"{% if content.header_img is defined and content.header_img is not empty %}main-title{% else %}small-main-title{% endif %} dflex aic jcc prelative br8\">
\t\t\t\t{% if content.header_img is defined and content.header_img is not empty %}
\t\t\t\t\t{# pas de loading=lazy ici car c'est le LPC (largest painted content) qui apparaît dès l'arrivée sur le site #}
\t\t\t\t\t<img src=\"{{ content.header_img.formats['1000x.webp'] }}\" srcset=\"{{ content.header_img.formats['300x.webp'] }} 300w, {{ content.header_img.formats['600x.webp'] }} 600w, {{ content.header_img.formats['1000x.webp'] }} 1000w\" sizes=\"1000px\" alt=\"{{ content.header_img | copyright_or_description_or_title }}\" width=\"{{ content.header_img.fileVersion.properties.width }}\" height=\"{{ content.header_img.fileVersion.properties.height }}\">
\t\t\t\t{% endif %}
\t\t\t\t<div class=\"zi1\">
\t\t\t\t\t<h1 class=\"center{% if content.header_img is defined and content.header_img is not empty %} cwhite fiche-thematique-title{% endif %}\">{{ content.page_title }}</h1>
\t\t\t\t</div>
\t\t\t\t{% if content.header_img is defined and content.header_img is not empty %}
\t\t\t\t\t<div class=\"background-color\" style=\"background: {{ background_color }}\"></div>
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t\t<div class=\"dflex jcsb lh28 fwwrap\">
\t\t\t\t<div>
\t\t\t\t\t{% if content.header_img is defined and content.header_img is not empty and content.header_img.credits is defined and content.header_img.credits is not empty %}
\t\t\t\t\t\t<div class=\"cgrey fs12 lh16 credit mt-8px\">© Crédit Photo
\t\t\t\t\t\t\t{{ content.header_img.credits }}</div>
\t\t\t\t\t{% endif %}
\t\t\t\t\t<div class=\"date cgrey\">
\t\t\t\t\t\t{% if authored is defined and authored is not empty %}
\t\t\t\t\t\t\tPublié le
\t\t\t\t\t\t\t{{ authored|format_datetime('short', 'none') }}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"taright\">
\t\t\t\t\t{% include \"articles-blocks/share-buttons.html.twig\" with {url: content.url} %}
\t\t\t\t</div>
\t\t\t</div>
\t\t\t{% if content.chapo is defined and content.chapo is not empty %}
\t\t\t\t<div class=\"mt-20px fw500 fs20 text cgrey lh24\">{{ content.chapo|raw }}</div>
\t\t\t{% endif %}
\t\t\t<div class=\"blocks w100 dflex fiche-thematique jcsb\">
\t\t\t\t<div class=\"main-content mb-40px pr-1em w100\">
\t\t\t\t\t{% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
\t\t\t\t\t\t{% for data in content.main_content %}
\t\t\t\t\t\t\t{% if data.type == \"fiche_thematique_section\" %}
\t\t\t\t\t\t\t\t{% include \"articles-blocks/articles-content.html.twig\" with {h2_in_list : true, main_h2_title: data.main_title, mobile_gray_theme: \"thematique-mobile-gray\"} %}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t\t<section class=\"evenementsavenir fiche-thematique mt-20px mb-40px prelative\">
\t\t\t\t\t<h2 class=\"fs30 lh36 fw400\">
\t\t\t\t\t\t<a href=\"/actualites/agenda?theme={{ associated_category_id }}\" class=\"nodeco cblue\">Agenda</a>
\t\t\t\t\t</h2>
\t\t\t\t\t{{ render(controller('App\\\\Controller\\\\Website\\\\ArticlesController::getIncomingEventsForThematiques', {id: associated_category_id})) }}
\t\t\t\t</section>
\t\t\t</div>
\t\t\t<div class=\"dflex blocks fiche-thematique\">
\t\t\t\t<div class=\"thematiques-links-cont\">
\t\t\t\t\t{% include \"pages/aside-fiche-thematique.html.twig\" %}
\t\t\t\t</div>
\t\t\t\t<section class=\"evenementsavenir fiche-thematique mt-20px mb-40px prelative\">
\t\t\t\t\t<h2 class=\"fs30 lh36 fw400\">
\t\t\t\t\t\t<span>Nouvelles Ressources</span>
\t\t\t\t\t</h2>
\t\t\t\t\t{{ render(controller('App\\\\Controller\\\\Website\\\\ArticlesController::getActualitesForThematiques', {id: associated_category_id})) }}
\t\t\t\t</section>
\t\t\t</div>
\t\t\t{% if content.main_content is defined and content.main_content is not empty and content.main_content|length > 0 %}
\t\t\t\t{% for data in content.main_content %}
\t\t\t\t\t{% if data.type == \"linked_with\" %}
\t\t\t\t\t\t{% include \"articles-blocks/linked-with-thematique.html.twig\" %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% endfor %}
\t\t\t{% endif %}
\t\t\t{% include \"blocks/aside/referents-pqna.html.twig\" with {title: content.referents_title } %}
\t\t</div>
\t</div>
{% endblock %}
{% block javascripts %}
\t{% if content.main_content|length > 0 %}
\t\t{% for content in content.main_content %}
\t\t\t{% if content.type == \"fiche_thematique_section\" %}
\t\t\t\t{% if content.content|length > 0 %}
\t\t\t\t\t{% for child_content in content.content %}
\t\t\t\t\t\t{% if child_content.type == \"media\" %}
\t\t\t\t\t\t\t{% if child_content.select == \"youtube_link\" %}
\t\t\t\t\t\t\t\t{{ encore_entry_script_tags('lite-youtube') }}
\t\t\t\t\t\t\t\t{{ encore_entry_script_tags('youtube_defer') }}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if child_content.type == \"photo_report\" %}
\t\t\t\t\t\t\t{{ encore_entry_script_tags('splide') }}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t{% endif %}
\t\t\t{% endif %}
\t\t{% endfor %}
\t{% endif %}
\t{{ encore_entry_script_tags('open_fiche_them_section') }}
\t{{ encore_entry_script_tags('splide') }}
\t{{ parent() }}
{% endblock %}
", "pages/fiche-thematique.html.twig", "/var/www/html/templates/pages/fiche-thematique.html.twig");
}
}