<?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;
/* layouts/default.html.twig */
class __TwigTemplate_04411fbb5e87b7140bd1af618e7482cb extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'content' => [$this, 'block_content'],
'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", "layouts/default.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/default.html.twig"));
// line 6
echo "
<!DOCTYPE html>
<html lang=\"";
// line 8
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.', 8, $this->source); })()), "request", [], "any", false, false, true, 8), "locale", [], "any", false, false, true, 8), 8, $this->source), "html", null, true);
echo "\">
\t";
// line 9
$this->loadTemplate("includes/head.html.twig", "layouts/default.html.twig", 9)->display($context);
// line 10
echo "\t<body class=\"layout--";
echo (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 10, $this->source); })())) ? ("editmode") : ("livemode"));
echo " ";
echo twig_escape_filter($this->env, ((array_key_exists("layoutClass", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["layoutClass"]) || array_key_exists("layoutClass", $context) ? $context["layoutClass"] : (function () { throw new RuntimeError('Variable "layoutClass" does not exist.', 10, $this->source); })()), 10, $this->source), "")) : ("")), "html", null, true);
echo "\">
\t\t";
// line 12
echo "\t\t";
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.', 12, $this->source); })()))) {
// line 13
echo "\t\t\t";
$context["document"] = Pimcore\Model\Document::getById(1);
// line 14
echo "\t\t";
}
// line 15
echo "
\t\t<main role=\"main\" class=\"wrapper\">
\t\t\t";
// line 17
$this->loadTemplate("includes/header.html.twig", "layouts/default.html.twig", 17)->display($context);
// line 18
echo "
\t\t\t<div class=\"content-container\">
\t\t\t\t";
// line 20
$this->displayBlock('content', $context, $blocks);
// line 23
echo "\t\t\t</div>
\t\t</main>
\t\t";
// line 25
$this->loadTemplate("includes/footer.html.twig", "layouts/default.html.twig", 25)->display($context);
// line 26
echo "\t\t
\t\t";
// line 30
echo "\t\t
\t\t";
// line 32
echo "\t";
$this->displayBlock('headscripts', $context, $blocks);
// line 35
echo "
\t";
// line 36
$this->displayBlock('inlinescripts', $context, $blocks);
// line 39
echo "
\t</body>
</html>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$this->deferred->resolve($this, $context, $blocks);
}
// line 20
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 21
echo "
\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function block_headscripts($context, array $blocks = [])
{
$this->deferred->defer($this, 'headscripts');
}
// line 32
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 33
echo "\t\t";
echo $this->env->getFunction('pimcore_head_script')->getCallable()();
echo "
\t";
$__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 36
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 37
echo "\t\t";
echo $this->env->getFunction('pimcore_inline_script')->getCallable()();
echo "
\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function getTemplateName()
{
return "layouts/default.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 185 => 37, 175 => 36, 156 => 33, 146 => 32, 130 => 21, 120 => 20, 107 => 39, 105 => 36, 102 => 35, 99 => 32, 96 => 30, 93 => 26, 91 => 25, 87 => 23, 85 => 20, 81 => 18, 79 => 17, 75 => 15, 72 => 14, 69 => 13, 66 => 12, 59 => 10, 57 => 9, 53 => 8, 49 => 6,);
}
public function getSourceContext()
{
return new Source("{#
project: Pimcore
User: EBiermann
Year: 2022
#}
<!DOCTYPE html>
<html lang=\"{{ app.request.locale }}\">
\t{% include 'includes/head.html.twig' %}
\t<body class=\"layout--{{ editmode ? 'editmode' : 'livemode' }} {{ layoutClass|default('') }}\">
\t\t{# get root node if there is no document defined (for pages which are routed directly through static route) #}
\t\t{% if not document is defined or not document %}
\t\t\t{% set document = pimcore_document(1) %}
\t\t{% endif %}
\t\t<main role=\"main\" class=\"wrapper\">
\t\t\t{% include 'includes/header.html.twig' %}
\t\t\t<div class=\"content-container\">
\t\t\t\t{% block content %}
\t\t\t\t{% endblock %}
\t\t\t</div>
\t\t</main>
\t\t{% include 'includes/footer.html.twig' %}
\t\t
\t\t{#
\t\t<div id=\"TA_excellent251\" class=\"TA_excellent\"><ul id=\"m4YrSu9r\" class=\"TA_links b01SLghdbM\"><li id=\"Yz9kl2IDPl\" class=\"RrRJyCc\"><a target=\"_blank\" href=\"https://www.tripadvisor.de/Attraction_Review-g187310-d24800300-Reviews-Nurnberger_Bratwurstmuseum-Nuremberg_Middle_Franconia_Franconia_Bavaria.html\"><img src=\"https://static.tacdn.com/img2/brand_refresh/Tripadvisor_lockup_horizontal_secondary_registered.svg\" alt=\"TripAdvisor\" class=\"widEXCIMG\" id=\"CDSWIDEXCLOGO\"/></a></li></ul></div><script async src=\"https://www.jscache.com/wejs?wtype=excellent&uniq=251&locationId=24800300&lang=de&display_version=2\" data-loadtrk onload=\"this.loadtrk=true\"></script>
\t\t#}
\t\t
\t\t{# output scripts added before #}
\t{% block headscripts deferred %}
\t\t{{ pimcore_head_script() }}
\t{% endblock %}
\t{% block inlinescripts deferred %}
\t\t{{ pimcore_inline_script() }}
\t{% endblock %}
\t</body>
</html>", "layouts/default.html.twig", "/var/www/snr/staging.nuernberger-bratwuerste.de/templates/layouts/default.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 9, "if" => 12, "set" => 13, "block" => 20);
static $filters = array("escape" => 8, "default" => 10);
static $functions = array("pimcore_document" => 13, "pimcore_head_script" => 33, "pimcore_inline_script" => 37);
try {
$this->sandbox->checkSecurity(
['include', 'if', 'set', 'block'],
['escape', 'default'],
['pimcore_document', '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;
}