var/cache/website/dev/twig/97/9724793040d9b7c6d76c2f4107be65cfddc1fd2460a96d2037a9320acf9ef1c8.php line 446

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* blocks/articles.html.twig */
  15. class __TwigTemplate_1a01bda65702294fa8ebfb26a458ef731f2b8777c29a291b9dad3d5f97cf20cc extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blocks/articles.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blocks/articles.html.twig"));
  34.         // line 1
  35.         $context["introClass"] = "team-project-section";
  36.         // line 2
  37.         yield "<div class=\"preview-article mt-1em\">
  38. \t";
  39.         // line 3
  40.         if (((CoreExtension::getAttribute($this->env$this->source, ($context["block"] ?? null), "articles_smart_content", [], "any"truetruefalse3) &&  !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"falsefalsefalse3))) && (=== 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"falsefalsefalse3)), 0)))) {
  41.             // line 4
  42.             yield "\t\t";
  43.             if ((=== 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"falsefalsefalse4), "fiches_territoires"))) {
  44.                 // line 5
  45.                 yield "\t\t\t";
  46.                 yield from                 $this->loadTemplate("filter/sub-filters/type-territoire.html.twig""blocks/articles.html.twig"5)->unwrap()->yield($context);
  47.                 // line 6
  48.                 yield "\t\t";
  49.             }
  50.             // line 7
  51.             yield "\t\t<div class=\"dflex jcsb button-container fwwrap\">
  52. \t\t\t<div class=\"dflex jcsb w100 fwwrap filter-count\">
  53. \t\t\t\t";
  54.             // line 9
  55.             if (((!== 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"falsefalsefalse9), "fiches_territoires")) && (!== 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"falsefalsefalse9), "experiences")))) {
  56.                 // line 10
  57.                 yield "\t\t\t\t\t<button id=\"filter\" class=\"bgblue cwhite shadow-button jcsa br6 fs14 fw400 lh20 visible ";
  58.                 if ((=== 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"falsefalsefalse10), "experiences"))) {
  59.                     yield " filter-experiences-custom ";
  60.                 } else {
  61.                     yield " toggleable";
  62.                 }
  63.                 yield " ";
  64.                 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"nulltrue);
  65.                 yield "\">
  66. \t\t\t\t\t\t<img src=\"/resources/img/filter-icon.svg\" width=\"14\" height=\"16\" alt=\"\" loading=\"lazy\">
  67. \t\t\t\t\t\tFiltrer
  68. \t\t\t\t\t</button>
  69. \t\t\t\t";
  70.             }
  71.             // line 15
  72.             yield "\t\t\t\t";
  73.             if (((=== 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"falsefalsefalse15), "fiches_territoires")) || (=== 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"falsefalsefalse15), "experiences")))) {
  74.                 // line 16
  75.                 yield "\t\t\t\t\t";
  76.                 $context["placeholder"] = "";
  77.                 // line 17
  78.                 yield "\t\t\t\t\t";
  79.                 if ((=== 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"falsefalsefalse17), "fiches_territoires"))) {
  80.                     // line 18
  81.                     yield "\t\t\t\t\t\t";
  82.                     $context["placeholder"] = "Recherchez des territoires";
  83.                     // line 19
  84.                     yield "\t\t\t\t\t";
  85.                 }
  86.                 // line 20
  87.                 yield "\t\t\t\t\t";
  88.                 if ((=== 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"falsefalsefalse20), "experiences"))) {
  89.                     // line 21
  90.                     yield "\t\t\t\t\t\t";
  91.                     $context["placeholder"] = "Recherchez des expériences";
  92.                     // line 22
  93.                     yield "\t\t\t\t\t";
  94.                 }
  95.                 // line 23
  96.                 yield "
  97. \t\t\t\t\t<div class=\"dflex w100\">
  98. \t\t\t\t\t\t<div class=\"prelative document-search-cont\">
  99. \t\t\t\t\t\t\t<input placeholder=\"";
  100.                 // line 26
  101.                 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"nulltrue);
  102.                 yield "\" id=\"document-search\" name=\"q\" class=\"br6 p-1em\">
  103. \t\t\t\t\t\t\t<div class=\"icon-cont pabsolute dflex aic jcc\">
  104. \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\">
  105. \t\t\t\t\t\t\t</div>
  106. \t\t\t\t\t\t</div>
  107. \t\t\t\t\t\t";
  108.                 // line 31
  109.                 if ((=== 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"falsefalsefalse31), "experiences"))) {
  110.                     // line 32
  111.                     yield "\t\t\t\t\t\t\t";
  112.                     yield from                     $this->loadTemplate("filter/experiences_filter.html.twig""blocks/articles.html.twig"32)->unwrap()->yield($context);
  113.                     // line 33
  114.                     yield "\t\t\t\t\t\t";
  115.                 }
  116.                 // line 34
  117.                 yield "\t\t\t\t\t</div>
  118. \t\t\t\t";
  119.             }
  120.             // line 36
  121.             yield "\t\t\t</div>
  122. \t\t\t";
  123.             // line 37
  124.             $context["elems"] = 9;
  125.             // line 38
  126.             yield "\t\t\t";
  127.             if (((!== 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"falsefalsefalse38), "fiches_territoires")) && (!== 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"falsefalsefalse38), "experiences")))) {
  128.                 // line 39
  129.                 yield "\t\t\t\t<div class=\"toggleable visible aic\">
  130. \t\t\t\t\t";
  131.                 // line 40
  132.                 $context["elems"] = 9;
  133.                 // line 41
  134.                 yield "\t\t\t\t\t<label for=\"elems-number\">
  135. \t\t\t\t\t\tÉléments par page :
  136. \t\t\t\t\t</label>
  137. \t\t\t\t\t";
  138.                 // line 44
  139.                 if ((=== 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"falsefalsefalse44), "articles"))) {
  140.                     // line 45
  141.                     yield "\t\t\t\t\t\t";
  142.                     $context["elems"] = 9;
  143.                     // line 46
  144.                     yield "\t\t\t\t\t";
  145.                 } elseif ((=== 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"falsefalsefalse46), "agenda"))) {
  146.                     // line 47
  147.                     yield "\t\t\t\t\t\t";
  148.                     $context["elems"] = 8;
  149.                     // line 48
  150.                     yield "\t\t\t\t\t";
  151.                 } elseif ((=== 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"falsefalsefalse48), "aapami"))) {
  152.                     // line 49
  153.                     yield "\t\t\t\t\t\t";
  154.                     $context["elems"] = 12;
  155.                     // line 50
  156.                     yield "\t\t\t\t\t";
  157.                 } elseif ((=== 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"falsefalsefalse50), "offre"))) {
  158.                     // line 51
  159.                     yield "\t\t\t\t\t\t";
  160.                     $context["elems"] = 10;
  161.                     // line 52
  162.                     yield "\t\t\t\t\t";
  163.                 } elseif ((((=== 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"falsefalsefalse52), "newsletters")) || (=== 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"falsefalsefalse52), "analyses"))) || (=== 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"falsefalsefalse52), "guides_outils")))) {
  164.                     // line 53
  165.                     yield "\t\t\t\t\t\t";
  166.                     $context["elems"] = 6;
  167.                     // line 54
  168.                     yield "\t\t\t\t\t";
  169.                 }
  170.                 // line 55
  171.                 yield "\t\t\t\t\t";
  172.                 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); })())]));
  173.                 // line 56
  174.                 yield "\t\t\t\t</div>
  175. \t\t\t";
  176.             }
  177.             // line 58
  178.             yield "\t\t\t";
  179.             if (((=== 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"falsefalsefalse58), "fiches_territoires")) || (=== 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"falsefalsefalse58), "experiences")))) {
  180.                 // line 59
  181.                 yield "\t\t\t\t<div class=\"switch-map-cont\">
  182. \t\t\t\t\t<button class=\"switch-map-btn\">Carte</button>
  183. \t\t\t\t</div>
  184. \t\t\t";
  185.             }
  186.             // line 63
  187.             yield "\t\t</div>
  188. \t\t";
  189.             // line 64
  190.             $context["structure"] = "";
  191.             // line 65
  192.             yield "\t\t";
  193.             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"falsefalsefalse65)) {
  194.                 // line 66
  195.                 yield "\t\t\t";
  196.                 if ((=== 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"falsefalsefalse66), "annuaire"))) {
  197.                     // line 67
  198.                     yield "\t\t\t\t";
  199.                     yield from                     $this->loadTemplate("filter/annuaire_filter.html.twig""blocks/articles.html.twig"67)->unwrap()->yield($context);
  200.                     // line 68
  201.                     yield "\t\t\t\t";
  202.                     $context["structure"] = "annuaire";
  203.                     // line 69
  204.                     yield "\t\t\t";
  205.                 } elseif ((=== 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"falsefalsefalse69), "experiences"))) {
  206.                     // line 70
  207.                     yield "\t\t\t\t";
  208.                     $context["structure"] = "experiences";
  209.                     // line 71
  210.                     yield "\t\t\t";
  211.                 } elseif ((=== 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"falsefalsefalse71), "fiches_territoires"))) {
  212.                     // line 72
  213.                     yield "\t\t\t\t";
  214.                     $context["structure"] = "fiches_territoires";
  215.                     // line 73
  216.                     yield "\t\t\t";
  217.                 } elseif ((=== 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"falsefalsefalse73), "articles"))) {
  218.                     // line 74
  219.                     yield "\t\t\t\t";
  220.                     yield from                     $this->loadTemplate("filter/articles_filter.html.twig""blocks/articles.html.twig"74)->unwrap()->yield($context);
  221.                     // line 75
  222.                     yield "\t\t\t\t";
  223.                     $context["structure"] = "articles";
  224.                     // line 76
  225.                     yield "\t\t\t";
  226.                 } elseif ((=== 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"falsefalsefalse76), "guides_outils"))) {
  227.                     // line 77
  228.                     yield "\t\t\t\t";
  229.                     yield from                     $this->loadTemplate("filter/articles_filter.html.twig""blocks/articles.html.twig"77)->unwrap()->yield($context);
  230.                     // line 78
  231.                     yield "\t\t\t\t";
  232.                     $context["structure"] = "guides_outils";
  233.                     // line 79
  234.                     yield "\t\t\t";
  235.                 } elseif ((=== 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"falsefalsefalse79), "agenda"))) {
  236.                     // line 80
  237.                     yield "\t\t\t\t";
  238.                     yield from                     $this->loadTemplate("filter/agenda_filter.html.twig""blocks/articles.html.twig"80)->unwrap()->yield($context);
  239.                     // line 81
  240.                     yield "\t\t\t\t";
  241.                     $context["structure"] = "agenda";
  242.                     // line 82
  243.                     yield "\t\t\t";
  244.                 } elseif ((=== 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"falsefalsefalse82), "offre"))) {
  245.                     // line 83
  246.                     yield "\t\t\t\t";
  247.                     yield from                     $this->loadTemplate("filter/offre_filter.html.twig""blocks/articles.html.twig"83)->unwrap()->yield($context);
  248.                     // line 84
  249.                     yield "\t\t\t\t";
  250.                     $context["structure"] = "offres";
  251.                     // line 85
  252.                     yield "\t\t\t";
  253.                 } elseif ((=== 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"falsefalsefalse85), "aapami"))) {
  254.                     // line 86
  255.                     yield "\t\t\t\t";
  256.                     yield from                     $this->loadTemplate("filter/aapami_filter.html.twig""blocks/articles.html.twig"86)->unwrap()->yield($context);
  257.                     // line 87
  258.                     yield "\t\t\t\t";
  259.                     $context["structure"] = "aapami";
  260.                     // line 88
  261.                     yield "\t\t\t";
  262.                 } elseif ((=== 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"falsefalsefalse88), "analyses"))) {
  263.                     // line 89
  264.                     yield "\t\t\t\t";
  265.                     yield from                     $this->loadTemplate("filter/articles_filter.html.twig""blocks/articles.html.twig"89)->unwrap()->yield($context);
  266.                     // line 90
  267.                     yield "\t\t\t\t";
  268.                     $context["structure"] = "analyses";
  269.                     // line 91
  270.                     yield "\t\t\t";
  271.                 } elseif ((=== 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"falsefalsefalse91), "newsletters"))) {
  272.                     // line 92
  273.                     yield "\t\t\t\t";
  274.                     yield from                     $this->loadTemplate("filter/newsletter_filter.html.twig""blocks/articles.html.twig"92)->unwrap()->yield($context);
  275.                     // line 93
  276.                     yield "\t\t\t\t";
  277.                     $context["structure"] = "newsletters";
  278.                     // line 94
  279.                     yield "\t\t\t";
  280.                 }
  281.                 // line 95
  282.                 yield "\t\t";
  283.             }
  284.             // line 96
  285.             yield "\t\t";
  286.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse96), "get", ["q"], "method"falsefalsefalse96))) {
  287.                 // line 97
  288.                 yield "\t\t\t";
  289.                 $context["q"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse97), "get", ["q"], "method"falsefalsefalse97);
  290.                 // line 98
  291.                 yield "\t\t";
  292.             } else {
  293.                 // line 99
  294.                 yield "\t\t\t";
  295.                 $context["q"] = "";
  296.                 // line 100
  297.                 yield "\t\t";
  298.             }
  299.             // line 101
  300.             yield "\t\t";
  301.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse101), "get", ["elems"], "method"falsefalsefalse101))) {
  302.                 // line 102
  303.                 yield "\t\t\t";
  304.                 $context["elems"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse102), "get", ["elems"], "method"falsefalsefalse102);
  305.                 // line 103
  306.                 yield "\t\t";
  307.             }
  308.             // line 104
  309.             yield "\t\t";
  310.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse104), "get", ["theme"], "method"falsefalsefalse104))) {
  311.                 // line 105
  312.                 yield "\t\t\t";
  313.                 $context["t"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse105), "get", ["theme"], "method"falsefalsefalse105);
  314.                 // line 106
  315.                 yield "\t\t";
  316.             } else {
  317.                 // line 107
  318.                 yield "\t\t\t";
  319.                 $context["t"] = "";
  320.                 // line 108
  321.                 yield "\t\t";
  322.             }
  323.             // line 109
  324.             yield "\t\t";
  325.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse109), "get", ["start"], "method"falsefalsefalse109))) {
  326.                 // line 110
  327.                 yield "\t\t\t";
  328.                 $context["start"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse110), "get", ["start"], "method"falsefalsefalse110);
  329.                 // line 111
  330.                 yield "\t\t";
  331.             } else {
  332.                 // line 112
  333.                 yield "\t\t\t";
  334.                 $context["start"] = "";
  335.                 // line 113
  336.                 yield "\t\t";
  337.             }
  338.             // line 114
  339.             yield "\t\t";
  340.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse114), "get", ["end"], "method"falsefalsefalse114))) {
  341.                 // line 115
  342.                 yield "\t\t\t";
  343.                 $context["end"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse115), "get", ["end"], "method"falsefalsefalse115);
  344.                 // line 116
  345.                 yield "\t\t";
  346.             } else {
  347.                 // line 117
  348.                 yield "\t\t\t";
  349.                 $context["end"] = "";
  350.                 // line 118
  351.                 yield "\t\t";
  352.             }
  353.             // line 119
  354.             yield "\t\t";
  355.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse119), "get", ["page"], "method"falsefalsefalse119))) {
  356.                 // line 120
  357.                 yield "\t\t\t";
  358.                 $context["page"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse120), "get", ["page"], "method"falsefalsefalse120);
  359.                 // line 121
  360.                 yield "\t\t";
  361.             } else {
  362.                 // line 122
  363.                 yield "\t\t\t";
  364.                 $context["page"] = 1;
  365.                 // line 123
  366.                 yield "\t\t";
  367.             }
  368.             // line 124
  369.             yield "\t\t";
  370.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse124), "get", ["format"], "method"falsefalsefalse124))) {
  371.                 // line 125
  372.                 yield "\t\t\t";
  373.                 $context["f"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse125), "get", ["format"], "method"falsefalsefalse125);
  374.                 // line 126
  375.                 yield "\t\t";
  376.             } else {
  377.                 // line 127
  378.                 yield "\t\t\t";
  379.                 $context["f"] = "";
  380.                 // line 128
  381.                 yield "\t\t";
  382.             }
  383.             // line 129
  384.             yield "    ";
  385.             $context["typeTerritoire"] = "";
  386.             // line 130
  387.             yield "\t\t";
  388.             if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse130), "get", ["type_territoire"], "method"falsefalsefalse130))) {
  389.                 // line 131
  390.                 yield "\t\t\t";
  391.                 $context["typeTerritoire"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse131), "get", ["type_territoire"], "method"falsefalsefalse131);
  392.                 // line 132
  393.                 yield "\t\t";
  394.             } else {
  395.                 // line 133
  396.                 yield "\t\t\t";
  397.                 if ((=== 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"falsefalsefalse133), "fiches_territoires"))) {
  398.                     // line 134
  399.                     yield "\t\t\t\t";
  400.                     if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse134), "get", ["type"], "method"truetruefalse134) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse134), "get", ["type"], "method"falsefalsefalse134)))) {
  401.                         // line 135
  402.                         yield "\t\t\t\t\t";
  403.                         $context["typeTerritoire"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse135), "get", ["type"], "method"falsefalsefalse135);
  404.                         // line 136
  405.                         yield "\t\t\t\t";
  406.                     } else {
  407.                         // line 137
  408.                         yield "\t\t\t\t\t";
  409.                         $context["typeTerritoire"] = "contractualisation";
  410.                         // line 138
  411.                         yield "\t\t\t\t";
  412.                     }
  413.                     // line 139
  414.                     yield "\t\t\t";
  415.                 }
  416.                 // line 140
  417.                 yield "\t\t";
  418.             }
  419.             // line 141
  420.             yield "
  421. \t\t";
  422.             // line 142
  423.             if (((=== 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"falsefalsefalse142), "fiches_territoires")) || (=== 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"falsefalsefalse142), "experiences")))) {
  424.                 // line 143
  425.                 yield "\t\t\t<div class=\"dflex territoire-container\">
  426. \t\t\t";
  427.             }
  428.             // line 145
  429.             yield "\t\t\t<div class=\"w100 h100 prelative articles-cont\">
  430. \t\t\t\t<div id=\"articles-container\" class=\"dflex fdc\" data-type=\"";
  431.             // line 146
  432.             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"nulltrue);
  433.             yield "\">
  434. \t\t\t\t\t";
  435.             // line 147
  436.             yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Website\\ApiSearchController::queryAction", ["q" =>             // line 149
  437. (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); })())]));
  438.             // line 150
  439.             yield "
  440. \t\t\t\t</div>
  441. \t\t\t\t<div class=\"w100 h100 pabsolute with-loader\">
  442. \t\t\t\t\t<div class=\"lds-dual-ring pabsolute form-loader\" id=\"loader\"></div>
  443. \t\t\t\t\t";
  444.             // line 155
  445.             $context["loader_text_placeholder"] = "Toutes les expériences";
  446.             // line 156
  447.             yield "\t\t\t\t\t";
  448.             if ((=== 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"falsefalsefalse156), "fiches_territoires"))) {
  449.                 // line 157
  450.                 yield "\t\t\t\t\t\t";
  451.                 $context["loader_text_placeholder"] = "Toutes les fiches territoires";
  452.                 // line 158
  453.                 yield "\t\t\t\t\t";
  454.             }
  455.             // line 159
  456.             yield "\t\t\t\t\t";
  457.             if (((=== 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"falsefalsefalse159), "fiches_territoires")) || (=== 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"falsefalsefalse159), "experiences")))) {
  458.                 // line 160
  459.                 yield "\t\t\t\t\t\t<div class=\"loader-text pabsolute\" id=\"loader-text\">
  460. \t\t\t\t\t\t\t<p>";
  461.                 // line 161
  462.                 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"nulltrue);
  463.                 yield "
  464. \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>
  465. \t\t\t\t\t\t</div>
  466. \t\t\t\t\t";
  467.             }
  468.             // line 165
  469.             yield "\t\t\t\t</div>
  470. \t\t\t</div>
  471. \t\t";
  472.         }
  473.         // line 168
  474.         yield "\t\t";
  475.         if (((=== 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"falsefalsefalse168), "fiches_territoires")) || (=== 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"falsefalsefalse168), "experiences")))) {
  476.             // line 169
  477.             yield "\t\t\t<div id=\"map-div\">
  478. \t\t\t\t";
  479.             // line 170
  480.             $context["territory_list_set"] = true;
  481.             // line 171
  482.             yield "\t\t\t\t";
  483.             if ((=== 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"falsefalsefalse171), "experiences"))) {
  484.                 // line 172
  485.                 yield "\t\t\t\t\t";
  486.                 $context["territory_list_set"] = false;
  487.                 // line 173
  488.                 yield "\t\t\t\t";
  489.             }
  490.             // line 174
  491.             yield "\t\t\t\t";
  492.             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); })())]));
  493.             // line 175
  494.             yield "\t\t\t</div>
  495. \t\t";
  496.         }
  497.         // line 177
  498.         yield "\t\t";
  499.         if (((=== 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"falsefalsefalse177), "fiches_territoires")) || (=== 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"falsefalsefalse177), "experiences")))) {
  500.             // line 178
  501.             yield "\t\t</div>
  502. \t";
  503.         }
  504.         // line 180
  505.         yield "</div>
  506. ";
  507.         
  508.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  509.         
  510.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  511.         return; yield '';
  512.     }
  513.     /**
  514.      * @codeCoverageIgnore
  515.      */
  516.     public function getTemplateName()
  517.     {
  518.         return "blocks/articles.html.twig";
  519.     }
  520.     /**
  521.      * @codeCoverageIgnore
  522.      */
  523.     public function isTraitable()
  524.     {
  525.         return false;
  526.     }
  527.     /**
  528.      * @codeCoverageIgnore
  529.      */
  530.     public function getDebugInfo()
  531.     {
  532.         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,);
  533.     }
  534.     public function getSourceContext()
  535.     {
  536.         return new Source("{% set introClass = \"team-project-section\" %}
  537. <div class=\"preview-article mt-1em\">
  538. \t{% if block.articles_smart_content is defined and block.articles_smart_content is not empty and block.articles_smart_content|length > 0 %}
  539. \t\t{% if block.filter == \"fiches_territoires\" %}
  540. \t\t\t{% include \"filter/sub-filters/type-territoire.html.twig\" %}
  541. \t\t{% endif %}
  542. \t\t<div class=\"dflex jcsb button-container fwwrap\">
  543. \t\t\t<div class=\"dflex jcsb w100 fwwrap filter-count\">
  544. \t\t\t\t{% if block.filter != \"fiches_territoires\" and block.filter != \"experiences\" %}
  545. \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 }}\">
  546. \t\t\t\t\t\t<img src=\"/resources/img/filter-icon.svg\" width=\"14\" height=\"16\" alt=\"\" loading=\"lazy\">
  547. \t\t\t\t\t\tFiltrer
  548. \t\t\t\t\t</button>
  549. \t\t\t\t{% endif %}
  550. \t\t\t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
  551. \t\t\t\t\t{% set placeholder = '' %}
  552. \t\t\t\t\t{% if block.filter == 'fiches_territoires' %}
  553. \t\t\t\t\t\t{% set placeholder = 'Recherchez des territoires' %}
  554. \t\t\t\t\t{% endif %}
  555. \t\t\t\t\t{% if block.filter == 'experiences' %}
  556. \t\t\t\t\t\t{% set placeholder = 'Recherchez des expériences' %}
  557. \t\t\t\t\t{% endif %}
  558. \t\t\t\t\t<div class=\"dflex w100\">
  559. \t\t\t\t\t\t<div class=\"prelative document-search-cont\">
  560. \t\t\t\t\t\t\t<input placeholder=\"{{ placeholder }}\" id=\"document-search\" name=\"q\" class=\"br6 p-1em\">
  561. \t\t\t\t\t\t\t<div class=\"icon-cont pabsolute dflex aic jcc\">
  562. \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\">
  563. \t\t\t\t\t\t\t</div>
  564. \t\t\t\t\t\t</div>
  565. \t\t\t\t\t\t{% if block.filter == 'experiences' %}
  566. \t\t\t\t\t\t\t{% include \"filter/experiences_filter.html.twig\" %}
  567. \t\t\t\t\t\t{% endif %}
  568. \t\t\t\t\t</div>
  569. \t\t\t\t{% endif %}
  570. \t\t\t</div>
  571. \t\t\t{% set elems = 9 %}
  572. \t\t\t{% if block.filter != \"fiches_territoires\" and block.filter != \"experiences\" %}
  573. \t\t\t\t<div class=\"toggleable visible aic\">
  574. \t\t\t\t\t{% set elems = 9 %}
  575. \t\t\t\t\t<label for=\"elems-number\">
  576. \t\t\t\t\t\tÉléments par page :
  577. \t\t\t\t\t</label>
  578. \t\t\t\t\t{% if block.filter == \"articles\" %}
  579. \t\t\t\t\t\t{% set elems = 9 %}
  580. \t\t\t\t\t{% elseif block.filter == \"agenda\" %}
  581. \t\t\t\t\t\t{% set elems = 8 %}
  582. \t\t\t\t\t{% elseif block.filter == \"aapami\" %}
  583. \t\t\t\t\t\t{% set elems = 12 %}
  584. \t\t\t\t\t{% elseif block.filter == \"offre\" %}
  585. \t\t\t\t\t\t{% set elems = 10 %}
  586. \t\t\t\t\t{% elseif block.filter == \"newsletters\" or block.filter == \"analyses\" or block.filter == \"guides_outils\" %}
  587. \t\t\t\t\t\t{% set elems = 6 %}
  588. \t\t\t\t\t{% endif %}
  589. \t\t\t\t\t{% include \"blocks/sub-blocks/elems-number.html.twig\" with {number: elems} %}
  590. \t\t\t\t</div>
  591. \t\t\t{% endif %}
  592. \t\t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
  593. \t\t\t\t<div class=\"switch-map-cont\">
  594. \t\t\t\t\t<button class=\"switch-map-btn\">Carte</button>
  595. \t\t\t\t</div>
  596. \t\t\t{% endif %}
  597. \t\t</div>
  598. \t\t{% set structure = '' %}
  599. \t\t{% if block.filter %}
  600. \t\t\t{% if block.filter == \"annuaire\" %}
  601. \t\t\t\t{% include \"filter/annuaire_filter.html.twig\" %}
  602. \t\t\t\t{% set structure = 'annuaire' %}
  603. \t\t\t{% elseif block.filter == \"experiences\" %}
  604. \t\t\t\t{% set structure = 'experiences' %}
  605. \t\t\t{% elseif block.filter == \"fiches_territoires\" %}
  606. \t\t\t\t{% set structure = 'fiches_territoires' %}
  607. \t\t\t{% elseif block.filter == \"articles\" %}
  608. \t\t\t\t{% include \"filter/articles_filter.html.twig\" %}
  609. \t\t\t\t{% set structure = 'articles' %}
  610. \t\t\t{% elseif block.filter == \"guides_outils\" %}
  611. \t\t\t\t{% include \"filter/articles_filter.html.twig\" %}
  612. \t\t\t\t{% set structure = 'guides_outils' %}
  613. \t\t\t{% elseif block.filter == \"agenda\" %}
  614. \t\t\t\t{% include \"filter/agenda_filter.html.twig\" %}
  615. \t\t\t\t{% set structure = 'agenda' %}
  616. \t\t\t{% elseif block.filter == \"offre\" %}
  617. \t\t\t\t{% include \"filter/offre_filter.html.twig\" %}
  618. \t\t\t\t{% set structure = 'offres' %}
  619. \t\t\t{% elseif block.filter == \"aapami\" %}
  620. \t\t\t\t{% include \"filter/aapami_filter.html.twig\" %}
  621. \t\t\t\t{% set structure = 'aapami' %}
  622. \t\t\t{% elseif block.filter == \"analyses\" %}
  623. \t\t\t\t{% include \"filter/articles_filter.html.twig\" %}
  624. \t\t\t\t{% set structure = 'analyses' %}
  625. \t\t\t{% elseif block.filter == \"newsletters\" %}
  626. \t\t\t\t{% include \"filter/newsletter_filter.html.twig\" %}
  627. \t\t\t\t{% set structure = 'newsletters' %}
  628. \t\t\t{% endif %}
  629. \t\t{% endif %}
  630. \t\t{% if app.request.get('q') is not empty %}
  631. \t\t\t{% set q = app.request.get('q') %}
  632. \t\t{% else %}
  633. \t\t\t{% set q = '' %}
  634. \t\t{% endif %}
  635. \t\t{% if app.request.get('elems') is not empty %}
  636. \t\t\t{% set elems = app.request.get('elems') %}
  637. \t\t{% endif %}
  638. \t\t{% if app.request.get('theme') is not empty %}
  639. \t\t\t{% set t = app.request.get('theme') %}
  640. \t\t{% else %}
  641. \t\t\t{% set t = '' %}
  642. \t\t{% endif %}
  643. \t\t{% if app.request.get('start') is not empty %}
  644. \t\t\t{% set start = app.request.get('start') %}
  645. \t\t{% else %}
  646. \t\t\t{% set start = '' %}
  647. \t\t{% endif %}
  648. \t\t{% if app.request.get('end') is not empty %}
  649. \t\t\t{% set end = app.request.get('end') %}
  650. \t\t{% else %}
  651. \t\t\t{% set end = '' %}
  652. \t\t{% endif %}
  653. \t\t{% if app.request.get('page') is not empty %}
  654. \t\t\t{% set page = app.request.get('page') %}
  655. \t\t{% else %}
  656. \t\t\t{% set page = 1 %}
  657. \t\t{% endif %}
  658. \t\t{% if app.request.get('format') is not empty %}
  659. \t\t\t{% set f = app.request.get('format') %}
  660. \t\t{% else %}
  661. \t\t\t{% set f = '' %}
  662. \t\t{% endif %}
  663.     {% set typeTerritoire = '' %}
  664. \t\t{% if app.request.get('type_territoire') is not empty %}
  665. \t\t\t{% set typeTerritoire = app.request.get('type_territoire') %}
  666. \t\t{% else %}
  667. \t\t\t{% if block.filter == \"fiches_territoires\" %}
  668. \t\t\t\t{% if app.request.get('type') is defined and app.request.get('type') is not empty %}
  669. \t\t\t\t\t{% set typeTerritoire = app.request.get('type') %}
  670. \t\t\t\t{% else %}
  671. \t\t\t\t\t{% set typeTerritoire = 'contractualisation' %}
  672. \t\t\t\t{% endif %}
  673. \t\t\t{% endif %}
  674. \t\t{% endif %}
  675. \t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
  676. \t\t\t<div class=\"dflex territoire-container\">
  677. \t\t\t{% endif %}
  678. \t\t\t<div class=\"w100 h100 prelative articles-cont\">
  679. \t\t\t\t<div id=\"articles-container\" class=\"dflex fdc\" data-type=\"{{ structure }}\">
  680. \t\t\t\t\t{{ render(controller(
  681.             'App\\\\Controller\\\\Website\\\\ApiSearchController::queryAction',
  682.             { \"q\": q, \"elems\": elems, \"page\": page, \"start\": start, \"end\" : end, \"theme\": t, 'structure': structure, 'format': f, \"type_territoire\": typeTerritoire }
  683.           )) }}
  684. \t\t\t\t</div>
  685. \t\t\t\t<div class=\"w100 h100 pabsolute with-loader\">
  686. \t\t\t\t\t<div class=\"lds-dual-ring pabsolute form-loader\" id=\"loader\"></div>
  687. \t\t\t\t\t{% set loader_text_placeholder = \"Toutes les expériences\" %}
  688. \t\t\t\t\t{% if block.filter == \"fiches_territoires\" %}
  689. \t\t\t\t\t\t{% set loader_text_placeholder = \"Toutes les fiches territoires\" %}
  690. \t\t\t\t\t{% endif %}
  691. \t\t\t\t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
  692. \t\t\t\t\t\t<div class=\"loader-text pabsolute\" id=\"loader-text\">
  693. \t\t\t\t\t\t\t<p>{{ loader_text_placeholder }}
  694. \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>
  695. \t\t\t\t\t\t</div>
  696. \t\t\t\t\t{% endif %}
  697. \t\t\t\t</div>
  698. \t\t\t</div>
  699. \t\t{% endif %}
  700. \t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
  701. \t\t\t<div id=\"map-div\">
  702. \t\t\t\t{% set territory_list_set = true %}
  703. \t\t\t\t{% if block.filter == \"experiences\" %}
  704. \t\t\t\t\t{% set territory_list_set = false %}
  705. \t\t\t\t{% endif %}
  706. \t\t\t\t{% include \"blocks/map.html.twig\"  with {'territory_list_set': territory_list_set} %}
  707. \t\t\t</div>
  708. \t\t{% endif %}
  709. \t\t{% if block.filter == \"fiches_territoires\" or block.filter == \"experiences\" %}
  710. \t\t</div>
  711. \t{% endif %}
  712. </div>
  713. ""blocks/articles.html.twig""/var/www/html/templates/blocks/articles.html.twig");
  714.     }
  715. }