<?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/layout/head.html.twig */
class __TwigTemplate_8cd8698320eda7843efe44c7da2008fe 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/layout/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/layout/head.html.twig"));
// line 1
echo "<!-- Required meta tags -->
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no\">
<link rel=\"icon\" href=\"/static/images/favicon.ico\" />
";
// line 5
ob_start();
// line 6
echo "
";
// line 8
echo " ";
$this->env->getFunction('pimcore_head_link')->getCallable()(["rel" => "preload", "href" => $this->extensions['Symfony\Bridge\Twig\Extension\WebLinkExtension']->preload($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/fonts/roboto/roboto-v30-latin-900.woff2")), "extras" => ["type" => "font/woff2", "crossorigin" => "anonymous", "as" => "font"]]);
// line 17
echo " ";
$this->env->getFunction('pimcore_head_link')->getCallable()(["rel" => "preload", "href" => $this->extensions['Symfony\Bridge\Twig\Extension\WebLinkExtension']->preload($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/fonts/roboto/roboto-v30-latin-regular.woff2")), "extras" => ["type" => "font/woff2", "crossorigin" => "anonymous", "as" => "font"]]);
// line 26
echo " ";
$this->env->getFunction('pimcore_head_link')->getCallable()(["rel" => "preload", "href" => $this->extensions['Symfony\Bridge\Twig\Extension\WebLinkExtension']->preload($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/fonts/roboto/roboto-v30-latin-500.woff2")), "extras" => ["type" => "font/woff2", "crossorigin" => "anonymous", "as" => "font"]]);
// line 35
echo " ";
$this->env->getFunction('pimcore_head_link')->getCallable()(["rel" => "preload", "href" => $this->extensions['Symfony\Bridge\Twig\Extension\WebLinkExtension']->preload($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/fonts/iconfont.ttf")), "extras" => ["type" => "font/ttf", "crossorigin" => "anonymous", "as" => "font"]]);
// line 44
echo "
";
// line 46
echo " ";
// line 47
echo "
";
// line 49
echo " ";
// line 50
echo " ";
// line 51
echo " ";
// line 52
echo "
";
// line 54
echo " ";
// line 55
echo "
";
// line 58
echo "
";
// line 59
$this->env->getFunction('pimcore_head_link')->getCallable()(["rel" => "preload", "href" => $this->extensions['Symfony\Bridge\Twig\Extension\WebLinkExtension']->preload($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/css/styles.min.css")), "extras" => ["type" => "text/css", "crossorigin" => "anonymous", "as" => "style"]]);
// line 68
echo "
";
// line 69
$this->env->getFunction('pimcore_head_link')->getCallable()(["rel" => "preload", "href" => $this->extensions['Symfony\Bridge\Twig\Extension\WebLinkExtension']->preload($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/js/main.modern.min.js")), "extras" => ["type" => "text/javascript", "crossorigin" => "anonymous", "as" => "script"]]);
// line 78
echo "
";
// line 79
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/styles.min.css")], "method", false, false, true, 79);
// line 80
echo " ";
// line 81
echo "
";
// line 82
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 82, $this->source); })())) {
// line 83
echo " ";
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/editmode.min.css")], "method", false, false, true, 83);
// line 84
echo " ";
}
// line 85
echo "
";
// line 86
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 86, $this->source); })())) {
// line 87
echo " ";
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/main.modern.min.js")], "method", false, false, true, 87);
// line 88
echo " ";
}
// line 89
echo "
";
// line 90
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.', 90, $this->source); })()))) {
// line 91
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
// line 92
echo " ";
}
// line 93
echo "
";
// line 94
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.', 94, $this->source); })()), "\\Pimcore\\Model\\Document\\Link")) {
// line 95
echo " ";
// line 96
echo " ";
$context["document"] = twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 96, $this->source); })()), "getObject", [], "method", false, false, true, 96);
// line 97
echo " ";
}
// line 98
echo "
";
// line 99
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.', 99, $this->source); })()), "getTitle", [], "method", false, false, true, 99))) {
// line 100
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [0 => twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 100, $this->source); })()), "getTitle", [], "method", false, false, true, 100)], "method", false, false, true, 100);
// line 101
echo " ";
}
// line 102
echo "
";
// line 103
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.', 103, $this->source); })()), "getDescription", [], "method", false, false, true, 103))) {
// line 104
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [0 => twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 104, $this->source); })()), "getDescription", [], "method", false, false, true, 104)], "method", false, false, true, 104);
// line 105
echo " ";
}
// line 106
echo "
";
// line 107
$context["og_image"] = null;
// line 108
echo " ";
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 108, $this->source); })()), "getEditable", [0 => "headerSlider"], "method", false, false, true, 108)) && $this->env->getTest('instanceof')->getCallable()(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 108, $this->source); })()), "getEditable", [0 => "headerSlider"], "method", false, false, true, 108), "getElements", [], "method", false, false, true, 108), 0, [], "array", false, false, true, 108), "\\Pimcore\\Model\\Asset\\Image"))) {
// line 109
echo " ";
$context["og_image"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 109, $this->source); })()), "getEditable", [0 => "headerSlider"], "method", false, false, true, 109), "getElements", [], "method", false, false, true, 109), 0, [], "array", false, false, true, 109);
// line 110
echo " ";
}
// line 111
echo "
";
// line 112
if (( !twig_test_empty((isset($context["og_image"]) || array_key_exists("og_image", $context) ? $context["og_image"] : (function () { throw new RuntimeError('Variable "og_image" does not exist.', 112, $this->source); })())) && $this->env->getTest('instanceof')->getCallable()((isset($context["og_image"]) || array_key_exists("og_image", $context) ? $context["og_image"] : (function () { throw new RuntimeError('Variable "og_image" does not exist.', 112, $this->source); })()), "\\Pimcore\\Model\\Asset\\Image"))) {
// line 113
echo " ";
$context["og_image"] = twig_get_attribute($this->env, $this->source, (isset($context["og_image"]) || array_key_exists("og_image", $context) ? $context["og_image"] : (function () { throw new RuntimeError('Variable "og_image" does not exist.', 113, $this->source); })()), "getThumbnail", [0 => ["items" => [0 => ["method" => "scaleByWidth", "arguments" => ["width" => 1200, "forceResize" => true]], 1 => ["method" => "cover", "arguments" => ["width" => 1200, "height" => 630, "positioning" => "center", "forceResize" => true]]], "medias" => [], "format" => "PJPEG", "quality" => 85, "highResolution" => 0.0, "preserveColor" => true, "preserveMetaData" => false, "rasterizeSVG" => false, "downloadable" => false, "forcePictureTag" => false, "name" => "openGraph", "id" => "openGraph"]], "method", false, false, true, 113);
// line 135
echo " ";
$context["og_image"] = ($this->extensions['App\Twig\Extension\ConectoExtension']->getHostname() . $this->sandbox->ensureToStringAllowed((isset($context["og_image"]) || array_key_exists("og_image", $context) ? $context["og_image"] : (function () { throw new RuntimeError('Variable "og_image" does not exist.', 135, $this->source); })()), 135, $this->source));
// line 136
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "appendProperty", [0 => "og:image", 1 => (isset($context["og_image"]) || array_key_exists("og_image", $context) ? $context["og_image"] : (function () { throw new RuntimeError('Variable "og_image" does not exist.', 136, $this->source); })())], "method", false, false, true, 136);
// line 137
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "appendProperty", [0 => "og:image:width", 1 => 1200], "method", false, false, true, 137);
// line 138
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "appendProperty", [0 => "og:image:height", 1 => 630], "method", false, false, true, 138);
// line 139
echo " ";
}
// line 140
echo "
";
// line 144
echo "
";
// line 145
$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.', 145, $this->source); })())));
foreach ($context['_seq'] as $context["key"] => $context["lang"]) {
// line 146
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendAlternate", [0 => twig_get_attribute($this->env, $this->source, $context["lang"], "link", [], "any", false, false, true, 146), 1 => null, 2 => null, 3 => ["hreflang" => $context["key"]]], "method", false, false, true, 146);
// line 147
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['lang'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$___internal_parse_1_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 5
echo twig_spaceless($___internal_parse_1_);
// line 150
echo "
";
// line 152
echo " ";
$this->displayBlock('layout_head_meta', $context, $blocks);
// line 166
echo "
";
// line 167
$this->displayBlock('head_stylesheets', $context, $blocks);
// line 176
echo "
";
$__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 152
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 153
echo "
";
// line 154
echo $this->env->getFunction('pimcore_head_title')->getCallable()();
echo "
";
// line 155
echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
echo "
";
// line 160
echo "
";
// line 161
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 161, $this->source); })()), "getMetaData", [], "method", false, false, true, 161));
foreach ($context['_seq'] as $context["_key"] => $context["meta"]) {
// line 162
echo " ";
echo $this->sandbox->ensureToStringAllowed($context["meta"], 162, $this->source);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['meta'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 164
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function block_head_stylesheets($context, array $blocks = [])
{
$this->deferred->defer($this, 'head_stylesheets');
}
// line 167
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 168
echo "
";
// line 170
echo " ";
echo twig_include($this->env, $context, "includes/cookie-consent.html.twig");
echo "
";
// line 172
echo $this->env->getFunction('pimcore_head_style')->getCallable()();
echo "
";
// line 173
echo $this->env->getFunction('pimcore_head_link')->getCallable()();
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$this->deferred->resolve($this, $context, $blocks);
}
public function getTemplateName()
{
return "includes/layout/head.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 343 => 173, 339 => 172, 333 => 170, 330 => 168, 320 => 167, 303 => 164, 294 => 162, 290 => 161, 287 => 160, 282 => 155, 278 => 154, 275 => 153, 265 => 152, 248 => 176, 246 => 167, 243 => 166, 240 => 152, 237 => 150, 235 => 5, 228 => 147, 225 => 146, 221 => 145, 218 => 144, 215 => 140, 212 => 139, 209 => 138, 206 => 137, 203 => 136, 200 => 135, 197 => 113, 195 => 112, 192 => 111, 189 => 110, 186 => 109, 183 => 108, 181 => 107, 178 => 106, 175 => 105, 172 => 104, 170 => 103, 167 => 102, 164 => 101, 161 => 100, 159 => 99, 156 => 98, 153 => 97, 150 => 96, 148 => 95, 146 => 94, 143 => 93, 140 => 92, 137 => 91, 135 => 90, 132 => 89, 129 => 88, 126 => 87, 124 => 86, 121 => 85, 118 => 84, 115 => 83, 113 => 82, 110 => 81, 108 => 80, 106 => 79, 103 => 78, 101 => 69, 98 => 68, 96 => 59, 93 => 58, 90 => 55, 88 => 54, 85 => 52, 83 => 51, 81 => 50, 79 => 49, 76 => 47, 74 => 46, 71 => 44, 68 => 35, 65 => 26, 62 => 17, 59 => 8, 56 => 6, 54 => 5, 48 => 1,);
}
public function getSourceContext()
{
return new Source("<!-- Required meta tags -->
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no\">
<link rel=\"icon\" href=\"/static/images/favicon.ico\" />
{% apply spaceless %}
{#preload fonts#}
{% do pimcore_head_link({
\"rel\":\"preload\",
\"href\":preload(asset(\"static/fonts/roboto/roboto-v30-latin-900.woff2\")),
\"extras\":{
\"type\":\"font/woff2\",
\"crossorigin\": \"anonymous\",
\"as\":\"font\"
}
}) %}
{% do pimcore_head_link({
\"rel\":\"preload\",
\"href\":preload(asset(\"static/fonts/roboto/roboto-v30-latin-regular.woff2\")),
\"extras\":{
\"type\":\"font/woff2\",
\"crossorigin\": \"anonymous\",
\"as\":\"font\"
}
}) %}
{% do pimcore_head_link({
\"rel\":\"preload\",
\"href\":preload(asset(\"static/fonts/roboto/roboto-v30-latin-500.woff2\")),
\"extras\":{
\"type\":\"font/woff2\",
\"crossorigin\": \"anonymous\",
\"as\":\"font\"
}
}) %}
{% do pimcore_head_link({
\"rel\":\"preload\",
\"href\":preload(asset(\"static/fonts/iconfont.ttf\")),
\"extras\":{
\"type\":\"font/ttf\",
\"crossorigin\": \"anonymous\",
\"as\":\"font\"
}
}) %}
{# add global stylesheets and scripts outside of any blocks to add them to the helpers before any others assets are added #}
{# we use the view helper to have cache buster functionality #}
{# css inclusion with link tag #}
{# do pimcore_head_link().appendStylesheet(asset('static/css/styles.css')) #}
{# inline css inclusion #}
{# do pimcore_head_style().appendStyle(fileContent) #}
{# {% set cssFile = conecto_inline_data('static/css/styles.min.css') %} #}
{# {% do pimcore_head_style().appendStyle(cssFile) %} %} #}
{#{% do pimcore_head_link({\"rel\":\"preload\", \"href\":preload(asset(\"static/css/styles.min.css\"))}) %}
{% do pimcore_head_link({\"rel\":\"preload\", \"href\":preload(asset(\"static/css/styles.data.css\"))}) %}#}
{% do pimcore_head_link({
\"rel\":\"preload\",
\"href\":preload(asset('static/css/styles.min.css')),
\"extras\":{
\"type\":\"text/css\",
\"crossorigin\": \"anonymous\",
\"as\":\"style\"
}
}) %}
{% do pimcore_head_link({
\"rel\":\"preload\",
\"href\":preload(asset('static/js/main.modern.min.js')),
\"extras\":{
\"type\":\"text/javascript\",
\"crossorigin\": \"anonymous\",
\"as\":\"script\"
}
}) %}
{% do pimcore_head_link().appendStylesheet(asset('static/css/styles.min.css')) %}
{#{% do pimcore_head_link().appendStylesheet(asset('static/css/styles.data.css')) %}#}
{% if editmode %}
{% do pimcore_head_link().appendStylesheet(asset('static/css/editmode.min.css')) %}
{% endif %}
{% if not editmode %}
{% do pimcore_head_script().appendFile(asset('static/js/main.modern.min.js')) %}
{% endif %}
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{% if document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Link') %}
{# @var document \\Pimcore\\Model\\Document\\Link #}
{% set document = document.getObject() %}
{% endif %}
{% if document.getTitle() is not empty %}
{% do pimcore_head_title().set(document.getTitle()) %}
{% endif %}
{% if document.getDescription() is not empty %}
{% do pimcore_head_meta().setDescription(document.getDescription()) %}
{% endif %}
{% set og_image = null %}
{% if document.getEditable('headerSlider') is not empty and document.getEditable('headerSlider').getElements()[0] is instanceof('\\\\Pimcore\\\\Model\\\\Asset\\\\Image') %}
{% set og_image = document.getEditable('headerSlider').getElements()[0] %}
{% endif %}
{% if og_image is not empty and og_image is instanceof('\\\\Pimcore\\\\Model\\\\Asset\\\\Image') %}
{% set og_image = og_image.getThumbnail({
\"items\" : [
{
\"method\" : \"scaleByWidth\",
\"arguments\" : { \"width\" : 1200, \"forceResize\" : true }
},{
\"method\" : \"cover\",
\"arguments\" : { \"width\" : 1200, \"height\" : 630, \"positioning\" : \"center\", \"forceResize\" : true }
}
],
\"medias\" : [],
\"format\" : \"PJPEG\",
\"quality\" : 85,
\"highResolution\" : 0.0,
\"preserveColor\" : TRUE,
\"preserveMetaData\" : FALSE,
\"rasterizeSVG\" : FALSE,
\"downloadable\" : FALSE,
\"forcePictureTag\" : FALSE,
\"name\": \"openGraph\",
\"id\": \"openGraph\"
}) %}
{% set og_image = conecto_get_hostname() ~ og_image %}
{% do pimcore_head_meta().appendProperty('og:image', og_image) %}
{% do pimcore_head_meta().appendProperty('og:image:width', 1200) %}
{% do pimcore_head_meta().appendProperty('og:image:height', 630) %}
{% endif %}
{# <!-- Wenn gewünscht, Site-Title anhängen -->
{% do pimcore_head_title().append(pimcore_website_config('page-title')) %}
{% do pimcore_head_title().setSeparator(' - ') %}#}
{% for key, lang in get_localized_links(document) %}
{% do pimcore_head_link().appendAlternate(\"#{lang.link}\", null, null, {\"hreflang\": \"#{key}\"}) %}
{% endfor %}
{%- endapply %}
{# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
{% block layout_head_meta deferred %}
{{ pimcore_head_title() }}
{{ pimcore_head_meta() }}
{#{% if pimcore_placeholder('canonical').count() %}
<link rel=\"canonical\" href=\"{{ pimcore_placeholder('canonical') }}\"/>
{% endif %}#}
{% for meta in document.getMetaData() %}
{{ meta|raw }}
{% endfor %}
{% endblock %}
{% block head_stylesheets deferred %}
{# tarteaucitron #}
{{ include('includes/cookie-consent.html.twig') }}
{{ pimcore_head_style() }}
{{ pimcore_head_link() }}
{% endblock %}
{# <style>
{{ conecto_inline_data('static/css/styles.data.css')|raw }}
</style>
<style>
{{ conecto_inline_data('static/css/styles.min.css')|raw }}
</style>
#}", "includes/layout/head.html.twig", "/html/pimcore/templates/includes/layout/head.html.twig");
}
public function checkSecurity()
{
static $tags = array("apply" => 5, "do" => 8, "if" => 82, "set" => 91, "for" => 145, "block" => 152);
static $filters = array("spaceless" => 5, "raw" => 162);
static $functions = array("pimcore_head_link" => 8, "preload" => 10, "asset" => 10, "pimcore_head_script" => 87, "pimcore_document" => 91, "pimcore_head_title" => 100, "pimcore_head_meta" => 104, "conecto_get_hostname" => 135, "get_localized_links" => 145, "include" => 170, "pimcore_head_style" => 172);
try {
$this->sandbox->checkSecurity(
['apply', 'do', 'if', 'set', 'for', 'block'],
['spaceless', 'raw'],
['pimcore_head_link', 'preload', 'asset', 'pimcore_head_script', 'pimcore_document', 'pimcore_head_title', 'pimcore_head_meta', 'conecto_get_hostname', 'get_localized_links', 'include', 'pimcore_head_style']
);
} 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;
}