<?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_9a2ecec66fc935c6af392094fc9df678 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'],
'head_scripts' => [$this, 'block_head_scripts'],
'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/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
$context["currentLanguage"] = 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.', 1, $this->source); })()), "request", [], "any", false, false, true, 1), "locale", [], "any", false, false, true, 1);
// line 2
$context["schemeAndHttpHost"] = 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), "getSchemeAndHttpHost", [], "method", false, false, true, 2);
// line 3
echo "
<!doctype html>
<html lang=\"";
// line 5
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["currentLanguage"]) || array_key_exists("currentLanguage", $context) ? $context["currentLanguage"] : (function () { throw new RuntimeError('Variable "currentLanguage" does not exist.', 5, $this->source); })()), 5, $this->source), "html", null, true);
echo "\">
\t<head>
\t\t<!-- Required meta tags -->
\t\t<meta charset=\"utf-8\">
\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
";
// line 14
echo " ";
// line 15
echo " ";
$context["baseUrl"] = (($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.', 15, $this->source); })()), "request", [], "any", false, false, true, 15), "getSchemeAndHttpHost", [], "method", false, false, true, 15), 15, $this->source) . $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.', 15, $this->source); })()), "request", [], "any", false, false, true, 15), "getBaseUrl", [], "method", false, false, true, 15), 15, $this->source)) . $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.', 15, $this->source); })()), "request", [], "any", false, false, true, 15), "getPathInfo", [], "method", false, false, true, 15), 15, $this->source));
// line 16
echo "
";
// line 18
echo " <link rel=\"canonical\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["baseUrl"]) || array_key_exists("baseUrl", $context) ? $context["baseUrl"] : (function () { throw new RuntimeError('Variable "baseUrl" does not exist.', 18, $this->source); })()), 18, $this->source), "html", null, true);
echo "\" />
";
// line 21
ob_start();
// line 22
echo "
\t\t";
// line 25
echo "
\t\t";
// line 26
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap"], "method", false, false, true, 26);
// line 27
echo "\t\t";
// line 28
echo " ";
// line 29
echo " ";
// line 30
echo " ";
// line 31
echo "
\t\t";
// line 32
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", 1 => "print", 2 => null, 3 => ["onload" => "this.media='all'"]], "method", false, false, true, 32);
// line 33
echo " ";
// line 34
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => "https://cdnjs.cloudflare.com/ajax/libs/Swiper/9.3.2/swiper-bundle.css"], "method", false, false, true, 34);
echo "\t\t
";
// line 36
echo "\t\t";
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/css/style.css")], "method", false, false, true, 36);
// line 37
echo "
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js\" integrity=\"sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4\" crossorigin=\"anonymous\"></script>
\t\t";
// line 40
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.', 40, $this->source); })()))) {
// line 41
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
// line 42
echo " ";
}
// line 43
echo "
";
// line 44
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.', 44, $this->source); })()), "\\Pimcore\\Model\\Document\\Link")) {
// line 45
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.', 45, $this->source); })()), "getObject", [], "method", false, false, true, 45);
// line 46
echo " ";
}
// line 47
echo "
";
// line 48
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.', 48, $this->source); })()), "\\Pimcore\\Model\\Document\\Page")) {
// line 49
echo " ";
// line 50
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.', 50, $this->source); })()), "getTitle", [], "method", false, false, true, 50)], "method", false, false, true, 50);
// line 51
echo " ";
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.', 51, $this->source); })()), "getDescription", [], "method", false, false, true, 51))) {
// line 52
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.', 52, $this->source); })()), "getDescription", [], "method", false, false, true, 52)], "method", false, false, true, 52);
// line 53
echo " ";
}
// line 54
echo "
";
// line 55
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.', 55, $this->source); })()), "path", [], "any", false, false, true, 55) != "/")) {
// line 56
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "append", [0 => "Busetto"], "method", false, false, true, 56);
// line 57
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "setSeparator", [0 => " | "], "method", false, false, true, 57);
// line 58
echo " ";
}
// line 59
echo "
";
}
// line 61
echo "
";
// line 62
$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.', 62, $this->source); })()));
// line 63
echo "
";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 21
echo twig_spaceless($___internal_parse_0_);
// line 65
echo "
\t";
// line 67
$this->displayBlock('layout_head_meta', $context, $blocks);
// line 75
echo "
";
// line 76
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 79
echo "
</head>
\t<body>
";
// line 84
echo " ";
echo $this->env->getFunction('pimcore_inc')->getCallable()((("/" . $this->sandbox->ensureToStringAllowed((isset($context["currentLanguage"]) || array_key_exists("currentLanguage", $context) ? $context["currentLanguage"] : (function () { throw new RuntimeError('Variable "currentLanguage" does not exist.', 84, $this->source); })()), 84, $this->source)) . "/snippets/customhead"));
echo "
\t\t";
// line 86
$this->loadTemplate("inc/header.html.twig", "layouts/layout.html.twig", 86)->display($context);
// line 87
echo "
\t\t";
// line 88
$this->displayBlock("content", $context, $blocks);
echo "
\t\t";
// line 90
$this->loadTemplate("inc/footer.html.twig", "layouts/layout.html.twig", 90)->display($context);
// line 91
echo "
";
// line 94
echo "\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js")], "method", false, false, true, 94);
// line 95
echo "\t\t";
// line 96
echo "\t\t";
// line 97
echo "\t\t";
// line 98
echo " ";
// line 101
echo "\t\t";
echo "
\t\t";
// line 102
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/js/main.js")], "method", false, false, true, 102);
// line 103
echo "
";
// line 104
$this->displayBlock('head_scripts', $context, $blocks);
// line 107
echo "
";
// line 108
$this->displayBlock('inlinescripts', $context, $blocks);
// line 111
echo "
\t</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function block_layout_head_meta($context, array $blocks = [])
{
$this->deferred->defer($this, 'layout_head_meta');
}
// line 67
public function block_layout_head_meta_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", "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 68
echo " ";
echo $this->env->getFunction('pimcore_head_title')->getCallable()();
echo "
";
// line 69
echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
echo "
";
// line 71
if (twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_placeholder')->getCallable()("canonical"), "count", [], "method", false, false, true, 71)) {
// line 72
echo " <link rel=\"canonical\" href=\"";
echo $this->env->getFunction('pimcore_placeholder')->getCallable()("canonical");
echo "\"/>
";
}
// line 74
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 76
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 77
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_head_scripts($context, array $blocks = [])
{
$this->deferred->defer($this, 'head_scripts');
}
// line 104
public function block_head_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", "head_scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_scripts"));
// line 105
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 108
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 109
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 ( 388 => 109, 378 => 108, 359 => 105, 349 => 104, 330 => 77, 320 => 76, 304 => 74, 298 => 72, 296 => 71, 291 => 69, 286 => 68, 276 => 67, 256 => 111, 254 => 108, 251 => 107, 249 => 104, 246 => 103, 244 => 102, 240 => 101, 238 => 98, 236 => 97, 234 => 96, 232 => 95, 229 => 94, 225 => 91, 223 => 90, 218 => 88, 215 => 87, 213 => 86, 207 => 84, 201 => 79, 199 => 76, 196 => 75, 194 => 67, 190 => 65, 188 => 21, 184 => 63, 182 => 62, 179 => 61, 175 => 59, 172 => 58, 169 => 57, 166 => 56, 164 => 55, 161 => 54, 158 => 53, 155 => 52, 152 => 51, 149 => 50, 147 => 49, 145 => 48, 142 => 47, 139 => 46, 136 => 45, 134 => 44, 131 => 43, 128 => 42, 125 => 41, 123 => 40, 118 => 37, 115 => 36, 110 => 34, 108 => 33, 106 => 32, 103 => 31, 101 => 30, 99 => 29, 97 => 28, 95 => 27, 93 => 26, 90 => 25, 86 => 22, 84 => 21, 77 => 18, 74 => 16, 71 => 15, 69 => 14, 58 => 5, 54 => 3, 52 => 2, 50 => 1,);
}
public function getSourceContext()
{
return new Source("{% set currentLanguage = app.request.locale %}
{% set schemeAndHttpHost = app.request.getSchemeAndHttpHost() %}
<!doctype html>
<html lang=\"{{ currentLanguage }}\">
\t<head>
\t\t<!-- Required meta tags -->
\t\t<meta charset=\"utf-8\">
\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
{# {%- do pimcore_head_link({rel: 'canonical', href: app.request.getSchemeAndHttpHost() ~ app.request.requestUri}) -%}#}
{# Ottieni l'URL base senza la query string #}
{% set baseUrl = app.request.getSchemeAndHttpHost() ~ app.request.getBaseUrl() ~ app.request.getPathInfo() %}
{# Costruisci il canonical URL senza la query string #}
<link rel=\"canonical\" href=\"{{ baseUrl }}\" />
{% apply spaceless %}
\t\t{# fonts #}
\t\t{% do pimcore_head_link().appendStylesheet('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap') %}
\t\t{# bootstrap css #}
{#{% do pimcore_head_link().appendStylesheet('https://cdn.jsdelivr.net/npm/bootstrap@5.3/dist/css/bootstrap.min.css') %} #}
{#{% do pimcore_head_link().appendStylesheet('https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css') %}#}
{# font awesome #}
\t\t{% do pimcore_head_link().appendStylesheet('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css', 'print', null, {onload:\"this.media='all'\"}) %}
{# swiper slider styles #}
{% do pimcore_head_link().appendStylesheet('https://cdnjs.cloudflare.com/ajax/libs/Swiper/9.3.2/swiper-bundle.css') %}\t\t
{# website css #}
\t\t{% do pimcore_head_link().appendStylesheet(asset('assets/css/style.css')) %}
<script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js\" integrity=\"sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4\" crossorigin=\"anonymous\"></script>
\t\t{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{% if document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Link') %}
{% set document = document.getObject() %}
{% endif %}
{% if document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Page') %}
{#{% do pimcore_head_title().set(document.properties.navigation_name.data) %}#}
{% do pimcore_head_title().set(document.getTitle()) %}
{% if document.getDescription() is not empty %}
{% do pimcore_head_meta().setDescription(document.getDescription()) %}
{% endif %}
{% if document.path != '/' %}
{% do pimcore_head_title().append('Busetto') %}
{% do pimcore_head_title().setSeparator(' | ') %}
{% endif %}
{% endif %}
{% set isPortal = ((isPortal is defined) and isPortal) %}
{% endapply %}
\t{% 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>
\t<body>
{# snippet for cookies/google codes #}
{{ pimcore_inc( \"/\" ~ currentLanguage ~ \"/snippets/customhead\")|raw }}
\t\t{% include 'inc/header.html.twig' %}
\t\t{{ block('content') }}
\t\t{% include 'inc/footer.html.twig' %}
{# jquery #}
\t\t{% do pimcore_head_script().appendFile(asset(\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js\")) %}
\t\t{# awesome icons #}
\t\t{#{% do pimcore_head_script().appendFile(asset(\"https://kit.fontawesome.com/d1105ac658.js\")) %}#}
\t\t{# bootstrap js #}
{#
\t\t{% do pimcore_head_script().appendFile(asset(\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js\")) %}
#}
\t\t{# main js #}
\t\t{% do pimcore_head_script().appendFile(asset('assets/js/main.js')) %}
{% block head_scripts deferred %}
{{ pimcore_head_script() }}
{% endblock %}
{% block inlinescripts deferred %}
{{ pimcore_inline_script() }}
{% endblock %}
\t</body>
</html>
", "layouts/layout.html.twig", "/var/www/html/templates/layouts/layout.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "apply" => 21, "do" => 26, "if" => 40, "block" => 67, "include" => 86);
static $filters = array("escape" => 5, "spaceless" => 21, "raw" => 84);
static $functions = array("pimcore_head_link" => 26, "asset" => 36, "pimcore_document" => 41, "pimcore_head_title" => 50, "pimcore_head_meta" => 52, "pimcore_inc" => 84, "pimcore_head_script" => 94, "pimcore_placeholder" => 71, "pimcore_inline_script" => 109);
try {
$this->sandbox->checkSecurity(
['set', 'apply', 'do', 'if', 'block', 'include'],
['escape', 'spaceless', 'raw'],
['pimcore_head_link', 'asset', 'pimcore_document', 'pimcore_head_title', 'pimcore_head_meta', 'pimcore_inc', 'pimcore_head_script', 'pimcore_placeholder', '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;
}