var/cache/dev/twig/be/beac23bfe6ce9c58a5e71b1e93f183a4.php line 184

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* includes/layout/head.html.twig */
  14. class __TwigTemplate_8cd8698320eda7843efe44c7da2008fe extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source = $this->getSourceContext();
  22.         $this->parent = false;
  23.         $this->blocks = [
  24.             'layout_head_meta' => [$this, 'block_layout_head_meta'],
  25.             'head_stylesheets' => [$this, 'block_head_stylesheets'],
  26.         ];
  27.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.         $this->deferred = $this->env->getExtension('Twig\DeferredExtension\DeferredExtension');
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros = $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/layout/head.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/layout/head.html.twig"));
  38.         // line 1
  39.         echo "<!-- Required meta tags -->
  40. <meta charset=\"utf-8\">
  41. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no\">
  42. <link rel=\"icon\" href=\"/static/images/favicon.ico\" />
  43. ";
  44.         // line 5
  45.         ob_start();
  46.         // line 6
  47.         echo "
  48.     ";
  49.         // line 8
  50.         echo "    ";
  51.         $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"]]);
  52.         // line 17
  53.         echo "    ";
  54.         $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"]]);
  55.         // line 26
  56.         echo "    ";
  57.         $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"]]);
  58.         // line 35
  59.         echo "    ";
  60.         $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"]]);
  61.         // line 44
  62.         echo "
  63.     ";
  64.         // line 46
  65.         echo "    ";
  66.         // line 47
  67.         echo "
  68.     ";
  69.         // line 49
  70.         echo "    ";
  71.         // line 50
  72.         echo "    ";
  73.         // line 51
  74.         echo "    ";
  75.         // line 52
  76.         echo "
  77.     ";
  78.         // line 54
  79.         echo "    ";
  80.         // line 55
  81.         echo "
  82.     ";
  83.         // line 58
  84.         echo "
  85.     ";
  86.         // line 59
  87.         $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"]]);
  88.         // line 68
  89.         echo "
  90.     ";
  91.         // line 69
  92.         $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"]]);
  93.         // line 78
  94.         echo "
  95.     ";
  96.         // line 79
  97.         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);
  98.         // line 80
  99.         echo "    ";
  100.         // line 81
  101.         echo "
  102.     ";
  103.         // line 82
  104.         if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 82, $this->source); })())) {
  105.             // line 83
  106.             echo "        ";
  107.             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);
  108.             // line 84
  109.             echo "    ";
  110.         }
  111.         // line 85
  112.         echo "
  113.     ";
  114.         // line 86
  115.         if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 86, $this->source); })())) {
  116.             // line 87
  117.             echo "        ";
  118.             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);
  119.             // line 88
  120.             echo "    ";
  121.         }
  122.         // line 89
  123.         echo "
  124.     ";
  125.         // line 90
  126.         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); })()))) {
  127.             // line 91
  128.             echo "        ";
  129.             $context["document"] = Pimcore\Model\Document::getById(1);
  130.             // line 92
  131.             echo "    ";
  132.         }
  133.         // line 93
  134.         echo "
  135.     ";
  136.         // line 94
  137.         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")) {
  138.             // line 95
  139.             echo "        ";
  140.             // line 96
  141.             echo "        ";
  142.             $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);
  143.             // line 97
  144.             echo "    ";
  145.         }
  146.         // line 98
  147.         echo "
  148.     ";
  149.         // line 99
  150.         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))) {
  151.             // line 100
  152.             echo "        ";
  153.             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);
  154.             // line 101
  155.             echo "    ";
  156.         }
  157.         // line 102
  158.         echo "
  159.     ";
  160.         // line 103
  161.         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))) {
  162.             // line 104
  163.             echo "        ";
  164.             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);
  165.             // line 105
  166.             echo "    ";
  167.         }
  168.         // line 106
  169.         echo "
  170.     ";
  171.         // line 107
  172.         $context["og_image"] = null;
  173.         // line 108
  174.         echo "    ";
  175.         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"))) {
  176.             // line 109
  177.             echo "        ";
  178.             $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);
  179.             // line 110
  180.             echo "    ";
  181.         }
  182.         // line 111
  183.         echo "
  184.     ";
  185.         // line 112
  186.         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"))) {
  187.             // line 113
  188.             echo "        ";
  189.             $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);
  190.             // line 135
  191.             echo "        ";
  192.             $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));
  193.             // line 136
  194.             echo "        ";
  195.             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);
  196.             // line 137
  197.             echo "        ";
  198.             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);
  199.             // line 138
  200.             echo "        ";
  201.             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);
  202.             // line 139
  203.             echo "    ";
  204.         }
  205.         // line 140
  206.         echo "
  207.     ";
  208.         // line 144
  209.         echo "
  210.     ";
  211.         // line 145
  212.         $context['_parent'] = $context;
  213.         $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); })())));
  214.         foreach ($context['_seq'] as $context["key"] => $context["lang"]) {
  215.             // line 146
  216.             echo "        ";
  217.             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);
  218.             // line 147
  219.             echo "    ";
  220.         }
  221.         $_parent = $context['_parent'];
  222.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['lang'], $context['_parent'], $context['loop']);
  223.         $context = array_intersect_key($context, $_parent) + $_parent;
  224.         $___internal_parse_1_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
  225.         // line 5
  226.         echo twig_spaceless($___internal_parse_1_);
  227.         // line 150
  228.         echo "
  229.     ";
  230.         // line 152
  231.         echo "    ";
  232.         $this->displayBlock('layout_head_meta', $context, $blocks);
  233.         // line 166
  234.         echo "
  235.     ";
  236.         // line 167
  237.         $this->displayBlock('head_stylesheets', $context, $blocks);
  238.         // line 176
  239.         echo "
  240.   ";
  241.         
  242.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  243.         
  244.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  245.         $this->deferred->resolve($this, $context, $blocks);
  246.     }
  247.     public function block_layout_head_meta($context, array $blocks = [])
  248.     {
  249.         $this->deferred->defer($this, 'layout_head_meta');
  250.     }
  251.     // line 152
  252.     public function block_layout_head_meta_deferred($context, array $blocks = [])
  253.     {
  254.         $macros = $this->macros;
  255.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  256.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta"));
  257.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  258.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta"));
  259.         // line 153
  260.         echo "
  261.     ";
  262.         // line 154
  263.         echo $this->env->getFunction('pimcore_head_title')->getCallable()();
  264.         echo "
  265.     ";
  266.         // line 155
  267.         echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
  268.         echo "
  269.     ";
  270.         // line 160
  271.         echo "
  272.     ";
  273.         // line 161
  274.         $context['_parent'] = $context;
  275.         $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));
  276.         foreach ($context['_seq'] as $context["_key"] => $context["meta"]) {
  277.             // line 162
  278.             echo "        ";
  279.             echo $this->sandbox->ensureToStringAllowed($context["meta"], 162, $this->source);
  280.             echo "
  281.     ";
  282.         }
  283.         $_parent = $context['_parent'];
  284.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['meta'], $context['_parent'], $context['loop']);
  285.         $context = array_intersect_key($context, $_parent) + $_parent;
  286.         // line 164
  287.         echo "
  288.     ";
  289.         
  290.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  291.         
  292.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  293.         $this->deferred->resolve($this, $context, $blocks);
  294.     }
  295.     public function block_head_stylesheets($context, array $blocks = [])
  296.     {
  297.         $this->deferred->defer($this, 'head_stylesheets');
  298.     }
  299.     // line 167
  300.     public function block_head_stylesheets_deferred($context, array $blocks = [])
  301.     {
  302.         $macros = $this->macros;
  303.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  304.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
  305.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  306.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
  307.         // line 168
  308.         echo "
  309.     ";
  310.         // line 170
  311.         echo "    ";
  312.         echo twig_include($this->env, $context, "includes/cookie-consent.html.twig");
  313.         echo "
  314.     ";
  315.         // line 172
  316.         echo $this->env->getFunction('pimcore_head_style')->getCallable()();
  317.         echo "
  318.     ";
  319.         // line 173
  320.         echo $this->env->getFunction('pimcore_head_link')->getCallable()();
  321.         echo "
  322.     ";
  323.         
  324.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  325.         
  326.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  327.         $this->deferred->resolve($this, $context, $blocks);
  328.     }
  329.     public function getTemplateName()
  330.     {
  331.         return "includes/layout/head.html.twig";
  332.     }
  333.     public function isTraitable()
  334.     {
  335.         return false;
  336.     }
  337.     public function getDebugInfo()
  338.     {
  339.         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,);
  340.     }
  341.     public function getSourceContext()
  342.     {
  343.         return new Source("<!-- Required meta tags -->
  344. <meta charset=\"utf-8\">
  345. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no\">
  346. <link rel=\"icon\" href=\"/static/images/favicon.ico\" />
  347. {% apply spaceless %}
  348.     {#preload fonts#}
  349.     {% do pimcore_head_link({
  350.         \"rel\":\"preload\",
  351.         \"href\":preload(asset(\"static/fonts/roboto/roboto-v30-latin-900.woff2\")),
  352.         \"extras\":{
  353.             \"type\":\"font/woff2\",
  354.             \"crossorigin\": \"anonymous\",
  355.             \"as\":\"font\"
  356.         }
  357.     }) %}
  358.     {% do pimcore_head_link({
  359.         \"rel\":\"preload\",
  360.         \"href\":preload(asset(\"static/fonts/roboto/roboto-v30-latin-regular.woff2\")),
  361.         \"extras\":{
  362.             \"type\":\"font/woff2\",
  363.             \"crossorigin\": \"anonymous\",
  364.             \"as\":\"font\"
  365.         }
  366.     }) %}
  367.     {% do pimcore_head_link({
  368.         \"rel\":\"preload\",
  369.         \"href\":preload(asset(\"static/fonts/roboto/roboto-v30-latin-500.woff2\")),
  370.         \"extras\":{
  371.             \"type\":\"font/woff2\",
  372.             \"crossorigin\": \"anonymous\",
  373.             \"as\":\"font\"
  374.         }
  375.     }) %}
  376.     {% do pimcore_head_link({
  377.         \"rel\":\"preload\",
  378.         \"href\":preload(asset(\"static/fonts/iconfont.ttf\")),
  379.         \"extras\":{
  380.             \"type\":\"font/ttf\",
  381.             \"crossorigin\": \"anonymous\",
  382.             \"as\":\"font\"
  383.         }
  384.     }) %}
  385.     {# add global stylesheets and scripts outside of any blocks to add them to the helpers before any others assets are added #}
  386.     {# we use the view helper to have cache buster functionality #}
  387.     {# css inclusion with link tag #}
  388.     {# do pimcore_head_link().appendStylesheet(asset('static/css/styles.css')) #}
  389.     {# inline css inclusion #}
  390.     {# do pimcore_head_style().appendStyle(fileContent) #}
  391.     {# {% set cssFile = conecto_inline_data('static/css/styles.min.css') %} #}
  392.     {# {% do pimcore_head_style().appendStyle(cssFile) %} %} #}
  393.     {#{% do pimcore_head_link({\"rel\":\"preload\", \"href\":preload(asset(\"static/css/styles.min.css\"))}) %}
  394.         {% do pimcore_head_link({\"rel\":\"preload\", \"href\":preload(asset(\"static/css/styles.data.css\"))}) %}#}
  395.     {% do pimcore_head_link({
  396.         \"rel\":\"preload\",
  397.         \"href\":preload(asset('static/css/styles.min.css')),
  398.         \"extras\":{
  399.             \"type\":\"text/css\",
  400.             \"crossorigin\": \"anonymous\",
  401.             \"as\":\"style\"
  402.         }
  403.     }) %}
  404.     {% do pimcore_head_link({
  405.         \"rel\":\"preload\",
  406.         \"href\":preload(asset('static/js/main.modern.min.js')),
  407.         \"extras\":{
  408.             \"type\":\"text/javascript\",
  409.             \"crossorigin\": \"anonymous\",
  410.             \"as\":\"script\"
  411.         }
  412.     }) %}
  413.     {% do pimcore_head_link().appendStylesheet(asset('static/css/styles.min.css')) %}
  414.     {#{% do pimcore_head_link().appendStylesheet(asset('static/css/styles.data.css')) %}#}
  415.     {% if editmode %}
  416.         {% do pimcore_head_link().appendStylesheet(asset('static/css/editmode.min.css')) %}
  417.     {% endif %}
  418.     {% if not editmode %}
  419.         {% do pimcore_head_script().appendFile(asset('static/js/main.modern.min.js')) %}
  420.     {% endif %}
  421.     {% if not document is defined or not document %}
  422.         {% set document = pimcore_document(1) %}
  423.     {% endif %}
  424.     {% if document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Link') %}
  425.         {# @var document \\Pimcore\\Model\\Document\\Link #}
  426.         {% set document = document.getObject() %}
  427.     {% endif %}
  428.     {% if document.getTitle() is not empty %}
  429.         {% do pimcore_head_title().set(document.getTitle()) %}
  430.     {% endif %}
  431.     {% if document.getDescription() is not empty %}
  432.         {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  433.     {% endif %}
  434.     {% set og_image = null %}
  435.     {% if document.getEditable('headerSlider') is not empty and document.getEditable('headerSlider').getElements()[0] is instanceof('\\\\Pimcore\\\\Model\\\\Asset\\\\Image') %}
  436.         {% set og_image = document.getEditable('headerSlider').getElements()[0] %}
  437.     {% endif %}
  438.     {% if og_image is not empty and og_image is instanceof('\\\\Pimcore\\\\Model\\\\Asset\\\\Image')  %}
  439.         {% set og_image = og_image.getThumbnail({
  440.             \"items\" : [
  441.                 {
  442.                     \"method\" : \"scaleByWidth\",
  443.                     \"arguments\" : {  \"width\" : 1200, \"forceResize\" : true  }
  444.                 },{
  445.                     \"method\" : \"cover\",
  446.                     \"arguments\" : { \"width\" : 1200,  \"height\" : 630, \"positioning\" : \"center\", \"forceResize\" : true }
  447.                 }
  448.             ],
  449.             \"medias\" : [],
  450.             \"format\" : \"PJPEG\",
  451.             \"quality\" : 85,
  452.             \"highResolution\" : 0.0,
  453.             \"preserveColor\" : TRUE,
  454.             \"preserveMetaData\" : FALSE,
  455.             \"rasterizeSVG\" : FALSE,
  456.             \"downloadable\" : FALSE,
  457.             \"forcePictureTag\" : FALSE,
  458.             \"name\": \"openGraph\",
  459.             \"id\": \"openGraph\"
  460.         }) %}
  461.         {% set og_image = conecto_get_hostname() ~ og_image %}
  462.         {% do pimcore_head_meta().appendProperty('og:image', og_image) %}
  463.         {% do pimcore_head_meta().appendProperty('og:image:width', 1200) %}
  464.         {% do pimcore_head_meta().appendProperty('og:image:height', 630) %}
  465.     {% endif %}
  466.     {# <!-- Wenn gewünscht, Site-Title anhängen -->
  467.     {% do pimcore_head_title().append(pimcore_website_config('page-title')) %}
  468.     {% do pimcore_head_title().setSeparator(' - ') %}#}
  469.     {% for key, lang in get_localized_links(document) %}
  470.         {% do pimcore_head_link().appendAlternate(\"#{lang.link}\", null, null, {\"hreflang\": \"#{key}\"}) %}
  471.     {% endfor %}
  472. {%- endapply %}
  473.     {# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
  474.     {% block layout_head_meta deferred %}
  475.     {{ pimcore_head_title() }}
  476.     {{ pimcore_head_meta() }}
  477.     {#{% if pimcore_placeholder('canonical').count() %}
  478.         <link rel=\"canonical\" href=\"{{ pimcore_placeholder('canonical') }}\"/>
  479.     {% endif %}#}
  480.     {% for meta in document.getMetaData() %}
  481.         {{ meta|raw }}
  482.     {% endfor %}
  483.     {% endblock %}
  484.     {% block head_stylesheets deferred %}
  485.     {# tarteaucitron #}
  486.     {{ include('includes/cookie-consent.html.twig') }}
  487.     {{ pimcore_head_style() }}
  488.     {{ pimcore_head_link() }}
  489.     {% endblock %}
  490.   {#  <style>
  491.         {{ conecto_inline_data('static/css/styles.data.css')|raw }}
  492.     </style>
  493.     <style>
  494.         {{ conecto_inline_data('static/css/styles.min.css')|raw }}
  495.     </style>
  496. #}", "includes/layout/head.html.twig", "/html/pimcore/templates/includes/layout/head.html.twig");
  497.     }
  498.     
  499.     public function checkSecurity()
  500.     {
  501.         static $tags = array("apply" => 5, "do" => 8, "if" => 82, "set" => 91, "for" => 145, "block" => 152);
  502.         static $filters = array("spaceless" => 5, "raw" => 162);
  503.         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);
  504.         try {
  505.             $this->sandbox->checkSecurity(
  506.                 ['apply', 'do', 'if', 'set', 'for', 'block'],
  507.                 ['spaceless', 'raw'],
  508.                 ['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']
  509.             );
  510.         } catch (SecurityError $e) {
  511.             $e->setSourceContext($this->source);
  512.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  513.                 $e->setTemplateLine($tags[$e->getTagName()]);
  514.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  515.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  516.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  517.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  518.             }
  519.             throw $e;
  520.         }
  521.     }
  522.     private $deferred;
  523. }