<?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;
/* @Provider/layouts/layout.html.twig */
class __TwigTemplate_713dfe97b54a60b525bfc0bed9d33757 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'toggle' => [$this, 'block_toggle'],
'header' => [$this, 'block_header'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
'footerscripts' => [$this, 'block_footerscripts'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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", "@Provider/layouts/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", "@Provider/layouts/layout.html.twig"));
// line 1
$macros["__internal_parse_0"] = $this->macros["__internal_parse_0"] = $this->loadTemplate("@Provider/macros/logo.html.twig", "@Provider/layouts/layout.html.twig", 1)->unwrap();
// line 2
$macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this->loadTemplate("@Provider/macros/include-svg.html.twig", "@Provider/layouts/layout.html.twig", 2)->unwrap();
// line 3
echo "
";
// line 4
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.', 4, $this->source); })()))) {
// line 5
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
}
// line 7
echo "
";
// line 8
$context["isFrontpage"] = ((array_key_exists("isFrontpage", $context)) ? ((isset($context["isFrontpage"]) || array_key_exists("isFrontpage", $context) ? $context["isFrontpage"] : (function () { throw new RuntimeError('Variable "isFrontpage" does not exist.', 8, $this->source); })())) : (false));
// line 9
$context["showBreadcrumbs"] = ((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.', 9, $this->source); })()), "getProperty", [0 => "show_breadcrumbs"], "method", false, false, true, 9)) ? (true) : (false));
// line 10
echo "
<!doctype html>
<html class=\"no-js\" lang=\"";
// line 12
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.', 12, $this->source); })()), "request", [], "any", false, false, true, 12), "locale", [], "any", false, false, true, 12), 12, $this->source), "html", null, true);
echo "\">
<head>
";
// line 15
echo twig_include($this->env, $context, "@Provider/partials/head.html.twig");
echo "
</head>
<body id=\"page-";
// line 18
echo twig_escape_filter($this->env, $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.', 18, $this->source); })()), "getId", [], "method", false, false, true, 18), 18, $this->source), "html", null, true);
echo "\" class=\"id-";
echo twig_escape_filter($this->env, $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.', 18, $this->source); })()), "getId", [], "method", false, false, true, 18), 18, $this->source), "html", null, true);
if ((isset($context["isFrontpage"]) || array_key_exists("isFrontpage", $context) ? $context["isFrontpage"] : (function () { throw new RuntimeError('Variable "isFrontpage" does not exist.', 18, $this->source); })())) {
echo " frontpage";
} else {
echo " subpage";
}
echo "\" data-id=\"";
echo twig_escape_filter($this->env, $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.', 18, $this->source); })()), "getId", [], "method", false, false, true, 18), 18, $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.', 18, $this->source); })())) {
echo " data-editmode ";
}
echo " itemscope itemtype=\"http://schema.org/WebPage\">
";
// line 19
$this->displayBlock('toggle', $context, $blocks);
// line 22
echo "
";
// line 23
echo twig_include($this->env, $context, "@Provider/partials/misc/schema-org-json.html.twig");
echo "
";
// line 24
echo twig_include($this->env, $context, "@Provider/partials/accessibility-shortcuts.html.twig");
echo "
<div class=\"page-wrap\">
<header class=\"page-header\">
";
// line 28
$this->displayBlock('header', $context, $blocks);
// line 36
echo " </header>
";
// line 38
if ((isset($context["showBreadcrumbs"]) || array_key_exists("showBreadcrumbs", $context) ? $context["showBreadcrumbs"] : (function () { throw new RuntimeError('Variable "showBreadcrumbs" does not exist.', 38, $this->source); })())) {
// line 39
echo " ";
echo twig_include($this->env, $context, "@Provider/partials/breadcrumbs.html.twig");
echo "
";
}
// line 41
echo "
<main class=\"main-content\" id=\"content\">
<div class=\"container\">
";
// line 44
$this->displayBlock('content', $context, $blocks);
// line 45
echo " </div>
</main>
";
// line 48
$this->displayBlock('footer', $context, $blocks);
// line 51
echo " </div>
";
// line 53
$this->displayBlock('footerscripts', $context, $blocks);
// line 55
echo " </body>
</html>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 19
public function block_toggle($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", "toggle"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toggle"));
// line 20
echo " <input type=\"checkbox\" name=\"toggleMobileNav\" id=\"toggleMobileNav\" aria-hidden=\"true\" value=\"1\" />
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 28
public function block_header($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", "header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 29
echo " <div class=\"page-header--top\">
";
// line 30
echo twig_call_macro($macros["__internal_parse_0"], "macro_logo", [], 30, $context, $this->getSourceContext());
echo "
";
// line 31
echo twig_include($this->env, $context, "@Provider/partials/header/main-nav.html.twig");
echo "
";
// line 32
echo twig_include($this->env, $context, "@Provider/partials/header/lang-nav.html.twig");
echo "
</div>
";
// line 34
echo twig_include($this->env, $context, "@Provider/partials/header/media.html.twig");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 44
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"));
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 48
public function block_footer($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", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 49
echo " ";
echo twig_include($this->env, $context, "@Provider/partials/footer.html.twig");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 53
public function block_footerscripts($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", "footerscripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footerscripts"));
// line 54
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Provider/layouts/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 275 => 54, 265 => 53, 252 => 49, 242 => 48, 223 => 44, 211 => 34, 206 => 32, 202 => 31, 198 => 30, 195 => 29, 185 => 28, 174 => 20, 164 => 19, 153 => 55, 151 => 53, 147 => 51, 145 => 48, 140 => 45, 138 => 44, 133 => 41, 127 => 39, 125 => 38, 121 => 36, 119 => 28, 112 => 24, 108 => 23, 105 => 22, 103 => 19, 86 => 18, 80 => 15, 74 => 12, 70 => 10, 68 => 9, 66 => 8, 63 => 7, 59 => 5, 57 => 4, 54 => 3, 52 => 2, 50 => 1,);
}
public function getSourceContext()
{
return new Source("{% from '@Provider/macros/logo.html.twig' import logo %}
{% from '@Provider/macros/include-svg.html.twig' import includeSvg %}
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{% set isFrontpage = (isFrontpage is defined ? isFrontpage : false) %}
{% set showBreadcrumbs = document.getProperty('show_breadcrumbs') ? true : false %}
<!doctype html>
<html class=\"no-js\" lang=\"{{ app.request.locale }}\">
<head>
{{ include('@Provider/partials/head.html.twig') }}
</head>
<body id=\"page-{{ document.getId() }}\" class=\"id-{{ document.getId() }}{% if isFrontpage %} frontpage{% else %} subpage{% endif %}\" data-id=\"{{ document.getId() }}\"{% if editmode %} data-editmode {% endif %} itemscope itemtype=\"http://schema.org/WebPage\">
{% block toggle %}
<input type=\"checkbox\" name=\"toggleMobileNav\" id=\"toggleMobileNav\" aria-hidden=\"true\" value=\"1\" />
{% endblock %}
{{ include('@Provider/partials/misc/schema-org-json.html.twig') }}
{{ include('@Provider/partials/accessibility-shortcuts.html.twig') }}
<div class=\"page-wrap\">
<header class=\"page-header\">
{% block header %}
<div class=\"page-header--top\">
{{ logo() }}
{{ include('@Provider/partials/header/main-nav.html.twig') }}
{{ include('@Provider/partials/header/lang-nav.html.twig') }}
</div>
{{ include('@Provider/partials/header/media.html.twig') }}
{% endblock %}
</header>
{% if showBreadcrumbs %}
{{ include('@Provider/partials/breadcrumbs.html.twig') }}
{% endif %}
<main class=\"main-content\" id=\"content\">
<div class=\"container\">
{% block content %} {% endblock %}
</div>
</main>
{% block footer %}
{{ include('@Provider/partials/footer.html.twig') }}
{% endblock %}
</div>
{% block footerscripts %}
{% endblock %}
</body>
</html>", "@Provider/layouts/layout.html.twig", "/html/pimcore/templates/bundles/ProviderBundle/layouts/layout.html.twig");
}
public function checkSecurity()
{
static $tags = array("from" => 1, "if" => 4, "set" => 5, "block" => 19);
static $filters = array("escape" => 12);
static $functions = array("pimcore_document" => 5, "include" => 15);
try {
$this->sandbox->checkSecurity(
['from', 'if', 'set', 'block'],
['escape'],
['pimcore_document', 'include']
);
} 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;
}
}
}