<?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_1a01bda65702294fa8ebfb26a458ef731f2b8777c29a291b9dad3d5f97cf20cc 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 fwwrap filter-count\">
\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), "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.', 9, $this->source); })()), "filter", [], "any", false, false, false, 9), "experiences")))) {
// 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 15
yield "\t\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.', 15, $this->source); })()), "filter", [], "any", false, false, false, 15), "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.', 15, $this->source); })()), "filter", [], "any", false, false, false, 15), "experiences")))) {
// line 16
yield "\t\t\t\t\t";
$context["placeholder"] = "";
// line 17
yield "\t\t\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.', 17, $this->source); })()), "filter", [], "any", false, false, false, 17), "fiches_territoires"))) {
// line 18
yield "\t\t\t\t\t\t";
$context["placeholder"] = "Recherchez des territoires";
// line 19
yield "\t\t\t\t\t";
}
// line 20
yield "\t\t\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.', 20, $this->source); })()), "filter", [], "any", false, false, false, 20), "experiences"))) {
// line 21
yield "\t\t\t\t\t\t";
$context["placeholder"] = "Recherchez des expériences";
// line 22
yield "\t\t\t\t\t";
}
// line 23
yield "
\t\t\t\t\t<div class=\"dflex w100\">
\t\t\t\t\t\t<div class=\"prelative document-search-cont\">
\t\t\t\t\t\t\t<input placeholder=\"";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 26, $this->source); })()), "html", null, true);
yield "\" id=\"document-search\" name=\"q\" class=\"br6 p-1em\">
\t\t\t\t\t\t\t<div class=\"icon-cont pabsolute dflex aic jcc\">
\t\t\t\t\t\t\t\t<img class=\"loupe\" src=\"/resources/img/search-icon.svg\" alt=\"Icone de recherche loupe\" style=\"pointer-events: none;\" width=\"16\" height=\"16\" loading=\"lazy\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 31
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.', 31, $this->source); })()), "filter", [], "any", false, false, false, 31), "experiences"))) {
// line 32
yield "\t\t\t\t\t\t\t";
yield from $this->loadTemplate("filter/experiences_filter.html.twig", "blocks/articles.html.twig", 32)->unwrap()->yield($context);
// line 33
yield "\t\t\t\t\t\t";
}
// line 34
yield "\t\t\t\t\t</div>
\t\t\t\t";
}
// line 36
yield "\t\t\t</div>
\t\t\t";
// line 37
$context["elems"] = 9;
// line 38
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.', 38, $this->source); })()), "filter", [], "any", false, false, false, 38), "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.', 38, $this->source); })()), "filter", [], "any", false, false, false, 38), "experiences")))) {
// line 39
yield "\t\t\t\t<div class=\"toggleable visible aic\">
\t\t\t\t\t";
// line 40
$context["elems"] = 9;
// line 41
yield "\t\t\t\t\t<label for=\"elems-number\">
\t\t\t\t\t\tÉléments par page :
\t\t\t\t\t</label>
\t\t\t\t\t";
// line 44
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.', 44, $this->source); })()), "filter", [], "any", false, false, false, 44), "articles"))) {
// line 45
yield "\t\t\t\t\t\t";
$context["elems"] = 9;
// line 46
yield "\t\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.', 46, $this->source); })()), "filter", [], "any", false, false, false, 46), "agenda"))) {
// line 47
yield "\t\t\t\t\t\t";
$context["elems"] = 8;
// line 48
yield "\t\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.', 48, $this->source); })()), "filter", [], "any", false, false, false, 48), "aapami"))) {
// line 49
yield "\t\t\t\t\t\t";
$context["elems"] = 12;
// line 50
yield "\t\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.', 50, $this->source); })()), "filter", [], "any", false, false, false, 50), "offre"))) {
// line 51
yield "\t\t\t\t\t\t";
$context["elems"] = 10;
// line 52
yield "\t\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.', 52, $this->source); })()), "filter", [], "any", false, false, false, 52), "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.', 52, $this->source); })()), "filter", [], "any", false, false, false, 52), "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.', 52, $this->source); })()), "filter", [], "any", false, false, false, 52), "guides_outils")))) {
// line 53
yield "\t\t\t\t\t\t";
$context["elems"] = 6;
// line 54
yield "\t\t\t\t\t";
}
// line 55
yield "\t\t\t\t\t";
yield from $this->loadTemplate("blocks/sub-blocks/elems-number.html.twig", "blocks/articles.html.twig", 55)->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.', 55, $this->source); })())]));
// line 56
yield "\t\t\t\t</div>
\t\t\t";
}
// line 58
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.', 58, $this->source); })()), "filter", [], "any", false, false, false, 58), "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.', 58, $this->source); })()), "filter", [], "any", false, false, false, 58), "experiences")))) {
// line 59
yield "\t\t\t\t<div class=\"switch-map-cont\">
\t\t\t\t\t<button class=\"switch-map-btn\">Carte</button>
\t\t\t\t</div>
\t\t\t";
}
// line 63
yield "\t\t</div>
\t\t";
// line 64
$context["structure"] = "";
// line 65
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.', 65, $this->source); })()), "filter", [], "any", false, false, false, 65)) {
// line 66
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.', 66, $this->source); })()), "filter", [], "any", false, false, false, 66), "annuaire"))) {
// line 67
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/annuaire_filter.html.twig", "blocks/articles.html.twig", 67)->unwrap()->yield($context);
// line 68
yield "\t\t\t\t";
$context["structure"] = "annuaire";
// line 69
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.', 69, $this->source); })()), "filter", [], "any", false, false, false, 69), "experiences"))) {
// line 70
yield "\t\t\t\t";
$context["structure"] = "experiences";
// line 71
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.', 71, $this->source); })()), "filter", [], "any", false, false, false, 71), "fiches_territoires"))) {
// line 72
yield "\t\t\t\t";
$context["structure"] = "fiches_territoires";
// 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), "articles"))) {
// line 74
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/articles_filter.html.twig", "blocks/articles.html.twig", 74)->unwrap()->yield($context);
// line 75
yield "\t\t\t\t";
$context["structure"] = "articles";
// 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), "guides_outils"))) {
// line 77
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/articles_filter.html.twig", "blocks/articles.html.twig", 77)->unwrap()->yield($context);
// line 78
yield "\t\t\t\t";
$context["structure"] = "guides_outils";
// line 79
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.', 79, $this->source); })()), "filter", [], "any", false, false, false, 79), "agenda"))) {
// line 80
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/agenda_filter.html.twig", "blocks/articles.html.twig", 80)->unwrap()->yield($context);
// line 81
yield "\t\t\t\t";
$context["structure"] = "agenda";
// line 82
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.', 82, $this->source); })()), "filter", [], "any", false, false, false, 82), "offre"))) {
// line 83
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/offre_filter.html.twig", "blocks/articles.html.twig", 83)->unwrap()->yield($context);
// line 84
yield "\t\t\t\t";
$context["structure"] = "offres";
// line 85
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.', 85, $this->source); })()), "filter", [], "any", false, false, false, 85), "aapami"))) {
// line 86
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/aapami_filter.html.twig", "blocks/articles.html.twig", 86)->unwrap()->yield($context);
// line 87
yield "\t\t\t\t";
$context["structure"] = "aapami";
// line 88
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.', 88, $this->source); })()), "filter", [], "any", false, false, false, 88), "analyses"))) {
// line 89
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/articles_filter.html.twig", "blocks/articles.html.twig", 89)->unwrap()->yield($context);
// line 90
yield "\t\t\t\t";
$context["structure"] = "analyses";
// line 91
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.', 91, $this->source); })()), "filter", [], "any", false, false, false, 91), "newsletters"))) {
// line 92
yield "\t\t\t\t";
yield from $this->loadTemplate("filter/newsletter_filter.html.twig", "blocks/articles.html.twig", 92)->unwrap()->yield($context);
// line 93
yield "\t\t\t\t";
$context["structure"] = "newsletters";
// line 94
yield "\t\t\t";
}
// line 95
yield "\t\t";
}
// line 96
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.', 96, $this->source); })()), "request", [], "any", false, false, false, 96), "get", ["q"], "method", false, false, false, 96))) {
// line 97
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.', 97, $this->source); })()), "request", [], "any", false, false, false, 97), "get", ["q"], "method", false, false, false, 97);
// line 98
yield "\t\t";
} else {
// line 99
yield "\t\t\t";
$context["q"] = "";
// line 100
yield "\t\t";
}
// line 101
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.', 101, $this->source); })()), "request", [], "any", false, false, false, 101), "get", ["elems"], "method", false, false, false, 101))) {
// line 102
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.', 102, $this->source); })()), "request", [], "any", false, false, false, 102), "get", ["elems"], "method", false, false, false, 102);
// line 103
yield "\t\t";
}
// line 104
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.', 104, $this->source); })()), "request", [], "any", false, false, false, 104), "get", ["theme"], "method", false, false, false, 104))) {
// line 105
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.', 105, $this->source); })()), "request", [], "any", false, false, false, 105), "get", ["theme"], "method", false, false, false, 105);
// line 106
yield "\t\t";
} else {
// line 107
yield "\t\t\t";
$context["t"] = "";
// line 108
yield "\t\t";
}
// line 109
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.', 109, $this->source); })()), "request", [], "any", false, false, false, 109), "get", ["start"], "method", false, false, false, 109))) {
// line 110
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.', 110, $this->source); })()), "request", [], "any", false, false, false, 110), "get", ["start"], "method", false, false, false, 110);
// line 111
yield "\t\t";
} else {
// line 112
yield "\t\t\t";
$context["start"] = "";
// line 113
yield "\t\t";
}
// line 114
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.', 114, $this->source); })()), "request", [], "any", false, false, false, 114), "get", ["end"], "method", false, false, false, 114))) {
// line 115
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.', 115, $this->source); })()), "request", [], "any", false, false, false, 115), "get", ["end"], "method", false, false, false, 115);
// line 116
yield "\t\t";
} else {
// line 117
yield "\t\t\t";
$context["end"] = "";
// line 118
yield "\t\t";
}
// line 119
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.', 119, $this->source); })()), "request", [], "any", false, false, false, 119), "get", ["page"], "method", false, false, false, 119))) {
// line 120
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.', 120, $this->source); })()), "request", [], "any", false, false, false, 120), "get", ["page"], "method", false, false, false, 120);
// line 121
yield "\t\t";
} else {
// line 122
yield "\t\t\t";
$context["page"] = 1;
// line 123
yield "\t\t";
}
// line 124
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.', 124, $this->source); })()), "request", [], "any", false, false, false, 124), "get", ["format"], "method", false, false, false, 124))) {
// line 125
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.', 125, $this->source); })()), "request", [], "any", false, false, false, 125), "get", ["format"], "method", false, false, false, 125);
// line 126
yield "\t\t";
} else {
// line 127
yield "\t\t\t";
$context["f"] = "";
// line 128
yield "\t\t";
}
// line 129
yield " ";
$context["typeTerritoire"] = "";
// line 130
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.', 130, $this->source); })()), "request", [], "any", false, false, false, 130), "get", ["type_territoire"], "method", false, false, false, 130))) {
// line 131
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.', 131, $this->source); })()), "request", [], "any", false, false, false, 131), "get", ["type_territoire"], "method", false, false, false, 131);
// line 132
yield "\t\t";
} else {
// line 133
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.', 133, $this->source); })()), "filter", [], "any", false, false, false, 133), "fiches_territoires"))) {
// line 134
yield "\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 134), "get", ["type"], "method", true, true, false, 134) && !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.', 134, $this->source); })()), "request", [], "any", false, false, false, 134), "get", ["type"], "method", false, false, false, 134)))) {
// line 135
yield "\t\t\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.', 135, $this->source); })()), "request", [], "any", false, false, false, 135), "get", ["type"], "method", false, false, false, 135);
// line 136
yield "\t\t\t\t";
} else {
// line 137
yield "\t\t\t\t\t";
$context["typeTerritoire"] = "contractualisation";
// line 138
yield "\t\t\t\t";
}
// line 139
yield "\t\t\t";
}
// line 140
yield "\t\t";
}
// line 141
yield "
\t\t";
// line 142
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.', 142, $this->source); })()), "filter", [], "any", false, false, false, 142), "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.', 142, $this->source); })()), "filter", [], "any", false, false, false, 142), "experiences")))) {
// line 143
yield "\t\t\t<div class=\"dflex territoire-container\">
\t\t\t";
}
// line 145
yield "\t\t\t<div class=\"w100 h100 prelative articles-cont\">
\t\t\t\t<div id=\"articles-container\" class=\"dflex fdc\" data-type=\"";
// line 146
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.', 146, $this->source); })()), "html", null, true);
yield "\">
\t\t\t\t\t";
// line 147
yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Website\\ApiSearchController::queryAction", ["q" => // line 149
(isset($context["q"]) || array_key_exists("q", $context) ? $context["q"] : (function () { throw new RuntimeError('Variable "q" does not exist.', 149, $this->source); })()), "elems" => (isset($context["elems"]) || array_key_exists("elems", $context) ? $context["elems"] : (function () { throw new RuntimeError('Variable "elems" does not exist.', 149, $this->source); })()), "page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 149, $this->source); })()), "start" => (isset($context["start"]) || array_key_exists("start", $context) ? $context["start"] : (function () { throw new RuntimeError('Variable "start" does not exist.', 149, $this->source); })()), "end" => (isset($context["end"]) || array_key_exists("end", $context) ? $context["end"] : (function () { throw new RuntimeError('Variable "end" does not exist.', 149, $this->source); })()), "theme" => (isset($context["t"]) || array_key_exists("t", $context) ? $context["t"] : (function () { throw new RuntimeError('Variable "t" does not exist.', 149, $this->source); })()), "structure" => (isset($context["structure"]) || array_key_exists("structure", $context) ? $context["structure"] : (function () { throw new RuntimeError('Variable "structure" does not exist.', 149, $this->source); })()), "format" => (isset($context["f"]) || array_key_exists("f", $context) ? $context["f"] : (function () { throw new RuntimeError('Variable "f" does not exist.', 149, $this->source); })()), "type_territoire" => (isset($context["typeTerritoire"]) || array_key_exists("typeTerritoire", $context) ? $context["typeTerritoire"] : (function () { throw new RuntimeError('Variable "typeTerritoire" does not exist.', 149, $this->source); })())]));
// line 150
yield "
\t\t\t\t</div>
\t\t\t\t<div class=\"w100 h100 pabsolute with-loader\">
\t\t\t\t\t<div class=\"lds-dual-ring pabsolute form-loader\" id=\"loader\"></div>
\t\t\t\t\t";
// line 155
$context["loader_text_placeholder"] = "Toutes les expériences";
// line 156
yield "\t\t\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.', 156, $this->source); })()), "filter", [], "any", false, false, false, 156), "fiches_territoires"))) {
// line 157
yield "\t\t\t\t\t\t";
$context["loader_text_placeholder"] = "Toutes les fiches territoires";
// line 158
yield "\t\t\t\t\t";
}
// line 159
yield "\t\t\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.', 159, $this->source); })()), "filter", [], "any", false, false, false, 159), "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.', 159, $this->source); })()), "filter", [], "any", false, false, false, 159), "experiences")))) {
// line 160
yield "\t\t\t\t\t\t<div class=\"loader-text pabsolute\" id=\"loader-text\">
\t\t\t\t\t\t\t<p>";
// line 161
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["loader_text_placeholder"]) || array_key_exists("loader_text_placeholder", $context) ? $context["loader_text_placeholder"] : (function () { throw new RuntimeError('Variable "loader_text_placeholder" does not exist.', 161, $this->source); })()), "html", null, true);
yield "
\t\t\t\t\t\t\t\tsont en route (quelque part dans la datasphère). Patientez juste quelques instants et c'est parti pour votre recherche !</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 165
yield "\t\t\t\t</div>
\t\t\t</div>
\t\t";
}
// line 168
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.', 168, $this->source); })()), "filter", [], "any", false, false, false, 168), "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.', 168, $this->source); })()), "filter", [], "any", false, false, false, 168), "experiences")))) {
// line 169
yield "\t\t\t<div id=\"map-div\">
\t\t\t\t";
// line 170
$context["territory_list_set"] = true;
// line 171
yield "\t\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.', 171, $this->source); })()), "filter", [], "any", false, false, false, 171), "experiences"))) {
// line 172
yield "\t\t\t\t\t";
$context["territory_list_set"] = false;
// line 173
yield "\t\t\t\t";
}
// line 174
yield "\t\t\t\t";
yield from $this->loadTemplate("blocks/map.html.twig", "blocks/articles.html.twig", 174)->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.', 174, $this->source); })())]));
// line 175
yield "\t\t\t</div>
\t\t";
}
// line 177
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.', 177, $this->source); })()), "filter", [], "any", false, false, false, 177), "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.', 177, $this->source); })()), "filter", [], "any", false, false, false, 177), "experiences")))) {
// line 178
yield "\t\t</div>
\t";
}
// line 180
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 ( 515 => 180, 511 => 178, 508 => 177, 504 => 175, 501 => 174, 498 => 173, 495 => 172, 492 => 171, 490 => 170, 487 => 169, 484 => 168, 479 => 165, 472 => 161, 469 => 160, 466 => 159, 463 => 158, 460 => 157, 457 => 156, 455 => 155, 448 => 150, 446 => 149, 445 => 147, 441 => 146, 438 => 145, 434 => 143, 432 => 142, 429 => 141, 426 => 140, 423 => 139, 420 => 138, 417 => 137, 414 => 136, 411 => 135, 408 => 134, 405 => 133, 402 => 132, 399 => 131, 396 => 130, 393 => 129, 390 => 128, 387 => 127, 384 => 126, 381 => 125, 378 => 124, 375 => 123, 372 => 122, 369 => 121, 366 => 120, 363 => 119, 360 => 118, 357 => 117, 354 => 116, 351 => 115, 348 => 114, 345 => 113, 342 => 112, 339 => 111, 336 => 110, 333 => 109, 330 => 108, 327 => 107, 324 => 106, 321 => 105, 318 => 104, 315 => 103, 312 => 102, 309 => 101, 306 => 100, 303 => 99, 300 => 98, 297 => 97, 294 => 96, 291 => 95, 288 => 94, 285 => 93, 282 => 92, 279 => 91, 276 => 90, 273 => 89, 270 => 88, 267 => 87, 264 => 86, 261 => 85, 258 => 84, 255 => 83, 252 => 82, 249 => 81, 246 => 80, 243 => 79, 240 => 78, 237 => 77, 234 => 76, 231 => 75, 228 => 74, 225 => 73, 222 => 72, 219 => 71, 216 => 70, 213 => 69, 210 => 68, 207 => 67, 204 => 66, 201 => 65, 199 => 64, 196 => 63, 190 => 59, 187 => 58, 183 => 56, 180 => 55, 177 => 54, 174 => 53, 171 => 52, 168 => 51, 165 => 50, 162 => 49, 159 => 48, 156 => 47, 153 => 46, 150 => 45, 148 => 44, 143 => 41, 141 => 40, 138 => 39, 135 => 38, 133 => 37, 130 => 36, 126 => 34, 123 => 33, 120 => 32, 118 => 31, 110 => 26, 105 => 23, 102 => 22, 99 => 21, 96 => 20, 93 => 19, 90 => 18, 87 => 17, 84 => 16, 81 => 15, 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 fwwrap filter-count\">
\t\t\t\t{% if block.filter != \"fiches_territoires\" and block.filter != \"experiences\" %}
\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 %}
\t\t\t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
\t\t\t\t\t{% set placeholder = '' %}
\t\t\t\t\t{% if block.filter == 'fiches_territoires' %}
\t\t\t\t\t\t{% set placeholder = 'Recherchez des territoires' %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if block.filter == 'experiences' %}
\t\t\t\t\t\t{% set placeholder = 'Recherchez des expériences' %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t<div class=\"dflex w100\">
\t\t\t\t\t\t<div class=\"prelative document-search-cont\">
\t\t\t\t\t\t\t<input placeholder=\"{{ placeholder }}\" id=\"document-search\" name=\"q\" class=\"br6 p-1em\">
\t\t\t\t\t\t\t<div class=\"icon-cont pabsolute dflex aic jcc\">
\t\t\t\t\t\t\t\t<img class=\"loupe\" src=\"/resources/img/search-icon.svg\" alt=\"Icone de recherche loupe\" style=\"pointer-events: none;\" width=\"16\" height=\"16\" loading=\"lazy\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% if block.filter == 'experiences' %}
\t\t\t\t\t\t\t{% include \"filter/experiences_filter.html.twig\" %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t</div>
\t\t\t{% set elems = 9 %}
\t\t\t{% if block.filter != \"fiches_territoires\" and block.filter != \"experiences\" %}
\t\t\t\t<div class=\"toggleable visible aic\">
\t\t\t\t\t{% set elems = 9 %}
\t\t\t\t\t<label for=\"elems-number\">
\t\t\t\t\t\tÉléments par page :
\t\t\t\t\t</label>
\t\t\t\t\t{% if block.filter == \"articles\" %}
\t\t\t\t\t\t{% set elems = 9 %}
\t\t\t\t\t{% elseif block.filter == \"agenda\" %}
\t\t\t\t\t\t{% set elems = 8 %}
\t\t\t\t\t{% elseif block.filter == \"aapami\" %}
\t\t\t\t\t\t{% set elems = 12 %}
\t\t\t\t\t{% elseif block.filter == \"offre\" %}
\t\t\t\t\t\t{% set elems = 10 %}
\t\t\t\t\t{% elseif block.filter == \"newsletters\" or block.filter == \"analyses\" or block.filter == \"guides_outils\" %}
\t\t\t\t\t\t{% set elems = 6 %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% include \"blocks/sub-blocks/elems-number.html.twig\" with {number: elems} %}
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
\t\t\t\t<div class=\"switch-map-cont\">
\t\t\t\t\t<button class=\"switch-map-btn\">Carte</button>
\t\t\t\t</div>
\t\t\t{% endif %}
\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{% 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{% 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 %}
{% set typeTerritoire = '' %}
\t\t{% if app.request.get('type_territoire') is not empty %}
\t\t\t{% set typeTerritoire = app.request.get('type_territoire') %}
\t\t{% else %}
\t\t\t{% if block.filter == \"fiches_territoires\" %}
\t\t\t\t{% if app.request.get('type') is defined and app.request.get('type') is not empty %}
\t\t\t\t\t{% set typeTerritoire = app.request.get('type') %}
\t\t\t\t{% else %}
\t\t\t\t\t{% set typeTerritoire = 'contractualisation' %}
\t\t\t\t{% endif %}
\t\t\t{% endif %}
\t\t{% endif %}
\t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
\t\t\t<div class=\"dflex territoire-container\">
\t\t\t{% endif %}
\t\t\t<div class=\"w100 h100 prelative articles-cont\">
\t\t\t\t<div id=\"articles-container\" class=\"dflex fdc\" data-type=\"{{ structure }}\">
\t\t\t\t\t{{ 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 }
)) }}
\t\t\t\t</div>
\t\t\t\t<div class=\"w100 h100 pabsolute with-loader\">
\t\t\t\t\t<div class=\"lds-dual-ring pabsolute form-loader\" id=\"loader\"></div>
\t\t\t\t\t{% set loader_text_placeholder = \"Toutes les expériences\" %}
\t\t\t\t\t{% if block.filter == \"fiches_territoires\" %}
\t\t\t\t\t\t{% set loader_text_placeholder = \"Toutes les fiches territoires\" %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
\t\t\t\t\t\t<div class=\"loader-text pabsolute\" id=\"loader-text\">
\t\t\t\t\t\t\t<p>{{ loader_text_placeholder }}
\t\t\t\t\t\t\t\tsont en route (quelque part dans la datasphère). Patientez juste quelques instants et c'est parti pour votre recherche !</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t</div>
\t\t{% endif %}
\t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
\t\t\t<div id=\"map-div\">
\t\t\t\t{% set territory_list_set = true %}
\t\t\t\t{% if block.filter == \"experiences\" %}
\t\t\t\t\t{% set territory_list_set = false %}
\t\t\t\t{% endif %}
\t\t\t\t{% include \"blocks/map.html.twig\" with {'territory_list_set': territory_list_set} %}
\t\t\t</div>
\t\t{% endif %}
\t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
\t\t</div>
\t{% endif %}
</div>
", "blocks/articles.html.twig", "/var/www/html/templates/blocks/articles.html.twig");
}
}