<?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/layout.html.twig */
class __TwigTemplate_f887851ef2f4a34d10e26ca05c9b64f0 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'head_stylesheets' => [$this, 'block_head_stylesheets'],
'scripts' => [$this, 'block_scripts'],
];
$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/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/layout.html.twig"));
// line 1
ob_start();
// line 2
echo "
";
// line 4
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/dist/main.css")], "method", false, false, false, 4);
// line 5
echo "
";
// line 10
echo "
";
// line 12
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/dist/main.js")], "method", false, false, false, 12);
// line 13
echo "
";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 1
echo twig_spaceless($___internal_parse_0_);
// line 15
echo "
";
// line 17
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.', 17, $this->source); })()), "getProperty", [0 => "transparentHeader"], "method", false, false, false, 17) && (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.', 17, $this->source); })()), "getProperty", [0 => "transparentHeader"], "method", false, false, false, 17) == 1))) {
// line 18
echo " ";
$context["headerClass"] = "transparent-header";
} else {
// line 20
echo " ";
$context["headerClass"] = "";
}
// line 22
echo "
<!DOCTYPE html>
<html class=\"no-js\" lang=\"";
// line 24
echo twig_escape_filter($this->env, 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.', 24, $this->source); })()), "request", [], "any", false, false, false, 24), "locale", [], "any", false, false, false, 24), "html", null, true);
echo "\">
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=yes\">
";
// line 32
echo " ";
echo twig_include($this->env, $context, "layout/head/meta.html.twig");
echo "
";
// line 35
echo " ";
echo twig_include($this->env, $context, "layout/head/language.html.twig");
echo "
";
// line 38
echo " ";
echo twig_include($this->env, $context, "layout/head/structured-data.html.twig");
echo "
";
// line 41
echo " ";
echo twig_include($this->env, $context, "layout/head/favicon.html.twig");
echo "
";
// line 44
echo " ";
echo twig_include($this->env, $context, "layout/head/env-variables.html.twig");
echo "
";
// line 46
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 46, $this->source); })())) {
// line 47
echo " ";
echo $this->env->getFunction('pimcore_head_title')->getCallable()();
echo "
";
// line 48
echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
echo "
";
}
// line 50
echo "
";
// line 52
echo " ";
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 55
echo "
";
// line 57
echo " ";
// line 58
echo "
";
// line 60
echo " ";
// line 61
echo "
</head>
<body class=\"";
// line 63
echo twig_escape_filter($this->env, (isset($context["headerClass"]) || array_key_exists("headerClass", $context) ? $context["headerClass"] : (function () { throw new RuntimeError('Variable "headerClass" does not exist.', 63, $this->source); })()), "html", null, true);
echo "\">
";
// line 66
echo " ";
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 66, $this->source); })())) {
// line 67
echo " ";
echo twig_include($this->env, $context, "layout/components/header.html.twig");
echo "
";
}
// line 69
echo "
";
// line 71
echo " ";
// line 80
echo "
";
// line 82
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 82, $this->source); })())) {
// line 83
echo " ";
$this->displayBlock("content", $context, $blocks);
echo "
";
} else {
// line 85
echo " <main>
";
// line 86
$this->displayBlock("content", $context, $blocks);
echo "
</main>
";
}
// line 89
echo "
";
// line 91
echo " ";
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 91, $this->source); })())) {
// line 92
echo " ";
echo twig_include($this->env, $context, "layout/components/to-the-top.html.twig");
echo "
";
}
// line 94
echo "
";
// line 96
echo " ";
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 96, $this->source); })())) {
// line 97
echo " ";
echo twig_include($this->env, $context, "layout/components/cookies-eu-banner.html.twig");
echo "
";
}
// line 99
echo "
";
// line 101
echo " ";
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 101, $this->source); })())) {
// line 102
echo " <footer>
";
// line 103
echo $this->env->getFunction('pimcore_inc')->getCallable()(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.', 103, $this->source); })()), "getProperty", [0 => "footer"], "method", false, false, false, 103));
echo "
</footer>
";
}
// line 106
echo "
";
// line 108
echo " ";
$this->displayBlock('scripts', $context, $blocks);
// line 111
echo "
</body>
</html>";
$this->deferred->resolve($this, $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function block_head_stylesheets($context, array $blocks = [])
{
$this->deferred->defer($this, 'head_stylesheets');
}
// line 52
public function block_head_stylesheets_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", "head_stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
// line 53
echo " ";
echo $this->env->getFunction('pimcore_head_link')->getCallable()();
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function block_scripts($context, array $blocks = [])
{
$this->deferred->defer($this, 'scripts');
}
// line 108
public function block_scripts_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", "scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
// line 109
echo " ";
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 getTemplateName()
{
return "layout/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 298 => 109, 288 => 108, 269 => 53, 259 => 52, 241 => 111, 238 => 108, 235 => 106, 229 => 103, 226 => 102, 223 => 101, 220 => 99, 214 => 97, 211 => 96, 208 => 94, 202 => 92, 199 => 91, 196 => 89, 190 => 86, 187 => 85, 181 => 83, 178 => 82, 175 => 80, 173 => 71, 170 => 69, 164 => 67, 161 => 66, 156 => 63, 152 => 61, 150 => 60, 147 => 58, 145 => 57, 142 => 55, 139 => 52, 136 => 50, 131 => 48, 126 => 47, 124 => 46, 118 => 44, 112 => 41, 106 => 38, 100 => 35, 94 => 32, 84 => 24, 80 => 22, 76 => 20, 72 => 18, 70 => 17, 67 => 15, 65 => 1, 61 => 13, 59 => 12, 56 => 10, 53 => 5, 51 => 4, 48 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("{% apply spaceless %}
{# css #}
{% do pimcore_head_link().appendStylesheet(asset('/assets/dist/main.css')) %}
{# {% do pimcore_head_link().appendStylesheet(asset('/static/assets/lib/aos.css')) %} #}
{# {% do pimcore_head_link().appendStylesheet(asset('/static/assets/lib/select2.min.css')) %} #}
{# {% do pimcore_head_link().appendStylesheet(asset('/static/assets/dist/plyr.css')) %} #}
{# {% do pimcore_head_link().appendStylesheet(asset('/static/assets/dist/hamburgers.min.css')) %} #}
{# js #}
{% do pimcore_head_script().appendFile(asset('/assets/dist/main.js')) %}
{% endapply %}
{# transparent header #}
{% if document.getProperty('transparentHeader') and document.getProperty('transparentHeader') == 1 %}
{% set headerClass = 'transparent-header' %}
{% else %}
{% set headerClass = '' %}
{% endif %}
<!DOCTYPE html>
<html class=\"no-js\" lang=\"{{ app.request.locale }}\">
<head>
<meta charset=\"utf-8\">
<meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=yes\">
{# meta #}
{{ include('layout/head/meta.html.twig') }}
{# language #}
{{ include('layout/head/language.html.twig') }}
{# structured data #}
{{ include('layout/head/structured-data.html.twig') }}
{# favicon #}
{{ include('layout/head/favicon.html.twig') }}
{# env variables #}
{{ include('layout/head/env-variables.html.twig') }}
{% if not editmode %}
{{ pimcore_head_title() }}
{{ pimcore_head_meta() }}
{% endif %}
{# css #}
{% block head_stylesheets deferred %}
{{ pimcore_head_link() }}
{% endblock %}
{# adobe font #}
{# <link rel=\"stylesheet\" href=\"https://use.typekit.net/xxx.css\"> #}
{# google search console #}
{# <meta name=\"google-site-verification\" content=\"\"> #}
</head>
<body class=\"{{ headerClass }}\">
{# header #}
{% if not editmode %}
{{ include('layout/components/header.html.twig') }}
{% endif %}
{# h1 #}
{# {% if not (blogDetail is defined) %}
{% if document.getProperty('h1') is defined and document.getProperty('h1') %}
<h1 class=\"document-h1\">{{ document.getProperty('h1') }}</h1>
{% elseif document.title %}
<h1 class=\"document-h1\">{{ document.title }}</h1>
{% else %}
<h1 class=\"document-h1\">{{ pimcore_website_config('pageName', null, app.request.locale) }}</h1>
{% endif %}
{% endif %} #}
{# content #}
{% if editmode %}
{{ block('content') }}
{% else %}
<main>
{{ block('content') }}
</main>
{% endif %}
{# to the top #}
{% if not editmode %}
{{ include('layout/components/to-the-top.html.twig') }}
{% endif %}
{# cookie banner #}
{% if not editmode %}
{{ include('layout/components/cookies-eu-banner.html.twig') }}
{% endif %}
{# footer #}
{% if not editmode %}
<footer>
{{ pimcore_inc(document.getProperty('footer')) }}
</footer>
{% endif %}
{# js #}
{% block scripts deferred %}
{{ pimcore_head_script() }}
{% endblock %}
</body>
</html>", "layout/layout.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/layout/layout.html.twig");
}
}