var/cache/website/dev/twig/f2/f2e77f0614e6a7d23f9c7ae4da5d27c5.php line 53

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. /* pages/homepage.html.twig */
  16. class __TwigTemplate_03ca788526fc9403a73d3f9a6f571723 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->blocks = [
  28. 'content' => [$this, 'block_content'],
  29. ];
  30. }
  31. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32. {
  33. // line 1
  34. return "base.html.twig";
  35. }
  36. protected function doDisplay(array $context, array $blocks = []): iterable
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/homepage.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pages/homepage.html.twig"));
  43. $this->parent = $this->load("base.html.twig", 1);
  44. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47. }
  48. // line 2
  49. /**
  50. * @return iterable<null|scalar|\Stringable>
  51. */
  52. public function block_content(array $context, array $blocks = []): iterable
  53. {
  54. $macros = $this->macros;
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  59. // line 3
  60. yield "<main id=\"main\" class=\"main-shifted-right\">
  61. ";
  62. // line 5
  63. $context['_parent'] = $context;
  64. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 5, $this->source); })()), "blocks", [], "any", false, false, false, 5));
  65. $context['loop'] = [
  66. 'parent' => $context['_parent'],
  67. 'index0' => 0,
  68. 'index' => 1,
  69. 'first' => true,
  70. ];
  71. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  72. $length = count($context['_seq']);
  73. $context['loop']['revindex0'] = $length - 1;
  74. $context['loop']['revindex'] = $length;
  75. $context['loop']['length'] = $length;
  76. $context['loop']['last'] = 1 === $length;
  77. }
  78. foreach ($context['_seq'] as $context["_key"] => $context["block"]) {
  79. // line 6
  80. yield " ";
  81. yield from $this->load((("partials/" . CoreExtension::getAttribute($this->env, $this->source, $context["block"], "type", [], "any", false, false, false, 6)) . ".html.twig"), 6)->unwrap()->yield(CoreExtension::merge($context, ["content" => // line 7
  82. $context["block"], "view" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 8
  83. (isset($context["view"]) || array_key_exists("view", $context) ? $context["view"] : (function () { throw new RuntimeError('Variable "view" does not exist.', 8, $this->source); })()), "blocks", [], "any", false, false, false, 8), CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 8), [], "array", false, false, false, 8)]));
  84. // line 10
  85. yield " ";
  86. ++$context['loop']['index0'];
  87. ++$context['loop']['index'];
  88. $context['loop']['first'] = false;
  89. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  90. --$context['loop']['revindex0'];
  91. --$context['loop']['revindex'];
  92. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  93. }
  94. }
  95. $_parent = $context['_parent'];
  96. unset($context['_seq'], $context['_key'], $context['block'], $context['_parent'], $context['loop']);
  97. $context = array_intersect_key($context, $_parent) + $_parent;
  98. // line 11
  99. yield "</main>
  100. ";
  101. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  103. yield from [];
  104. }
  105. /**
  106. * @codeCoverageIgnore
  107. */
  108. public function getTemplateName(): string
  109. {
  110. return "pages/homepage.html.twig";
  111. }
  112. /**
  113. * @codeCoverageIgnore
  114. */
  115. public function isTraitable(): bool
  116. {
  117. return false;
  118. }
  119. /**
  120. * @codeCoverageIgnore
  121. */
  122. public function getDebugInfo(): array
  123. {
  124. return array ( 116 => 11, 102 => 10, 100 => 8, 99 => 7, 97 => 6, 80 => 5, 76 => 3, 63 => 2, 40 => 1,);
  125. }
  126. public function getSourceContext(): Source
  127. {
  128. return new Source("{% extends \"base.html.twig\" %}
  129. {% block content %}
  130. <main id=\"main\" class=\"main-shifted-right\">
  131. {% for block in content.blocks %}
  132. {% include 'partials/' ~ block.type ~ '.html.twig' with {
  133. content: block,
  134. view: view.blocks[loop.index0],
  135. } %}
  136. {% endfor %}
  137. </main>
  138. {% endblock %}
  139. ", "pages/homepage.html.twig", "/www/htdocs/w00cd56a/prod_theatertotal/theatertotal_sulu_update/templates/pages/homepage.html.twig");
  140. }
  141. }