<?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_1b5173f6e7fbe20ba251a80061143117d107ad65374cac2c0777143477ab7bad 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 fw500 dflex aic\" style=\"background:#354161; min-height:28px\">
\t\t\t\t\t\t\t\t\t";
// line 46
yield (((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, // line 47
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 47, $this->source); })()), "type_territoire", [], "any", false, false, false, 47), "contractualisation"))) ? ("Territoires de contractualisation") : ((((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, // line 49
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 49, $this->source); })()), "type_territoire", [], "any", false, false, false, 49), "demarches"))) ? ("Territoires de Démarches Alimentaires") : ("Territoires Politique de la ville"))));
// line 52
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 55
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "chapo", [], "any", true, true, false, 55) && !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.', 55, $this->source); })()), "chapo", [], "any", false, false, false, 55)))) {
// line 56
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.', 56, $this->source); })()), "chapo", [], "any", false, false, false, 56);
yield "</div>
\t\t\t\t\t\t\t";
} else {
// line 58
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 60
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 65
yield from $this->loadTemplate("articles/blocks/article-under-header.html.twig", "articles/fiches_territoires.html.twig", 65)->unwrap()->yield($context);
// line 66
yield "\t\t\t<div class=\"content fdc\">
\t\t\t\t";
// line 67
$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.', 67, $this->source); })()), "main_content", [], "any", false, false, false, 67));
$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 68
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 68), "triple_frame"))) {
// line 69
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/triple-frame-block.html.twig", "articles/fiches_territoires.html.twig", 69)->unwrap()->yield($context);
// line 70
yield "\t\t\t\t\t";
}
// line 71
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 71), "block_wrap"))) {
// line 72
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/block-wrap.html.twig", "articles/fiches_territoires.html.twig", 72)->unwrap()->yield($context);
// line 73
yield "\t\t\t\t\t";
}
// line 74
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 74), "sub_content"))) {
// line 75
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/articles-content.html.twig", "articles/fiches_territoires.html.twig", 75)->unwrap()->yield($context);
// line 76
yield "\t\t\t\t\t";
}
// line 77
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 77), "linked_with"))) {
// line 78
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/linked-with.html.twig", "articles/fiches_territoires.html.twig", 78)->unwrap()->yield($context);
// line 79
yield "\t\t\t\t\t";
}
// line 80
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 80), "iframe"))) {
// line 81
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("blocks/iframe.html.twig", "articles/fiches_territoires.html.twig", 81)->unwrap()->yield(CoreExtension::merge($context, ["block" => $context["data"]]));
// line 82
yield "\t\t\t\t\t";
}
// line 83
yield "\t\t\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["data"], "type", [], "any", false, false, false, 83), "see_more"))) {
// line 84
yield "\t\t\t\t\t\t";
yield from $this->loadTemplate("articles-blocks/see-more.html.twig", "articles/fiches_territoires.html.twig", 84)->unwrap()->yield($context);
// line 85
yield "\t\t\t\t\t";
}
// line 86
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 87
yield "\t\t\t</div>
\t\t\t<div class=\"territoire-linked-data\">
\t\t\t\t";
// line 89
$context["id_territory"] = "";
// line 90
yield "\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "territory_select", [], "any", true, true, false, 90) && !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.', 90, $this->source); })()), "territory_select", [], "any", false, false, false, 90)))) {
// line 91
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.', 91, $this->source); })()), "territory_select", [], "any", false, false, false, 91);
// line 92
yield "\t\t\t\t";
}
// line 93
yield "
\t\t\t\t";
// line 94
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.', 94, $this->source); })())))) {
// line 95
yield "\t\t\t\t\t";
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "experience_territoire", [], "any", true, true, false, 95) && !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.', 95, $this->source); })()), "experience_territoire", [], "any", false, false, false, 95))) && (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.', 95, $this->source); })()), "experience_territoire", [], "any", false, false, false, 95), true)))) {
// line 96
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 100
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.', 100, $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 105
yield "\t\t\t\t";
}
// line 106
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.', 106, $this->source); })())))) {
// line 107
yield "\t\t\t\t\t";
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "acteur_territoire", [], "any", true, true, false, 107) && !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.', 107, $this->source); })()), "acteur_territoire", [], "any", false, false, false, 107))) && (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.', 107, $this->source); })()), "acteur_territoire", [], "any", false, false, false, 107), true)))) {
// line 108
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 112
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.', 112, $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 117
yield "\t\t\t\t";
}
// line 118
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 122
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 123
yield "\t";
if ((((CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "acteur_territoire", [], "any", true, true, false, 123) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, // line 124
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 124, $this->source); })()), "acteur_territoire", [], "any", false, false, false, 124))) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, // line 125
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 125, $this->source); })()), "acteur_territoire", [], "any", false, false, false, 125), true))) || ((CoreExtension::getAttribute($this->env, $this->source, // line 126
($context["content"] ?? null), "experience_territoire", [], "any", true, true, false, 126) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, // line 127
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 127, $this->source); })()), "experience_territoire", [], "any", false, false, false, 127))) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, // line 128
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 128, $this->source); })()), "experience_territoire", [], "any", false, false, false, 128), true))))) {
// line 129
yield "\t\t";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("splide");
yield "
\t";
}
// line 131
yield "\t";
yield from $this->loadTemplate("articles/javascripts/base-article-js.html.twig", "articles/fiches_territoires.html.twig", 131)->unwrap()->yield($context);
// line 132
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 ( 424 => 132, 421 => 131, 415 => 129, 413 => 128, 412 => 127, 411 => 126, 410 => 125, 409 => 124, 407 => 123, 397 => 122, 383 => 118, 380 => 117, 372 => 112, 366 => 108, 363 => 107, 360 => 106, 357 => 105, 349 => 100, 343 => 96, 340 => 95, 338 => 94, 335 => 93, 332 => 92, 329 => 91, 326 => 90, 324 => 89, 320 => 87, 306 => 86, 303 => 85, 300 => 84, 297 => 83, 294 => 82, 291 => 81, 288 => 80, 285 => 79, 282 => 78, 279 => 77, 276 => 76, 273 => 75, 270 => 74, 267 => 73, 264 => 72, 261 => 71, 258 => 70, 255 => 69, 252 => 68, 235 => 67, 232 => 66, 230 => 65, 223 => 60, 219 => 58, 213 => 56, 211 => 55, 206 => 52, 204 => 49, 203 => 47, 202 => 46, 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 fw500 dflex aic\" style=\"background:#354161; min-height:28px\">
\t\t\t\t\t\t\t\t\t{{
(content.type_territoire == \"contractualisation\")
? 'Territoires de contractualisation'
: (content.type_territoire == \"demarches\")
? 'Territoires de Démarches Alimentaires'
: 'Territoires Politique de la ville'
}}
\t\t\t\t\t\t\t\t</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 == \"iframe\" %}
\t\t\t\t\t\t{% include \"blocks/iframe.html.twig\" with {block: data} %}
\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");
}
}