<?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/organisms/grid/grid.html.twig */
class __TwigTemplate_17148351b52dd79d1fc7828c77e785da 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/organisms/grid/grid.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/organisms/grid/grid.html.twig"));
// line 1
yield "<div class=\"grid";
if (array_key_exists("justify", $context)) {
yield " grid--";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["justify"]) || array_key_exists("justify", $context) ? $context["justify"] : (function () { throw new RuntimeError('Variable "justify" does not exist.', 1, $this->source); })()), "html", null, true);
}
yield " ";
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);
yield "\">
";
// line 2
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["columns"]) || array_key_exists("columns", $context) ? $context["columns"] : (function () { throw new RuntimeError('Variable "columns" does not exist.', 2, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
// line 3
yield " <div class=\"grid__column grid__column-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["column"], "column", [], "any", false, false, false, 3), "html", null, true);
yield "\">
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["column"], "content", [], "any", false, false, false, 4));
foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
// line 5
yield " ";
yield $this->extensions['App\Module\Cms\Twig\Functions\StoryblokExtension']->render($this->env, $context["content"]);
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['content'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 7
yield " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['column'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 9
yield "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/organisms/grid/grid.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 87 => 9, 80 => 7, 71 => 5, 67 => 4, 62 => 3, 58 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<div class=\"grid{% if justify is defined %} grid--{{ justify }}{% endif %} {{ class|default }}\">
{% for column in columns %}
<div class=\"grid__column grid__column-{{ column.column }}\">
{% for content in column.content %}
{{ render_storyblok(content) }}
{% endfor %}
</div>
{% endfor %}
</div>
", "components/organisms/grid/grid.html.twig", "/var/www/html/templates/default/components/organisms/grid/grid.html.twig");
}
}