<?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;
/* articles-blocks/see-more.html.twig */
class __TwigTemplate_90884cbe5d183d088fb346d3cf6ba8a5f537af1b41df0a8b41dac915489aa734 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", "articles-blocks/see-more.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "articles-blocks/see-more.html.twig"));
// line 1
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "articles", [], "any", true, true, false, 1) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 1, $this->source); })()), "articles", [], "any", false, false, false, 1))) && (1 === CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 1, $this->source); })()), "articles", [], "any", false, false, false, 1)), 0)))) {
// line 2
yield " <section class=\"linked-with mb-40px\">
";
// line 3
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "title", [], "any", true, true, false, 3) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 3, $this->source); })()), "title", [], "any", false, false, false, 3)))) {
// line 4
yield " <h2 class=\"fs30 lh36 fw400 mt-40px\">
";
// line 5
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 5, $this->source); })()), "title", [], "any", false, false, false, 5), "html", null, true);
yield "
</h2>
";
}
// line 8
yield " <div class=\"articles-container mt-40px\">
<div class=\"splide-photo splide\" aria-label=\"En lien avec\">
<div class=\"splide__track\">
<ul class=\"splide__list mb-3p5em\">
";
// line 12
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 12, $this->source); })()), "articles", [], "any", false, false, false, 12));
$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 13
yield " <li class=\"splide__slide dflex jcc\">
";
// line 14
yield from $this->loadTemplate("blocks/sort-articles.html.twig", "articles-blocks/see-more.html.twig", 14)->unwrap()->yield(CoreExtension::merge($context, ["type" => CoreExtension::getAttribute($this->env, $this->source, $context["article"], "type", [], "any", false, false, false, 14)]));
// line 15
yield " </li>
";
++$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 17
yield " </ul>
</div>
</div>
</div>
</section>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "articles-blocks/see-more.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 103 => 17, 88 => 15, 86 => 14, 83 => 13, 66 => 12, 60 => 8, 54 => 5, 51 => 4, 49 => 3, 46 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% if data.articles is defined and data.articles is not empty and data.articles|length > 0 %}
<section class=\"linked-with mb-40px\">
{% if data.title is defined and data.title is not empty %}
<h2 class=\"fs30 lh36 fw400 mt-40px\">
{{ data.title }}
</h2>
{% endif %}
<div class=\"articles-container mt-40px\">
<div class=\"splide-photo splide\" aria-label=\"En lien avec\">
<div class=\"splide__track\">
<ul class=\"splide__list mb-3p5em\">
{% for i, article in data.articles %}
<li class=\"splide__slide dflex jcc\">
{% include \"blocks/sort-articles.html.twig\" with {type: article.type} %}
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</section>
{% endif %}
", "articles-blocks/see-more.html.twig", "/var/www/html/templates/articles-blocks/see-more.html.twig");
}
}