<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* layout.html.twig */
class __TwigTemplate_00779fe4247a674b58179ea9adf5924e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'headscripts' => [$this, 'block_headscripts'],
'inlinescripts' => [$this, 'block_inlinescripts'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
$this->deferred = $this->env->getExtension('Twig\DeferredExtension\DeferredExtension');
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
// line 1
echo "<!doctype html>
<html lang=\"";
// line 2
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);
echo "\" ";
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 2, $this->source); })())) {
echo "class=\"frontend\"";
}
echo ">
<head>
";
// line 4
echo twig_include($this->env, $context, "includes/layout/head.html.twig");
echo "
</head>
";
// line 6
$context["bodyClasses"] = "preload";
// line 7
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)) {
// line 8
echo " ";
$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");
}
// line 10
$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);
// line 11
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); })()))) {
// line 12
echo " ";
if (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 12, $this->source); })()) === "square")) {
// line 13
echo " ";
$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");
// line 14
echo " ";
} elseif (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 14, $this->source); })()) === "playful")) {
// line 15
echo " ";
$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");
// line 16
echo " ";
} elseif (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 16, $this->source); })()) === "playful2")) {
// line 17
echo " ";
$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");
// line 18
echo " ";
} elseif (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 18, $this->source); })()) === "playful3")) {
// line 19
echo " ";
$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");
// line 20
echo " ";
} elseif (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 20, $this->source); })()) === "stylish")) {
// line 21
echo " ";
$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");
// line 22
echo " ";
} 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")) {
// line 23
echo " ";
$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");
// line 24
echo " ";
} elseif (((isset($context["design"]) || array_key_exists("design", $context) ? $context["design"] : (function () { throw new RuntimeError('Variable "design" does not exist.', 24, $this->source); })()) === "dark")) {
// line 25
echo " ";
$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");
// line 26
echo " ";
}
}
// line 28
echo "
";
// line 30
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)) {
// line 31
echo " ";
$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");
}
// line 33
echo "
<body class=\"";
// line 35
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);
echo "\">
";
// line 38
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); })()))) {
// line 39
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
}
// line 41
echo "
";
// line 42
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 42, $this->source); })())) {
// line 43
echo " ";
if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("modal-on-load")) {
// line 44
echo " <conecto-modal visible>
";
// line 45
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::modalAction", []));
echo "
</conecto-modal>
";
}
}
// line 49
echo "
<div class=\"docking-trigger\"></div>
<div class=\"page-wrap\">
";
// line 53
echo twig_include($this->env, $context, "includes/layout/header/page-header.html.twig");
echo "
<main class=\"page-main\" role=\"main\">
";
// line 55
$this->displayBlock("content", $context, $blocks);
echo "
</main>
</div>
";
// line 59
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));
echo "
";
// line 62
$this->displayBlock('headscripts', $context, $blocks);
// line 65
echo "
";
// line 67
$this->displayBlock('inlinescripts', $context, $blocks);
// line 73
echo "
</body>
</html>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function block_headscripts($context, array $blocks = [])
{
$this->deferred->defer($this, 'headscripts');
}
// line 62
public function block_headscripts_deferred($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
// line 63
echo $this->env->getFunction('pimcore_head_script')->getCallable()();
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function block_inlinescripts($context, array $blocks = [])
{
$this->deferred->defer($this, 'inlinescripts');
}
// line 67
public function block_inlinescripts_deferred($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
// line 68
echo " ";
echo $this->env->getFunction('pimcore_inline_script')->getCallable()();
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function getTemplateName()
{
return "layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<!doctype html>
<html lang=\"{{ app.request.locale }}\" {% if not editmode %}class=\"frontend\"{% endif %}>
<head>
{{ include('includes/layout/head.html.twig') }}
</head>
{% set bodyClasses = 'preload' %}
{% if not document.getProperty('portal') %}
{% set bodyClasses = bodyClasses ~ ' subpage' %}
{% endif %}
{% set design = document.getProperty('design') %}
{% if design is defined and design %}
{% if design is same as 'square' %}
{% set bodyClasses = bodyClasses ~ ' no-rounded-borders' %}
{% elseif design is same as 'playful' %}
{% set bodyClasses = bodyClasses ~ ' playful' %}
{% elseif design is same as 'playful2' %}
{% set bodyClasses = bodyClasses ~ ' playful2' %}
{% elseif design is same as 'playful3' %}
{% set bodyClasses = bodyClasses ~ ' playful3' %}
{% elseif design is same as 'stylish' %}
{% set bodyClasses = bodyClasses ~ ' stylish' %}
{% elseif design is same as 'stylish-dark' %}
{% set bodyClasses = bodyClasses ~ ' stylish stylish-dark' %}
{% elseif design is same as 'dark' %}
{% set bodyClasses = bodyClasses ~ ' dark' %}
{% endif %}
{% endif %}
{# Schatten in Header Bereich deaktivieren #}
{% if document.getProperty('without-shadow') %}
{% set bodyClasses = bodyClasses ~ ' without-shadow' %}
{% endif %}
<body class=\"{{ bodyClasses }}\">
{# get root node if there is no document defined (for pages which are routed directly through static route) #}
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{% if not editmode %}
{% if pimcore_website_config('modal-on-load') %}
<conecto-modal visible>
{{ render(controller('App\\\\Controller\\\\DefaultController::modalAction', {})) }}
</conecto-modal>
{% endif %}
{% endif %}
<div class=\"docking-trigger\"></div>
<div class=\"page-wrap\">
{{ include('includes/layout/header/page-header.html.twig') }}
<main class=\"page-main\" role=\"main\">
{{ block('content') }}
</main>
</div>
{{ pimcore_inc(document.getProperty('footer')) }}
{# output scripts added before #}
{% block headscripts deferred %}
{{ pimcore_head_script() }}
{% endblock %}
{% block inlinescripts deferred %}
{{ pimcore_inline_script() }}
{% endblock %}
{#<script type=\"module\">
{{ conecto_inline_data('static/js/main.min.js')|raw }}
</script>#}
</body>
</html>", "layout.html.twig", "/html/pimcore/templates/layout.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 2, "set" => 6, "block" => 62);
static $filters = array("escape" => 2);
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);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'block'],
['escape'],
['include', 'pimcore_document', 'pimcore_website_config', 'render', 'controller', 'pimcore_inc', 'pimcore_head_script', 'pimcore_inline_script']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
private $deferred;
}