var/cache/website/dev/twig/44/44ec5127b50fa69e83670ca74858fbd4.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/form_with_blocks.html.twig */
  16. class __TwigTemplate_276d9472b22cb163bfc64aa059165156 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/form_with_blocks.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/form_with_blocks.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. <section id=\"about\" class=\"about\">
  101. <div class=\"container\" id=\"formContainer\">
  102. ";
  103. // line 14
  104. if ((($tmp = 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.', 14, $this->source); })()), "form", [], "any", false, false, false, 14)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  105. // line 15
  106. yield " ";
  107. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "get", ["send"], "method", false, false, false, 15) != "true")) {
  108. // line 16
  109. yield " ";
  110. $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(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.', 16, $this->source); })()), "form", [], "any", false, false, false, 16), ["forms/theme.html.twig"], true);
  111. // line 17
  112. yield " ";
  113. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(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); })()), "form", [], "any", false, false, false, 17), 'form');
  114. yield "
  115. ";
  116. } else {
  117. // line 19
  118. yield " <div class=\"section-title\" style=\"width: 80%\">
  119. <h1 style=\"font-family: Teko, sans-serif; font-size: 50px; letter-spacing: 1.3px; line-height: 1\">
  120. Ihre Nachricht wurde erfolgreich versandt. </br>
  121. Keine Mail erhalten? Bitte prüfen Sie auch Ihren Spamordner.
  122. </h1>
  123. </div>
  124. ";
  125. }
  126. // line 28
  127. yield " ";
  128. }
  129. // line 29
  130. yield " </div>
  131. </section>
  132. </main>
  133. ";
  134. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  135. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  136. yield from [];
  137. }
  138. /**
  139. * @codeCoverageIgnore
  140. */
  141. public function getTemplateName(): string
  142. {
  143. return "pages/form_with_blocks.html.twig";
  144. }
  145. /**
  146. * @codeCoverageIgnore
  147. */
  148. public function isTraitable(): bool
  149. {
  150. return false;
  151. }
  152. /**
  153. * @codeCoverageIgnore
  154. */
  155. public function getDebugInfo(): array
  156. {
  157. return array ( 149 => 29, 146 => 28, 135 => 19, 129 => 17, 126 => 16, 123 => 15, 121 => 14, 116 => 11, 102 => 10, 100 => 8, 99 => 7, 97 => 6, 80 => 5, 76 => 3, 63 => 2, 40 => 1,);
  158. }
  159. public function getSourceContext(): Source
  160. {
  161. return new Source("{% extends \"base.html.twig\" %}
  162. {% block content %}
  163. <main id=\"main\" class=\"main-shifted-right\">
  164. {% for block in content.blocks %}
  165. {% include 'partials/' ~ block.type ~ '.html.twig' with {
  166. content: block,
  167. view: view.blocks[loop.index0],
  168. } %}
  169. {% endfor %}
  170. <section id=\"about\" class=\"about\">
  171. <div class=\"container\" id=\"formContainer\">
  172. {% if content.form %}
  173. {% if app.request.get('send') != 'true' %}
  174. {% form_theme content.form 'forms/theme.html.twig' %}
  175. {{ form(content.form) }}
  176. {% else %}
  177. <div class=\"section-title\" style=\"width: 80%\">
  178. <h1 style=\"font-family: Teko, sans-serif; font-size: 50px; letter-spacing: 1.3px; line-height: 1\">
  179. Ihre Nachricht wurde erfolgreich versandt. </br>
  180. Keine Mail erhalten? Bitte prüfen Sie auch Ihren Spamordner.
  181. </h1>
  182. </div>
  183. {% endif %}
  184. {% endif %}
  185. </div>
  186. </section>
  187. </main>
  188. {% endblock %}
  189. ", "pages/form_with_blocks.html.twig", "/www/htdocs/w00cd56a/prod_theatertotal/theatertotal_sulu_update/templates/pages/form_with_blocks.html.twig");
  190. }
  191. }