<?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;
/* includes/head.html.twig */
class __TwigTemplate_7ebe9a4f0c13e744ff32b3838e9aed6a 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'],
];
$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", "includes/head.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/head.html.twig"));
// line 6
$context["documentLanguage"] = 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.', 6, $this->source); })()), "getProperty", [0 => "language"], "method", false, false, true, 6);
// line 7
echo "<head>
\t<meta charset=\"utf-8\">
\t";
// line 9
ob_start();
// line 10
echo "\t\t";
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.', 10, $this->source); })()))) {
// line 11
echo "\t\t\t";
// line 12
echo "\t\t\t";
$context["document"] = Pimcore\Model\Document::getById(1);
// line 13
echo "\t\t";
}
// line 14
echo "
\t\t";
// line 15
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.', 15, $this->source); })()), "\\Pimcore\\Model\\Document\\Link")) {
// line 16
echo "\t\t\t";
// line 17
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.', 17, $this->source); })()), "getObject", [], "method", false, false, true, 17);
// line 18
echo "\t\t";
}
// line 19
echo "
\t\t";
// line 21
echo "\t\t";
echo $this->extensions['App\Twig\Extension\InlineCSSExtension']->getInline("site.critical.css");
echo "
\t\t";
// line 22
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/css/dist/site.main.css")], "method", false, false, true, 22);
// line 23
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("static/css/dist/site.print.css"), 1 => "print"], "method", false, false, true, 23);
// line 24
echo "\t\t";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 24, $this->source); })())) {
// line 25
echo "\t\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("static/css/dist/site.backend.css")], "method", false, false, true, 25);
// line 26
echo "\t\t";
}
// line 27
echo "
\t\t";
// line 29
echo "\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "enableWebLinks", [], "method", false, false, true, 29);
// line 30
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("static/js/vendor/modernizr-custom.js")], "method", false, false, true, 30);
// line 31
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("static/js/vendor/clickableMenu.js")], "method", false, false, true, 31);
// line 32
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("static/js/dist/runtime.bundle.js")], "method", false, false, true, 32);
// line 33
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("static/js/dist/vendors.bundle.js")], "method", false, false, true, 33);
// line 34
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("static/js/dist/main.bundle.js")], "method", false, false, true, 34);
// line 35
echo "
\t\t";
// line 37
echo "\t\t";
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.', 37, $this->source); })()), "getTitle", [], "method", false, false, true, 37))) {
// line 38
echo "\t\t\t";
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.', 38, $this->source); })()), "getTitle", [], "method", false, false, true, 38)], "method", false, false, true, 38);
// line 39
echo "\t\t";
}
// line 40
echo "
\t\t";
// line 41
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 41, $this->source); })()), "getProperty", [0 => "meta-title-suffix"], "method", false, false, true, 41)) && !twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 41, $this->source); })()), "getProperty", [0 => "meta-title-suffix-disable"], "method", false, false, true, 41))) {
// line 42
echo "\t\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "append", [0 => twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 42, $this->source); })()), "getProperty", [0 => "meta-title-suffix"], "method", false, false, true, 42)], "method", false, false, true, 42);
// line 43
echo "\t\t";
}
// line 44
echo "
\t\t";
// line 45
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "setSeparator", [0 => ((" " . ((twig_get_attribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", [0 => "meta-title-separator"], "method", true, true, true, 45)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", [0 => "meta-title-separator"], "method", false, false, true, 45), "-")) : ("-"))) . " ")], "method", false, false, true, 45);
// line 46
echo "
\t\t";
// line 48
echo "\t\t";
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.', 48, $this->source); })()), "getDescription", [], "method", false, false, true, 48))) {
// line 49
echo "\t\t\t";
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.', 49, $this->source); })()), "getDescription", [], "method", false, false, true, 49)], "method", false, false, true, 49);
// line 50
echo "\t\t";
}
// line 51
echo "
\t\t";
// line 52
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "appendName", [0 => "viewport", 1 => "width=device-width, initial-scale=1, shrink-to-fit=no"], "method", false, false, true, 52);
// line 53
echo "\t\t";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "appendName", [0 => "x-ua-compatible", 1 => "IE=Edge"], "method", false, false, true, 53);
// line 54
echo "
\t";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 9
echo twig_spaceless($___internal_parse_0_);
// line 56
echo "
\t";
// line 58
echo "\t";
echo $this->extensions['App\Twig\Extension\FontPreloadExtension']->getInline();
echo "
\t";
// line 61
echo "\t";
$this->loadTemplate("includes/partials/head/meta-social.html.twig", "includes/head.html.twig", 61)->display($context);
// line 62
echo "\t";
$this->loadTemplate("includes/partials/head/meta-favions.html.twig", "includes/head.html.twig", 62)->display($context);
// line 63
echo "
\t";
// line 65
echo "\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\Extension\LanguageSwitcherExtension']->getLocalizedLinks((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 65, $this->source); })())));
foreach ($context['_seq'] as $context["key"] => $context["lang"]) {
// line 66
echo "\t\t";
if ((twig_get_attribute($this->env, $this->source, $context["lang"], "language", [], "any", false, false, true, 66) != 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); })()), "getProperty", [0 => "language"], "method", false, false, true, 66))) {
// line 67
echo "\t\t";
// line 68
$this->env->getFunction('pimcore_head_link')->getCallable()(["rel" => "alternate", "href" => twig_get_attribute($this->env, $this->source, // line 70
$context["lang"], "link", [], "any", false, false, true, 70), "hreflang" => twig_get_attribute($this->env, $this->source, // line 71
$context["lang"], "language", [], "any", false, false, true, 71), "type" => "text/html"]);
// line 75
echo "\t\t";
}
// line 76
echo "\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['lang'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 77
echo "
\t";
// line 79
echo "\t";
$this->displayBlock('layout_head_meta', $context, $blocks);
// line 87
echo "
\t";
// line 88
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 91
echo "
\t<script type=\"text/javascript\">
\t\tvar isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
\t\tvar isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor);
\t\tvar isEdge = window.navigator.userAgent.indexOf(\"Edge\") > -1;
\t\tvar editmode = ";
// line 97
echo (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 97, $this->source); })())) ? ("true") : ("false"));
echo ";
\t\tvar locale = '";
// line 98
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["documentLanguage"]) || array_key_exists("documentLanguage", $context) ? $context["documentLanguage"] : (function () { throw new RuntimeError('Variable "documentLanguage" does not exist.', 98, $this->source); })()), 98, $this->source), "html", null, true);
echo "';
\t\tvar path = '";
// line 99
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 99, $this->source); })()), 99, $this->source), "html", null, true);
echo "';
\t\tvar device = '";
// line 100
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["device"]) || array_key_exists("device", $context) ? $context["device"] : (function () { throw new RuntimeError('Variable "device" does not exist.', 100, $this->source); })()), 100, $this->source), "html", null, true);
echo "';
\t\t//var deviceVendor = '';
\t\tvar devmode = ";
// line 102
echo ((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.', 102, $this->source); })()), "debug", [], "any", false, false, true, 102)) ? ("true") : ("false"));
echo ";
\t</script>
</head>
";
$__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 79
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 80
echo "\t\t";
echo $this->env->getFunction('pimcore_head_title')->getCallable()();
echo "
\t\t";
// line 81
echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
echo "
\t\t";
// line 83
if (twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_placeholder')->getCallable()("canonical"), "count", [], "method", false, false, true, 83)) {
// line 84
echo "\t\t\t<link rel=\"canonical\" href=\"";
echo $this->env->getFunction('pimcore_placeholder')->getCallable()("canonical");
echo "\"/>
\t\t";
}
// line 86
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 88
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 89
echo "\t\t";
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 getTemplateName()
{
return "includes/head.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 328 => 89, 318 => 88, 302 => 86, 296 => 84, 294 => 83, 289 => 81, 284 => 80, 274 => 79, 254 => 102, 249 => 100, 245 => 99, 241 => 98, 237 => 97, 229 => 91, 227 => 88, 224 => 87, 221 => 79, 218 => 77, 212 => 76, 209 => 75, 207 => 71, 206 => 70, 205 => 68, 203 => 67, 200 => 66, 195 => 65, 192 => 63, 189 => 62, 186 => 61, 180 => 58, 177 => 56, 175 => 9, 171 => 54, 168 => 53, 166 => 52, 163 => 51, 160 => 50, 157 => 49, 154 => 48, 151 => 46, 149 => 45, 146 => 44, 143 => 43, 140 => 42, 138 => 41, 135 => 40, 132 => 39, 129 => 38, 126 => 37, 123 => 35, 120 => 34, 117 => 33, 114 => 32, 111 => 31, 108 => 30, 105 => 29, 102 => 27, 99 => 26, 96 => 25, 93 => 24, 90 => 23, 88 => 22, 83 => 21, 80 => 19, 77 => 18, 74 => 17, 72 => 16, 70 => 15, 67 => 14, 64 => 13, 61 => 12, 59 => 11, 56 => 10, 54 => 9, 50 => 7, 48 => 6,);
}
public function getSourceContext()
{
return new Source("{#
project: Pimcore - Devicenow
User: EBiermann
Year: 2022
#}
{% set documentLanguage = document.getProperty('language') %}
<head>
\t<meta charset=\"utf-8\">
\t{% apply spaceless %}
\t\t{% if not document is defined or not document %}
\t\t\t{# @var document \\Pimcore\\Model\\Document\\Page #}
\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{# set css / styles #}
\t\t{{ get_css_inline('site.critical.css') }}
\t\t{% do pimcore_head_link().appendStylesheet(asset('static/css/dist/site.main.css')) %}
\t\t{% do pimcore_head_link().appendStylesheet(asset('static/css/dist/site.print.css'), 'print') %}
\t\t{% if editmode %}
\t\t\t{% do pimcore_head_link().appendStylesheet(asset('static/css/dist/site.backend.css')) %}
\t\t{% endif %}
\t\t{# set js / script #}
\t\t{% do pimcore_head_script().enableWebLinks() %}
\t\t{% do pimcore_head_script().appendFile(asset('static/js/vendor/modernizr-custom.js')) %}
\t\t{% do pimcore_head_script().appendFile(asset('static/js/vendor/clickableMenu.js')) %}
\t\t{% do pimcore_head_script().appendFile(asset('static/js/dist/runtime.bundle.js')) %}
\t\t{% do pimcore_head_script().appendFile(asset('static/js/dist/vendors.bundle.js')) %}
\t\t{% do pimcore_head_script().appendFile(asset('static/js/dist/main.bundle.js')) %}
\t\t{# set document title #}
\t\t{% if document.getTitle() is not empty %}
\t\t\t{% do pimcore_head_title().set(document.getTitle()) %}
\t\t{% endif %}
\t\t{% if document.getProperty('meta-title-suffix') is not empty and not document.getProperty('meta-title-suffix-disable') %}
\t\t\t{% do pimcore_head_title().append(document.getProperty('meta-title-suffix')) %}
\t\t{% endif %}
\t\t{% do pimcore_head_title().setSeparator(' ' ~ document.getProperty('meta-title-separator')|default('-') ~ ' ') %}
\t\t{# set general meta tags #}
\t\t{% if document.getDescription() is not empty %}
\t\t\t{% do pimcore_head_meta().setDescription(document.getDescription()) %}
\t\t{% endif %}
\t\t{% do pimcore_head_meta().appendName('viewport', 'width=device-width, initial-scale=1, shrink-to-fit=no') %}
\t\t{% do pimcore_head_meta().appendName('x-ua-compatible', 'IE=Edge') %}
\t{% endapply %}
\t{# add font preload tags #}
\t{{ get_font_preload_tags() }}
\t{# set social meta tags #}
\t{% include 'includes/partials/head/meta-social.html.twig' %}
\t{% include 'includes/partials/head/meta-favions.html.twig' %}
\t{# alternate langages #}
\t{% for key, lang in get_localized_links(document) %}
\t\t{% if lang.language != document.getProperty('language') %}
\t\t{%
\t\t\tdo pimcore_head_link({
\t\t\t\t'rel': 'alternate',
\t\t\t\t'href': lang.link,
\t\t\t\t'hreflang': lang.language,
\t\t\t\t'type': 'text/html'
\t\t\t})
\t\t%}
\t\t{% endif %}
\t{% endfor %}
\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\t{% if pimcore_placeholder('canonical').count() %}
\t\t\t<link rel=\"canonical\" href=\"{{ pimcore_placeholder('canonical') }}\"/>
\t\t{% endif %}
\t{% endblock %}
\t{% block head_stylesheets deferred %}
\t\t{{ pimcore_head_link() }}
\t{% endblock %}
\t<script type=\"text/javascript\">
\t\tvar isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
\t\tvar isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor);
\t\tvar isEdge = window.navigator.userAgent.indexOf(\"Edge\") > -1;
\t\tvar editmode = {{ editmode ? 'true' : 'false' }};
\t\tvar locale = '{{ documentLanguage }}';
\t\tvar path = '{{ document }}';
\t\tvar device = '{{ device }}';
\t\t//var deviceVendor = '';
\t\tvar devmode = {{ app.debug ? 'true' : 'false' }};
\t</script>
</head>
", "includes/head.html.twig", "/var/www/snr/staging.nuernberger-bratwuerste.de/templates/includes/head.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 6, "apply" => 9, "if" => 10, "do" => 22, "include" => 61, "for" => 65, "block" => 79);
static $filters = array("default" => 45, "spaceless" => 9, "escape" => 98);
static $functions = array("pimcore_document" => 12, "get_css_inline" => 21, "pimcore_head_link" => 22, "asset" => 22, "pimcore_head_script" => 29, "pimcore_head_title" => 38, "pimcore_head_meta" => 49, "get_font_preload_tags" => 58, "get_localized_links" => 65, "pimcore_placeholder" => 83);
try {
$this->sandbox->checkSecurity(
['set', 'apply', 'if', 'do', 'include', 'for', 'block'],
['default', 'spaceless', 'escape'],
['pimcore_document', 'get_css_inline', 'pimcore_head_link', 'asset', 'pimcore_head_script', 'pimcore_head_title', 'pimcore_head_meta', 'get_font_preload_tags', 'get_localized_links', 'pimcore_placeholder']
);
} 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;
}