<?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_ff393c30c7c11a3943985c8888231420 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'layout_head_meta' => [$this, 'block_layout_head_meta'],
'head_stylesheets' => [$this, 'block_head_stylesheets'],
'headscripts' => [$this, 'block_headscripts'],
'inlinescripts' => [$this, 'block_inlinescripts'],
];
$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/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_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, false, 2), "locale", [], "any", false, false, false, 2), "html", null, true);
echo "\">
<head>
<!-- Required meta tags -->
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
";
// line 8
ob_start();
// line 9
echo " ";
// line 10
echo " ";
// line 11
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => "https://fonts.googleapis.com/css?family=Hind+Guntur:300,400,500,600,700&display=swap"], "method", false, false, false, 11);
// line 12
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css", 1 => null, 2 => null, 3 => ["integrity" => "sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T", "crossorigin" => "anonymous"]], "method", false, false, false, 12);
// line 13
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => "https://use.fontawesome.com/releases/v5.9.0/css/all.css"], "method", false, false, false, 13);
// line 14
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/lib/magnific/magnific.css"), 1 => "screen"], "method", false, false, false, 14);
// line 15
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/lib/autocompletejs/css/autoComplete.css"), 1 => "screen"], "method", false, false, false, 15);
// line 16
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => "https://use.fontawesome.com/releases/v5.7.0/css/all.css", 1 => null, 2 => null, 3 => ["integrity" => "sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ", "crossorigin" => "anonymous"]], "method", false, false, false, 16);
// line 17
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/css/global.css")], "method", false, false, false, 17);
// line 18
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 18, $this->source); })())) {
// line 19
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/css/editmode.css")], "method", false, false, false, 19);
// line 20
echo " ";
}
// line 21
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => "https://code.jquery.com/jquery-3.3.1.slim.min.js", 1 => null, 2 => null, 3 => ["integrity" => "sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo", "crossorigin" => "anonymous"]], "method", false, false, false, 21);
// line 22
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js", 1 => null, 2 => null, 3 => ["integrity" => "sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1", "crossorigin" => "anonymous"]], "method", false, false, false, 22);
// line 23
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js", 1 => null, 2 => null, 3 => ["integrity" => "sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM", "crossorigin" => "anonymous"]], "method", false, false, false, 23);
// line 24
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/lib/magnific/magnific.js")], "method", false, false, false, 24);
// line 25
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/lib/autocompletejs/js/autoComplete.min.js")], "method", false, false, false, 25);
// line 26
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/js/search-autocomplete.js")], "method", false, false, false, 26);
// line 27
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/js/main.js")], "method", false, false, false, 27);
// line 28
echo " ";
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 28, $this->source); })())) {
// line 29
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/js/frontend.js")], "method", false, false, false, 29);
// line 30
echo " ";
}
// line 31
echo "
";
// line 32
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.', 32, $this->source); })()))) {
// line 33
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
// line 34
echo " ";
}
// line 35
echo "
";
// line 36
if ($this->env->getTest('instanceof')->getCallable()((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 36, $this->source); })()), "\\Pimcore\\Model\\Document\\Link")) {
// line 37
echo " ";
// line 38
echo " ";
$context["document"] = 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.', 38, $this->source); })()), "getObject", [], "method", false, false, false, 38);
// line 39
echo " ";
}
// line 40
echo "
";
// line 41
if ( !twig_test_empty(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.', 41, $this->source); })()), "getTitle", [], "method", false, false, false, 41))) {
// line 42
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [0 => 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.', 42, $this->source); })()), "getTitle", [], "method", false, false, false, 42)], "method", false, false, false, 42);
// line 43
echo " ";
}
// line 44
echo "
";
// line 45
if ( !twig_test_empty(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.', 45, $this->source); })()), "getDescription", [], "method", false, false, false, 45))) {
// line 46
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [0 => 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.', 46, $this->source); })()), "getDescription", [], "method", false, false, false, 46)], "method", false, false, false, 46);
// line 47
echo " ";
}
// line 48
echo "
";
// line 49
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "append", [0 => "Pimcore Demo"], "method", false, false, false, 49);
// line 50
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "setSeparator", [0 => " : "], "method", false, false, false, 50);
// line 51
echo " ";
$context["isPortal"] = (array_key_exists("isPortal", $context) && (isset($context["isPortal"]) || array_key_exists("isPortal", $context) ? $context["isPortal"] : (function () { throw new RuntimeError('Variable "isPortal" does not exist.', 51, $this->source); })()));
// line 52
echo " ";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 8
echo twig_spaceless($___internal_parse_0_);
// line 53
echo "
";
// line 55
echo " ";
$this->displayBlock('layout_head_meta', $context, $blocks);
// line 64
echo "
";
// line 65
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 68
echo "
</head>
<body>
";
// line 72
echo " ";
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.', 72, $this->source); })()))) {
// line 73
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
// line 74
echo " ";
}
// line 75
echo "
<nav class=\"navbar navbar-expand-md navbar-dark sticky-top py-1 site-header ";
// line 76
echo twig_escape_filter($this->env, 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.', 76, $this->source); })()), "getProperty", [0 => "header_color"], "method", false, false, false, 76), "html", null, true);
echo "\">
";
// line 79
echo " ";
$context["navStartNode"] = 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.', 79, $this->source); })()), "getProperty", [0 => "navigation_root"], "method", false, false, false, 79);
// line 80
echo "
";
// line 81
if ( !$this->env->getTest('instanceof')->getCallable()((isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 81, $this->source); })()), "\\Pimcore\\Model\\Document")) {
// line 82
echo " ";
$context["navStartNode"] = Pimcore\Model\Document::getById(1);
// line 83
echo " ";
}
// line 84
echo "
";
// line 85
$context["mainNavigation"] = $this->extensions['App\Twig\Extension\NavigationExtension']->getDataLinks((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 85, $this->source); })()), (isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 85, $this->source); })()));
// line 86
echo " <div class=\"container\">
";
// line 88
echo " <a class=\"py-2 mb-2\" href=\"";
echo twig_escape_filter($this->env, (isset($context["navStartNode"]) || array_key_exists("navStartNode", $context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.', 88, $this->source); })()), "html", null, true);
echo "\">
<img id=\"logo\" src=\"";
// line 89
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/images/logo.svg"), "html", null, true);
echo "\" alt=\"Classic Cars - Pimcore Demo\">
</a>
";
// line 92
echo " <button class=\"navbar-toggler collapsed\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarCollapse\" aria-controls=\"navbarCollapse\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
<span class=\"navbar-toggler-icon\"></span>
</button>
";
// line 97
echo " <div class=\"navbar-collapse collapse\" id=\"navbarCollapse\">
";
// line 99
echo "
";
// line 101
echo $this->env->getFunction('pimcore_render_nav')->getCallable()( // line 102
(isset($context["mainNavigation"]) || array_key_exists("mainNavigation", $context) ? $context["mainNavigation"] : (function () { throw new RuntimeError('Variable "mainNavigation" does not exist.', 102, $this->source); })()), "menu", "renderMenu", ["maxDepth" => 2, "ulClass" => [0 => "navbar-nav menu-links ml-4 m-auto", 1 => "dropdown dropdown-menu", "default" => "dropdown-menu dropdown-submenu"]]);
// line 110
echo "
";
// line 114
echo " ";
echo twig_include($this->env, $context, "includes/navigation-icons.html.twig");
echo "
</div>
</div>
</nav>
<header></header>
<main role=\"main\">
";
// line 121
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 121, $this->source); })()), "flashes", [], "any", false, false, false, 121));
foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
// line 122
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 123
echo " <div class=\"alert alert-";
echo twig_escape_filter($this->env, $context["label"], "html", null, true);
echo " alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
";
// line 125
echo twig_escape_filter($this->env, $context["message"], "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 128
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 129
echo "
";
// line 131
if ((isset($context["isPortal"]) || array_key_exists("isPortal", $context) ? $context["isPortal"] : (function () { throw new RuntimeError('Variable "isPortal" does not exist.', 131, $this->source); })())) {
// line 132
echo " ";
$this->displayBlock("content", $context, $blocks);
echo "
";
} else {
// line 134
echo " <div id=\"content\" class=\"container\">
<div class=\"row\">
";
// line 136
$context["leftNavShow"] = 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.', 136, $this->source); })()), "getProperty", [0 => "left_nav_show"], "method", false, false, false, 136);
// line 137
echo " ";
$context["showBreadcrumbs"] = ((array_key_exists("hideBreadcrumbs", $context)) ? ( !(isset($context["hideBreadcrumbs"]) || array_key_exists("hideBreadcrumbs", $context) ? $context["hideBreadcrumbs"] : (function () { throw new RuntimeError('Variable "hideBreadcrumbs" does not exist.', 137, $this->source); })())) : (true));
// line 138
echo " ";
$context["mainColClass"] = (((isset($context["leftNavShow"]) || array_key_exists("leftNavShow", $context) ? $context["leftNavShow"] : (function () { throw new RuntimeError('Variable "leftNavShow" does not exist.', 138, $this->source); })())) ? ("col-md-9 pt-3 pt-md-5 order-last") : ("col-md-12 pt-3 pt-md-5"));
// line 139
echo "
<div class=\"";
// line 140
echo twig_escape_filter($this->env, (isset($context["mainColClass"]) || array_key_exists("mainColClass", $context) ? $context["mainColClass"] : (function () { throw new RuntimeError('Variable "mainColClass" does not exist.', 140, $this->source); })()), "html", null, true);
echo "\">
";
// line 141
if ((isset($context["showBreadcrumbs"]) || array_key_exists("showBreadcrumbs", $context) ? $context["showBreadcrumbs"] : (function () { throw new RuntimeError('Variable "showBreadcrumbs" does not exist.', 141, $this->source); })())) {
// line 142
echo " ";
$context["mainNavStartNode"] = 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.', 142, $this->source); })()), "getProperty", [0 => "navigation_root"], "method", false, false, false, 142);
// line 143
echo " ";
if (twig_test_empty((isset($context["mainNavStartNode"]) || array_key_exists("mainNavStartNode", $context) ? $context["mainNavStartNode"] : (function () { throw new RuntimeError('Variable "mainNavStartNode" does not exist.', 143, $this->source); })()))) {
// line 144
echo " ";
$context["mainNavStartNode"] = Pimcore\Model\Document::getById(1);
// line 145
echo " ";
}
// line 146
echo "
";
// line 147
$context["breadbrumbs"] = $this->env->getFunction('pimcore_build_nav')->getCallable()(["active" => // line 148
(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 148, $this->source); })()), "root" => // line 149
(isset($context["mainNavStartNode"]) || array_key_exists("mainNavStartNode", $context) ? $context["mainNavStartNode"] : (function () { throw new RuntimeError('Variable "mainNavStartNode" does not exist.', 149, $this->source); })())]);
// line 151
echo " ";
$this->extensions['App\Twig\Extension\NavigationExtension']->enrichBreadcrumbs((isset($context["breadbrumbs"]) || array_key_exists("breadbrumbs", $context) ? $context["breadbrumbs"] : (function () { throw new RuntimeError('Variable "breadbrumbs" does not exist.', 151, $this->source); })()));
// line 152
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_nav_renderer')->getCallable()("breadcrumbs"), "setMinDepth", [0 => null], "method", false, false, false, 152);
// line 153
echo "
<div class=\"breadcrumb-header\">
<a href=\"/\">";
// line 155
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Home"), "html", null, true);
echo "</a> >
";
// line 156
echo $this->env->getFunction('pimcore_render_nav')->getCallable()((isset($context["breadbrumbs"]) || array_key_exists("breadbrumbs", $context) ? $context["breadbrumbs"] : (function () { throw new RuntimeError('Variable "breadbrumbs" does not exist.', 156, $this->source); })()), "breadcrumbs");
echo "
</div>
";
}
// line 159
echo " ";
$this->displayBlock("content", $context, $blocks);
echo "
</div>
";
// line 162
if ((isset($context["leftNavShow"]) || array_key_exists("leftNavShow", $context) ? $context["leftNavShow"] : (function () { throw new RuntimeError('Variable "leftNavShow" does not exist.', 162, $this->source); })())) {
// line 163
echo " <div class=\"col-md-3 pt-3 pt-md-5 order-first sidebar\">
<div class=\"sticky\">
<div class=\"bs-sidebar hidden-print affix-top\" role=\"complementary\">
";
// line 166
$context["leftStartNode"] = 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.', 166, $this->source); })()), "getProperty", [0 => "left_nav_start_node"], "method", false, false, false, 166);
// line 167
echo " ";
if (twig_test_empty((isset($context["leftStartNode"]) || array_key_exists("leftStartNode", $context) ? $context["leftStartNode"] : (function () { throw new RuntimeError('Variable "leftStartNode" does not exist.', 167, $this->source); })()))) {
// line 168
echo " ";
$context["leftStartNode"] = (isset($context["mainNavStartNode"]) || array_key_exists("mainNavStartNode", $context) ? $context["mainNavStartNode"] : (function () { throw new RuntimeError('Variable "mainNavStartNode" does not exist.', 168, $this->source); })());
// line 169
echo " ";
}
// line 170
echo "
";
// line 171
$context["leftNav"] = $this->env->getFunction('pimcore_build_nav')->getCallable()(["active" => // line 172
(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 172, $this->source); })()), "root" => // line 173
(isset($context["leftStartNode"]) || array_key_exists("leftStartNode", $context) ? $context["leftStartNode"] : (function () { throw new RuntimeError('Variable "leftStartNode" does not exist.', 173, $this->source); })())]);
// line 175
echo "
<h5>";
// line 176
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["leftStartNode"]) || array_key_exists("leftStartNode", $context) ? $context["leftStartNode"] : (function () { throw new RuntimeError('Variable "leftStartNode" does not exist.', 176, $this->source); })()), "getProperty", [0 => "navigation_name"], "method", false, false, false, 176), "html", null, true);
echo "</h5>
";
// line 178
echo $this->env->getFunction('pimcore_render_nav')->getCallable()((isset($context["leftNav"]) || array_key_exists("leftNav", $context) ? $context["leftNav"] : (function () { throw new RuntimeError('Variable "leftNav" does not exist.', 178, $this->source); })()), "menu", "renderMenu", ["ulClass" => "nav bs-sidenav", "expandSiblingNodesOfActiveBranch" => true]);
// line 181
echo "
</div>
";
// line 183
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.', 183, $this->source); })()), "getProperty", [0 => "sidebar"], "method", false, false, false, 183));
echo "
</div>
</div>
";
}
// line 187
echo " </div>
</div>
";
}
// line 190
echo " <a id=\"back-to-top\" href=\"#\" class=\"btn btn-primary btn-lg back-to-top\" role=\"button\" title=\"Click to return on the top\" data-toggle=\"tooltip\" data-placement=\"left\">
<span class=\"fa fa-arrow-up\"></span>
</a>
</main>
";
// line 197
echo " ";
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.', 197, $this->source); })()), "getProperty", [0 => "footer"], "method", false, false, false, 197));
echo "
";
// line 200
echo " ";
$this->displayBlock('headscripts', $context, $blocks);
// line 203
echo "
";
// line 205
$this->displayBlock('inlinescripts', $context, $blocks);
// line 208
echo " </body>
</html>";
$this->deferred->resolve($this, $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function block_layout_head_meta($context, array $blocks = [])
{
$this->deferred->defer($this, 'layout_head_meta');
}
// line 55
public function block_layout_head_meta_deferred($context, array $blocks = [])
{
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta"));
// line 56
echo " ";
echo $this->env->getFunction('pimcore_head_title')->getCallable()();
echo "
";
// line 57
echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
echo "
";
// line 59
if (twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_placeholder')->getCallable()("canonical"), "count", [], "method", false, false, false, 59)) {
// line 60
echo " <link rel=\"canonical\" href=\"";
echo $this->env->getFunction('pimcore_placeholder')->getCallable()("canonical");
echo "\"/>
";
}
// line 62
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function block_head_stylesheets($context, array $blocks = [])
{
$this->deferred->defer($this, 'head_stylesheets');
}
// line 65
public function block_head_stylesheets_deferred($context, array $blocks = [])
{
$__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 66
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_headscripts($context, array $blocks = [])
{
$this->deferred->defer($this, 'headscripts');
}
// line 200
public function block_headscripts_deferred($context, array $blocks = [])
{
$__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 201
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 block_inlinescripts($context, array $blocks = [])
{
$this->deferred->defer($this, 'inlinescripts');
}
// line 205
public function block_inlinescripts_deferred($context, array $blocks = [])
{
$__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 206
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 "layouts/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 594 => 206, 585 => 205, 566 => 201, 557 => 200, 538 => 66, 529 => 65, 512 => 62, 506 => 60, 504 => 59, 499 => 57, 494 => 56, 485 => 55, 468 => 208, 466 => 205, 462 => 203, 459 => 200, 453 => 197, 445 => 190, 440 => 187, 433 => 183, 429 => 181, 427 => 178, 422 => 176, 419 => 175, 417 => 173, 416 => 172, 415 => 171, 412 => 170, 409 => 169, 406 => 168, 403 => 167, 401 => 166, 396 => 163, 394 => 162, 387 => 159, 381 => 156, 377 => 155, 373 => 153, 370 => 152, 367 => 151, 365 => 149, 364 => 148, 363 => 147, 360 => 146, 357 => 145, 354 => 144, 351 => 143, 348 => 142, 346 => 141, 342 => 140, 339 => 139, 336 => 138, 333 => 137, 331 => 136, 327 => 134, 321 => 132, 319 => 131, 315 => 129, 309 => 128, 300 => 125, 294 => 123, 289 => 122, 285 => 121, 274 => 114, 269 => 110, 267 => 102, 266 => 101, 262 => 99, 259 => 97, 253 => 92, 248 => 89, 243 => 88, 240 => 86, 238 => 85, 235 => 84, 232 => 83, 229 => 82, 227 => 81, 224 => 80, 221 => 79, 216 => 76, 213 => 75, 210 => 74, 207 => 73, 204 => 72, 199 => 68, 197 => 65, 194 => 64, 191 => 55, 188 => 53, 186 => 8, 183 => 52, 180 => 51, 177 => 50, 175 => 49, 172 => 48, 169 => 47, 166 => 46, 164 => 45, 161 => 44, 158 => 43, 155 => 42, 153 => 41, 150 => 40, 147 => 39, 144 => 38, 142 => 37, 140 => 36, 137 => 35, 134 => 34, 131 => 33, 129 => 32, 126 => 31, 123 => 30, 120 => 29, 117 => 28, 114 => 27, 111 => 26, 108 => 25, 105 => 24, 102 => 23, 99 => 22, 96 => 21, 93 => 20, 90 => 19, 87 => 18, 84 => 17, 81 => 16, 78 => 15, 75 => 14, 72 => 13, 69 => 12, 66 => 11, 64 => 10, 62 => 9, 60 => 8, 51 => 2, 48 => 1,);
}
public function getSourceContext()
{
return new Source("<!doctype html>
<html lang=\"{{ app.request.locale }}\">
<head>
<!-- Required meta tags -->
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
{% apply spaceless %}
{# add global stylesheets and scripts outside of any blocsk to add them to the helpers before any others assets are added #}
{# we use the view helper to have cache buster functionality #}
{% do pimcore_head_link().appendStylesheet('https://fonts.googleapis.com/css?family=Hind+Guntur:300,400,500,600,700&display=swap') %}
{% do pimcore_head_link().appendStylesheet('https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css',null,null,{integrity:\"sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\",crossorigin:\"anonymous\"}) %}
{% do pimcore_head_link().appendStylesheet('https://use.fontawesome.com/releases/v5.9.0/css/all.css') %}
{% do pimcore_head_link().appendStylesheet(asset('static/lib/magnific/magnific.css'), 'screen') %}
{% do pimcore_head_link().appendStylesheet(asset('static/lib/autocompletejs/css/autoComplete.css'), 'screen') %}
{% do pimcore_head_link().appendStylesheet('https://use.fontawesome.com/releases/v5.7.0/css/all.css',null,null,{integrity:'sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ',crossorigin:'anonymous'}) %}
{% do pimcore_head_link().appendStylesheet(asset('static/css/global.css')) %}
{% if editmode %}
{% do pimcore_head_link().appendStylesheet(asset('static/css/editmode.css')) %}
{% endif %}
{% do pimcore_head_script().appendFile('https://code.jquery.com/jquery-3.3.1.slim.min.js',null,null,{ integrity:\"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo\",crossorigin:\"anonymous\"}) %}
{% do pimcore_head_script().appendFile('https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js',null,null,{ integrity:\"sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1\",crossorigin:\"anonymous\"}) %}
{% do pimcore_head_script().appendFile('https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js',null,null,{ integrity:\"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM\",crossorigin:\"anonymous\"}) %}
{% do pimcore_head_script().appendFile(asset('static/lib/magnific/magnific.js')) %}
{% do pimcore_head_script().appendFile(asset('static/lib/autocompletejs/js/autoComplete.min.js')) %}
{% do pimcore_head_script().appendFile(asset('static/js/search-autocomplete.js')) %}
{% do pimcore_head_script().appendFile(asset('static/js/main.js')) %}
{% if not editmode %}
{% do pimcore_head_script().appendFile(asset('static/js/frontend.js')) %}
{% endif %}
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{% if document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Link') %}
{# @var document \\Pimcore\\Model\\Document\\Link #}
{% set document = document.getObject() %}
{% endif %}
{% if document.getTitle() is not empty %}
{% do pimcore_head_title().set(document.getTitle()) %}
{% endif %}
{% if document.getDescription() is not empty %}
{% do pimcore_head_meta().setDescription(document.getDescription()) %}
{% endif %}
{% do pimcore_head_title().append('Pimcore Demo') %}
{% do pimcore_head_title().setSeparator(' : ') %}
{% set isPortal = ((isPortal is defined) and isPortal) %}
{% endapply %}
{# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
{% block layout_head_meta deferred %}
{{ pimcore_head_title() }}
{{ pimcore_head_meta() }}
{% if pimcore_placeholder('canonical').count() %}
<link rel=\"canonical\" href=\"{{ pimcore_placeholder('canonical') }}\"/>
{% endif %}
{% endblock %}
{% block head_stylesheets deferred %}
{{ pimcore_head_link() }}
{% endblock %}
</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 %}
<nav class=\"navbar navbar-expand-md navbar-dark sticky-top py-1 site-header {{ document.getProperty('header_color') }}\">
{# get the document which should be used to start in navigation | default home #}
{% set navStartNode = document.getProperty('navigation_root') %}
{% if not navStartNode is instanceof('\\\\Pimcore\\\\Model\\\\Document') %}
{% set navStartNode = pimcore_document(1) %}
{% endif %}
{% set mainNavigation = app_navigation_data_links(document, navStartNode) %}
<div class=\"container\">
{#Logo Image#}
<a class=\"py-2 mb-2\" href=\"{{ navStartNode }}\">
<img id=\"logo\" src=\"{{ asset('/static/images/logo.svg') }}\" alt=\"Classic Cars - Pimcore Demo\">
</a>
{#responsive burger menu icon#}
<button class=\"navbar-toggler collapsed\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarCollapse\" aria-controls=\"navbarCollapse\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">
<span class=\"navbar-toggler-icon\"></span>
</button>
{#main header#}
<div class=\"navbar-collapse collapse\" id=\"navbarCollapse\">
{#header - generate pimcore navigation #}
{{
pimcore_render_nav(mainNavigation, 'menu', 'renderMenu', {
maxDepth: 2,
ulClass: {
0: 'navbar-nav menu-links ml-4 m-auto',
1: 'dropdown dropdown-menu',
'default': 'dropdown-menu dropdown-submenu'
}
})
}}
{#header - navigation icons#}
{{ include('includes/navigation-icons.html.twig') }}
</div>
</div>
</nav>
<header></header>
<main role=\"main\">
{% for label, messages in app.flashes %}
{% for message in messages %}
<div class=\"alert alert-{{ label }} alert-dismissable\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">×</button>
{{ message }}
</div>
{% endfor %}
{% endfor %}
{% if isPortal %}
{{ block('content') }}
{% else %}
<div id=\"content\" class=\"container\">
<div class=\"row\">
{% set leftNavShow = document.getProperty('left_nav_show') %}
{% set showBreadcrumbs = (hideBreadcrumbs is defined) ? not hideBreadcrumbs : true %}
{% set mainColClass = leftNavShow ? 'col-md-9 pt-3 pt-md-5 order-last' : 'col-md-12 pt-3 pt-md-5' %}
<div class=\"{{ mainColClass }}\">
{% if showBreadcrumbs %}
{% set mainNavStartNode = document.getProperty('navigation_root') %}
{% if mainNavStartNode is empty %}
{% set mainNavStartNode = pimcore_document(1) %}
{% endif %}
{% set breadbrumbs = pimcore_build_nav({
active: document,
root: mainNavStartNode
}) %}
{% do app_navigation_enrich_breadcrumbs(breadbrumbs) %}
{% do pimcore_nav_renderer('breadcrumbs').setMinDepth(null) %}
<div class=\"breadcrumb-header\">
<a href=\"/\">{{ \"Home\"|trans }}</a> >
{{ pimcore_render_nav(breadbrumbs, 'breadcrumbs') }}
</div>
{% endif %}
{{ block('content') }}
</div>
{% if leftNavShow %}
<div class=\"col-md-3 pt-3 pt-md-5 order-first sidebar\">
<div class=\"sticky\">
<div class=\"bs-sidebar hidden-print affix-top\" role=\"complementary\">
{% set leftStartNode = document.getProperty('left_nav_start_node') %}
{% if leftStartNode is empty %}
{% set leftStartNode = mainNavStartNode %}
{% endif %}
{% set leftNav = pimcore_build_nav({
active: document,
root: leftStartNode
}) %}
<h5>{{ leftStartNode.getProperty('navigation_name') }}</h5>
{{ pimcore_render_nav(leftNav, 'menu', 'renderMenu', {
ulClass: 'nav bs-sidenav',
expandSiblingNodesOfActiveBranch: true,
}) }}
</div>
{{ pimcore_inc(document.getProperty('sidebar')) }}
</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
<a id=\"back-to-top\" href=\"#\" class=\"btn btn-primary btn-lg back-to-top\" role=\"button\" title=\"Click to return on the top\" data-toggle=\"tooltip\" data-placement=\"left\">
<span class=\"fa fa-arrow-up\"></span>
</a>
</main>
{# include a document-snippet - in this case the footer document #}
{{ pimcore_inc(document.getProperty('footer')) }}
{# output scripts added before #}
{% block headscripts deferred %}
{{ pimcore_head_script() }}
{% endblock %}
{% block inlinescripts deferred %}
{{ pimcore_inline_script() }}
{% endblock %}
</body>
</html>", "layouts/layout.html.twig", "/www/htdocs/w0189996/pimcore-demo/templates/layouts/layout.html.twig");
}
}