<?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/layout.html.twig */
class __TwigTemplate_147ef7da4d9a881950ef94498bd234d1 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'],
];
$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", "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", "layouts/layout.html.twig"));
// line 1
echo "<!doctype html>
<html lang=\"";
// line 2
echo twig_escape_filter($this->env, twig_replace_filter($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 "\">
<head>
";
// line 4
$this->loadTemplate("layouts/layout/html-head.html.twig", "layouts/layout.html.twig", 4)->display($context);
// line 5
echo "</head>
<body>
";
// line 8
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.', 8, $this->source); })()))) {
// line 9
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
}
// line 11
echo "
";
// line 12
$this->loadTemplate("layouts/navigation/navbar.html.twig", "layouts/layout.html.twig", 12)->display($context);
// line 13
echo "
";
// line 14
if (((twig_first($this->env, $this->extensions['App\Twig\Extension\WebsiteExtension']->loadJsForAction()) == "content") && (twig_last($this->env, $this->extensions['App\Twig\Extension\WebsiteExtension']->loadJsForAction()) == "homepage"))) {
// line 15
echo " ";
$this->loadTemplate("layouts/layout/slideshow/home-slideshow.html.twig", "layouts/layout.html.twig", 15)->display($context);
} else {
// line 17
echo " ";
$this->loadTemplate("layouts/layout/slideshow/fluid.html.twig", "layouts/layout.html.twig", 17)->display($context);
}
// line 19
echo "
";
// line 23
echo "
<main>
";
// line 25
$this->loadTemplate("layouts/layout/flash-messages.html.twig", "layouts/layout.html.twig", 25)->display($context);
// line 27
echo "
";
// line 28
$this->displayBlock('content', $context, $blocks);
// line 30
echo "</main>
";
// line 32
$this->loadTemplate("layouts/layout/footer.html.twig", "layouts/layout.html.twig", 32)->display($context);
// line 33
echo "
";
// line 34
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 34, $this->source); })())) {
// line 35
echo " ";
// line 36
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("DataprivacyBundle\\Controller\\DefaultController::defaultAction", []));
echo "
";
}
// line 38
echo "</body>
</html>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 28
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 29
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "layouts/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 140 => 29, 130 => 28, 119 => 38, 113 => 36, 111 => 35, 109 => 34, 106 => 33, 104 => 32, 100 => 30, 98 => 28, 95 => 27, 93 => 25, 89 => 23, 84 => 19, 80 => 17, 76 => 15, 74 => 14, 71 => 13, 69 => 12, 66 => 11, 62 => 9, 60 => 8, 56 => 5, 54 => 4, 49 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("<!doctype html>
<html lang=\"{{ app.request.locale|replace({ '_': '-' }) }}\">
<head>
{% include 'layouts/layout/html-head.html.twig' %}
</head>
<body>
{# 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 %}
{% include 'layouts/navigation/navbar.html.twig' %}
{% if loadJsForAction()|first == 'content' and loadJsForAction()|last == 'homepage' %}
{% include 'layouts/layout/slideshow/home-slideshow.html.twig' %}
{% else %}
{% include 'layouts/layout/slideshow/fluid.html.twig' %}
{% endif %}
{#{% include 'layouts/layout/slideshow/fluid-video.html.twig' %}#}
<main>
{% include 'layouts/layout/flash-messages.html.twig' %}
{# {% include 'layouts/layout/breadcrumbs.html.twig' %}#}
{% block content %}
{% endblock %}
</main>
{% include 'layouts/layout/footer.html.twig' %}
{% if not editmode %}
{## Init Cookiebar #}
{{ render(controller('DataprivacyBundle\\\\Controller\\\\DefaultController::defaultAction', {} )) }}
{% endif %}
</body>
</html>", "layouts/layout.html.twig", "/var/www/clients/client2/web42/web/pc/templates/layouts/layout.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 4, "if" => 8, "set" => 9, "block" => 28);
static $filters = array("escape" => 2, "replace" => 2, "first" => 14, "last" => 14);
static $functions = array("pimcore_document" => 9, "loadJsForAction" => 14, "render" => 36, "controller" => 36);
try {
$this->sandbox->checkSecurity(
['include', 'if', 'set', 'block'],
['escape', 'replace', 'first', 'last'],
['pimcore_document', 'loadJsForAction', 'render', 'controller']
);
} 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;
}
}
}