var/cache/dev/twig/17/17818f44deb46b09edca9400e3558ac9.php line 38

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* layout.html.twig */
  14. class __TwigTemplate_00779fe4247a674b58179ea9adf5924e extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source = $this->getSourceContext();
  22.         $this->parent = false;
  23.         $this->blocks = [
  24.             'headscripts' => [$this, 'block_headscripts'],
  25.             'inlinescripts' => [$this, 'block_inlinescripts'],
  26.         ];
  27.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.         $this->deferred = $this->env->getExtension('Twig\DeferredExtension\DeferredExtension');
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros = $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
  38.         // line 1
  39.         echo "<!doctype html>
  40. <html lang=\"";
  41.         // line 2
  42.         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 2, $this->source); })()), "request", [], "any", false, false, true, 2), "locale", [], "any", false, false, true, 2), 2, $this->source), "html", null, true);
  43.         echo "\" ";
  44.         if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 2, $this->source); })())) {
  45.             echo "class=\"frontend\"";
  46.         }
  47.         echo ">
  48. <head>
  49.     ";
  50.         // line 4
  51.         echo twig_include($this->env, $context, "includes/layout/head.html.twig");
  52.         echo "
  53. </head>
  54. ";
  55.         // line 6
  56.         $context["bodyClasses"] = "preload";
  57.         // line 7
  58.         if ( !twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 7, $this->source); })()), "getProperty", [0 => "portal"], "method", false, false, true, 7)) {
  59.             // line 8
  60.             echo "    ";
  61.             $context["bodyClasses"] = ($this->sandbox->ensureToStringAllowed((isset($context["bodyClasses"]) || array_key_exists("bodyClasses", $context) ? $context["bodyClasses"] : (function () { throw new RuntimeError('Variable "bodyClasses" does not exist.', 8, $this->source); })()), 8, $this->source) . " subpage");
  62.         }
  63.         // line 10
  64.         $context["design"] = twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 10, $this->source); })()), "getProperty", [0 => "design"], "method", false, false, true, 10);
  65.         // line 11
  66.         if ((array_key_exists("design", $context) && (isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 11, $this->source); })()))) {
  67.             // line 12
  68.             echo "    ";
  69.             if (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 12, $this->source); })()) === "square")) {
  70.                 // line 13
  71.                 echo "        ";
  72.                 $context["bodyClasses"] = ($this->sandbox->ensureToStringAllowed((isset($context["bodyClasses"]) || array_key_exists("bodyClasses", $context) ? $context["bodyClasses"] : (function () { throw new RuntimeError('Variable "bodyClasses" does not exist.', 13, $this->source); })()), 13, $this->source) . " no-rounded-borders");
  73.                 // line 14
  74.                 echo "    ";
  75.             } elseif (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 14, $this->source); })()) === "playful")) {
  76.                 // line 15
  77.                 echo "        ";
  78.                 $context["bodyClasses"] = ($this->sandbox->ensureToStringAllowed((isset($context["bodyClasses"]) || array_key_exists("bodyClasses", $context) ? $context["bodyClasses"] : (function () { throw new RuntimeError('Variable "bodyClasses" does not exist.', 15, $this->source); })()), 15, $this->source) . " playful");
  79.                 // line 16
  80.                 echo "    ";
  81.             } elseif (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 16, $this->source); })()) === "playful2")) {
  82.                 // line 17
  83.                 echo "        ";
  84.                 $context["bodyClasses"] = ($this->sandbox->ensureToStringAllowed((isset($context["bodyClasses"]) || array_key_exists("bodyClasses", $context) ? $context["bodyClasses"] : (function () { throw new RuntimeError('Variable "bodyClasses" does not exist.', 17, $this->source); })()), 17, $this->source) . " playful2");
  85.                 // line 18
  86.                 echo "    ";
  87.             } elseif (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 18, $this->source); })()) === "playful3")) {
  88.                 // line 19
  89.                 echo "        ";
  90.                 $context["bodyClasses"] = ($this->sandbox->ensureToStringAllowed((isset($context["bodyClasses"]) || array_key_exists("bodyClasses", $context) ? $context["bodyClasses"] : (function () { throw new RuntimeError('Variable "bodyClasses" does not exist.', 19, $this->source); })()), 19, $this->source) . " playful3");
  91.                 // line 20
  92.                 echo "    ";
  93.             } elseif (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 20, $this->source); })()) === "stylish")) {
  94.                 // line 21
  95.                 echo "        ";
  96.                 $context["bodyClasses"] = ($this->sandbox->ensureToStringAllowed((isset($context["bodyClasses"]) || array_key_exists("bodyClasses", $context) ? $context["bodyClasses"] : (function () { throw new RuntimeError('Variable "bodyClasses" does not exist.', 21, $this->source); })()), 21, $this->source) . " stylish");
  97.                 // line 22
  98.                 echo "    ";
  99.             } elseif (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 22, $this->source); })()) === "stylish-dark")) {
  100.                 // line 23
  101.                 echo "        ";
  102.                 $context["bodyClasses"] = ($this->sandbox->ensureToStringAllowed((isset($context["bodyClasses"]) || array_key_exists("bodyClasses", $context) ? $context["bodyClasses"] : (function () { throw new RuntimeError('Variable "bodyClasses" does not exist.', 23, $this->source); })()), 23, $this->source) . " stylish stylish-dark");
  103.                 // line 24
  104.                 echo "    ";
  105.             } elseif (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 24, $this->source); })()) === "dark")) {
  106.                 // line 25
  107.                 echo "        ";
  108.                 $context["bodyClasses"] = ($this->sandbox->ensureToStringAllowed((isset($context["bodyClasses"]) || array_key_exists("bodyClasses", $context) ? $context["bodyClasses"] : (function () { throw new RuntimeError('Variable "bodyClasses" does not exist.', 25, $this->source); })()), 25, $this->source) . " dark");
  109.                 // line 26
  110.                 echo "    ";
  111.             }
  112.         }
  113.         // line 28
  114.         echo "
  115. ";
  116.         // line 30
  117.         if (twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 30, $this->source); })()), "getProperty", [0 => "without-shadow"], "method", false, false, true, 30)) {
  118.             // line 31
  119.             echo "    ";
  120.             $context["bodyClasses"] = ($this->sandbox->ensureToStringAllowed((isset($context["bodyClasses"]) || array_key_exists("bodyClasses", $context) ? $context["bodyClasses"] : (function () { throw new RuntimeError('Variable "bodyClasses" does not exist.', 31, $this->source); })()), 31, $this->source) . " without-shadow");
  121.         }
  122.         // line 33
  123.         echo "
  124. <body class=\"";
  125.         // line 35
  126.         echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["bodyClasses"]) || array_key_exists("bodyClasses", $context) ? $context["bodyClasses"] : (function () { throw new RuntimeError('Variable "bodyClasses" does not exist.', 35, $this->source); })()), 35, $this->source), "html", null, true);
  127.         echo "\">
  128. ";
  129.         // line 38
  130.         if (( !array_key_exists("document", $context) ||  !(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 38, $this->source); })()))) {
  131.             // line 39
  132.             echo "    ";
  133.             $context["document"] = Pimcore\Model\Document::getById(1);
  134.         }
  135.         // line 41
  136.         echo "
  137. ";
  138.         // line 42
  139.         if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 42, $this->source); })())) {
  140.             // line 43
  141.             echo "    ";
  142.             if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("modal-on-load")) {
  143.                 // line 44
  144.                 echo "        <conecto-modal visible>
  145.             ";
  146.                 // line 45
  147.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::modalAction", []));
  148.                 echo "
  149.         </conecto-modal>
  150.     ";
  151.             }
  152.         }
  153.         // line 49
  154.         echo "
  155. <div class=\"docking-trigger\"></div>
  156. <div class=\"page-wrap\">
  157.     ";
  158.         // line 53
  159.         echo twig_include($this->env, $context, "includes/layout/header/page-header.html.twig");
  160.         echo "
  161.     <main class=\"page-main\" role=\"main\">
  162.         ";
  163.         // line 55
  164.         $this->displayBlock("content", $context, $blocks);
  165.         echo "
  166.     </main>
  167. </div>
  168. ";
  169.         // line 59
  170.         echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 59, $this->source); })()), "getProperty", [0 => "footer"], "method", false, false, true, 59), 59, $this->source));
  171.         echo "
  172. ";
  173.         // line 62
  174.         $this->displayBlock('headscripts', $context, $blocks);
  175.         // line 65
  176.         echo "
  177. ";
  178.         // line 67
  179.         $this->displayBlock('inlinescripts', $context, $blocks);
  180.         // line 73
  181.         echo "
  182. </body>
  183. </html>";
  184.         
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  186.         
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  188.         $this->deferred->resolve($this, $context, $blocks);
  189.     }
  190.     public function block_headscripts($context, array $blocks = [])
  191.     {
  192.         $this->deferred->defer($this, 'headscripts');
  193.     }
  194.     // line 62
  195.     public function block_headscripts_deferred($context, array $blocks = [])
  196.     {
  197.         $macros = $this->macros;
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  199.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
  202.         // line 63
  203.         echo $this->env->getFunction('pimcore_head_script')->getCallable()();
  204.         echo "
  205. ";
  206.         
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  208.         
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  210.         $this->deferred->resolve($this, $context, $blocks);
  211.     }
  212.     public function block_inlinescripts($context, array $blocks = [])
  213.     {
  214.         $this->deferred->defer($this, 'inlinescripts');
  215.     }
  216.     // line 67
  217.     public function block_inlinescripts_deferred($context, array $blocks = [])
  218.     {
  219.         $macros = $this->macros;
  220.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  221.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
  222.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  223.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
  224.         // line 68
  225.         echo "    ";
  226.         echo $this->env->getFunction('pimcore_inline_script')->getCallable()();
  227.         echo "
  228. ";
  229.         
  230.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  231.         
  232.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  233.         $this->deferred->resolve($this, $context, $blocks);
  234.     }
  235.     public function getTemplateName()
  236.     {
  237.         return "layout.html.twig";
  238.     }
  239.     public function isTraitable()
  240.     {
  241.         return false;
  242.     }
  243.     public function getDebugInfo()
  244.     {
  245.         return array (  252 => 68,  242 => 67,  224 => 63,  214 => 62,  196 => 73,  194 => 67,  190 => 65,  188 => 62,  183 => 59,  176 => 55,  171 => 53,  165 => 49,  158 => 45,  155 => 44,  152 => 43,  150 => 42,  147 => 41,  143 => 39,  141 => 38,  136 => 35,  132 => 33,  128 => 31,  126 => 30,  123 => 28,  119 => 26,  116 => 25,  113 => 24,  110 => 23,  107 => 22,  104 => 21,  101 => 20,  98 => 19,  95 => 18,  92 => 17,  89 => 16,  86 => 15,  83 => 14,  80 => 13,  77 => 12,  75 => 11,  73 => 10,  69 => 8,  67 => 7,  65 => 6,  60 => 4,  51 => 2,  48 => 1,);
  246.     }
  247.     public function getSourceContext()
  248.     {
  249.         return new Source("<!doctype html>
  250. <html lang=\"{{ app.request.locale }}\" {% if not editmode %}class=\"frontend\"{% endif %}>
  251. <head>
  252.     {{ include('includes/layout/head.html.twig') }}
  253. </head>
  254. {% set bodyClasses = 'preload' %}
  255. {% if not document.getProperty('portal') %}
  256.     {% set bodyClasses = bodyClasses ~ ' subpage' %}
  257. {% endif %}
  258. {% set design = document.getProperty('design') %}
  259. {% if design is defined and design %}
  260.     {% if design is same as 'square' %}
  261.         {% set bodyClasses = bodyClasses ~ ' no-rounded-borders' %}
  262.     {% elseif design is same as 'playful' %}
  263.         {% set bodyClasses = bodyClasses ~ ' playful' %}
  264.     {% elseif design is same as 'playful2' %}
  265.         {% set bodyClasses = bodyClasses ~ ' playful2' %}
  266.     {% elseif design is same as 'playful3' %}
  267.         {% set bodyClasses = bodyClasses ~ ' playful3' %}
  268.     {% elseif design is same as 'stylish' %}
  269.         {% set bodyClasses = bodyClasses ~ ' stylish' %}
  270.     {% elseif design is same as 'stylish-dark' %}
  271.         {% set bodyClasses = bodyClasses ~ ' stylish stylish-dark' %}
  272.     {% elseif design is same as 'dark' %}
  273.         {% set bodyClasses = bodyClasses ~ ' dark' %}
  274.     {% endif %}
  275. {% endif %}
  276. {# Schatten in Header Bereich deaktivieren #}
  277. {% if document.getProperty('without-shadow') %}
  278.     {% set bodyClasses = bodyClasses ~ ' without-shadow' %}
  279. {% endif %}
  280. <body class=\"{{ bodyClasses }}\">
  281. {# get root node if there is no document defined (for pages which are routed directly through static route) #}
  282. {% if not document is defined or not document %}
  283.     {% set document = pimcore_document(1) %}
  284. {% endif %}
  285. {% if not editmode %}
  286.     {% if pimcore_website_config('modal-on-load') %}
  287.         <conecto-modal visible>
  288.             {{ render(controller('App\\\\Controller\\\\DefaultController::modalAction', {})) }}
  289.         </conecto-modal>
  290.     {% endif %}
  291. {% endif %}
  292. <div class=\"docking-trigger\"></div>
  293. <div class=\"page-wrap\">
  294.     {{ include('includes/layout/header/page-header.html.twig') }}
  295.     <main class=\"page-main\" role=\"main\">
  296.         {{ block('content') }}
  297.     </main>
  298. </div>
  299. {{ pimcore_inc(document.getProperty('footer')) }}
  300. {# output scripts added before #}
  301. {% block headscripts deferred %}
  302. {{ pimcore_head_script() }}
  303. {% endblock %}
  304. {% block inlinescripts deferred %}
  305.     {{ pimcore_inline_script() }}
  306. {% endblock %}
  307. {#<script type=\"module\">
  308.     {{ conecto_inline_data('static/js/main.min.js')|raw }}
  309. </script>#}
  310. </body>
  311. </html>", "layout.html.twig", "/html/pimcore/templates/layout.html.twig");
  312.     }
  313.     
  314.     public function checkSecurity()
  315.     {
  316.         static $tags = array("if" => 2, "set" => 6, "block" => 62);
  317.         static $filters = array("escape" => 2);
  318.         static $functions = array("include" => 4, "pimcore_document" => 39, "pimcore_website_config" => 43, "render" => 45, "controller" => 45, "pimcore_inc" => 59, "pimcore_head_script" => 63, "pimcore_inline_script" => 68);
  319.         try {
  320.             $this->sandbox->checkSecurity(
  321.                 ['if', 'set', 'block'],
  322.                 ['escape'],
  323.                 ['include', 'pimcore_document', 'pimcore_website_config', 'render', 'controller', 'pimcore_inc', 'pimcore_head_script', 'pimcore_inline_script']
  324.             );
  325.         } catch (SecurityError $e) {
  326.             $e->setSourceContext($this->source);
  327.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  328.                 $e->setTemplateLine($tags[$e->getTagName()]);
  329.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  330.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  331.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  332.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  333.             }
  334.             throw $e;
  335.         }
  336.     }
  337.     private $deferred;
  338. }