var/cache/website/dev/twig/03/03c8f6916dbb43b77907507daade5caf.php line 43

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/subpage_variance_1.html.twig */
  16. class __TwigTemplate_e8877676800d57828f9ec197ccea85c1 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/subpage_variance_1.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/subpage_variance_1.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 " ";
  100. if (CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "lecturer_block", [], "any", true, true, false, 11)) {
  101. // line 12
  102. yield " ";
  103. yield from $this->load("/partials/lecturerBlock.html.twig", 12)->unwrap()->yield(CoreExtension::merge($context, ["content" => CoreExtension::getAttribute($this->env, $this->source, // line 13
  104. (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 13, $this->source); })()), "lecturer_block", [], "any", false, false, false, 13)]));
  105. // line 15
  106. yield " ";
  107. }
  108. // line 16
  109. yield " ";
  110. if (CoreExtension::getAttribute($this->env, $this->source, ($context["content"] ?? null), "faq_block", [], "any", true, true, false, 16)) {
  111. // line 17
  112. yield " ";
  113. $context['_parent'] = $context;
  114. $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.', 17, $this->source); })()), "faq_block", [], "any", false, false, false, 17));
  115. $context['loop'] = [
  116. 'parent' => $context['_parent'],
  117. 'index0' => 0,
  118. 'index' => 1,
  119. 'first' => true,
  120. ];
  121. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  122. $length = count($context['_seq']);
  123. $context['loop']['revindex0'] = $length - 1;
  124. $context['loop']['revindex'] = $length;
  125. $context['loop']['length'] = $length;
  126. $context['loop']['last'] = 1 === $length;
  127. }
  128. foreach ($context['_seq'] as $context["_key"] => $context["faq_block"]) {
  129. // line 18
  130. yield " ";
  131. yield from $this->load("/partials/headlineAndTextBodyBlock.html.twig", 18)->unwrap()->yield(CoreExtension::merge($context, ["content" => // line 19
  132. $context["faq_block"]]));
  133. // line 21
  134. yield " ";
  135. ++$context['loop']['index0'];
  136. ++$context['loop']['index'];
  137. $context['loop']['first'] = false;
  138. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  139. --$context['loop']['revindex0'];
  140. --$context['loop']['revindex'];
  141. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  142. }
  143. }
  144. $_parent = $context['_parent'];
  145. unset($context['_seq'], $context['_key'], $context['faq_block'], $context['_parent'], $context['loop']);
  146. $context = array_intersect_key($context, $_parent) + $_parent;
  147. // line 22
  148. yield " ";
  149. }
  150. // line 23
  151. yield " </main>
  152. ";
  153. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  154. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  155. yield from [];
  156. }
  157. /**
  158. * @codeCoverageIgnore
  159. */
  160. public function getTemplateName(): string
  161. {
  162. return "pages/subpage_variance_1.html.twig";
  163. }
  164. /**
  165. * @codeCoverageIgnore
  166. */
  167. public function isTraitable(): bool
  168. {
  169. return false;
  170. }
  171. /**
  172. * @codeCoverageIgnore
  173. */
  174. public function getDebugInfo(): array
  175. {
  176. return array ( 168 => 23, 165 => 22, 151 => 21, 149 => 19, 147 => 18, 129 => 17, 126 => 16, 123 => 15, 121 => 13, 119 => 12, 116 => 11, 102 => 10, 100 => 8, 99 => 7, 97 => 6, 80 => 5, 76 => 3, 63 => 2, 40 => 1,);
  177. }
  178. public function getSourceContext(): Source
  179. {
  180. return new Source("{% extends \"base.html.twig\" %}
  181. {% block content %}
  182. <main id=\"main\" class=\"main-shifted-right\">
  183. {% for block in content.blocks %}
  184. {% include 'partials/' ~ block.type ~ '.html.twig' with {
  185. content: block,
  186. view: view.blocks[loop.index0],
  187. } %}
  188. {% endfor %}
  189. {% if content.lecturer_block is defined %}
  190. {% include '/partials/lecturerBlock.html.twig' with {
  191. content: content.lecturer_block,
  192. }%}
  193. {% endif %}
  194. {% if content.faq_block is defined %}
  195. {% for faq_block in content.faq_block %}
  196. {% include '/partials/headlineAndTextBodyBlock.html.twig' with {
  197. content: faq_block,
  198. }%}
  199. {% endfor %}
  200. {% endif %}
  201. </main>
  202. {% endblock %}
  203. ", "pages/subpage_variance_1.html.twig", "/www/htdocs/w00cd56a/prod_theatertotal/theatertotal_sulu_update/templates/pages/subpage_variance_1.html.twig");
  204. }
  205. }