<?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;
use Twig\TemplateWrapper;
/* components/molecules/text-list/text-list.html.twig */
class __TwigTemplate_413ea26c96018fdfc365579ac71b6d19 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $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 = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/molecules/text-list/text-list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/molecules/text-list/text-list.html.twig"));
// line 1
yield "<ul class=\"text-list ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("class", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.', 1, $this->source); })()))) : ("")), "html", null, true);
if ((($tmp = ((array_key_exists("styling", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["styling"]) || array_key_exists("styling", $context) ? $context["styling"] : (function () { throw new RuntimeError('Variable "styling" does not exist.', 1, $this->source); })()))) : (""))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield " text-list--";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["styling"]) || array_key_exists("styling", $context) ? $context["styling"] : (function () { throw new RuntimeError('Variable "styling" does not exist.', 1, $this->source); })()), "html", null, true);
}
if ((($tmp = ((array_key_exists("column", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["column"]) || array_key_exists("column", $context) ? $context["column"] : (function () { throw new RuntimeError('Variable "column" does not exist.', 1, $this->source); })()))) : (""))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield " text-list--column-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["column"]) || array_key_exists("column", $context) ? $context["column"] : (function () { throw new RuntimeError('Variable "column" does not exist.', 1, $this->source); })()), "html", null, true);
}
yield "\">
";
// line 2
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ((array_key_exists("listEntries", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["listEntries"]) || array_key_exists("listEntries", $context) ? $context["listEntries"] : (function () { throw new RuntimeError('Variable "listEntries" does not exist.', 2, $this->source); })()))) : (""))) > 0)) {
// line 3
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["listEntries"]) || array_key_exists("listEntries", $context) ? $context["listEntries"] : (function () { throw new RuntimeError('Variable "listEntries" does not exist.', 3, $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["_key"] => $context["entry"]) {
// line 4
yield " ";
yield from $this->load("components/atoms/list/list.html.twig", 4)->unwrap()->yield($context);
// line 5
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 6
yield " ";
}
// line 7
yield "</ul>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/molecules/text-list/text-list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 101 => 7, 98 => 6, 84 => 5, 81 => 4, 63 => 3, 61 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<ul class=\"text-list {{ class|default }}{% if styling|default %} text-list--{{ styling }}{% endif %}{% if column|default %} text-list--column-{{ column }}{% endif %}\">
{% if listEntries|default|length > 0 %}
{% for entry in listEntries %}
{% include 'components/atoms/list/list.html.twig' %}
{% endfor %}
{% endif %}
</ul>", "components/molecules/text-list/text-list.html.twig", "/var/www/html/templates/default/components/molecules/text-list/text-list.html.twig");
}
}