<?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;
/* @FoxHabbitBasis/Layout/layout.html.twig */
class __TwigTemplate_6b403f04e267c30e1f7a139d733e8a50 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'],
'scripts' => [$this, 'block_scripts'],
];
$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", "@FoxHabbitBasis/Layout/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", "@FoxHabbitBasis/Layout/layout.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html lang=\"";
// line 2
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 2, $this->source); })()), "request", [], "any", false, false, true, 2), "locale", [], "any", false, false, true, 2), 2, $this->source), "html", null, true);
echo "\" class=\"nojs\">
<head>
\t<meta charset=\"UTF-8\">
\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />
\t";
// line 6
ob_start();
// line 8
echo "\t\t";
// line 9
echo "
\t\t";
// line 11
echo "\t\t";
// line 12
echo "\t\t";
// line 13
echo "\t\t";
// line 14
echo "
\t\t";
// line 16
echo "\t\t";
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.', 16, $this->source); })()), "getProperty", ["template_css_vendor"], "method", false, false, true, 16)) {
// line 17
echo "\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [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.', 17, $this->source); })()), "getProperty", ["template_css_vendor"], "method", false, false, true, 17), "screen"], "method", false, false, true, 17);
// line 18
echo "\t\t";
} elseif ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("templateCssVendor")) {
// line 19
echo "\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("templateCssVendor"), "screen"], "method", false, false, true, 19);
// line 20
echo "\t\t";
} else {
// line 21
echo "\t\t\t";
// line 22
echo "\t\t\t";
// line 23
echo "\t\t";
}
// line 24
echo "\t\t";
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.', 24, $this->source); })()), "getProperty", ["template_css_main"], "method", false, false, true, 24)) {
// line 25
echo "\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [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.', 25, $this->source); })()), "getProperty", ["template_css_main"], "method", false, false, true, 25), "screen"], "method", false, false, true, 25);
// line 26
echo "\t\t";
} elseif ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("templateCssMain")) {
// line 27
echo "\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("templateCssMain"), "screen"], "method", false, false, true, 27);
// line 28
echo "\t\t";
} else {
// line 29
echo "\t\t ";
if ((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.', 29, $this->source); })()), "environment", [], "any", false, false, true, 29) == "dev")) {
// line 30
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/css/dev/main.css"), "screen"], "method", false, false, true, 30);
// line 31
echo "\t\t\t";
} else {
// line 32
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/css/prod/main.css"), "screen"], "method", false, false, true, 32);
// line 33
echo "\t\t\t";
}
// line 34
echo "\t\t";
}
// line 35
echo "\t\t";
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.', 35, $this->source); })()), "getProperty", ["template_css_font"], "method", false, false, true, 35)) {
// line 36
echo "\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [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.', 36, $this->source); })()), "getProperty", ["template_css_font"], "method", false, false, true, 36), "screen"], "method", false, false, true, 36);
// line 37
echo "\t\t";
} elseif ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("templateCssFont")) {
// line 38
echo "\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("templateCssFont"), "screen"], "method", false, false, true, 38);
// line 39
echo "\t\t";
} else {
// line 40
echo "\t\t\t";
// line 41
echo "\t\t\t";
// line 42
echo "\t\t";
}
// line 43
echo "\t\t";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 43, $this->source); })())) {
// line 44
echo "\t\t ";
if ((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.', 44, $this->source); })()), "environment", [], "any", false, false, true, 44) == "dev")) {
// line 45
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/css/dev/editmode.css")], "method", false, false, true, 45);
// line 46
echo "\t\t\t";
} else {
// line 47
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/css/prod/editmode.css")], "method", false, false, true, 47);
// line 48
echo "\t\t\t";
}
// line 49
echo "\t\t";
}
// line 50
echo "
\t\t";
// line 52
echo "\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/es6-promise.auto.min.js"), ""], "method", false, false, true, 52);
// line 53
echo "\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/common.bundle.js"), "", ["data-cookieconsent" => "ignore"]], "method", false, false, true, 53);
// line 54
echo "\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/ytplayer.bundle.js"), "", ["data-cookieconsent" => "marketing"]], "method", false, false, true, 54);
// line 55
echo "\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/search.bundle.js")], "method", false, false, true, 55);
// line 56
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/productdetailsswiper.bundle.js")], "method", false, false, true, 56);
// line 57
echo " ";
$this->loadTemplate("@App/TrackingScripts/echobot-leadfeeder.html.twig", "@FoxHabbitBasis/Layout/layout.html.twig", 57)->display($context);
// line 58
echo " ";
$this->loadTemplate("@App/TrackingScripts/sales-viewer.html.twig", "@FoxHabbitBasis/Layout/layout.html.twig", 58)->display($context);
// line 59
echo "
\t\t";
// line 60
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.', 60, $this->source); })()))) {
// line 61
echo "\t\t\t";
$context["document"] = Pimcore\Model\Document::getById(1);
// line 62
echo "\t\t";
}
// line 63
echo "
\t\t";
// line 64
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.', 64, $this->source); })()), "\\Pimcore\\Model\\Document\\Link")) {
// line 65
echo "\t\t\t";
// line 66
echo "\t\t\t";
$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.', 66, $this->source); })()), "getObject", [], "method", false, false, true, 66);
// line 67
echo "\t\t";
}
// line 68
echo "\t\t";
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.', 68, $this->source); })()), "\\Pimcore\\Model\\Document\\Snippet")) {
// line 69
echo "\t\t\t";
// line 70
echo "\t\t";
} else {
// line 71
echo "
\t\t\t";
// line 72
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.', 72, $this->source); })()), "getTitle", [], "method", false, false, true, 72))) {
// line 73
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [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.', 73, $this->source); })()), "getTitle", [], "method", false, false, true, 73)], "method", false, false, true, 73);
// line 74
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:title", 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.', 74, $this->source); })()), "getTitle", [], "method", false, false, true, 74)], "method", false, false, true, 74);
// line 75
echo "\t\t\t";
}
// line 76
echo "
\t\t\t";
// line 77
if ( !twig_test_empty($this->env->getFunction('pimcore_placeholder')->getCallable()("title"))) {
// line 78
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [$this->env->getFunction('pimcore_placeholder')->getCallable()("title")], "method", false, false, true, 78);
// line 79
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:title", $this->env->getFunction('pimcore_placeholder')->getCallable()("title")], "method", false, false, true, 79);
// line 80
echo "\t\t\t";
}
// line 81
echo "
\t\t\t";
// line 82
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.', 82, $this->source); })()), "getDescription", [], "method", false, false, true, 82))) {
// line 83
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [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.', 83, $this->source); })()), "getDescription", [], "method", false, false, true, 83)], "method", false, false, true, 83);
// line 84
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:description", 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.', 84, $this->source); })()), "getDescription", [], "method", false, false, true, 84)], "method", false, false, true, 84);
// line 85
echo "\t\t\t";
}
// line 86
echo "
\t\t\t";
// line 87
if ( !twig_test_empty($this->env->getFunction('pimcore_placeholder')->getCallable()("description"))) {
// line 88
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [$this->env->getFunction('pimcore_placeholder')->getCallable()("description")], "method", false, false, true, 88);
// line 89
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:description", $this->env->getFunction('pimcore_placeholder')->getCallable()("description")], "method", false, false, true, 89);
// line 90
echo "\t\t\t";
}
// line 91
echo "
\t\t\t";
// line 92
if ( !twig_test_empty($this->env->getFunction('pimcore_placeholder')->getCallable()("share_image"))) {
// line 93
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:image", (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.', 93, $this->source); })()), "request", [], "any", false, false, true, 93), "getSchemeAndHttpHost", [], "method", false, false, true, 93) . $this->env->getFunction('pimcore_placeholder')->getCallable()("share_image"))], "method", false, false, true, 93);
// line 94
echo "\t\t\t\t";
if ( !twig_test_empty($this->env->getFunction('pimcore_placeholder')->getCallable()("share_image:width"))) {
// line 95
echo "\t\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:image:width", $this->env->getFunction('pimcore_placeholder')->getCallable()("share_image:width")], "method", false, false, true, 95);
// line 96
echo "\t\t\t\t";
}
// line 97
echo "\t\t\t\t";
if ( !twig_test_empty($this->env->getFunction('pimcore_placeholder')->getCallable()("share_image:height"))) {
// line 98
echo "\t\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:image:height", $this->env->getFunction('pimcore_placeholder')->getCallable()("share_image:height")], "method", false, false, true, 98);
// line 99
echo "\t\t\t\t";
}
// line 100
echo "\t\t\t";
}
// line 101
echo "
\t\t\t";
// line 102
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.', 102, $this->source); })()), "getProperty", ["og:site_name"], "method", false, false, true, 102)) {
// line 103
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:site_name", 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.', 103, $this->source); })()), "getProperty", ["og:site_name"], "method", false, false, true, 103)], "method", false, false, true, 103);
// line 104
echo "\t\t\t";
}
// line 105
echo "
\t\t\t";
// line 106
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:type", "website"], "method", false, false, true, 106);
// line 107
echo "\t\t\t";
// line 108
echo "
\t\t\t";
// line 109
if ( !twig_test_empty($this->env->getFunction('pimcore_placeholder')->getCallable()("url"))) {
// line 110
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:url", (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.', 110, $this->source); })()), "request", [], "any", false, false, true, 110), "getSchemeAndHttpHost", [], "method", false, false, true, 110) . $this->env->getFunction('pimcore_placeholder')->getCallable()("url"))], "method", false, false, true, 110);
// line 111
echo "\t\t\t";
} else {
// line 112
echo "\t\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setProperty", ["og:url ", (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.', 112, $this->source); })()), "request", [], "any", false, false, true, 112), "getSchemeAndHttpHost", [], "method", false, false, true, 112) . 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.', 112, $this->source); })()), "getFullPath", [], "method", false, false, true, 112))], "method", false, false, true, 112);
// line 113
echo "\t\t\t";
}
// line 114
echo "
\t\t\t";
// line 116
echo "\t\t\t";
$context["languageVersions"] = $this->extensions['FoxHabbit\BasisBundle\Twig\Extension\ToolExtension']->documentGetTranslations($this->sandbox->ensureToStringAllowed((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 116, $this->source); })()), 116, $this->source), "navRoot");
// line 117
echo "\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["languageVersions"]) || array_key_exists("languageVersions", $context) ? $context["languageVersions"] : (function () { throw new RuntimeError('Variable "languageVersions" does not exist.', 117, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["languageVersion"]) {
// line 118
echo "\t\t\t\t";
$this->env->getFunction('pimcore_head_link')->getCallable()(["rel" => "alternate", "href" => $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl(twig_get_attribute($this->env, $this->source, $context["languageVersion"], "href", [], "any", false, false, true, 118)), "hreflang" => twig_get_attribute($this->env, $this->source, $context["languageVersion"], "locale", [], "any", false, false, true, 118)]);
// line 119
echo "\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['languageVersion'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 120
echo "\t\t";
}
$___internal_parse_7_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 6
echo twig_spaceless($___internal_parse_7_);
// line 122
echo "\t";
// line 123
echo "\t";
$this->displayBlock('layout_head_meta', $context, $blocks);
// line 127
echo "\t";
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 130
echo "\t";
$this->displayBlock('scripts', $context, $blocks);
// line 134
echo "
\t";
// line 135
$this->loadTemplate("@FoxHabbitBasis/Layout/includes/favicons.html.twig", "@FoxHabbitBasis/Layout/layout.html.twig", 135)->display($context);
// line 136
echo "
\t<script>
\t\t";
// line 139
echo "if (!String.prototype.startsWith) {
\t\t\tString.prototype.startsWith = function(searchString, position) {
\t\t\t\tposition = position || 0;
\t\t\t\treturn this.indexOf(searchString, position) === position;
\t\t\t};
\t\t}
\t\t";
// line 149
echo "/**
\t\t* Element.prototype.classList for IE8/9, Safari.
\t\t* @author Kerem Güneş <k-gun@mail.com>
\t\t* @copyright Released under the MIT License <https://opensource.org/licenses/MIT>
\t\t* @version 1.2
\t\t* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/classList
\t\t*/
\t\t;(function() {
\t\t\t// Helpers.
\t\t\tvar trim = function(s) {
\t\t\t\t\treturn s.replace(/^\\s+|\\s+\$/g, '');
\t\t\t\t},
\t\t\t\tregExp = function(name) {
\t\t\t\t\treturn new RegExp('(^|\\\\s+)'+ name +'(\\\\s+|\$)');
\t\t\t\t},
\t\t\t\tforEach = function(list, fn, scope) {
\t\t\t\t\tfor (var i = 0; i < list.length; i++) {
\t\t\t\t\t\tfn.call(scope, list[i]);
\t\t\t\t\t}
\t\t\t\t};
\t\t\t// Class list object with basic methods.
\t\t\tfunction ClassList(element) {
\t\t\t\tthis.element = element;
\t\t\t}
\t\t\tClassList.prototype = {
\t\t\t\tadd: function() {
\t\t\t\t\tforEach(arguments, function(name) {
\t\t\t\t\t\tif (!this.contains(name)) {
\t\t\t\t\t\t\tthis.element.className = trim(this.element.className +' '+ name);
\t\t\t\t\t\t}
\t\t\t\t\t}, this);
\t\t\t\t},
\t\t\t\tremove: function() {
\t\t\t\t\tforEach(arguments, function(name) {
\t\t\t\t\t\tthis.element.className = trim(this.element.className.replace(regExp(name), ' '));
\t\t\t\t\t}, this);
\t\t\t\t},
\t\t\t\ttoggle: function(name) {
\t\t\t\t\treturn this.contains(name) ? (this.remove(name), false) : (this.add(name), true);
\t\t\t\t},
\t\t\t\tcontains: function(name) {
\t\t\t\t\treturn regExp(name).test(this.element.className);
\t\t\t\t},
\t\t\t\titem: function(i) {
\t\t\t\t\treturn this.element.className.split(/\\s+/)[i] || null;
\t\t\t\t},
\t\t\t\t// bonus
\t\t\t\treplace: function(oldName, newName) {
\t\t\t\t\tthis.remove(oldName), this.add(newName);
\t\t\t\t}
\t\t\t};
\t\t\t// IE8/9, Safari
\t\t\t// Remove this if statements to override native classList.
\t\t\tif (!('classList' in Element.prototype)) {
\t\t\t// Use this if statement to override native classList that does not have for example replace() method.
\t\t\t// See browser compatibility: https://developer.mozilla.org/en-US/docs/Web/API/Element/classList#Browser_compatibility.
\t\t\t// if (!('classList' in Element.prototype) ||
\t\t\t// !('classList' in Element.prototype && Element.prototype.classList.replace)) {
\t\t\t\tObject.defineProperty(Element.prototype, 'classList', {
\t\t\t\t\tget: function() {
\t\t\t\t\t\treturn new ClassList(this);
\t\t\t\t\t}
\t\t\t\t});
\t\t\t}
\t\t\t// For others replace() support.
\t\t\tif (window.DOMTokenList && !DOMTokenList.prototype.replace) {
\t\t\t\tDOMTokenList.prototype.replace = ClassList.prototype.replace;
\t\t\t}
\t\t})();
\t\t";
// line 223
echo "\t\tdocument.documentElement.classList.replace('nojs', 'js');
\t</script>
</head>
";
// line 226
$context["bodyclass"] = [];
// line 227
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) {
// line 228
echo "\t";
$context["bodyclass"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["bodyclass"]) || array_key_exists("bodyclass", $context) ? $context["bodyclass"] : (function () { throw new RuntimeError('Variable "bodyclass" does not exist.', 228, $this->source); })()), 228, $this->source), ["is-authenticated"]);
}
// line 230
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 230, $this->source); })())) {
// line 231
echo "\t";
$context["bodyclass"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["bodyclass"]) || array_key_exists("bodyclass", $context) ? $context["bodyclass"] : (function () { throw new RuntimeError('Variable "bodyclass" does not exist.', 231, $this->source); })()), 231, $this->source), ["editmode"]);
}
// line 233
echo "<body id=\"page-top\" class=\"";
echo twig_escape_filter($this->env, twig_join_filter($this->sandbox->ensureToStringAllowed((isset($context["bodyclass"]) || array_key_exists("bodyclass", $context) ? $context["bodyclass"] : (function () { throw new RuntimeError('Variable "bodyclass" does not exist.', 233, $this->source); })()), 233, $this->source), " "), "html", null, true);
echo "\" itemscope itemtype=\"http://schema.org/WebPage\">
\t";
// line 234
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 234, $this->source); })())) {
// line 235
echo "\t\t<!-- TOPNAV START -->
\t\t";
// line 236
$context["snippets"] = ["snippetTopnav"];
// line 237
echo "\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["snippets"]) || array_key_exists("snippets", $context) ? $context["snippets"] : (function () { throw new RuntimeError('Variable "snippets" does not exist.', 237, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["snippetProperty"]) {
// line 238
echo "\t\t\t";
$context["snippet"] = 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.', 238, $this->source); })()), "getProperty", [$context["snippetProperty"]], "method", false, false, true, 238);
// line 239
echo "\t\t\t";
if ((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 239, $this->source); })())) {
// line 240
echo "\t\t\t\t";
echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 240, $this->source); })()), 240, $this->source), ["pageDocument" => (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 240, $this->source); })())]);
echo "
";
} else {
// line 242
echo " ";
$context["snippet"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig($this->sandbox->ensureToStringAllowed($context["snippetProperty"], 242, $this->source));
// line 243
echo " ";
if ((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 243, $this->source); })())) {
// line 244
echo " ";
echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 244, $this->source); })()), 244, $this->source), ["pageDocument" => (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 244, $this->source); })())]);
echo "
";
}
// line 246
echo "\t\t\t";
}
// line 247
echo "\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['snippetProperty'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 248
echo "\t\t<!-- TOPNAV END -->
\t";
}
// line 250
echo "\t<!-- MAIN CONTENT START -->
\t<article class=\"main-content\" role=\"main\">
\t\t<!-- start-index -->
\t\t";
// line 253
$this->displayBlock("content", $context, $blocks);
echo "
\t\t";
// line 254
$context["snippets"] = ["snippetArticleFooter"];
// line 255
echo "\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["snippets"]) || array_key_exists("snippets", $context) ? $context["snippets"] : (function () { throw new RuntimeError('Variable "snippets" does not exist.', 255, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["snippetProperty"]) {
// line 256
echo "\t\t\t";
$context["snippet"] = 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.', 256, $this->source); })()), "getProperty", [$context["snippetProperty"]], "method", false, false, true, 256);
// line 257
echo "\t\t\t";
if ((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 257, $this->source); })())) {
// line 258
echo "\t\t\t\t";
echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 258, $this->source); })()), 258, $this->source));
echo "
\t\t\t";
} else {
// line 260
echo "\t\t\t\t";
$context["snippet"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig($this->sandbox->ensureToStringAllowed($context["snippetProperty"], 260, $this->source));
// line 261
echo "\t\t\t\t";
if ((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 261, $this->source); })())) {
// line 262
echo "\t\t\t\t\t";
echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 262, $this->source); })()), 262, $this->source), ["pageDocument" => (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 262, $this->source); })())]);
echo "
\t\t\t\t";
}
// line 264
echo "\t\t\t";
}
// line 265
echo "\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['snippetProperty'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 266
echo "\t\t<!-- /end-index -->
\t</article>
\t";
// line 268
$context["snippets"] = ["snippetFooter"];
// line 269
echo "\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["snippets"]) || array_key_exists("snippets", $context) ? $context["snippets"] : (function () { throw new RuntimeError('Variable "snippets" does not exist.', 269, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["snippetProperty"]) {
// line 270
echo "\t\t";
$context["snippet"] = 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.', 270, $this->source); })()), "getProperty", [$context["snippetProperty"]], "method", false, false, true, 270);
// line 271
echo "\t\t";
if ((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 271, $this->source); })())) {
// line 272
echo "\t\t\t";
echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 272, $this->source); })()), 272, $this->source));
echo "
\t\t";
} else {
// line 274
echo "\t\t\t";
$context["snippet"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig($this->sandbox->ensureToStringAllowed($context["snippetProperty"], 274, $this->source));
// line 275
echo "\t\t\t";
if ((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 275, $this->source); })())) {
// line 276
echo "\t\t\t\t";
echo $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["snippet"]) || array_key_exists("snippet", $context) ? $context["snippet"] : (function () { throw new RuntimeError('Variable "snippet" does not exist.', 276, $this->source); })()), 276, $this->source), ["pageDocument" => (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 276, $this->source); })())]);
echo "
\t\t\t";
}
// line 278
echo "\t\t";
}
// line 279
echo "\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['snippetProperty'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 280
echo "\t<!-- MAIN CONTENT END -->
\t";
// line 281
$this->loadTemplate("@FoxHabbitBasis/Layout/includes/photoswipe.html.twig", "@FoxHabbitBasis/Layout/layout.html.twig", 281)->display($context);
// line 282
echo "
";
// line 283
if ((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.', 283, $this->source); })()), "environment", [], "any", false, false, true, 283) == "dev")) {
// line 284
echo " <!-- START breakpoint infos for environment ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 284, $this->source); })()), "environment", [], "any", false, false, true, 284), 284, $this->source), "html", null, true);
echo " -->
<div class=\"dev-breakpoint-information d-print-none\">
<div class=\"d-block d-sm-none\" data-title=\"XS\"></div>
<div class=\"d-none d-sm-block d-md-none\" data-title=\"SM\"></div>
<div class=\"d-none d-md-block d-lg-none\" data-title=\"MD\"></div>
<div class=\"d-none d-lg-block d-xl-none\" data-title=\"LG\"></div>
<div class=\"d-none d-xl-block\" data-title=\"XL\"></div>
</div>
<!-- END breakpoint infos -->
";
}
// line 294
echo "
\t";
// line 295
$this->loadTemplate("@FoxHabbitBasis/Layout/includes/retargeting-pixel-script.html.twig", "@FoxHabbitBasis/Layout/layout.html.twig", 295)->display($context);
// line 296
echo "
</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 123
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 124
echo $this->env->getFunction('pimcore_head_title')->getCallable()();
echo "
\t\t";
// line 125
echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
echo "
\t";
$__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 127
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 128
echo $this->env->getFunction('pimcore_head_link')->getCallable()();
echo "
\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function block_scripts($context, array $blocks = [])
{
$this->deferred->defer($this, 'scripts');
}
// line 130
public function block_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", "scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
// line 131
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "setAllowArbitraryAttributes", [true], "method", false, false, true, 131);
// line 132
echo "\t\t";
echo $this->env->getFunction('pimcore_head_script')->getCallable()();
echo "
\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function getTemplateName()
{
return "@FoxHabbitBasis/Layout/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 764 => 132, 762 => 131, 752 => 130, 734 => 128, 724 => 127, 706 => 125, 702 => 124, 692 => 123, 673 => 296, 671 => 295, 668 => 294, 654 => 284, 652 => 283, 649 => 282, 647 => 281, 644 => 280, 638 => 279, 635 => 278, 629 => 276, 626 => 275, 623 => 274, 617 => 272, 614 => 271, 611 => 270, 606 => 269, 604 => 268, 600 => 266, 594 => 265, 591 => 264, 585 => 262, 582 => 261, 579 => 260, 573 => 258, 570 => 257, 567 => 256, 562 => 255, 560 => 254, 556 => 253, 551 => 250, 547 => 248, 541 => 247, 538 => 246, 532 => 244, 529 => 243, 526 => 242, 520 => 240, 517 => 239, 514 => 238, 509 => 237, 507 => 236, 504 => 235, 502 => 234, 497 => 233, 493 => 231, 491 => 230, 487 => 228, 485 => 227, 483 => 226, 478 => 223, 403 => 149, 395 => 139, 391 => 136, 389 => 135, 386 => 134, 383 => 130, 380 => 127, 377 => 123, 375 => 122, 373 => 6, 369 => 120, 363 => 119, 360 => 118, 355 => 117, 352 => 116, 349 => 114, 346 => 113, 343 => 112, 340 => 111, 337 => 110, 335 => 109, 332 => 108, 330 => 107, 328 => 106, 325 => 105, 322 => 104, 319 => 103, 317 => 102, 314 => 101, 311 => 100, 308 => 99, 305 => 98, 302 => 97, 299 => 96, 296 => 95, 293 => 94, 290 => 93, 288 => 92, 285 => 91, 282 => 90, 279 => 89, 276 => 88, 274 => 87, 271 => 86, 268 => 85, 265 => 84, 262 => 83, 260 => 82, 257 => 81, 254 => 80, 251 => 79, 248 => 78, 246 => 77, 243 => 76, 240 => 75, 237 => 74, 234 => 73, 232 => 72, 229 => 71, 226 => 70, 224 => 69, 221 => 68, 218 => 67, 215 => 66, 213 => 65, 211 => 64, 208 => 63, 205 => 62, 202 => 61, 200 => 60, 197 => 59, 194 => 58, 191 => 57, 188 => 56, 185 => 55, 182 => 54, 179 => 53, 176 => 52, 173 => 50, 170 => 49, 167 => 48, 164 => 47, 161 => 46, 158 => 45, 155 => 44, 152 => 43, 149 => 42, 147 => 41, 145 => 40, 142 => 39, 139 => 38, 136 => 37, 133 => 36, 130 => 35, 127 => 34, 124 => 33, 121 => 32, 118 => 31, 115 => 30, 112 => 29, 109 => 28, 106 => 27, 103 => 26, 100 => 25, 97 => 24, 94 => 23, 92 => 22, 90 => 21, 87 => 20, 84 => 19, 81 => 18, 78 => 17, 75 => 16, 72 => 14, 70 => 13, 68 => 12, 66 => 11, 63 => 9, 61 => 8, 59 => 6, 52 => 2, 49 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html lang=\"{{ app.request.locale }}\" class=\"nojs\">
<head>
\t<meta charset=\"UTF-8\">
\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />
\t{% apply spaceless -%}
\t\t{# add global stylesheets and scripts outside of any blocks to add them to the helpers before any others assets are added #}
\t\t{# we use the view helper to have cache buster functionality #}
\t\t{# optional: Load Fonts and Icons early in the process #}
\t\t{# do pimcore_head_link().appendStylesheet(asset('/css/fonts/fonts.css'), 'screen') #}
\t\t{# do pimcore_head_link().appendStylesheet(asset('/css/fonts/iconset.css'), 'screen') #}
\t\t{# do pimcore_head_link().appendStylesheet(asset('//fast.fonts.net/cssapi/ .... .css/'), 'screen') #}
\t\t{# Load our usual CSS Stuff #}
\t\t{% if document.getProperty('template_css_vendor') %}
\t\t\t{% do pimcore_head_link().appendStylesheet(document.getProperty('template_css_vendor'), 'screen') %}
\t\t{% elseif pimcore_website_config('templateCssVendor') %}
\t\t\t{% do pimcore_head_link().appendStylesheet(pimcore_website_config('templateCssVendor'), 'screen') %}
\t\t{% else %}
\t\t\t{# no longer required #}
\t\t\t{#% do pimcore_head_link().appendStylesheet(asset('/css/vendor.css'), 'screen') %#}
\t\t{% endif %}
\t\t{% if document.getProperty('template_css_main') %}
\t\t\t{% do pimcore_head_link().appendStylesheet(document.getProperty('template_css_main'), 'screen') %}
\t\t{% elseif pimcore_website_config('templateCssMain') %}
\t\t\t{% do pimcore_head_link().appendStylesheet(pimcore_website_config('templateCssMain'), 'screen') %}
\t\t{% else %}
\t\t {% if app.environment == 'dev' %}
\t\t\t\t{% do pimcore_head_link().appendStylesheet(asset('/css/dev/main.css'), 'screen') %}
\t\t\t{% else %}
\t\t\t\t{% do pimcore_head_link().appendStylesheet(asset('/css/prod/main.css'), 'screen') %}
\t\t\t{% endif %}
\t\t{% endif %}
\t\t{% if document.getProperty('template_css_font') %}
\t\t\t{% do pimcore_head_link().appendStylesheet(document.getProperty('template_css_font'), 'screen') %}
\t\t{% elseif pimcore_website_config('templateCssFont') %}
\t\t\t{% do pimcore_head_link().appendStylesheet(pimcore_website_config('templateCssFont'), 'screen') %}
\t\t{% else %}
\t\t\t{# will be included in the main css by default #}
\t\t\t{#% do pimcore_head_link().appendStylesheet(asset('/css/fonts.css'), 'screen') %#}
\t\t{% endif %}
\t\t{% if editmode %}
\t\t {% if app.environment == 'dev' %}
\t\t\t\t{% do pimcore_head_link().appendStylesheet(asset('/css/dev/editmode.css')) %}
\t\t\t{% else %}
\t\t\t\t{% do pimcore_head_link().appendStylesheet(asset('/css/prod/editmode.css')) %}
\t\t\t{% endif %}
\t\t{% endif %}
\t\t{# Load our usual JavaScript Stuff #}
\t\t{% do pimcore_head_script().appendFile(asset('/js/es6-promise.auto.min.js'), \"\") %}
\t\t{% do pimcore_head_script().appendFile(asset('/js/common.bundle.js'), \"\", {\"data-cookieconsent\": \"ignore\"}) %}
\t\t{% do pimcore_head_script().appendFile(asset('/js/ytplayer.bundle.js'), \"\", {\"data-cookieconsent\": \"marketing\"}) %}
\t\t{% do pimcore_head_script().appendFile(asset('/js/search.bundle.js')) %}
{% do pimcore_head_script().appendFile(asset('/js/productdetailsswiper.bundle.js')) %}
{% include '@App/TrackingScripts/echobot-leadfeeder.html.twig' %}
{% include '@App/TrackingScripts/sales-viewer.html.twig' %}
\t\t{% if not document is defined or not document %}
\t\t\t{% set document = pimcore_document(1) %}
\t\t{% endif %}
\t\t{% if document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Link') %}
\t\t\t{# @var document \\Pimcore\\Model\\Document\\Link #}
\t\t\t{% set document = document.getObject() %}
\t\t{% endif %}
\t\t{% if document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Snippet') %}
\t\t\t{# snippet #}
\t\t{% else %}
\t\t\t{% if document.getTitle() is not empty %}
\t\t\t\t{% do pimcore_head_title().set(document.getTitle()) %}
\t\t\t\t{% do pimcore_head_meta().setProperty('og:title',document.getTitle()) %}
\t\t\t{% endif %}
\t\t\t{% if pimcore_placeholder('title') is not empty %}
\t\t\t\t{% do pimcore_head_title().set(pimcore_placeholder('title')) %}
\t\t\t\t{% do pimcore_head_meta().setProperty('og:title',pimcore_placeholder('title')) %}
\t\t\t{% endif %}
\t\t\t{% if document.getDescription() is not empty %}
\t\t\t\t{% do pimcore_head_meta().setDescription(document.getDescription()) %}
\t\t\t\t{% do pimcore_head_meta().setProperty('og:description',document.getDescription()) %}
\t\t\t{% endif %}
\t\t\t{% if pimcore_placeholder('description') is not empty %}
\t\t\t\t{% do pimcore_head_meta().setDescription(pimcore_placeholder('description')) %}
\t\t\t\t{% do pimcore_head_meta().setProperty('og:description',pimcore_placeholder('description')) %}
\t\t\t{% endif %}
\t\t\t{% if pimcore_placeholder('share_image') is not empty %}
\t\t\t\t{% do pimcore_head_meta().setProperty('og:image',app.request.getSchemeAndHttpHost() ~ pimcore_placeholder('share_image')) %}
\t\t\t\t{% if pimcore_placeholder('share_image:width') is not empty %}
\t\t\t\t\t{% do pimcore_head_meta().setProperty('og:image:width',pimcore_placeholder('share_image:width')) %}
\t\t\t\t{% endif %}
\t\t\t\t{% if pimcore_placeholder('share_image:height') is not empty %}
\t\t\t\t\t{% do pimcore_head_meta().setProperty('og:image:height',pimcore_placeholder('share_image:height')) %}
\t\t\t\t{% endif %}
\t\t\t{% endif %}
\t\t\t{% if document.getProperty('og:site_name') %}
\t\t\t\t{% do pimcore_head_meta().setProperty('og:site_name',document.getProperty('og:site_name')) %}
\t\t\t{% endif %}
\t\t\t{% do pimcore_head_meta().setProperty('og:type','website') %}
\t\t\t{# nicht für website % do pimcore_head_meta().setProperty('og:locale ', app.request.locale) %#}
\t\t\t{% if pimcore_placeholder('url') is not empty %}
\t\t\t\t{% do pimcore_head_meta().setProperty('og:url',app.request.getSchemeAndHttpHost() ~ pimcore_placeholder('url')) %}
\t\t\t{% else %}
\t\t\t\t{% do pimcore_head_meta().setProperty('og:url ',app.request.getSchemeAndHttpHost() ~ document.getFullPath()) %}
\t\t\t{% endif %}
\t\t\t{# add hreflang links between the different languages #}
\t\t\t{% set languageVersions = foxhabbit_common_tool_get_document_translations( document, \"navRoot\") %}
\t\t\t{% for languageVersion in languageVersions %}
\t\t\t\t{% do pimcore_head_link( {rel: 'alternate', href: absolute_url( languageVersion.href), hreflang: languageVersion.locale}) %}
\t\t\t{% endfor %}
\t\t{% endif %}
\t{%- endapply %}
\t{# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
\t{% block layout_head_meta deferred -%}
\t\t{{ pimcore_head_title() }}
\t\t{{ pimcore_head_meta() }}
\t{% endblock %}
\t{% block head_stylesheets deferred -%}
\t\t{{ pimcore_head_link() }}
\t{% endblock %}
\t{% block scripts deferred -%}
\t{% do pimcore_head_script().setAllowArbitraryAttributes(true) %}
\t\t{{ pimcore_head_script() }}
\t{% endblock %}
\t{% include '@FoxHabbitBasis/Layout/includes/favicons.html.twig' %}
\t<script>
\t\t{# String.startsWith() Polyfill; needed for IE -#}
\t\tif (!String.prototype.startsWith) {
\t\t\tString.prototype.startsWith = function(searchString, position) {
\t\t\t\tposition = position || 0;
\t\t\t\treturn this.indexOf(searchString, position) === position;
\t\t\t};
\t\t}
\t\t{#
\t\t\tElement.classlist Polyfill
\t\t\tSobald wir den Support für IE9 streichen, kann das raus.
\t\t-#}
\t\t/**
\t\t* Element.prototype.classList for IE8/9, Safari.
\t\t* @author Kerem Güneş <k-gun@mail.com>
\t\t* @copyright Released under the MIT License <https://opensource.org/licenses/MIT>
\t\t* @version 1.2
\t\t* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/classList
\t\t*/
\t\t;(function() {
\t\t\t// Helpers.
\t\t\tvar trim = function(s) {
\t\t\t\t\treturn s.replace(/^\\s+|\\s+\$/g, '');
\t\t\t\t},
\t\t\t\tregExp = function(name) {
\t\t\t\t\treturn new RegExp('(^|\\\\s+)'+ name +'(\\\\s+|\$)');
\t\t\t\t},
\t\t\t\tforEach = function(list, fn, scope) {
\t\t\t\t\tfor (var i = 0; i < list.length; i++) {
\t\t\t\t\t\tfn.call(scope, list[i]);
\t\t\t\t\t}
\t\t\t\t};
\t\t\t// Class list object with basic methods.
\t\t\tfunction ClassList(element) {
\t\t\t\tthis.element = element;
\t\t\t}
\t\t\tClassList.prototype = {
\t\t\t\tadd: function() {
\t\t\t\t\tforEach(arguments, function(name) {
\t\t\t\t\t\tif (!this.contains(name)) {
\t\t\t\t\t\t\tthis.element.className = trim(this.element.className +' '+ name);
\t\t\t\t\t\t}
\t\t\t\t\t}, this);
\t\t\t\t},
\t\t\t\tremove: function() {
\t\t\t\t\tforEach(arguments, function(name) {
\t\t\t\t\t\tthis.element.className = trim(this.element.className.replace(regExp(name), ' '));
\t\t\t\t\t}, this);
\t\t\t\t},
\t\t\t\ttoggle: function(name) {
\t\t\t\t\treturn this.contains(name) ? (this.remove(name), false) : (this.add(name), true);
\t\t\t\t},
\t\t\t\tcontains: function(name) {
\t\t\t\t\treturn regExp(name).test(this.element.className);
\t\t\t\t},
\t\t\t\titem: function(i) {
\t\t\t\t\treturn this.element.className.split(/\\s+/)[i] || null;
\t\t\t\t},
\t\t\t\t// bonus
\t\t\t\treplace: function(oldName, newName) {
\t\t\t\t\tthis.remove(oldName), this.add(newName);
\t\t\t\t}
\t\t\t};
\t\t\t// IE8/9, Safari
\t\t\t// Remove this if statements to override native classList.
\t\t\tif (!('classList' in Element.prototype)) {
\t\t\t// Use this if statement to override native classList that does not have for example replace() method.
\t\t\t// See browser compatibility: https://developer.mozilla.org/en-US/docs/Web/API/Element/classList#Browser_compatibility.
\t\t\t// if (!('classList' in Element.prototype) ||
\t\t\t// !('classList' in Element.prototype && Element.prototype.classList.replace)) {
\t\t\t\tObject.defineProperty(Element.prototype, 'classList', {
\t\t\t\t\tget: function() {
\t\t\t\t\t\treturn new ClassList(this);
\t\t\t\t\t}
\t\t\t\t});
\t\t\t}
\t\t\t// For others replace() support.
\t\t\tif (window.DOMTokenList && !DOMTokenList.prototype.replace) {
\t\t\t\tDOMTokenList.prototype.replace = ClassList.prototype.replace;
\t\t\t}
\t\t})();
\t\t{# remove nojs class from HTML Element #}
\t\tdocument.documentElement.classList.replace('nojs', 'js');
\t</script>
</head>
{% set bodyclass = [] %}
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
\t{% set bodyclass = bodyclass|merge(['is-authenticated']) %}
{% endif %}
{% if editmode %}
\t{% set bodyclass = bodyclass|merge(['editmode']) %}
{% endif %}
<body id=\"page-top\" class=\"{{ bodyclass|join(' ') }}\" itemscope itemtype=\"http://schema.org/WebPage\">
\t{% if not editmode %}
\t\t<!-- TOPNAV START -->
\t\t{% set snippets = ['snippetTopnav'] %}
\t\t{% for snippetProperty in snippets %}
\t\t\t{% set snippet = document.getProperty(snippetProperty) %}
\t\t\t{% if snippet %}
\t\t\t\t{{pimcore_inc(snippet, { pageDocument: document})}}
{% else %}
{% set snippet = pimcore_website_config(snippetProperty) %}
{% if snippet %}
{{pimcore_inc(snippet, { pageDocument: document})}}
{% endif %}
\t\t\t{% endif %}
\t\t{% endfor %}
\t\t<!-- TOPNAV END -->
\t{% endif %}
\t<!-- MAIN CONTENT START -->
\t<article class=\"main-content\" role=\"main\">
\t\t<!-- start-index -->
\t\t{{ block('content') }}
\t\t{% set snippets = ['snippetArticleFooter'] %}
\t\t{% for snippetProperty in snippets %}
\t\t\t{% set snippet = document.getProperty(snippetProperty) %}
\t\t\t{% if snippet %}
\t\t\t\t{{pimcore_inc(snippet)}}
\t\t\t{% else %}
\t\t\t\t{% set snippet = pimcore_website_config(snippetProperty) %}
\t\t\t\t{% if snippet %}
\t\t\t\t\t{{pimcore_inc(snippet, { pageDocument: document})}}
\t\t\t\t{% endif %}
\t\t\t{% endif %}
\t\t{% endfor %}
\t\t<!-- /end-index -->
\t</article>
\t{% set snippets = ['snippetFooter'] %}
\t{% for snippetProperty in snippets %}
\t\t{% set snippet = document.getProperty(snippetProperty) %}
\t\t{% if snippet %}
\t\t\t{{pimcore_inc(snippet)}}
\t\t{% else %}
\t\t\t{% set snippet = pimcore_website_config(snippetProperty) %}
\t\t\t{% if snippet %}
\t\t\t\t{{pimcore_inc(snippet, { pageDocument: document})}}
\t\t\t{% endif %}
\t\t{% endif %}
\t{% endfor %}
\t<!-- MAIN CONTENT END -->
\t{% include '@FoxHabbitBasis/Layout/includes/photoswipe.html.twig' %}
{% if app.environment == 'dev' %}
<!-- START breakpoint infos for environment {{ app.environment }} -->
<div class=\"dev-breakpoint-information d-print-none\">
<div class=\"d-block d-sm-none\" data-title=\"XS\"></div>
<div class=\"d-none d-sm-block d-md-none\" data-title=\"SM\"></div>
<div class=\"d-none d-md-block d-lg-none\" data-title=\"MD\"></div>
<div class=\"d-none d-lg-block d-xl-none\" data-title=\"LG\"></div>
<div class=\"d-none d-xl-block\" data-title=\"XL\"></div>
</div>
<!-- END breakpoint infos -->
{% endif %}
\t{% include '@FoxHabbitBasis/Layout/includes/retargeting-pixel-script.html.twig' %}
</body>
</html>
", "@FoxHabbitBasis/Layout/layout.html.twig", "/srv/httpd/vhosts/lorch-test/releases/51/bundles/FoxHabbit/BasisBundle/Resources/views/Layout/layout.html.twig");
}
public function checkSecurity()
{
static $tags = array("apply" => 6, "if" => 16, "do" => 17, "include" => 57, "set" => 61, "for" => 117, "block" => 123);
static $filters = array("escape" => 2, "spaceless" => 6, "merge" => 228, "join" => 233);
static $functions = array("pimcore_head_link" => 17, "pimcore_website_config" => 18, "asset" => 30, "pimcore_head_script" => 52, "pimcore_document" => 61, "pimcore_head_title" => 73, "pimcore_head_meta" => 74, "pimcore_placeholder" => 77, "foxhabbit_common_tool_get_document_translations" => 116, "absolute_url" => 118, "is_granted" => 227, "pimcore_inc" => 240);
try {
$this->sandbox->checkSecurity(
['apply', 'if', 'do', 'include', 'set', 'for', 'block'],
['escape', 'spaceless', 'merge', 'join'],
['pimcore_head_link', 'pimcore_website_config', 'asset', 'pimcore_head_script', 'pimcore_document', 'pimcore_head_title', 'pimcore_head_meta', 'pimcore_placeholder', 'foxhabbit_common_tool_get_document_translations', 'absolute_url', 'is_granted', 'pimcore_inc']
);
} 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;
}