var/cache/dev/twig/6f/6fb652fe5a4102fa3620db6083b5ba35.php line 68

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. /* default/content.html.twig */
  16. class __TwigTemplate_2030c1f42456075421f8e91ba0ce89ba 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. $this->sandbox = $this->extensions[SandboxExtension::class];
  31. $this->checkSecurity();
  32. }
  33. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34. {
  35. // line 1
  36. return "layouts/layout.html.twig";
  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", "default/content.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", "default/content.html.twig"));
  45. $this->parent = $this->loadTemplate("layouts/layout.html.twig", "default/content.html.twig", 1);
  46. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. }
  50. // line 3
  51. /**
  52. * @return iterable<null|scalar|\Stringable>
  53. */
  54. public function block_content(array $context, array $blocks = []): iterable
  55. {
  56. $macros = $this->macros;
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  61. // line 4
  62. yield " ";
  63. yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "Areablock", ["allowed" => ["header", "contact-header", "teaser", "suche", "text", "call-to-action", "downloads", "cards", "bild-text-text-bild", "contact-form", "error-page", "benefits", "media-slider", "order-form"], "sorting" => ["header", "content-header", "contact-header", "teaser-header", "news-teaser", "history-teaser", "news-overview", "teaser", "cards", "suche", "text", "call-to-action", "zitat-bild", "zitat-teaser", "zitat-teaser-secondary", "downloads", "download", "bild-text-text-bild", "image-gallery", "media-slider", "contact-form", "order-form", "accordion", "team", "error-page", "benefits"], "group" => ["Header" => ["header", "content-header", "contact-header", "teaser-header", "suche", "error-page"], "Teaser" => ["news-teaser", "teaser", "cards", "history-teaser", "bild-text-text-bild"], "Inhalt Elemente" => ["text", "call-to-action", "zitat-bild", "zitat-teaser", "zitat-teaser-secondary", "downloads", "download", "image-gallery", "media-slider", "news-overview", "contact-form", "order-form", "accordion", "team", "benefits"]], "limits" => ["header" => 1, "news-teaser" => 1, "history-teaser" => 1], "globalParams" => ["deviceType" => $this->sandbox->ensureToStringAllowed( // line 89
  64. (isset($context["deviceType"]) || array_key_exists("deviceType", $context) ? $context["deviceType"] : (function () { throw new RuntimeError('Variable "deviceType" does not exist.', 89, $this->source); })()), 89, $this->source), "searchCX" => $this->sandbox->ensureToStringAllowed( // line 90
  65. (isset($context["searchCX"]) || array_key_exists("searchCX", $context) ? $context["searchCX"] : (function () { throw new RuntimeError('Variable "searchCX" does not exist.', 90, $this->source); })()), 90, $this->source)], "params" => ["contact-form" => ["form" => $this->sandbox->ensureToStringAllowed( // line 94
  66. (isset($context["contactForm"]) || array_key_exists("contactForm", $context) ? $context["contactForm"] : (function () { throw new RuntimeError('Variable "contactForm" does not exist.', 94, $this->source); })()), 94, $this->source), "success" => $this->sandbox->ensureToStringAllowed( // line 95
  67. (isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 95, $this->source); })()), 95, $this->source)], "order-form" => ["form" => $this->sandbox->ensureToStringAllowed( // line 98
  68. (isset($context["orderForm"]) || array_key_exists("orderForm", $context) ? $context["orderForm"] : (function () { throw new RuntimeError('Variable "orderForm" does not exist.', 98, $this->source); })()), 98, $this->source), "success" => $this->sandbox->ensureToStringAllowed( // line 99
  69. (isset($context["success2"]) || array_key_exists("success2", $context) ? $context["success2"] : (function () { throw new RuntimeError('Variable "success2" does not exist.', 99, $this->source); })()), 99, $this->source)]]]);
  70. // line 102
  71. yield "
  72. ";
  73. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75. yield from [];
  76. }
  77. /**
  78. * @codeCoverageIgnore
  79. */
  80. public function getTemplateName(): string
  81. {
  82. return "default/content.html.twig";
  83. }
  84. /**
  85. * @codeCoverageIgnore
  86. */
  87. public function isTraitable(): bool
  88. {
  89. return false;
  90. }
  91. /**
  92. * @codeCoverageIgnore
  93. */
  94. public function getDebugInfo(): array
  95. {
  96. return array ( 87 => 102, 85 => 99, 84 => 98, 83 => 95, 82 => 94, 81 => 90, 80 => 89, 78 => 4, 65 => 3, 42 => 1,);
  97. }
  98. public function getSourceContext(): Source
  99. {
  100. return new Source("{% extends 'layouts/layout.html.twig' %}
  101. {% block content %}
  102. {{ pimcore_areablock('Areablock', {
  103. 'allowed': [
  104. 'header',
  105. 'contact-header',
  106. 'teaser',
  107. 'suche',
  108. 'text',
  109. 'call-to-action',
  110. 'downloads',
  111. 'cards',
  112. 'bild-text-text-bild',
  113. 'contact-form',
  114. 'error-page',
  115. 'benefits',
  116. 'media-slider',
  117. 'order-form',
  118. ],
  119. 'sorting': [
  120. 'header',
  121. 'content-header',
  122. 'contact-header',
  123. 'teaser-header',
  124. 'news-teaser',
  125. 'history-teaser',
  126. 'news-overview',
  127. 'teaser',
  128. 'cards',
  129. 'suche',
  130. 'text',
  131. 'call-to-action',
  132. 'zitat-bild',
  133. 'zitat-teaser',
  134. 'zitat-teaser-secondary',
  135. 'downloads',
  136. 'download',
  137. 'bild-text-text-bild',
  138. 'image-gallery',
  139. 'media-slider',
  140. 'contact-form',
  141. 'order-form',
  142. 'accordion',
  143. 'team',
  144. 'error-page',
  145. 'benefits'
  146. ],
  147. 'group': {
  148. 'Header' : [
  149. 'header',
  150. 'content-header',
  151. 'contact-header',
  152. 'teaser-header',
  153. 'suche',
  154. 'error-page'
  155. ],
  156. 'Teaser': [
  157. 'news-teaser',
  158. 'teaser',
  159. 'cards',
  160. 'history-teaser',
  161. 'bild-text-text-bild'
  162. ],
  163. 'Inhalt Elemente': [
  164. 'text',
  165. 'call-to-action',
  166. 'zitat-bild',
  167. 'zitat-teaser',
  168. 'zitat-teaser-secondary',
  169. 'downloads',
  170. 'download',
  171. 'image-gallery',
  172. 'media-slider',
  173. 'news-overview',
  174. 'contact-form',
  175. 'order-form',
  176. 'accordion',
  177. 'team',
  178. 'benefits'
  179. ]
  180. },
  181. 'limits': {
  182. 'header': 1,
  183. 'news-teaser': 1,
  184. 'history-teaser' : 1
  185. },
  186. 'globalParams': {
  187. 'deviceType': deviceType,
  188. 'searchCX' : searchCX
  189. },
  190. 'params': {
  191. 'contact-form' : {
  192. form : contactForm,
  193. success : success
  194. },
  195. 'order-form' : {
  196. form : orderForm,
  197. success : success2
  198. }
  199. }
  200. }) }}
  201. {% endblock %}", "default/content.html.twig", "/home/httpd/vhosts/annavation.a4interactive.ch/httpdocs/dev/templates/default/content.html.twig");
  202. }
  203. public function checkSecurity()
  204. {
  205. static $tags = ["extends" => 1];
  206. static $filters = [];
  207. static $functions = ["pimcore_areablock" => 4];
  208. try {
  209. $this->sandbox->checkSecurity(
  210. ['extends'],
  211. [],
  212. ['pimcore_areablock'],
  213. $this->source
  214. );
  215. } catch (SecurityError $e) {
  216. $e->setSourceContext($this->source);
  217. if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  218. $e->setTemplateLine($tags[$e->getTagName()]);
  219. } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  220. $e->setTemplateLine($filters[$e->getFilterName()]);
  221. } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  222. $e->setTemplateLine($functions[$e->getFunctionName()]);
  223. }
  224. throw $e;
  225. }
  226. }
  227. }