<?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;
/* layout/layout-snippet.html.twig */
class __TwigTemplate_3d38d08cb607a118974420d91e82b910 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'head_stylesheets' => [$this, 'block_head_stylesheets'],
'layout_head_meta' => [$this, 'block_layout_head_meta'],
'headscripts' => [$this, 'block_headscripts'],
];
$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", "layout/layout-snippet.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/layout-snippet.html.twig"));
// line 1
ob_start();
// line 2
echo "
";
// line 4
echo " ";
$context["pageName"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("pageName", null, 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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "locale", [], "any", false, false, false, 4));
// line 5
echo "
";
// line 7
echo "
";
// line 8
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_link')->getCallable(), []), "appendStylesheet", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/dist/css/app.min.css")], "method", false, false, false, 8);
// line 9
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 9, $this->source); })())) {
// line 10
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_link')->getCallable(), []), "appendStylesheet", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/dist/css/editmode.min.css")], "method", false, false, false, 10);
// line 11
echo " ";
}
// line 12
echo " ";
// line 13
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/dist/js/app.min.js")], "method", false, false, false, 13);
// line 14
echo "
";
// line 16
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($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.', 16, $this->source); })()), "getProperty", [0 => "title"], "method", false, false, false, 16)], "method", false, false, false, 16);
// line 17
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_title')->getCallable(), []), "append", [0 => (isset($context["pageName"]) || array_key_exists("pageName", $context) ? $context["pageName"] : (function () { throw new RuntimeError('Variable "pageName" does not exist.', 17, $this->source); })())], "method", false, false, false, 17);
// line 18
echo " ";
// line 19
echo " ";
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.', 19, $this->source); })()), "getProperty", [0 => "title"], "method", false, false, false, 19)) {
// line 20
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_title')->getCallable(), []), "setSeparator", [0 => " | "], "method", false, false, false, 20);
// line 21
echo " ";
}
// line 22
echo "
";
// line 24
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($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.', 24, $this->source); })()), "getProperty", [0 => "description"], "method", false, false, false, 24)], "method", false, false, false, 24);
// line 25
echo "
";
// line 26
if ((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.', 26, $this->source); })()), "request", [], "any", false, false, false, 26), "schemeAndHttpHost", [], "any", false, false, false, 26) == "https://apimedia.a4interactive.ch")) {
// line 27
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setName", [0 => "robots", 1 => "noindex, follow"], "method", false, false, false, 27);
// line 28
echo " ";
} else {
// line 29
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setName", [0 => "robots", 1 => "index, follow"], "method", false, false, false, 29);
// line 30
echo " ";
}
// line 31
echo "
";
// line 32
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []), "setName", [0 => "language", 1 => 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.', 32, $this->source); })()), "request", [], "any", false, false, false, 32), "locale", [], "any", false, false, false, 32)], "method", false, false, false, 32);
// line 33
echo "
";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 1
echo twig_spaceless($___internal_parse_0_);
// line 35
echo "
<!DOCTYPE html>
<html lang=\"";
// line 37
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 37, $this->source); })()), "request", [], "any", false, false, false, 37), "locale", [], "any", false, false, false, 37), "html", null, true);
echo "\">
<head>
<meta charset=\"UTF-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5\">
";
// line 44
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 47
echo "
";
// line 50
echo " ";
$this->loadTemplate("includes/favicons.html.twig", "layout/layout-snippet.html.twig", 50)->display($context);
// line 51
echo " ";
// line 52
echo "
<link rel=\"canonical\" href=\"";
// line 53
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 53, $this->source); })()), "request", [], "any", false, false, false, 53), "getSchemeAndHttpHost", [], "any", false, false, false, 53) . 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.', 53, $this->source); })()), "request", [], "any", false, false, false, 53), "baseUrl", [], "any", false, false, false, 53)) . 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.', 53, $this->source); })()), "request", [], "any", false, false, false, 53), "pathInfo", [], "any", false, false, false, 53)), "html", null, true);
echo "\"/>
";
// line 56
echo " ";
$this->displayBlock('layout_head_meta', $context, $blocks);
// line 60
echo "
";
// line 62
echo " ";
$context["subdomainName"] = ("https://" . $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("subdomain"));
// line 63
echo " ";
$this->loadTemplate("includes/window-vars.html.twig", "layout/layout-snippet.html.twig", 63)->display($context);
// line 64
echo " ";
// line 65
echo "</head>
<body id=\"body\" class=\"snippet-body\">
<main class=\"wrapper-body noSelect\">
";
// line 69
$this->displayBlock("content", $context, $blocks);
echo "
";
// line 71
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 71, $this->source); })())) {
// line 72
echo " ";
echo twig_include($this->env, $context, "includes/blocks/cookies-eu-banner.html.twig");
echo "
";
}
// line 74
echo "
";
// line 77
echo " ";
// line 78
echo " </main>
</body>
";
// line 81
$this->displayBlock('headscripts', $context, $blocks);
// line 84
echo "</html>";
$this->deferred->resolve($this, $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function block_head_stylesheets($context, array $blocks = [])
{
$this->deferred->defer($this, 'head_stylesheets');
}
// line 44
public function block_head_stylesheets_deferred($context, array $blocks = [])
{
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
// line 45
echo " ";
echo call_user_func_array($this->env->getFunction('pimcore_head_link')->getCallable(), []);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function block_layout_head_meta($context, array $blocks = [])
{
$this->deferred->defer($this, 'layout_head_meta');
}
// line 56
public function block_layout_head_meta_deferred($context, array $blocks = [])
{
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta"));
// line 57
echo " ";
echo call_user_func_array($this->env->getFunction('pimcore_head_title')->getCallable(), []);
echo "
";
// line 58
echo call_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function block_headscripts($context, array $blocks = [])
{
$this->deferred->defer($this, 'headscripts');
}
// line 81
public function block_headscripts_deferred($context, array $blocks = [])
{
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
// line 82
echo " ";
echo call_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function getTemplateName()
{
return "layout/layout-snippet.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 294 => 82, 285 => 81, 267 => 58, 262 => 57, 253 => 56, 234 => 45, 225 => 44, 209 => 84, 207 => 81, 202 => 78, 200 => 77, 197 => 74, 191 => 72, 189 => 71, 184 => 69, 178 => 65, 176 => 64, 173 => 63, 170 => 62, 167 => 60, 164 => 56, 159 => 53, 156 => 52, 154 => 51, 151 => 50, 147 => 47, 145 => 44, 135 => 37, 131 => 35, 129 => 1, 125 => 33, 123 => 32, 120 => 31, 117 => 30, 114 => 29, 111 => 28, 108 => 27, 106 => 26, 103 => 25, 100 => 24, 97 => 22, 94 => 21, 91 => 20, 88 => 19, 86 => 18, 83 => 17, 80 => 16, 77 => 14, 74 => 13, 72 => 12, 69 => 11, 66 => 10, 63 => 9, 61 => 8, 58 => 7, 55 => 5, 52 => 4, 49 => 2, 47 => 1,);
}
public function getSourceContext()
{
return new Source("{% apply spaceless %}
{# Page name #}
{% set pageName = pimcore_website_config('pageName', null, app.request.locale) %}
{# styles #}
{% do pimcore_head_link().appendStylesheet(asset('/assets/dist/css/app.min.css')) %}
{% if editmode %}
{% do pimcore_head_link().appendStylesheet(asset('/assets/dist/css/editmode.min.css')) %}
{% endif %}
{# scripts #}
{% do pimcore_head_script().appendFile(asset('/assets/dist/js/app.min.js')) %}
{# Title#}
{% do pimcore_head_title().set(document.getProperty('title')) %}
{% do pimcore_head_title().append(pageName) %}
{##}
{% if document.getProperty('title') %}
{% do pimcore_head_title().setSeparator(' | ') %}
{% endif %}
{# Meta-Tags #}
{% do pimcore_head_meta().setDescription(document.getProperty(\"description\")) %}
{% if app.request.schemeAndHttpHost == \"https://apimedia.a4interactive.ch\" %}
{% do pimcore_head_meta().setName('robots', 'noindex, follow') %}
{% else %}
{% do pimcore_head_meta().setName('robots', 'index, follow') %}
{% endif %}
{% do pimcore_head_meta().setName('language', app.request.locale) %}
{% endapply %}
<!DOCTYPE html>
<html lang=\"{{ app.request.locale }}\">
<head>
<meta charset=\"UTF-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5\">
{% block head_stylesheets deferred %}
{{ pimcore_head_link() }}
{% endblock %}
{# favicon Start #}
{% include 'includes/favicons.html.twig' %}
{# favicon End #}
<link rel=\"canonical\" href=\"{{ app.request.getSchemeAndHttpHost ~ app.request.baseUrl ~ app.request.pathInfo }}\"/>
{##}
{% block layout_head_meta deferred %}
{{ pimcore_head_title() }}
{{ pimcore_head_meta() }}
{% endblock %}
{# window variables start #}
{% set subdomainName = \"https://#{pimcore_website_config('subdomain')}\" %}
{% include 'includes/window-vars.html.twig' %}
{# window variables end #}
</head>
<body id=\"body\" class=\"snippet-body\">
<main class=\"wrapper-body noSelect\">
{{ block('content') }}
{% if not editmode %}
{{ include('includes/blocks/cookies-eu-banner.html.twig') }}
{% endif %}
{# footer start
{{ pimcore_inc(document.getProperty('footer')) }}#}
{# footer end #}
</main>
</body>
{% block headscripts deferred %}
{{ pimcore_head_script() | raw }}
{% endblock %}
</html>", "layout/layout-snippet.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/apimedia.a4interactive.ch/apimedia/templates/layout/layout-snippet.html.twig");
}
}