<?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/preview-content-logic.html.twig */
class __TwigTemplate_1466ac17e69bc51ce9ffbc56e594c496b567df13918152f9688b6c383b3826d9 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/preview-content-logic.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/preview-content-logic.html.twig"));
// line 1
yield "<div class=\"articles-container mt-40px\">
\t<div class=\"preview-articles dflex fwwrap jcsa\">
\t\t";
// line 3
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "show_articles", [], "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); })()), "show_articles", [], "any", false, false, false, 3)))) {
// line 4
yield "\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "slider_mode", [], "any", true, true, false, 4) && !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.', 4, $this->source); })()), "slider_mode", [], "any", false, false, false, 4)))) {
// line 5
yield "\t\t\t\t<div class=\"splide-photo splide\" aria-label=\"En lien avec\">
\t\t\t\t\t<div class=\"splide__track\">
\t\t\t\t\t\t<ul class=\"splide__list mb-3p5em\">
\t\t\t\t\t\t";
}
// line 9
yield "\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 9, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["i"] => $context["article"]) {
// line 10
yield "\t\t\t\t\t\t\t";
yield from $this->loadTemplate("blocks/sort-articles.html.twig", "blocks/preview-content-logic.html.twig", 10)->unwrap()->yield(CoreExtension::merge($context, ["type" => CoreExtension::getAttribute($this->env, $this->source, $context["article"], "type", [], "any", false, false, false, 10)]));
// line 11
yield "\t\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['i'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 12
yield "\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["block"] ?? null), "slider_mode", [], "any", true, true, false, 12) && !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.', 12, $this->source); })()), "slider_mode", [], "any", false, false, false, 12)))) {
// line 13
yield "\t\t\t\t\t\t</ul>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
}
// line 17
yield "\t\t";
}
// line 18
yield "\t</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "blocks/preview-content-logic.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 106 => 18, 103 => 17, 97 => 13, 94 => 12, 80 => 11, 77 => 10, 59 => 9, 53 => 5, 50 => 4, 48 => 3, 44 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"articles-container mt-40px\">
\t<div class=\"preview-articles dflex fwwrap jcsa\">
\t\t{% if block.show_articles is defined and block.show_articles is not empty %}
\t\t\t{% if block.slider_mode is defined and block.slider_mode is not empty %}
\t\t\t\t<div class=\"splide-photo splide\" aria-label=\"En lien avec\">
\t\t\t\t\t<div class=\"splide__track\">
\t\t\t\t\t\t<ul class=\"splide__list mb-3p5em\">
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% for i, article in articles %}
\t\t\t\t\t\t\t{% include \"blocks/sort-articles.html.twig\" with {type: article.type} %}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t{% if block.slider_mode is defined and block.slider_mode is not empty %}
\t\t\t\t\t\t</ul>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t{% endif %}
\t</div>
</div>
", "blocks/preview-content-logic.html.twig", "/var/www/html/templates/blocks/preview-content-logic.html.twig");
}
}