var/cache/dev/twig/a5/a5f14bd982583139705f8b4fad8fc4f3.php line 46

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. /* layout/default.html.twig */
  16. class __TwigTemplate_86334963ebf1790fcff1658912c59ced 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. 'sidebar' => [$this, 'block_sidebar'],
  30. ];
  31. $this->sandbox = $this->extensions[SandboxExtension::class];
  32. $this->checkSecurity();
  33. }
  34. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35. {
  36. // line 1
  37. return "layout/base.html.twig";
  38. }
  39. protected function doDisplay(array $context, array $blocks = []): iterable
  40. {
  41. $macros = $this->macros;
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/default.html.twig"));
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/default.html.twig"));
  46. $this->parent = $this->loadTemplate("layout/base.html.twig", "layout/default.html.twig", 1);
  47. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50. }
  51. // line 3
  52. /**
  53. * @return iterable<null|scalar|\Stringable>
  54. */
  55. public function block_content(array $context, array $blocks = []): iterable
  56. {
  57. $macros = $this->macros;
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  62. // line 4
  63. yield "
  64. ";
  65. // line 5
  66. $context["placeholder"] = (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 5, $this->source); })()), "key", [], "any", false, false, true, 5) != "")) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 5, $this->source); })()), "key", [], "any", false, false, true, 5)) : ("Home"));
  67. // line 6
  68. yield " <h1 class=\"headLine\">";
  69. yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline", ["class" => "border", "placeholder" => ("Headline: " . $this->sandbox->ensureToStringAllowed((isset($context["placeholder"]) || array_key_exists("placeholder", $context) ? $context["placeholder"] : (function () { throw new RuntimeError('Variable "placeholder" does not exist.', 6, $this->source); })()), 6, $this->source))]);
  70. yield "</h1>
  71. ";
  72. // line 7
  73. yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content", ["allowed" => ["wysiwygeditor", "event", "image", "slider", "vorstand", "protokolle", "gewinnspiel"], "sorting" => ["wysiwygeditor", "event", "image", "slider", "vorstand", "protokolle", "gewinnspiel"]]);
  74. // line 10
  75. yield "
  76. ";
  77. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  79. yield from [];
  80. }
  81. // line 15
  82. /**
  83. * @return iterable<null|scalar|\Stringable>
  84. */
  85. public function block_sidebar(array $context, array $blocks = []): iterable
  86. {
  87. $macros = $this->macros;
  88. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  89. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  91. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
  92. // line 16
  93. yield " ";
  94. // line 17
  95. yield " ";
  96. yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "sidebar");
  97. yield "
  98. ";
  99. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  100. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  101. yield from [];
  102. }
  103. /**
  104. * @codeCoverageIgnore
  105. */
  106. public function getTemplateName(): string
  107. {
  108. return "layout/default.html.twig";
  109. }
  110. /**
  111. * @codeCoverageIgnore
  112. */
  113. public function isTraitable(): bool
  114. {
  115. return false;
  116. }
  117. /**
  118. * @codeCoverageIgnore
  119. */
  120. public function getDebugInfo(): array
  121. {
  122. return array ( 120 => 17, 118 => 16, 105 => 15, 91 => 10, 89 => 7, 84 => 6, 82 => 5, 79 => 4, 66 => 3, 43 => 1,);
  123. }
  124. public function getSourceContext(): Source
  125. {
  126. return new Source("{% extends \"layout/base.html.twig\" %}
  127. {% block content %}
  128. {% set placeholder = document.key != '' ? document.key : 'Home' %}
  129. <h1 class=\"headLine\">{{ pimcore_input(\"headline\", { 'class' : 'border', 'placeholder' : 'Headline: ' ~ placeholder }) }}</h1>
  130. {{ pimcore_areablock(\"content\", {
  131. \"allowed\": [\"wysiwygeditor\",\"event\",\"image\",\"slider\", \"vorstand\", \"protokolle\", \"gewinnspiel\"],
  132. \"sorting\": [\"wysiwygeditor\",\"event\", \"image\",\"slider\", \"vorstand\", \"protokolle\", \"gewinnspiel\"],
  133. }) }}
  134. {% endblock %}
  135. {% block sidebar %}
  136. {# Hier können Widgets, News oder andere Seitenleisten-Elemente eingefügt werden #}
  137. {{ pimcore_areablock('sidebar') }}
  138. {% endblock %}
  139. ", "layout/default.html.twig", "/var/www/vhosts/mensa-fasching.de/uat/releases/20250218080531/templates/layout/default.html.twig");
  140. }
  141. public function checkSecurity()
  142. {
  143. static $tags = ["extends" => 1, "set" => 5];
  144. static $filters = [];
  145. static $functions = ["pimcore_input" => 6, "pimcore_areablock" => 7];
  146. try {
  147. $this->sandbox->checkSecurity(
  148. ['extends', 'set'],
  149. [],
  150. ['pimcore_input', 'pimcore_areablock'],
  151. $this->source
  152. );
  153. } catch (SecurityError $e) {
  154. $e->setSourceContext($this->source);
  155. if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  156. $e->setTemplateLine($tags[$e->getTagName()]);
  157. } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  158. $e->setTemplateLine($filters[$e->getFilterName()]);
  159. } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  160. $e->setTemplateLine($functions[$e->getFunctionName()]);
  161. }
  162. throw $e;
  163. }
  164. }
  165. }