<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* app/layout.html.twig */
class __TwigTemplate_e5fc5fc7c89cfe8525d131e9147c9f864f1c4b918f6112ef50adaf3df2a41199 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "app/layout.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "app/layout.html.twig"));
// line 1
yield "<!DOCTYPE html>
<html lang=\"";
// line 2
yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "lang", [], "any", true, true, true, 2) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "lang", [], "any", false, false, true, 2)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "lang", [], "any", false, false, true, 2), 2, $this->source), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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)));
yield "\">
<head>
<title>";
// line 4
yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "title", [], "any", true, true, true, 4) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "title", [], "any", false, false, true, 4)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "title", [], "any", false, false, true, 4), 4, $this->source), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("sitename", ""), "html", null, true)));
yield "</title>
<meta charset=\"UTF-8\">
";
// line 8
yield " <meta name=\"robots\" content=\"index, follow\">
<meta name=\"description\" content=\"";
// line 9
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "meta", [], "any", false, true, true, 9), "description", [], "any", true, true, true, 9) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "meta", [], "any", false, true, true, 9), "description", [], "any", false, false, true, 9)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "meta", [], "any", false, true, true, 9), "description", [], "any", false, false, true, 9), 9, $this->source), "html", null, true)) : (null));
yield "\">
<meta property=\"og:title\" content=\"";
// line 11
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 11), "title", [], "any", true, true, true, 11) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 11), "title", [], "any", false, false, true, 11)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 11), "title", [], "any", false, false, true, 11), 11, $this->source), "html", null, true)) : (null));
yield "\">
<meta property=\"og:type\" content=\"";
// line 12
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 12), "type", [], "any", true, true, true, 12) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 12), "type", [], "any", false, false, true, 12)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 12), "type", [], "any", false, false, true, 12), 12, $this->source), "html", null, true)) : (null));
yield "\">
<meta property=\"og:url\" content=\"";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 13), "url", [], "any", true, true, true, 13) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 13), "url", [], "any", false, false, true, 13)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 13), "url", [], "any", false, false, true, 13)) : (null))), "html", null, true);
yield "\">
";
// line 14
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 14, $this->source); })()), "og", [], "any", false, false, true, 14), "image", [], "any", false, false, true, 14))) {
// line 15
yield " <meta property=\"og:image\" content=\"";
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 15), "image", [], "any", true, true, true, 15) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 15), "image", [], "any", false, false, true, 15)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 15), "image", [], "any", false, false, true, 15), 15, $this->source), "html", null, true)) : (null));
yield "\">
";
}
// line 17
yield " <meta property=\"og:description\" content=\"";
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 17), "description", [], "any", true, true, true, 17) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 17), "description", [], "any", false, false, true, 17)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["page"] ?? null), "og", [], "any", false, true, true, 17), "description", [], "any", false, false, true, 17), 17, $this->source), "html", null, true)) : (null));
yield "\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\">
<!-- pimcore_head_meta() -->
";
// line 22
yield $this->env->getFunction('pimcore_head_meta')->getCallable()();
yield "
";
// line 23
yield from $this->loadTemplate("app/partials/_canonicals.html.twig", "app/layout.html.twig", 23)->unwrap()->yield($context);
// line 24
yield "
<!-- pimcore_head_link() -->
";
// line 26
yield $this->env->getFunction('pimcore_head_link')->getCallable()();
yield "
<!-- fonts -->
<link rel=\"stylesheet\" href=\"https://use.typekit.net/mva2dpr.css\">
<!-- favicon -->
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/static/favicon/apple-touch-icon.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/static/favicon/favicon-32x32.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/static/favicon/favicon-16x16.png\">
<link rel=\"manifest\" href=\"/static/favicon/site.webmanifest\">
<link rel=\"mask-icon\" href=\"/static/favicon/safari-pinned-tab.svg\" color=\"#0072bb\">
<link rel=\"shortcut icon\" href=\"/static/favicon/favicon.ico\">
<meta name=\"msapplication-TileColor\" content=\"#0072bb\">
<meta name=\"msapplication-config\" content=\"/static/favicon/browserconfig.xml\">
<meta name=\"theme-color\" content=\"#ffffff\">
<!-- vite() -->
";
// line 43
$_v0 = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 44
yield " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 44, $this->source); })())) {
// line 45
yield " ";
yield $this->extensions['App\Twig\ViteExtension']->vite("app.js", true);
yield "
";
} else {
// line 47
yield " ";
yield $this->extensions['App\Twig\ViteExtension']->vite("app.js");
yield "
";
}
// line 49
yield " ";
yield from [];
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 43
yield Twig\Extension\CoreExtension::spaceless($_v0);
// line 50
yield "
<!-- pimcore_head_style() -->
";
// line 52
yield $this->env->getFunction('pimcore_head_style')->getCallable()();
yield "
";
// line 54
yield "
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://load.sst.coolworld-rentals.com/cihjtqut.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WP86GP6');</script>
<!-- End Google Tag Manager -->
<script src=\"https://www.google.com/recaptcha/api.js?render=";
// line 59
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["recaptcha_v3_site_key"]) || array_key_exists("recaptcha_v3_site_key", $context) ? $context["recaptcha_v3_site_key"] : (function () { throw new RuntimeError('Variable "recaptcha_v3_site_key" does not exist.', 59, $this->source); })()), 59, $this->source), "html", null, true);
yield "\"></script>
</head>
";
// line 63
yield " ";
// line 64
yield " <body class=\"font-sans antialiased text-gray-900\">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://load.sst.coolworld-rentals.com/ns.html?id=GTM-WP86GP6\"height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div
x-data=\"{
mobileMenuOpen: false,
scrollState: false,
visibleSection: false,
clickToSection: false
}\"
@scroll.window=\"
scrollOffset = window.innerWidth < 1024 ? 0 : 62;
scrollState = window.pageYOffset > scrollOffset;
\"
x-on:mousewheel=\"clickToSection = false;\"
>
";
// line 83
yield from $this->loadTemplate("app/header.html.twig", "app/layout.html.twig", 83)->unwrap()->yield($context);
// line 84
yield "
<div class=\"container-fluid\">
";
// line 86
yield from $this->unwrap()->yieldBlock("content", $context, $blocks);
yield "
</div>
<footer>
";
// line 91
yield " ";
yield $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 91, $this->source); })()), "getProperty", ["footerSnippet"], "method", false, false, true, 91), 91, $this->source));
yield "
</footer>
</div>
<!-- pimcore_inline_script() -->
";
// line 96
yield $this->env->getFunction('pimcore_inline_script')->getCallable()();
yield "
</body>
</html>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "app/layout.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 220 => 96, 211 => 91, 204 => 86, 200 => 84, 198 => 83, 177 => 64, 175 => 63, 169 => 59, 162 => 54, 158 => 52, 154 => 50, 152 => 43, 148 => 49, 142 => 47, 136 => 45, 133 => 44, 131 => 43, 111 => 26, 107 => 24, 105 => 23, 101 => 22, 92 => 17, 86 => 15, 84 => 14, 80 => 13, 76 => 12, 72 => 11, 67 => 9, 64 => 8, 58 => 4, 53 => 2, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<!DOCTYPE html>
<html lang=\"{{ page.lang ?? app.request.locale }}\">
<head>
<title>{{ page.title ?? pimcore_website_config('sitename', \"\") }}</title>
<meta charset=\"UTF-8\">
{# TODO use DefaultFrontendController::getRobots()? #}
<meta name=\"robots\" content=\"index, follow\">
<meta name=\"description\" content=\"{{ page.meta.description ?? null }}\">
<meta property=\"og:title\" content=\"{{ page.og.title ?? null }}\">
<meta property=\"og:type\" content=\"{{ page.og.type ?? null }}\">
<meta property=\"og:url\" content=\"{{ (page.og.url ?? null) | trimUrl }}\">
{% if page.og.image is not null %}
<meta property=\"og:image\" content=\"{{ page.og.image ?? null }}\">
{% endif %}
<meta property=\"og:description\" content=\"{{ page.og.description ?? null }}\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\">
<!-- pimcore_head_meta() -->
{{ pimcore_head_meta() }}
{% include \"app/partials/_canonicals.html.twig\" %}
<!-- pimcore_head_link() -->
{{ pimcore_head_link() }}
<!-- fonts -->
<link rel=\"stylesheet\" href=\"https://use.typekit.net/mva2dpr.css\">
<!-- favicon -->
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/static/favicon/apple-touch-icon.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/static/favicon/favicon-32x32.png\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/static/favicon/favicon-16x16.png\">
<link rel=\"manifest\" href=\"/static/favicon/site.webmanifest\">
<link rel=\"mask-icon\" href=\"/static/favicon/safari-pinned-tab.svg\" color=\"#0072bb\">
<link rel=\"shortcut icon\" href=\"/static/favicon/favicon.ico\">
<meta name=\"msapplication-TileColor\" content=\"#0072bb\">
<meta name=\"msapplication-config\" content=\"/static/favicon/browserconfig.xml\">
<meta name=\"theme-color\" content=\"#ffffff\">
<!-- vite() -->
{% apply spaceless %}
{% if editmode %}
{{ vite('app.js', true)|raw }}
{% else %}
{{ vite('app.js')|raw }}
{% endif %}
{% endapply %}
<!-- pimcore_head_style() -->
{{ pimcore_head_style() }}
{# Using below pimcore_inline_script() instead of: {{ pimcore_head_script() }} #}
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://load.sst.coolworld-rentals.com/cihjtqut.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WP86GP6');</script>
<!-- End Google Tag Manager -->
<script src=\"https://www.google.com/recaptcha/api.js?render={{ recaptcha_v3_site_key }}\"></script>
</head>
{# Pimcore needs the body tag to be defined in one whole line, see GoogleTagManagerListener::onKernelResponse() #}
{# Also it needs the closing character '>', so we can't add the Alpine scripts because they use '>' in the compare statement. #}
<body class=\"font-sans antialiased text-gray-900\">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://load.sst.coolworld-rentals.com/ns.html?id=GTM-WP86GP6\"height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div
x-data=\"{
mobileMenuOpen: false,
scrollState: false,
visibleSection: false,
clickToSection: false
}\"
@scroll.window=\"
scrollOffset = window.innerWidth < 1024 ? 0 : 62;
scrollState = window.pageYOffset > scrollOffset;
\"
x-on:mousewheel=\"clickToSection = false;\"
>
{% include \"app/header.html.twig\" %}
<div class=\"container-fluid\">
{{ block('content') }}
</div>
<footer>
{# include a document-snippet - in this case the footer document #}
{{ pimcore_inc(document.getProperty('footerSnippet')) }}
</footer>
</div>
<!-- pimcore_inline_script() -->
{{ pimcore_inline_script() }}
</body>
</html>
", "app/layout.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/app/layout.html.twig");
}
public function checkSecurity()
{
static $tags = ["if" => 14, "include" => 23, "apply" => 43];
static $filters = ["escape" => 2, "trimUrl" => 13, "raw" => 45, "spaceless" => 43];
static $functions = ["pimcore_website_config" => 4, "pimcore_head_meta" => 22, "pimcore_head_link" => 26, "vite" => 45, "pimcore_head_style" => 52, "pimcore_inc" => 91, "pimcore_inline_script" => 96];
try {
$this->sandbox->checkSecurity(
['if', 'include', 'apply'],
['escape', 'trimUrl', 'raw', 'spaceless'],
['pimcore_website_config', 'pimcore_head_meta', 'pimcore_head_link', 'vite', 'pimcore_head_style', 'pimcore_inc', 'pimcore_inline_script'],
$this->source
);
} 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;
}
}
}