<?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/sort-articles.html.twig */
class __TwigTemplate_f5bbe896ed62ae88eb841ef1cb0b51cdc7c6b1556d4033ccffc26fd40f6f170c 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/sort-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/sort-articles.html.twig"));
// line 1
if ((((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 1, $this->source); })()), "articles")) || (0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 1, $this->source); })()), "analyses"))) || (0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 1, $this->source); })()), "guides_outils")))) {
// line 2
yield "\t";
yield from $this->loadTemplate("blocks/previews/preview-article-logic.html.twig", "blocks/sort-articles.html.twig", 2)->unwrap()->yield(CoreExtension::merge($context, ["article" => (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 2, $this->source); })()), "i" => (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 2, $this->source); })())]));
} elseif ((0 === CoreExtension::compare( // line 3
(isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 3, $this->source); })()), "agenda"))) {
// line 4
yield "\t";
yield from $this->loadTemplate("blocks/previews/preview-agenda-logic.html.twig", "blocks/sort-articles.html.twig", 4)->unwrap()->yield(CoreExtension::merge($context, ["article" => (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 4, $this->source); })()), "i" => (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 4, $this->source); })())]));
} elseif ((0 === CoreExtension::compare( // line 5
(isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 5, $this->source); })()), "aapami"))) {
// line 6
yield "\t";
yield from $this->loadTemplate("blocks/previews/preview-aapami-logic.html.twig", "blocks/sort-articles.html.twig", 6)->unwrap()->yield(CoreExtension::merge($context, ["article" => (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 6, $this->source); })()), "i" => (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 6, $this->source); })())]));
} elseif ((0 === CoreExtension::compare( // line 7
(isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 7, $this->source); })()), "offres"))) {
// line 8
yield "\t";
yield from $this->loadTemplate("blocks/previews/preview-offres-logic.html.twig", "blocks/sort-articles.html.twig", 8)->unwrap()->yield(CoreExtension::merge($context, ["article" => (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 8, $this->source); })()), "i" => (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 8, $this->source); })())]));
} elseif ((0 === CoreExtension::compare( // line 9
(isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 9, $this->source); })()), "newsletters"))) {
// line 10
yield "\t";
yield from $this->loadTemplate("blocks/previews/preview-newsletters-logic.html.twig", "blocks/sort-articles.html.twig", 10)->unwrap()->yield(CoreExtension::merge($context, ["article" => (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 10, $this->source); })()), "i" => (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 10, $this->source); })())]));
} elseif (((0 === CoreExtension::compare( // line 11
(isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 11, $this->source); })()), "fiches_territoires")) || (0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 11, $this->source); })()), "experiences")))) {
// line 12
yield "\t";
yield from $this->loadTemplate("blocks/previews/preview-territoire-experience-logic.html.twig", "blocks/sort-articles.html.twig", 12)->unwrap()->yield(CoreExtension::merge($context, ["article" => (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 12, $this->source); })()), "i" => (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 12, $this->source); })())]));
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "blocks/sort-articles.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 71 => 12, 69 => 11, 66 => 10, 64 => 9, 61 => 8, 59 => 7, 56 => 6, 54 => 5, 51 => 4, 49 => 3, 46 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% if type == \"articles\" or type == \"analyses\" or type == \"guides_outils\" %}
\t{% include \"blocks/previews/preview-article-logic.html.twig\" with {article: article, i:i} %}
{% elseif type == \"agenda\" %}
\t{% include \"blocks/previews/preview-agenda-logic.html.twig\" with {article: article, i:i} %}
{% elseif type == \"aapami\" %}
\t{% include \"blocks/previews/preview-aapami-logic.html.twig\" with {article: article, i:i} %}
{% elseif type == \"offres\" %}
\t{% include \"blocks/previews/preview-offres-logic.html.twig\" with {article: article, i:i} %}
{% elseif type == \"newsletters\" %}
\t{% include \"blocks/previews/preview-newsletters-logic.html.twig\" with {article: article, i:i} %}
{% elseif type == \"fiches_territoires\" or type == \"experiences\" %}
\t{% include \"blocks/previews/preview-territoire-experience-logic.html.twig\" with {article: article, i:i} %}
{% endif %}
", "blocks/sort-articles.html.twig", "/var/www/html/templates/blocks/sort-articles.html.twig");
}
}