var/cache/dev/twig/c6/c6dd2953133aa28c17224ee9995e7bb0.php line 72

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* components/organisms/grid/grid.html.twig */
  16. class __TwigTemplate_17148351b52dd79d1fc7828c77e785da extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/grid/grid.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/organisms/grid/grid.html.twig"));
  38. // line 1
  39. yield "<div class=\"grid";
  40. if (array_key_exists("justify", $context)) {
  41. yield " grid--";
  42. 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);
  43. }
  44. yield " ";
  45. 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);
  46. yield "\">
  47. ";
  48. // line 2
  49. $context['_parent'] = $context;
  50. $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); })()));
  51. foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
  52. // line 3
  53. yield " <div class=\"grid__column grid__column-";
  54. 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);
  55. yield "\">
  56. ";
  57. // line 4
  58. $context['_parent'] = $context;
  59. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["column"], "content", [], "any", false, false, false, 4));
  60. foreach ($context['_seq'] as $context["_key"] => $context["content"]) {
  61. // line 5
  62. yield " ";
  63. yield $this->extensions['App\Module\Cms\Twig\Functions\StoryblokExtension']->render($this->env, $context["content"]);
  64. yield "
  65. ";
  66. }
  67. $_parent = $context['_parent'];
  68. unset($context['_seq'], $context['_key'], $context['content'], $context['_parent']);
  69. $context = array_intersect_key($context, $_parent) + $_parent;
  70. // line 7
  71. yield " </div>
  72. ";
  73. }
  74. $_parent = $context['_parent'];
  75. unset($context['_seq'], $context['_key'], $context['column'], $context['_parent']);
  76. $context = array_intersect_key($context, $_parent) + $_parent;
  77. // line 9
  78. yield "</div>
  79. ";
  80. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  82. yield from [];
  83. }
  84. /**
  85. * @codeCoverageIgnore
  86. */
  87. public function getTemplateName(): string
  88. {
  89. return "components/organisms/grid/grid.html.twig";
  90. }
  91. /**
  92. * @codeCoverageIgnore
  93. */
  94. public function isTraitable(): bool
  95. {
  96. return false;
  97. }
  98. /**
  99. * @codeCoverageIgnore
  100. */
  101. public function getDebugInfo(): array
  102. {
  103. return array ( 87 => 9, 80 => 7, 71 => 5, 67 => 4, 62 => 3, 58 => 2, 48 => 1,);
  104. }
  105. public function getSourceContext(): Source
  106. {
  107. return new Source("<div class=\"grid{% if justify is defined %} grid--{{ justify }}{% endif %} {{ class|default }}\">
  108. {% for column in columns %}
  109. <div class=\"grid__column grid__column-{{ column.column }}\">
  110. {% for content in column.content %}
  111. {{ render_storyblok(content) }}
  112. {% endfor %}
  113. </div>
  114. {% endfor %}
  115. </div>
  116. ", "components/organisms/grid/grid.html.twig", "/var/www/html/templates/default/components/organisms/grid/grid.html.twig");
  117. }
  118. }