var/cache/website/dev/twig/96/96577a06fe789da68cf36ccfc54a0dc9.php line 208

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. /* base_archive.html.twig */
  16. class __TwigTemplate_c6ad1dec7fb3357a0b6cebf6ad5e1093 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. 'meta' => [$this, 'block_meta'],
  30. 'style' => [$this, 'block_style'],
  31. 'header' => [$this, 'block_header'],
  32. 'hero' => [$this, 'block_hero'],
  33. 'content' => [$this, 'block_content'],
  34. 'footer' => [$this, 'block_footer'],
  35. 'javascripts' => [$this, 'block_javascripts'],
  36. ];
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base_archive.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base_archive.html.twig"));
  45. // line 1
  46. yield "<!DOCTYPE html>
  47. <html lang=\"";
  48. // line 3
  49. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, Twig\Extension\CoreExtension::split($this->env->getCharset(), 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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "locale", [], "any", false, false, false, 3), "_"), 0, [], "array", false, false, false, 3), "html", null, true);
  50. yield "\">
  51. <head>
  52. <meta charset=\"utf-8\">
  53. <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  54. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  55. <script src=\"https://consent.cookiefirst.com/sites/theatertotal.de-944f7496-632a-4ede-a931-0fc19ec69bbb/consent.js\"></script>
  56. <title>TheaterTotal</title>
  57. ";
  58. // line 11
  59. yield from $this->unwrap()->yieldBlock('meta', $context, $blocks);
  60. // line 19
  61. yield " <!-- Favicons -->
  62. ";
  63. // line 21
  64. yield from $this->unwrap()->yieldBlock('style', $context, $blocks);
  65. // line 24
  66. yield "</head>
  67. <body>
  68. ";
  69. // line 27
  70. yield from $this->unwrap()->yieldBlock('header', $context, $blocks);
  71. // line 30
  72. if ((($tmp = !(null === 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.', 30, $this->source); })()), "headerImage", [], "any", false, false, false, 30))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  73. // line 31
  74. yield from $this->unwrap()->yieldBlock('hero', $context, $blocks);
  75. // line 34
  76. yield " ";
  77. } else {
  78. // line 35
  79. yield " <div class=\"container\" style=\"margin-top: 20%\">
  80. <div class=\"title\" style=\"width: 80%\">
  81. <h1 style=\"font-family: Teko Medium, sans-serif; font-size: 70px; letter-spacing: 1.3px\"> ";
  82. // line 37
  83. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 37, $this->source); })()), "title", [], "any", false, false, false, 37), "html", null, true);
  84. yield " </h1>
  85. </div>
  86. </div>
  87. ";
  88. }
  89. // line 41
  90. yield "<main>
  91. ";
  92. // line 42
  93. yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
  94. // line 43
  95. yield "</main>
  96. ";
  97. // line 53
  98. yield "
  99. ";
  100. // line 54
  101. yield from $this->unwrap()->yieldBlock('footer', $context, $blocks);
  102. // line 57
  103. yield "
  104. ";
  105. // line 58
  106. yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
  107. // line 61
  108. yield "</body>
  109. </html>
  110. ";
  111. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113. yield from [];
  114. }
  115. // line 11
  116. /**
  117. * @return iterable<null|scalar|\Stringable>
  118. */
  119. public function block_meta(array $context, array $blocks = []): iterable
  120. {
  121. $macros = $this->macros;
  122. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
  124. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
  126. // line 12
  127. yield " ";
  128. yield from $this->load("@SuluWebsite/Extension/seo.html.twig", 12)->unwrap()->yield(CoreExtension::merge($context, ["seo" => ((CoreExtension::getAttribute($this->env, $this->source, // line 13
  129. ($context["extension"] ?? null), "seo", [], "any", true, true, false, 13)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["extension"]) || array_key_exists("extension", $context) ? $context["extension"] : (function () { throw new RuntimeError('Variable "extension" does not exist.', 13, $this->source); })()), "seo", [], "any", false, false, false, 13), [])) : ([])), "content" => (( // line 14
  130. array_key_exists("content", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 14, $this->source); })()), [])) : ([])), "localizations" => (( // line 15
  131. array_key_exists("localizations", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["localizations"]) || array_key_exists("localizations", $context) ? $context["localizations"] : (function () { throw new RuntimeError('Variable "localizations" does not exist.', 15, $this->source); })()), [])) : ([])), "shadowBaseLocale" => (( // line 16
  132. array_key_exists("shadowBaseLocale", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["shadowBaseLocale"]) || array_key_exists("shadowBaseLocale", $context) ? $context["shadowBaseLocale"] : (function () { throw new RuntimeError('Variable "shadowBaseLocale" does not exist.', 16, $this->source); })()))) : (""))]));
  133. // line 18
  134. yield " ";
  135. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  136. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  137. yield from [];
  138. }
  139. // line 21
  140. /**
  141. * @return iterable<null|scalar|\Stringable>
  142. */
  143. public function block_style(array $context, array $blocks = []): iterable
  144. {
  145. $macros = $this->macros;
  146. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  147. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "style"));
  148. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  149. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "style"));
  150. // line 22
  151. yield " ";
  152. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  153. yield "
  154. ";
  155. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  156. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  157. yield from [];
  158. }
  159. // line 27
  160. /**
  161. * @return iterable<null|scalar|\Stringable>
  162. */
  163. public function block_header(array $context, array $blocks = []): iterable
  164. {
  165. $macros = $this->macros;
  166. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  167. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  168. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  169. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  170. // line 28
  171. yield " ";
  172. yield from $this->load("partials/header.html.twig", 28)->unwrap()->yield($context);
  173. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  174. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  175. yield from [];
  176. }
  177. // line 31
  178. /**
  179. * @return iterable<null|scalar|\Stringable>
  180. */
  181. public function block_hero(array $context, array $blocks = []): iterable
  182. {
  183. $macros = $this->macros;
  184. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  185. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "hero"));
  186. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  187. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "hero"));
  188. // line 32
  189. yield " ";
  190. yield from $this->load("partials/hero.html.twig", 32)->unwrap()->yield($context);
  191. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  192. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193. yield from [];
  194. }
  195. // line 42
  196. /**
  197. * @return iterable<null|scalar|\Stringable>
  198. */
  199. public function block_content(array $context, array $blocks = []): iterable
  200. {
  201. $macros = $this->macros;
  202. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  203. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  204. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  205. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  206. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  207. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  208. yield from [];
  209. }
  210. // line 54
  211. /**
  212. * @return iterable<null|scalar|\Stringable>
  213. */
  214. public function block_footer(array $context, array $blocks = []): iterable
  215. {
  216. $macros = $this->macros;
  217. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  218. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  219. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  220. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
  221. // line 55
  222. yield " ";
  223. yield from $this->load("partials/footer.html.twig", 55)->unwrap()->yield($context);
  224. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  225. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  226. yield from [];
  227. }
  228. // line 58
  229. /**
  230. * @return iterable<null|scalar|\Stringable>
  231. */
  232. public function block_javascripts(array $context, array $blocks = []): iterable
  233. {
  234. $macros = $this->macros;
  235. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  236. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  237. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  238. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  239. // line 59
  240. yield " ";
  241. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  242. yield "
  243. ";
  244. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  245. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  246. yield from [];
  247. }
  248. /**
  249. * @codeCoverageIgnore
  250. */
  251. public function getTemplateName(): string
  252. {
  253. return "base_archive.html.twig";
  254. }
  255. /**
  256. * @codeCoverageIgnore
  257. */
  258. public function isTraitable(): bool
  259. {
  260. return false;
  261. }
  262. /**
  263. * @codeCoverageIgnore
  264. */
  265. public function getDebugInfo(): array
  266. {
  267. return array ( 304 => 59, 291 => 58, 279 => 55, 266 => 54, 244 => 42, 232 => 32, 219 => 31, 207 => 28, 194 => 27, 180 => 22, 167 => 21, 156 => 18, 154 => 16, 153 => 15, 152 => 14, 151 => 13, 149 => 12, 136 => 11, 123 => 61, 121 => 58, 118 => 57, 116 => 54, 113 => 53, 108 => 43, 106 => 42, 103 => 41, 96 => 37, 92 => 35, 89 => 34, 87 => 31, 85 => 30, 83 => 27, 78 => 24, 76 => 21, 72 => 19, 70 => 11, 59 => 3, 55 => 1,);
  268. }
  269. public function getSourceContext(): Source
  270. {
  271. return new Source("<!DOCTYPE html>
  272. <html lang=\"{{ app.request.locale|split('_')[0] }}\">
  273. <head>
  274. <meta charset=\"utf-8\">
  275. <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  276. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  277. <script src=\"https://consent.cookiefirst.com/sites/theatertotal.de-944f7496-632a-4ede-a931-0fc19ec69bbb/consent.js\"></script>
  278. <title>TheaterTotal</title>
  279. {% block meta %}
  280. {% include \"@SuluWebsite/Extension/seo.html.twig\" with {
  281. \"seo\": extension.seo|default([]),
  282. \"content\": content|default([]),
  283. \"localizations\": localizations|default([]),
  284. \"shadowBaseLocale\": shadowBaseLocale|default(),
  285. } %}
  286. {% endblock %}
  287. <!-- Favicons -->
  288. {% block style %}
  289. {{ encore_entry_link_tags('app') }}
  290. {% endblock %}
  291. </head>
  292. <body>
  293. {% block header %}
  294. {% include \"partials/header.html.twig\" %}
  295. {% endblock %}
  296. {% if content.headerImage is not null %}
  297. {% block hero %}
  298. {% include \"partials/hero.html.twig\" %}
  299. {% endblock %}
  300. {% else %}
  301. <div class=\"container\" style=\"margin-top: 20%\">
  302. <div class=\"title\" style=\"width: 80%\">
  303. <h1 style=\"font-family: Teko Medium, sans-serif; font-size: 70px; letter-spacing: 1.3px\"> {{ content.title}} </h1>
  304. </div>
  305. </div>
  306. {% endif %}
  307. <main>
  308. {% block content %}{% endblock %}
  309. </main>
  310. {#{% if previewContentReplacer is not defined %}
  311. {{ render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set')) }}
  312. {% endif %}#}
  313. {#
  314. {{ render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set')) }}
  315. #}
  316. {% block footer %}
  317. {% include \"partials/footer.html.twig\" %}
  318. {% endblock %}
  319. {% block javascripts %}
  320. {{ encore_entry_script_tags('app') }}
  321. {% endblock %}
  322. </body>
  323. </html>
  324. ", "base_archive.html.twig", "/www/htdocs/w00cd56a/prod_theatertotal/theatertotal_sulu_update/templates/base_archive.html.twig");
  325. }
  326. }