<?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;
/* articles/fiches_territoires.html.twig */
class __TwigTemplate_f074589f7852651e7a301089de1482e85750cff46f9266e8f680d16fd2adea16 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", "articles/fiches_territoires.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "articles/fiches_territoires.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "articles/fiches_territoires.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 3
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 4
yield "\t";
yield from $this->yieldParentBlock("style", $context, $blocks);
yield "
\t";
// line 5
yield from $this->loadTemplate("articles/styles/base-css-logic.html.twig", "articles/fiches_territoires.html.twig", 5)->unwrap()->yield($context);
// line 6
yield "\t";
yield from $this->loadTemplate("css/un-territoire-critical-css.html.twig", "articles/fiches_territoires.html.twig", 6)->unwrap()->yield($context);
// line 7
yield "\t";
if ((((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "acteur_territoire", [], "any", true, true, false, 7) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, // line 8
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 8, $this->source); })()), "acteur_territoire", [], "any", false, false, false, 8))) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, // line 9
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 9, $this->source); })()), "acteur_territoire", [], "any", false, false, false, 9), true))) || ((CoreExtension::getAttribute($this->env, $this->source, // line 10
($context["content"] ?? null), "experience_territoire", [], "any", true, true, false, 10) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, // line 11
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 11, $this->source); })()), "experience_territoire", [], "any", false, false, false, 11))) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, // line 12
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 12, $this->source); })()), "experience_territoire", [], "any", false, false, false, 12), true))))) {
// line 13
yield "\t\t";
yield from $this->loadTemplate("pages/headers/encore-entry-css-files.html.twig", "articles/fiches_territoires.html.twig", 13)->unwrap()->yield(CoreExtension::merge($context, ["file" => "splide_css"]));
// line 14
yield "\t";
}
// line 15
yield "\t";
yield from $this->loadTemplate("pages/headers/encore-entry-css-files.html.twig", "articles/fiches_territoires.html.twig", 15)->unwrap()->yield(CoreExtension::merge($context, ["file" => "frame_css"]));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 17
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 18
yield "\t";
$context["name"] = "";
// line 19
yield "\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 19), "attributes", [], "any", false, true, false, 19), "get", ["structure"], "method", false, true, false, 19), "structure", [], "any", false, true, false, 19), "name", [], "any", true, true, false, 19) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, 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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 19, $this->source); })()), "request", [], "any", false, false, false, 19), "attributes", [], "any", false, false, false, 19), "get", ["structure"], "method", false, false, false, 19), "structure", [], "any", false, false, false, 19), "name", [], "any", false, false, false, 19)))) {
// line 20
yield "\t\t";
$context["name"] = CoreExtension::getAttribute($this->env, $this->source, 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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 20, $this->source); })()), "request", [], "any", false, false, false, 20), "attributes", [], "any", false, false, false, 20), "get", ["structure"], "method", false, false, false, 20), "structure", [], "any", false, false, false, 20), "name", [], "any", false, false, false, 20);
// line 21
yield "\t";
}
// line 22
yield "\t";
$context["values"] = "";
// line 23
yield "\t";
$context["values"] = ["Acteurs & territoires", "Territoires"];
// line 24
yield "\t";
yield from $this->loadTemplate("articles-blocks/breadcrumb.html.twig", "articles/fiches_territoires.html.twig", 24)->unwrap()->yield(CoreExtension::merge($context, ["titles" => (isset($context["values"]) || array_key_exists("values", $context) ? $context["values"] : (function () { throw new RuntimeError('Variable "values" does not exist.', 24, $this->source); })())]));
// line 25
yield "\t<div class=\"main-container w100 plr-1em content\">
\t\t<article class=\"single-article-container\">
\t\t\t<div class=\"";
// line 27
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "header_img", [], "any", true, true, false, 27) && !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.', 27, $this->source); })()), "header_img", [], "any", false, false, false, 27)))) {
yield "main-title";
} else {
yield "small-main-title";
}
yield " mt-40px mb-40px aic frame-overflow\">
\t\t\t\t<div class=\"jcc dflex\">
\t\t\t\t\t";
// line 29
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\t\t\t\t<img loading=\"lazy\" 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.', 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 "\" 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.', 30, $this->source); })()), "header_img", [], "any", false, false, false, 30), "formats", [], "any", false, false, false, 30), "300x.webp", [], "array", false, false, false, 30), "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.', 30, $this->source); })()), "header_img", [], "any", false, false, false, 30), "formats", [], "any", false, false, false, 30), "600x.webp", [], "array", false, false, false, 30), "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.', 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 " 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.', 30, $this->source); })()), "header_img", [], "any", false, false, false, 30)), "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.', 30, $this->source); })()), "header_img", [], "any", false, false, false, 30), "fileVersion", [], "any", false, false, false, 30), "properties", [], "any", false, false, false, 30), "width", [], "any", false, false, false, 30), "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.', 30, $this->source); })()), "header_img", [], "any", false, false, false, 30), "fileVersion", [], "any", false, false, false, 30), "properties", [], "any", false, false, false, 30), "height", [], "any", false, false, false, 30), "html", null, true);
yield "\" style=\"z-index: -1;\">
\t\t\t\t\t";
}
// line 32
yield "\t\t\t\t\t<div class=\"frame-header-container dflex jcc mt-2p5em mb-3p5em p-1em\">
\t\t\t\t\t\t<div class=\"frame-pics-format fdc aic br6\">
\t\t\t\t\t\t\t<p class=\"triple-frame-title wd100 lh24 fs16 fw400 dflex tac\">Territoire</p>
\t\t\t\t\t\t\t<h1 class=\"corange tac mb-1em ofbw\">
\t\t\t\t\t\t\t\t";
// line 36
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "front_title", [], "any", true, true, false, 36) && !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.', 36, $this->source); })()), "front_title", [], "any", false, false, false, 36)))) {
// line 37
yield "\t\t\t\t\t\t\t\t\t";
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.', 37, $this->source); })()), "front_title", [], "any", false, false, false, 37), "html", null, true);
yield "
\t\t\t\t\t\t\t\t";
} else {
// line 39
yield "\t\t\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "title", [], "any", true, true, false, 39) && !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.', 39, $this->source); })()), "title", [], "any", false, false, false, 39)))) {
// line 40
yield "\t\t\t\t\t\t\t\t\t\t";
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.', 40, $this->source); })()), "title", [], "any", false, false, false, 40), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t";
}
// line 42
yield "\t\t\t\t\t\t\t\t";
}
// line 43
yield "\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t<div class=\"thematique-container dflex fwwrap mt-8px jcc mb-1em\">
\t\t\t\t\t\t\t\t<div class=\"thematiques-tag cwhite fw400 dflex aic\" style=\"background:#354161; min-height:28px\">";
// line 45
yield ((((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "type_territoire", [], "any", true, true, false, 45) && !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.', 45, $this->source); })()), "type_territoire", [], "any", false, false, false, 45))) && (0 === CoreExtension::compare(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.', 45, $this->source); })()), "type_territoire", [], "any", false, false, false, 45), "contractualisation")))) ? ("Territoires de contractualisation") : ("Territoires Politique de la ville"));
yield "</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 47
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "chapo", [], "any", true, true, false, 47) && !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.', 47, $this->source); })()), "chapo", [], "any", false, false, false, 47)))) {
// line 48
yield "\t\t\t\t\t\t\t\t<div class=\"text-flex tac text-pqa lh28 fs20 fw500\">";
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.', 48, $this->source); })()), "chapo", [], "any", false, false, false, 48);
yield "</div>
\t\t\t\t\t\t\t";
} else {
// line 50
yield "\t\t\t\t\t\t\t\t<div class=\"text-flex tac text-pqa lh28 fs20 fw500\">Pays et Quartiers de Nouvelle-Aquitaine, le centre de ressources sur le développement territorial.</div>
\t\t\t\t\t\t\t";
}
// line 52
yield "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"background-color-blue\" style=\"z-index:-1;\"></div>
\t\t\t</div>
\t\t\t";
// line 57
yield from $this->loadTemplate("articles/blocks/article-under-header.html.twig", "articles/fiches_territoires.html.twig", 57)->unwrap()->yield($context);
// line 58
yield "\t\t\t<div class=\"content fdc\">
\t\t\t\t";
// line 59
$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.', 59, $this->source); })()), "main_content", [], "any", false, false, false, 59));
$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 60
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 60), "triple_frame"))) {
// line 61
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/triple-frame-block.html.twig", "articles/fiches_territoires.html.twig", 61)->unwrap()->yield($context);
// line 62
yield "\t\t\t\t\t";
}
// line 63
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 63), "block_wrap"))) {
// line 64
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/block-wrap.html.twig", "articles/fiches_territoires.html.twig", 64)->unwrap()->yield($context);
// line 65
yield "\t\t\t\t\t";
}
// line 66
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 66), "sub_content"))) {
// line 67
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/articles-content.html.twig", "articles/fiches_territoires.html.twig", 67)->unwrap()->yield($context);
// line 68
yield "\t\t\t\t\t";
}
// line 69
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 69), "linked_with"))) {
// line 70
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/linked-with.html.twig", "articles/fiches_territoires.html.twig", 70)->unwrap()->yield($context);
// line 71
yield "\t\t\t\t\t";
}
// line 72
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 72), "see_more"))) {
// line 73
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/see-more.html.twig", "articles/fiches_territoires.html.twig", 73)->unwrap()->yield($context);
// line 74
yield "\t\t\t\t\t";
}
// line 75
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 76
yield "\t\t\t</div>
\t\t\t<div class=\"territoire-linked-data\">
\t\t\t\t";
// line 78
$context["id_territory"] = "";
// line 79
yield "\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "territory_select", [], "any", true, true, false, 79) && !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.', 79, $this->source); })()), "territory_select", [], "any", false, false, false, 79)))) {
// line 80
yield "\t\t\t\t\t";
$context["id_territory"] = 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.', 80, $this->source); })()), "territory_select", [], "any", false, false, false, 80);
// line 81
yield "\t\t\t\t";
}
// line 82
yield "
\t\t\t\t";
// line 83
if ((array_key_exists("id_territory", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["id_territory"]) || array_key_exists("id_territory", $context) ? $context["id_territory"] : (function () { throw new RuntimeError('Variable "id_territory" does not exist.', 83, $this->source); })())))) {
// line 84
yield "\t\t\t\t\t";
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "experience_territoire", [], "any", true, true, false, 84) && !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.', 84, $this->source); })()), "experience_territoire", [], "any", false, false, false, 84))) && (0 === CoreExtension::compare(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.', 84, $this->source); })()), "experience_territoire", [], "any", false, false, false, 84), true)))) {
// line 85
yield "\t\t\t\t\t\t<section class=\"linked-with mb-40px\">
\t\t\t\t\t\t\t<div class=\"mlr-1em\">
\t\t\t\t\t\t\t\t<h2 class=\"fs30 lh36 fw400 mt-40px\">Découvrez les expériences de ce territoire</h2>
\t\t\t\t\t\t\t\t<div class=\"articles-container mt-40px\">
\t\t\t\t\t\t\t\t\t";
// line 89
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Website\\ApiTerritoryExperienceController::getExperiencesTerritoire", [], ["id" => (isset($context["id_territory"]) || array_key_exists("id_territory", $context) ? $context["id_territory"] : (function () { throw new RuntimeError('Variable "id_territory" does not exist.', 89, $this->source); })())]));
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</section>
\t\t\t\t\t";
}
// line 94
yield "\t\t\t\t";
}
// line 95
yield "\t\t\t\t";
if ((array_key_exists("id_territory", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["id_territory"]) || array_key_exists("id_territory", $context) ? $context["id_territory"] : (function () { throw new RuntimeError('Variable "id_territory" does not exist.', 95, $this->source); })())))) {
// line 96
yield "\t\t\t\t\t";
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "acteur_territoire", [], "any", true, true, false, 96) && !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.', 96, $this->source); })()), "acteur_territoire", [], "any", false, false, false, 96))) && (0 === CoreExtension::compare(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.', 96, $this->source); })()), "acteur_territoire", [], "any", false, false, false, 96), true)))) {
// line 97
yield "\t\t\t\t\t\t<section class=\"linked-with mb-40px\">
\t\t\t\t\t\t\t<div class=\"mlr-1em\">
\t\t\t\t\t\t\t\t<h2 class=\"fs30 lh36 fw400 mt-40px\">Découvrez les acteurs de ce territoire</h2>
\t\t\t\t\t\t\t\t<div class=\"articles-container mt-40px\">
\t\t\t\t\t\t\t\t\t";
// line 101
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Website\\ContactController::getActeurTerritoire", [], ["id" => (isset($context["id_territory"]) || array_key_exists("id_territory", $context) ? $context["id_territory"] : (function () { throw new RuntimeError('Variable "id_territory" does not exist.', 101, $this->source); })())]));
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</section>
\t\t\t\t\t";
}
// line 106
yield "\t\t\t\t";
}
// line 107
yield "\t\t\t</div>
\t\t</article>
\t</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 111
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 112
yield "\t";
if ((((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "acteur_territoire", [], "any", true, true, false, 112) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, // line 113
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 113, $this->source); })()), "acteur_territoire", [], "any", false, false, false, 113))) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, // line 114
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 114, $this->source); })()), "acteur_territoire", [], "any", false, false, false, 114), true))) || ((CoreExtension::getAttribute($this->env, $this->source, // line 115
($context["content"] ?? null), "experience_territoire", [], "any", true, true, false, 115) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, // line 116
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 116, $this->source); })()), "experience_territoire", [], "any", false, false, false, 116))) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, // line 117
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 117, $this->source); })()), "experience_territoire", [], "any", false, false, false, 117), true))))) {
// line 118
yield "\t\t";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("splide");
yield "
\t";
}
// line 120
yield "\t";
yield from $this->loadTemplate("articles/javascripts/base-article-js.html.twig", "articles/fiches_territoires.html.twig", 120)->unwrap()->yield($context);
// line 121
yield "\t";
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 "articles/fiches_territoires.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 410 => 121, 407 => 120, 401 => 118, 399 => 117, 398 => 116, 397 => 115, 396 => 114, 395 => 113, 393 => 112, 383 => 111, 369 => 107, 366 => 106, 358 => 101, 352 => 97, 349 => 96, 346 => 95, 343 => 94, 335 => 89, 329 => 85, 326 => 84, 324 => 83, 321 => 82, 318 => 81, 315 => 80, 312 => 79, 310 => 78, 306 => 76, 292 => 75, 289 => 74, 286 => 73, 283 => 72, 280 => 71, 277 => 70, 274 => 69, 271 => 68, 268 => 67, 265 => 66, 262 => 65, 259 => 64, 256 => 63, 253 => 62, 250 => 61, 247 => 60, 230 => 59, 227 => 58, 225 => 57, 218 => 52, 214 => 50, 208 => 48, 206 => 47, 201 => 45, 197 => 43, 194 => 42, 188 => 40, 185 => 39, 179 => 37, 177 => 36, 171 => 32, 153 => 30, 151 => 29, 142 => 27, 138 => 25, 135 => 24, 132 => 23, 129 => 22, 126 => 21, 123 => 20, 120 => 19, 117 => 18, 107 => 17, 95 => 15, 92 => 14, 89 => 13, 87 => 12, 86 => 11, 85 => 10, 84 => 9, 83 => 8, 81 => 7, 78 => 6, 76 => 5, 71 => 4, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{# extension.excerpt #}
{% block style %}
\t{{ parent() }}
\t{% include \"articles/styles/base-css-logic.html.twig\" %}
\t{% include \"css/un-territoire-critical-css.html.twig\" %}
\t{% if (content.acteur_territoire is defined
\t\tand content.acteur_territoire is not empty
\t\tand content.acteur_territoire == true)
\t\tor (content.experience_territoire is defined
\t\tand content.experience_territoire is not empty
\t\tand content.experience_territoire == true) %}
\t\t{% include \"pages/headers/encore-entry-css-files.html.twig\" with {file: 'splide_css'} %}
\t{% endif %}
\t{% include \"pages/headers/encore-entry-css-files.html.twig\" with {file: 'frame_css'} %}
{% endblock %}
{% block content %}
\t{% set name = \"\" %}
\t{% if app.request.attributes.get('structure').structure.name is defined and app.request.attributes.get('structure').structure.name is not empty %}
\t\t{% set name = app.request.attributes.get('structure').structure.name %}
\t{% endif %}
\t{% set values = \"\" %}
\t{% set values = ['Acteurs & territoires', 'Territoires'] %}
\t{% include \"articles-blocks/breadcrumb.html.twig\" with {titles : values} %}
\t<div class=\"main-container w100 plr-1em content\">
\t\t<article class=\"single-article-container\">
\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 %} mt-40px mb-40px aic frame-overflow\">
\t\t\t\t<div class=\"jcc dflex\">
\t\t\t\t\t{% if content.header_img is defined and content.header_img is not empty %}
\t\t\t\t\t\t<img loading=\"lazy\" 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 }}\" style=\"z-index: -1;\">
\t\t\t\t\t{% endif %}
\t\t\t\t\t<div class=\"frame-header-container dflex jcc mt-2p5em mb-3p5em p-1em\">
\t\t\t\t\t\t<div class=\"frame-pics-format fdc aic br6\">
\t\t\t\t\t\t\t<p class=\"triple-frame-title wd100 lh24 fs16 fw400 dflex tac\">Territoire</p>
\t\t\t\t\t\t\t<h1 class=\"corange tac mb-1em ofbw\">
\t\t\t\t\t\t\t\t{% if content.front_title is defined and content.front_title is not empty %}
\t\t\t\t\t\t\t\t\t{{ content.front_title }}
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{% if content.title is defined and content.title is not empty %}
\t\t\t\t\t\t\t\t\t\t{{ content.title }}
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</h1>
\t\t\t\t\t\t\t<div class=\"thematique-container dflex fwwrap mt-8px jcc mb-1em\">
\t\t\t\t\t\t\t\t<div class=\"thematiques-tag cwhite fw400 dflex aic\" style=\"background:#354161; min-height:28px\">{{ (content.type_territoire is defined and content.type_territoire is not empty and content.type_territoire == \"contractualisation\") ? 'Territoires de contractualisation' : 'Territoires Politique de la ville' }}</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% if content.chapo is defined and content.chapo is not empty %}
\t\t\t\t\t\t\t\t<div class=\"text-flex tac text-pqa lh28 fs20 fw500\">{{ content.chapo|raw }}</div>
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<div class=\"text-flex tac text-pqa lh28 fs20 fw500\">Pays et Quartiers de Nouvelle-Aquitaine, le centre de ressources sur le développement territorial.</div>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"background-color-blue\" style=\"z-index:-1;\"></div>
\t\t\t</div>
\t\t\t{% include \"articles/blocks/article-under-header.html.twig\" %}
\t\t\t<div class=\"content fdc\">
\t\t\t\t{% for data in content.main_content %}
\t\t\t\t\t{% if data.type == \"triple_frame\" %}
\t\t\t\t\t\t{% include \"articles-blocks/triple-frame-block.html.twig\" %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if data.type == \"block_wrap\" %}
\t\t\t\t\t\t{% include \"articles-blocks/block-wrap.html.twig\" %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if data.type == \"sub_content\" %}
\t\t\t\t\t\t{% include \"articles-blocks/articles-content.html.twig\" %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if data.type == \"linked_with\" %}
\t\t\t\t\t\t{% include \"articles-blocks/linked-with.html.twig\" %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if data.type == \"see_more\" %}
\t\t\t\t\t\t{% include \"articles-blocks/see-more.html.twig\" %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t<div class=\"territoire-linked-data\">
\t\t\t\t{% set id_territory = \"\" %}
\t\t\t\t{% if content.territory_select is defined and content.territory_select is not empty %}
\t\t\t\t\t{% set id_territory = content.territory_select %}
\t\t\t\t{% endif %}
\t\t\t\t{% if id_territory is defined and id_territory is not empty %}
\t\t\t\t\t{% if content.experience_territoire is defined and content.experience_territoire is not empty and content.experience_territoire == true %}
\t\t\t\t\t\t<section class=\"linked-with mb-40px\">
\t\t\t\t\t\t\t<div class=\"mlr-1em\">
\t\t\t\t\t\t\t\t<h2 class=\"fs30 lh36 fw400 mt-40px\">Découvrez les expériences de ce territoire</h2>
\t\t\t\t\t\t\t\t<div class=\"articles-container mt-40px\">
\t\t\t\t\t\t\t\t\t{{ render(controller('App\\\\Controller\\\\Website\\\\ApiTerritoryExperienceController::getExperiencesTerritoire', {}, { 'id': id_territory })) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</section>
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
\t\t\t\t{% if id_territory is defined and id_territory is not empty %}
\t\t\t\t\t{% if content.acteur_territoire is defined and content.acteur_territoire is not empty and content.acteur_territoire == true %}
\t\t\t\t\t\t<section class=\"linked-with mb-40px\">
\t\t\t\t\t\t\t<div class=\"mlr-1em\">
\t\t\t\t\t\t\t\t<h2 class=\"fs30 lh36 fw400 mt-40px\">Découvrez les acteurs de ce territoire</h2>
\t\t\t\t\t\t\t\t<div class=\"articles-container mt-40px\">
\t\t\t\t\t\t\t\t\t{{ render(controller('App\\\\Controller\\\\Website\\\\ContactController::getActeurTerritoire', {}, { 'id': id_territory })) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</section>
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t</article>
\t</div>
{% endblock %}
{% block javascripts %}
\t{% if (content.acteur_territoire is defined
\t\tand content.acteur_territoire is not empty
\t\tand content.acteur_territoire == true)
\t\tor (content.experience_territoire is defined
\t\tand content.experience_territoire is not empty
\t\tand content.experience_territoire == true) %}
\t\t{{ encore_entry_script_tags(\"splide\") }}
\t{% endif %}
\t{% include \"articles/javascripts/base-article-js.html.twig\" %}
\t{{ parent() }}
{% endblock %}
", "articles/fiches_territoires.html.twig", "/var/www/html/templates/articles/fiches_territoires.html.twig");
}
}