<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* blocks/articles.html.twig */
class __TwigTemplate_6a8d870c59c6a27d6315b97b8c8a548927a07aa71e1d19361baf44f3c3610da2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "blocks/articles.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "blocks/articles.html.twig"));
// line 1
$context["introClass"] = "team-project-section";
// line 2
yield "<div class=\"preview-article mt-1em\">
\t";
// line 3
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "articles_smart_content", [], "any", true, true, false, 3) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 3, $this->source); })()), "articles_smart_content", [], "any", false, false, false, 3))) && (1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 3, $this->source); })()), "articles_smart_content", [], "any", false, false, false, 3)), 0)))) {
// line 4
yield "\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 4, $this->source); })()), "filter", [], "any", false, false, false, 4), "fiches_territoires"))) {
// line 5
yield "\t\t\t";
yield from $this->loadTemplate("filter/sub-filters/type-territoire.html.twig", "blocks/articles.html.twig", 5)->unwrap()->yield($context);
// line 6
yield "\t\t";
}
// line 7
yield "\t\t<div class=\"dflex jcsb button-container fwwrap\">
\t\t\t<div class=\"dflex jcsb w100\">
\t\t\t\t";
// line 9
if (((0 !== CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 9, $this->source); })()), "filter", [], "any", false, false, false, 9), "groupe_travail")) && (0 !== CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 9, $this->source); })()), "filter", [], "any", false, false, false, 9), "fiches_territoires")))) {
// line 10
yield "\t\t\t\t\t<button id=\"filter\" class=\"bgblue cwhite shadow-button jcsa br6 fs14 fw400 lh20 visible ";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 10, $this->source); })()), "filter", [], "any", false, false, false, 10), "experiences"))) {
yield " filter-experiences-custom ";
} else {
yield " toggleable";
}
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["introClass"]) || array_key_exists("introClass", $context) ? $context["introClass"] : (function () { throw new RuntimeError('Variable "introClass" does not exist.', 10, $this->source); })()), "html", null, true);
yield "\">
\t\t\t\t\t\t<img src=\"/resources/img/filter-icon.svg\" width=\"14\" height=\"16\" alt=\"\" loading=\"lazy\">
\t\t\t\t\t\tFiltrer
\t\t\t\t\t</button>
\t\t\t\t";
}
// line 14
yield "
<div class=\"prelative document-search-cont\">
<input placeholder=\"Rechercher\" id=\"document-search\" name=\"q\" class=\"br6 p-1em\">
<div class=\"icon-cont pabsolute dflex aic jcc\">
<img class=\"loupe\" src=\"/resources/img/search-icon.svg\" alt=\"Icone de recherche loupe\" style=\"pointer-events: none;\" width=\"16\" height=\"16\" loading=\"lazy\">
</div>
</div>
\t\t\t</div>
\t\t\t<div class=\"";
// line 23
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 23, $this->source); })()), "filter", [], "any", false, false, false, 23), "groupe_travail"))) {
yield " mla ";
}
yield " toggleable visible aic\" >
\t\t\t\t";
// line 24
$context["elems"] = 9;
// line 25
yield "\t\t\t\t<label for=\"elems-number\">
\t\t\t\t\tÉléments par page :
\t\t\t\t</label>
\t\t\t\t";
// line 28
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 28, $this->source); })()), "filter", [], "any", false, false, false, 28), "articles"))) {
// line 29
yield "\t\t\t\t\t";
$context["elems"] = 9;
// line 30
yield "\t\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 30, $this->source); })()), "filter", [], "any", false, false, false, 30), "agenda"))) {
// line 31
yield "\t\t\t\t\t";
$context["elems"] = 8;
// line 32
yield "\t\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 32, $this->source); })()), "filter", [], "any", false, false, false, 32), "aapami"))) {
// line 33
yield "\t\t\t\t\t";
$context["elems"] = 12;
// line 34
yield "\t\t\t\t";
} elseif (((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 34, $this->source); })()), "filter", [], "any", false, false, false, 34), "offre")) || (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 34, $this->source); })()), "filter", [], "any", false, false, false, 34), "groupe_travail")))) {
// line 35
yield "\t\t\t\t\t";
$context["elems"] = 10;
// line 36
yield "\t\t\t\t";
} elseif ((((((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 36, $this->source); })()), "filter", [], "any", false, false, false, 36), "newsletters")) || (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 36, $this->source); })()), "filter", [], "any", false, false, false, 36), "analyses"))) || (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 36, $this->source); })()), "filter", [], "any", false, false, false, 36), "experiences"))) || (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 36, $this->source); })()), "filter", [], "any", false, false, false, 36), "guides_outils"))) || (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 36, $this->source); })()), "filter", [], "any", false, false, false, 36), "fiches_territoires")))) {
// line 37
yield "\t\t\t\t\t";
$context["elems"] = 6;
// line 38
yield "\t\t\t\t";
}
// line 39
yield "\t\t\t\t";
yield from $this->loadTemplate("blocks/sub-blocks/elems-number.html.twig", "blocks/articles.html.twig", 39)->unwrap()->yield(CoreExtension::merge($context, ["number" => (isset($context["elems"]) || array_key_exists("elems", $context) ? $context["elems"] : (function () { throw new RuntimeError('Variable "elems" does not exist.', 39, $this->source); })())]));
// line 40
yield "\t\t\t</div>
<div class=\"switch-map-cont\">
<button class=\"switch-map-btn\">Carte</button>
</div>
\t\t</div>
\t\t";
// line 45
$context["structure"] = "";
// line 46
yield "\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 46, $this->source); })()), "filter", [], "any", false, false, false, 46)) {
// line 47
yield "\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 47, $this->source); })()), "filter", [], "any", false, false, false, 47), "annuaire"))) {
// line 48
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/annuaire_filter.html.twig", "blocks/articles.html.twig", 48)->unwrap()->yield($context);
// line 49
yield "\t\t\t\t";
$context["structure"] = "annuaire";
// line 50
yield "\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 50, $this->source); })()), "filter", [], "any", false, false, false, 50), "experiences"))) {
// line 51
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/experiences_filter.html.twig", "blocks/articles.html.twig", 51)->unwrap()->yield($context);
// line 52
yield "\t\t\t\t";
$context["structure"] = "experiences";
// line 53
yield "\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 53, $this->source); })()), "filter", [], "any", false, false, false, 53), "fiches_territoires"))) {
// line 54
yield "\t\t\t\t";
$context["structure"] = "fiches_territoires";
// line 55
yield "\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 55, $this->source); })()), "filter", [], "any", false, false, false, 55), "articles"))) {
// line 56
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/articles_filter.html.twig", "blocks/articles.html.twig", 56)->unwrap()->yield($context);
// line 57
yield "\t\t\t\t";
$context["structure"] = "articles";
// line 58
yield "\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 58, $this->source); })()), "filter", [], "any", false, false, false, 58), "guides_outils"))) {
// line 59
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/articles_filter.html.twig", "blocks/articles.html.twig", 59)->unwrap()->yield($context);
// line 60
yield "\t\t\t\t";
$context["structure"] = "guides_outils";
// line 61
yield "\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 61, $this->source); })()), "filter", [], "any", false, false, false, 61), "agenda"))) {
// line 62
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/agenda_filter.html.twig", "blocks/articles.html.twig", 62)->unwrap()->yield($context);
// line 63
yield "\t\t\t\t";
$context["structure"] = "agenda";
// line 64
yield "\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 64, $this->source); })()), "filter", [], "any", false, false, false, 64), "offre"))) {
// line 65
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/offre_filter.html.twig", "blocks/articles.html.twig", 65)->unwrap()->yield($context);
// line 66
yield "\t\t\t\t";
$context["structure"] = "offres";
// line 67
yield "\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 67, $this->source); })()), "filter", [], "any", false, false, false, 67), "aapami"))) {
// line 68
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/aapami_filter.html.twig", "blocks/articles.html.twig", 68)->unwrap()->yield($context);
// line 69
yield "\t\t\t\t";
$context["structure"] = "aapami";
// line 70
yield "\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 70, $this->source); })()), "filter", [], "any", false, false, false, 70), "analyses"))) {
// line 71
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/articles_filter.html.twig", "blocks/articles.html.twig", 71)->unwrap()->yield($context);
// line 72
yield "\t\t\t\t";
$context["structure"] = "analyses";
// line 73
yield "\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 73, $this->source); })()), "filter", [], "any", false, false, false, 73), "newsletters"))) {
// line 74
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/newsletter_filter.html.twig", "blocks/articles.html.twig", 74)->unwrap()->yield($context);
// line 75
yield "\t\t\t\t";
$context["structure"] = "newsletters";
// line 76
yield "\t\t\t";
} elseif ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 76, $this->source); })()), "filter", [], "any", false, false, false, 76), "groupe_travail"))) {
// line 77
yield "\t\t\t\t";
$context["structure"] = "groupe-travail";
// line 78
yield "\t\t\t";
}
// line 79
yield "\t\t";
}
// line 80
yield "\t\t";
if ( !Twig\Extension\CoreExtension::testEmpty(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.', 80, $this->source); })()), "request", [], "any", false, false, false, 80), "get", ["q"], "method", false, false, false, 80))) {
// line 81
yield "\t\t\t";
$context["q"] = 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.', 81, $this->source); })()), "request", [], "any", false, false, false, 81), "get", ["q"], "method", false, false, false, 81);
// line 82
yield "\t\t";
} else {
// line 83
yield "\t\t\t";
$context["q"] = "";
// line 84
yield "\t\t";
}
// line 85
yield "\t\t";
if ( !Twig\Extension\CoreExtension::testEmpty(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.', 85, $this->source); })()), "request", [], "any", false, false, false, 85), "get", ["elems"], "method", false, false, false, 85))) {
// line 86
yield "\t\t\t";
$context["elems"] = 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.', 86, $this->source); })()), "request", [], "any", false, false, false, 86), "get", ["elems"], "method", false, false, false, 86);
// line 87
yield "\t\t";
}
// line 88
yield "\t\t";
if ( !Twig\Extension\CoreExtension::testEmpty(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.', 88, $this->source); })()), "request", [], "any", false, false, false, 88), "get", ["theme"], "method", false, false, false, 88))) {
// line 89
yield "\t\t\t";
$context["t"] = 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.', 89, $this->source); })()), "request", [], "any", false, false, false, 89), "get", ["theme"], "method", false, false, false, 89);
// line 90
yield "\t\t";
} else {
// line 91
yield "\t\t\t";
$context["t"] = "";
// line 92
yield "\t\t";
}
// line 93
yield "\t\t";
if ( !Twig\Extension\CoreExtension::testEmpty(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.', 93, $this->source); })()), "request", [], "any", false, false, false, 93), "get", ["start"], "method", false, false, false, 93))) {
// line 94
yield "\t\t\t";
$context["start"] = 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.', 94, $this->source); })()), "request", [], "any", false, false, false, 94), "get", ["start"], "method", false, false, false, 94);
// line 95
yield "\t\t";
} else {
// line 96
yield "\t\t\t";
$context["start"] = "";
// line 97
yield "\t\t";
}
// line 98
yield "\t\t";
if ( !Twig\Extension\CoreExtension::testEmpty(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.', 98, $this->source); })()), "request", [], "any", false, false, false, 98), "get", ["end"], "method", false, false, false, 98))) {
// line 99
yield "\t\t\t";
$context["end"] = 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.', 99, $this->source); })()), "request", [], "any", false, false, false, 99), "get", ["end"], "method", false, false, false, 99);
// line 100
yield "\t\t";
} else {
// line 101
yield "\t\t\t";
$context["end"] = "";
// line 102
yield "\t\t";
}
// line 103
yield "\t\t";
if ( !Twig\Extension\CoreExtension::testEmpty(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.', 103, $this->source); })()), "request", [], "any", false, false, false, 103), "get", ["page"], "method", false, false, false, 103))) {
// line 104
yield "\t\t\t";
$context["page"] = 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.', 104, $this->source); })()), "request", [], "any", false, false, false, 104), "get", ["page"], "method", false, false, false, 104);
// line 105
yield "\t\t";
} else {
// line 106
yield "\t\t\t";
$context["page"] = 1;
// line 107
yield "\t\t";
}
// line 108
yield "\t\t";
if ( !Twig\Extension\CoreExtension::testEmpty(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.', 108, $this->source); })()), "request", [], "any", false, false, false, 108), "get", ["format"], "method", false, false, false, 108))) {
// line 109
yield "\t\t\t";
$context["f"] = 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.', 109, $this->source); })()), "request", [], "any", false, false, false, 109), "get", ["format"], "method", false, false, false, 109);
// line 110
yield "\t\t";
} else {
// line 111
yield "\t\t\t";
$context["f"] = "";
// line 112
yield "\t\t";
}
// line 113
yield " ";
if ( !Twig\Extension\CoreExtension::testEmpty(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.', 113, $this->source); })()), "request", [], "any", false, false, false, 113), "get", ["type_territoire"], "method", false, false, false, 113))) {
// line 114
yield "\t\t\t";
$context["typeTerritoire"] = 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.', 114, $this->source); })()), "request", [], "any", false, false, false, 114), "get", ["type_territoire"], "method", false, false, false, 114);
// line 115
yield "\t\t";
} else {
// line 116
yield " ";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 116, $this->source); })()), "filter", [], "any", false, false, false, 116), "fiches_territoires"))) {
// line 117
yield "\t\t\t ";
$context["typeTerritoire"] = "contractualisation";
// line 118
yield " ";
} else {
// line 119
yield " ";
$context["typeTerritoire"] = "";
// line 120
yield " ";
}
// line 121
yield "\t\t";
}
// line 122
yield "
";
// line 123
if (((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 123, $this->source); })()), "filter", [], "any", false, false, false, 123), "fiches_territoires")) || (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 123, $this->source); })()), "filter", [], "any", false, false, false, 123), "experiences")))) {
// line 124
yield " <div class=\"dflex territoire-container\">
";
}
// line 126
yield " <div class=\"w100 h100 prelative articles-cont\">
<div id=\"articles-container\" class=\"dflex fdc\" data-type=\"";
// line 127
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 127, $this->source); })()), "html", null, true);
yield "\">
";
// line 128
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Website\\ApiSearchController::queryAction", ["q" => // line 130
(isset($context["q"]) || array_key_exists("q", $context) ? $context["q"] : (function () { throw new RuntimeError('Variable "q" does not exist.', 130, $this->source); })()), "elems" => (isset($context["elems"]) || array_key_exists("elems", $context) ? $context["elems"] : (function () { throw new RuntimeError('Variable "elems" does not exist.', 130, $this->source); })()), "page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 130, $this->source); })()), "start" => (isset($context["start"]) || array_key_exists("start", $context) ? $context["start"] : (function () { throw new RuntimeError('Variable "start" does not exist.', 130, $this->source); })()), "end" => (isset($context["end"]) || array_key_exists("end", $context) ? $context["end"] : (function () { throw new RuntimeError('Variable "end" does not exist.', 130, $this->source); })()), "theme" => (isset($context["t"]) || array_key_exists("t", $context) ? $context["t"] : (function () { throw new RuntimeError('Variable "t" does not exist.', 130, $this->source); })()), "structure" => (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 130, $this->source); })()), "format" => (isset($context["f"]) || array_key_exists("f", $context) ? $context["f"] : (function () { throw new RuntimeError('Variable "f" does not exist.', 130, $this->source); })()), "type_territoire" => (isset($context["typeTerritoire"]) || array_key_exists("typeTerritoire", $context) ? $context["typeTerritoire"] : (function () { throw new RuntimeError('Variable "typeTerritoire" does not exist.', 130, $this->source); })())]));
// line 131
yield "
</div>
<div class=\"w100 h100 pabsolute with-loader\">
<div class=\"lds-dual-ring pabsolute form-loader\" id=\"loader\"></div>
</div>
</div>
\t";
}
// line 139
yield "\t";
if (((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 139, $this->source); })()), "filter", [], "any", false, false, false, 139), "fiches_territoires")) || (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 139, $this->source); })()), "filter", [], "any", false, false, false, 139), "experiences")))) {
// line 140
yield "\t\t<div id=\"map-div\">
\t\t\t";
// line 141
$context["territory_list_set"] = true;
// line 142
yield "\t\t\t";
$context["full_size_map_exists"] = true;
// line 143
yield "\t\t\t";
if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 143, $this->source); })()), "filter", [], "any", false, false, false, 143), "experiences"))) {
// line 144
yield "\t\t\t\t";
$context["territory_list_set"] = false;
// line 145
yield "\t\t\t";
}
// line 146
yield "\t\t\t";
yield from $this->loadTemplate("blocks/map.html.twig", "blocks/articles.html.twig", 146)->unwrap()->yield(CoreExtension::merge($context, ["territory_list_set" => (isset($context["territory_list_set"]) || array_key_exists("territory_list_set", $context) ? $context["territory_list_set"] : (function () { throw new RuntimeError('Variable "territory_list_set" does not exist.', 146, $this->source); })())]));
// line 147
yield "\t\t</div>
\t";
}
// line 149
yield " ";
if (((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 149, $this->source); })()), "filter", [], "any", false, false, false, 149), "fiches_territoires")) || (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 149, $this->source); })()), "filter", [], "any", false, false, false, 149), "experiences")))) {
// line 150
yield " </div>
";
}
// line 152
yield "</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "blocks/articles.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 440 => 152, 436 => 150, 433 => 149, 429 => 147, 426 => 146, 423 => 145, 420 => 144, 417 => 143, 414 => 142, 412 => 141, 409 => 140, 406 => 139, 396 => 131, 394 => 130, 393 => 128, 389 => 127, 386 => 126, 382 => 124, 380 => 123, 377 => 122, 374 => 121, 371 => 120, 368 => 119, 365 => 118, 362 => 117, 359 => 116, 356 => 115, 353 => 114, 350 => 113, 347 => 112, 344 => 111, 341 => 110, 338 => 109, 335 => 108, 332 => 107, 329 => 106, 326 => 105, 323 => 104, 320 => 103, 317 => 102, 314 => 101, 311 => 100, 308 => 99, 305 => 98, 302 => 97, 299 => 96, 296 => 95, 293 => 94, 290 => 93, 287 => 92, 284 => 91, 281 => 90, 278 => 89, 275 => 88, 272 => 87, 269 => 86, 266 => 85, 263 => 84, 260 => 83, 257 => 82, 254 => 81, 251 => 80, 248 => 79, 245 => 78, 242 => 77, 239 => 76, 236 => 75, 233 => 74, 230 => 73, 227 => 72, 224 => 71, 221 => 70, 218 => 69, 215 => 68, 212 => 67, 209 => 66, 206 => 65, 203 => 64, 200 => 63, 197 => 62, 194 => 61, 191 => 60, 188 => 59, 185 => 58, 182 => 57, 179 => 56, 176 => 55, 173 => 54, 170 => 53, 167 => 52, 164 => 51, 161 => 50, 158 => 49, 155 => 48, 152 => 47, 149 => 46, 147 => 45, 140 => 40, 137 => 39, 134 => 38, 131 => 37, 128 => 36, 125 => 35, 122 => 34, 119 => 33, 116 => 32, 113 => 31, 110 => 30, 107 => 29, 105 => 28, 100 => 25, 98 => 24, 92 => 23, 81 => 14, 66 => 10, 64 => 9, 60 => 7, 57 => 6, 54 => 5, 51 => 4, 49 => 3, 46 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% set introClass = \"team-project-section\" %}
<div class=\"preview-article mt-1em\">
\t{% if block.articles_smart_content is defined and block.articles_smart_content is not empty and block.articles_smart_content|length > 0 %}
\t\t{% if block.filter == \"fiches_territoires\" %}
\t\t\t{% include \"filter/sub-filters/type-territoire.html.twig\" %}
\t\t{% endif %}
\t\t<div class=\"dflex jcsb button-container fwwrap\">
\t\t\t<div class=\"dflex jcsb w100\">
\t\t\t\t{% if block.filter != \"groupe_travail\" and block.filter != \"fiches_territoires\" %}
\t\t\t\t\t<button id=\"filter\" class=\"bgblue cwhite shadow-button jcsa br6 fs14 fw400 lh20 visible {% if block.filter == 'experiences' %} filter-experiences-custom {% else %} toggleable{% endif %} {{ introClass }}\">
\t\t\t\t\t\t<img src=\"/resources/img/filter-icon.svg\" width=\"14\" height=\"16\" alt=\"\" loading=\"lazy\">
\t\t\t\t\t\tFiltrer
\t\t\t\t\t</button>
\t\t\t\t{% endif %}
<div class=\"prelative document-search-cont\">
<input placeholder=\"Rechercher\" id=\"document-search\" name=\"q\" class=\"br6 p-1em\">
<div class=\"icon-cont pabsolute dflex aic jcc\">
<img class=\"loupe\" src=\"/resources/img/search-icon.svg\" alt=\"Icone de recherche loupe\" style=\"pointer-events: none;\" width=\"16\" height=\"16\" loading=\"lazy\">
</div>
</div>
\t\t\t</div>
\t\t\t<div class=\"{% if block.filter == \"groupe_travail\" %} mla {% endif %} toggleable visible aic\" >
\t\t\t\t{% set elems = 9 %}
\t\t\t\t<label for=\"elems-number\">
\t\t\t\t\tÉléments par page :
\t\t\t\t</label>
\t\t\t\t{% if block.filter == \"articles\" %}
\t\t\t\t\t{% set elems = 9 %}
\t\t\t\t{% elseif block.filter == \"agenda\" %}
\t\t\t\t\t{% set elems = 8 %}
\t\t\t\t{% elseif block.filter == \"aapami\" %}
\t\t\t\t\t{% set elems = 12 %}
\t\t\t\t{% elseif block.filter == \"offre\" or block.filter == \"groupe_travail\" %}
\t\t\t\t\t{% set elems = 10 %}
\t\t\t\t{% elseif block.filter == \"newsletters\" or block.filter == \"analyses\" or block.filter == \"experiences\" or block.filter == \"guides_outils\" or block.filter == \"fiches_territoires\" %}
\t\t\t\t\t{% set elems = 6 %}
\t\t\t\t{% endif %}
\t\t\t\t{% include \"blocks/sub-blocks/elems-number.html.twig\" with {number: elems} %}
\t\t\t</div>
<div class=\"switch-map-cont\">
<button class=\"switch-map-btn\">Carte</button>
</div>
\t\t</div>
\t\t{% set structure = '' %}
\t\t{% if block.filter %}
\t\t\t{% if block.filter == \"annuaire\" %}
\t\t\t\t{% include \"filter/annuaire_filter.html.twig\" %}
\t\t\t\t{% set structure = 'annuaire' %}
\t\t\t{% elseif block.filter == \"experiences\" %}
\t\t\t\t{% include \"filter/experiences_filter.html.twig\" %}
\t\t\t\t{% set structure = 'experiences' %}
\t\t\t{% elseif block.filter == \"fiches_territoires\" %}
\t\t\t\t{% set structure = 'fiches_territoires' %}
\t\t\t{% elseif block.filter == \"articles\" %}
\t\t\t\t{% include \"filter/articles_filter.html.twig\" %}
\t\t\t\t{% set structure = 'articles' %}
\t\t\t{% elseif block.filter == \"guides_outils\" %}
\t\t\t\t{% include \"filter/articles_filter.html.twig\" %}
\t\t\t\t{% set structure = 'guides_outils' %}
\t\t\t{% elseif block.filter == \"agenda\" %}
\t\t\t\t{% include \"filter/agenda_filter.html.twig\" %}
\t\t\t\t{% set structure = 'agenda' %}
\t\t\t{% elseif block.filter == \"offre\" %}
\t\t\t\t{% include \"filter/offre_filter.html.twig\" %}
\t\t\t\t{% set structure = 'offres' %}
\t\t\t{% elseif block.filter == \"aapami\" %}
\t\t\t\t{% include \"filter/aapami_filter.html.twig\" %}
\t\t\t\t{% set structure = 'aapami' %}
\t\t\t{% elseif block.filter == \"analyses\" %}
\t\t\t\t{% include \"filter/articles_filter.html.twig\" %}
\t\t\t\t{% set structure = 'analyses' %}
\t\t\t{% elseif block.filter == \"newsletters\" %}
\t\t\t\t{% include \"filter/newsletter_filter.html.twig\" %}
\t\t\t\t{% set structure = 'newsletters' %}
\t\t\t{% elseif block.filter == \"groupe_travail\" %}
\t\t\t\t{% set structure = 'groupe-travail' %}
\t\t\t{% endif %}
\t\t{% endif %}
\t\t{% if app.request.get('q') is not empty %}
\t\t\t{% set q = app.request.get('q') %}
\t\t{% else %}
\t\t\t{% set q = '' %}
\t\t{% endif %}
\t\t{% if app.request.get('elems') is not empty %}
\t\t\t{% set elems = app.request.get('elems') %}
\t\t{% endif %}
\t\t{% if app.request.get('theme') is not empty %}
\t\t\t{% set t = app.request.get('theme') %}
\t\t{% else %}
\t\t\t{% set t = '' %}
\t\t{% endif %}
\t\t{% if app.request.get('start') is not empty %}
\t\t\t{% set start = app.request.get('start') %}
\t\t{% else %}
\t\t\t{% set start = '' %}
\t\t{% endif %}
\t\t{% if app.request.get('end') is not empty %}
\t\t\t{% set end = app.request.get('end') %}
\t\t{% else %}
\t\t\t{% set end = '' %}
\t\t{% endif %}
\t\t{% if app.request.get('page') is not empty %}
\t\t\t{% set page = app.request.get('page') %}
\t\t{% else %}
\t\t\t{% set page = 1 %}
\t\t{% endif %}
\t\t{% if app.request.get('format') is not empty %}
\t\t\t{% set f = app.request.get('format') %}
\t\t{% else %}
\t\t\t{% set f = '' %}
\t\t{% endif %}
{% if app.request.get('type_territoire') is not empty %}
\t\t\t{% set typeTerritoire = app.request.get('type_territoire') %}
\t\t{% else %}
{% if block.filter == \"fiches_territoires\" %}
\t\t\t {% set typeTerritoire = 'contractualisation' %}
{% else %}
{% set typeTerritoire = '' %}
{% endif %}
\t\t{% endif %}
{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
<div class=\"dflex territoire-container\">
{% endif %}
<div class=\"w100 h100 prelative articles-cont\">
<div id=\"articles-container\" class=\"dflex fdc\" data-type=\"{{ structure }}\">
{{ render(controller(
'App\\\\Controller\\\\Website\\\\ApiSearchController::queryAction',
{ \"q\": q, \"elems\": elems, \"page\": page, \"start\": start, \"end\" : end, \"theme\": t, 'structure': structure, 'format': f, \"type_territoire\": typeTerritoire }
)) }}
</div>
<div class=\"w100 h100 pabsolute with-loader\">
<div class=\"lds-dual-ring pabsolute form-loader\" id=\"loader\"></div>
</div>
</div>
\t{% endif %}
\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
\t\t<div id=\"map-div\">
\t\t\t{% set territory_list_set = true %}
\t\t\t{% set full_size_map_exists = true %}
\t\t\t{% if block.filter == \"experiences\" %}
\t\t\t\t{% set territory_list_set = false %}
\t\t\t{% endif %}
\t\t\t{% include \"blocks/map.html.twig\" with {'territory_list_set': territory_list_set} %}
\t\t</div>
\t{% endif %}
{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
</div>
{% endif %}
</div>", "blocks/articles.html.twig", "/var/www/html/templates/blocks/articles.html.twig");
}
}