var/cache/dev/twig/8a/8a883a0fa20b2d5f12b7a899cfd4c5d8.php line 197

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/head.html.twig */
  14. class __TwigTemplate_7ebe9a4f0c13e744ff32b3838e9aed6a 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/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/head.html.twig"));
  38.         // line 6
  39.         $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", [=> "language"], "method"falsefalsetrue6);
  40.         // line 7
  41.         echo "<head>
  42. \t<meta charset=\"utf-8\">
  43. \t";
  44.         // line 9
  45.         ob_start();
  46.         // line 10
  47.         echo "\t\t";
  48.         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); })()))) {
  49.             // line 11
  50.             echo "\t\t\t";
  51.             // line 12
  52.             echo "\t\t\t";
  53.             $context["document"] = Pimcore\Model\Document::getById(1);
  54.             // line 13
  55.             echo "\t\t";
  56.         }
  57.         // line 14
  58.         echo "
  59. \t\t";
  60.         // line 15
  61.         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")) {
  62.             // line 16
  63.             echo "\t\t\t";
  64.             // line 17
  65.             echo "\t\t\t";
  66.             $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"falsefalsetrue17);
  67.             // line 18
  68.             echo "\t\t";
  69.         }
  70.         // line 19
  71.         echo "
  72. \t\t";
  73.         // line 21
  74.         echo "\t\t";
  75.         echo $this->extensions['App\Twig\Extension\InlineCSSExtension']->getInline("site.critical.css");
  76.         echo "
  77. \t\t";
  78.         // line 22
  79.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/css/dist/site.main.css")], "method"falsefalsetrue22);
  80.         // line 23
  81.         echo "\t\t";
  82.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/css/dist/site.print.css"), => "print"], "method"falsefalsetrue23);
  83.         // line 24
  84.         echo "\t\t";
  85.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'24$this->source); })())) {
  86.             // line 25
  87.             echo "\t\t\t";
  88.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/css/dist/site.backend.css")], "method"falsefalsetrue25);
  89.             // line 26
  90.             echo "\t\t";
  91.         }
  92.         // line 27
  93.         echo "
  94. \t\t";
  95.         // line 29
  96.         echo "\t\t";
  97.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "enableWebLinks", [], "method"falsefalsetrue29);
  98.         // line 30
  99.         echo "\t\t";
  100.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/js/vendor/modernizr-custom.js")], "method"falsefalsetrue30);
  101.         // line 31
  102.         echo "\t\t";
  103.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/js/vendor/clickableMenu.js")], "method"falsefalsetrue31);
  104.         // line 32
  105.         echo "\t\t";
  106.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/js/dist/runtime.bundle.js")], "method"falsefalsetrue32);
  107.         // line 33
  108.         echo "\t\t";
  109.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/js/dist/vendors.bundle.js")], "method"falsefalsetrue33);
  110.         // line 34
  111.         echo "\t\t";
  112.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("static/js/dist/main.bundle.js")], "method"falsefalsetrue34);
  113.         // line 35
  114.         echo "
  115. \t\t";
  116.         // line 37
  117.         echo "\t\t";
  118.         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"falsefalsetrue37))) {
  119.             // line 38
  120.             echo "\t\t\t";
  121.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [=> twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'38$this->source); })()), "getTitle", [], "method"falsefalsetrue38)], "method"falsefalsetrue38);
  122.             // line 39
  123.             echo "\t\t";
  124.         }
  125.         // line 40
  126.         echo "
  127. \t\t";
  128.         // line 41
  129.         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", [=> "meta-title-suffix"], "method"falsefalsetrue41)) &&  !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", [=> "meta-title-suffix-disable"], "method"falsefalsetrue41))) {
  130.             // line 42
  131.             echo "\t\t\t";
  132.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "append", [=> 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", [=> "meta-title-suffix"], "method"falsefalsetrue42)], "method"falsefalsetrue42);
  133.             // line 43
  134.             echo "\t\t";
  135.         }
  136.         // line 44
  137.         echo "
  138. \t\t";
  139.         // line 45
  140.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "setSeparator", [=> ((" " . ((twig_get_attribute($this->env$this->source, ($context["document"] ?? null), "getProperty", [=> "meta-title-separator"], "method"truetruetrue45)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["document"] ?? null), "getProperty", [=> "meta-title-separator"], "method"falsefalsetrue45), "-")) : ("-"))) . " ")], "method"falsefalsetrue45);
  141.         // line 46
  142.         echo "
  143. \t\t";
  144.         // line 48
  145.         echo "\t\t";
  146.         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"falsefalsetrue48))) {
  147.             // line 49
  148.             echo "\t\t\t";
  149.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [=> twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'49$this->source); })()), "getDescription", [], "method"falsefalsetrue49)], "method"falsefalsetrue49);
  150.             // line 50
  151.             echo "\t\t";
  152.         }
  153.         // line 51
  154.         echo "
  155. \t\t";
  156.         // line 52
  157.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_meta')->getCallable()(), "appendName", [=> "viewport"=> "width=device-width, initial-scale=1, shrink-to-fit=no"], "method"falsefalsetrue52);
  158.         // line 53
  159.         echo "\t\t";
  160.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_meta')->getCallable()(), "appendName", [=> "x-ua-compatible"=> "IE=Edge"], "method"falsefalsetrue53);
  161.         // line 54
  162.         echo "
  163. \t";
  164.         $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  165.         // line 9
  166.         echo twig_spaceless($___internal_parse_0_);
  167.         // line 56
  168.         echo "
  169. \t";
  170.         // line 58
  171.         echo "\t";
  172.         echo $this->extensions['App\Twig\Extension\FontPreloadExtension']->getInline();
  173.         echo "
  174. \t";
  175.         // line 61
  176.         echo "\t";
  177.         $this->loadTemplate("includes/partials/head/meta-social.html.twig""includes/head.html.twig"61)->display($context);
  178.         // line 62
  179.         echo "\t";
  180.         $this->loadTemplate("includes/partials/head/meta-favions.html.twig""includes/head.html.twig"62)->display($context);
  181.         // line 63
  182.         echo "
  183. \t";
  184.         // line 65
  185.         echo "\t";
  186.         $context['_parent'] = $context;
  187.         $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); })())));
  188.         foreach ($context['_seq'] as $context["key"] => $context["lang"]) {
  189.             // line 66
  190.             echo "\t\t";
  191.             if ((twig_get_attribute($this->env$this->source$context["lang"], "language", [], "any"falsefalsetrue66) != 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", [=> "language"], "method"falsefalsetrue66))) {
  192.                 // line 67
  193.                 echo "\t\t";
  194.                 // line 68
  195.                 $this->env->getFunction('pimcore_head_link')->getCallable()(["rel" => "alternate""href" => twig_get_attribute($this->env$this->source,                 // line 70
  196. $context["lang"], "link", [], "any"falsefalsetrue70), "hreflang" => twig_get_attribute($this->env$this->source,                 // line 71
  197. $context["lang"], "language", [], "any"falsefalsetrue71), "type" => "text/html"]);
  198.                 // line 75
  199.                 echo "\t\t";
  200.             }
  201.             // line 76
  202.             echo "\t";
  203.         }
  204.         $_parent $context['_parent'];
  205.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['lang'], $context['_parent'], $context['loop']);
  206.         $context array_intersect_key($context$_parent) + $_parent;
  207.         // line 77
  208.         echo "
  209. \t";
  210.         // line 79
  211.         echo "\t";
  212.         $this->displayBlock('layout_head_meta'$context$blocks);
  213.         // line 87
  214.         echo "
  215. \t";
  216.         // line 88
  217.         $this->displayBlock('head_stylesheets'$context$blocks);
  218.         // line 91
  219.         echo "
  220. \t<script type=\"text/javascript\">
  221. \t\tvar isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
  222. \t\tvar isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor);
  223. \t\tvar isEdge = window.navigator.userAgent.indexOf(\"Edge\") > -1;
  224. \t\tvar editmode = ";
  225.         // line 97
  226.         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"));
  227.         echo ";
  228. \t\tvar locale = '";
  229.         // line 98
  230.         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"nulltrue);
  231.         echo "';
  232. \t\tvar path = '";
  233.         // line 99
  234.         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"nulltrue);
  235.         echo "';
  236. \t\tvar device = '";
  237.         // line 100
  238.         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"nulltrue);
  239.         echo "';
  240. \t\t//var deviceVendor = '';
  241. \t\tvar devmode = ";
  242.         // line 102
  243.         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"falsefalsetrue102)) ? ("true") : ("false"));
  244.         echo ";
  245. \t</script>
  246. </head>
  247. ";
  248.         
  249.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  250.         
  251.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  252.         $this->deferred->resolve($this$context$blocks);
  253.     }
  254.     public function block_layout_head_meta($context, array $blocks = [])
  255.     {
  256.         $this->deferred->defer($this'layout_head_meta');
  257.     }
  258.     // line 79
  259.     public function block_layout_head_meta_deferred($context, array $blocks = [])
  260.     {
  261.         $macros $this->macros;
  262.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  263.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta"));
  264.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  265.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta"));
  266.         // line 80
  267.         echo "\t\t";
  268.         echo $this->env->getFunction('pimcore_head_title')->getCallable()();
  269.         echo "
  270. \t\t";
  271.         // line 81
  272.         echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
  273.         echo "
  274. \t\t";
  275.         // line 83
  276.         if (twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_placeholder')->getCallable()("canonical"), "count", [], "method"falsefalsetrue83)) {
  277.             // line 84
  278.             echo "\t\t\t<link rel=\"canonical\" href=\"";
  279.             echo $this->env->getFunction('pimcore_placeholder')->getCallable()("canonical");
  280.             echo "\"/>
  281. \t\t";
  282.         }
  283.         // line 86
  284.         echo "\t";
  285.         
  286.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  287.         
  288.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  289.         $this->deferred->resolve($this$context$blocks);
  290.     }
  291.     public function block_head_stylesheets($context, array $blocks = [])
  292.     {
  293.         $this->deferred->defer($this'head_stylesheets');
  294.     }
  295.     // line 88
  296.     public function block_head_stylesheets_deferred($context, array $blocks = [])
  297.     {
  298.         $macros $this->macros;
  299.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  300.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_stylesheets"));
  301.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  302.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_stylesheets"));
  303.         // line 89
  304.         echo "\t\t";
  305.         echo $this->env->getFunction('pimcore_head_link')->getCallable()();
  306.         echo "
  307. \t";
  308.         
  309.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  310.         
  311.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  312.         $this->deferred->resolve($this$context$blocks);
  313.     }
  314.     public function getTemplateName()
  315.     {
  316.         return "includes/head.html.twig";
  317.     }
  318.     public function isTraitable()
  319.     {
  320.         return false;
  321.     }
  322.     public function getDebugInfo()
  323.     {
  324.         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,);
  325.     }
  326.     public function getSourceContext()
  327.     {
  328.         return new Source("{#
  329. project: Pimcore - Devicenow
  330. User: EBiermann
  331. Year: 2022
  332. #}
  333. {% set documentLanguage = document.getProperty('language') %}
  334. <head>
  335. \t<meta charset=\"utf-8\">
  336. \t{% apply spaceless %}
  337. \t\t{% if not document is defined or not document %}
  338. \t\t\t{# @var document \\Pimcore\\Model\\Document\\Page #}
  339. \t\t\t{% set document = pimcore_document(1) %}
  340. \t\t{% endif %}
  341. \t\t{% if document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Link') %}
  342. \t\t\t{# @var document \\Pimcore\\Model\\Document\\Link #}
  343. \t\t\t{% set document = document.getObject() %}
  344. \t\t{% endif %}
  345. \t\t{# set css / styles #}
  346. \t\t{{ get_css_inline('site.critical.css') }}
  347. \t\t{% do pimcore_head_link().appendStylesheet(asset('static/css/dist/site.main.css')) %}
  348. \t\t{% do pimcore_head_link().appendStylesheet(asset('static/css/dist/site.print.css'), 'print') %}
  349. \t\t{% if editmode %}
  350. \t\t\t{% do pimcore_head_link().appendStylesheet(asset('static/css/dist/site.backend.css')) %}
  351. \t\t{% endif %}
  352. \t\t{# set js / script #}
  353. \t\t{% do pimcore_head_script().enableWebLinks() %}
  354. \t\t{% do pimcore_head_script().appendFile(asset('static/js/vendor/modernizr-custom.js')) %}
  355. \t\t{% do pimcore_head_script().appendFile(asset('static/js/vendor/clickableMenu.js')) %}
  356. \t\t{% do pimcore_head_script().appendFile(asset('static/js/dist/runtime.bundle.js')) %}
  357. \t\t{% do pimcore_head_script().appendFile(asset('static/js/dist/vendors.bundle.js')) %}
  358. \t\t{% do pimcore_head_script().appendFile(asset('static/js/dist/main.bundle.js')) %}
  359. \t\t{# set document title #}
  360. \t\t{% if document.getTitle() is not empty %}
  361. \t\t\t{% do pimcore_head_title().set(document.getTitle()) %}
  362. \t\t{% endif %}
  363. \t\t{% if document.getProperty('meta-title-suffix') is not empty and not document.getProperty('meta-title-suffix-disable')  %}
  364. \t\t\t{% do pimcore_head_title().append(document.getProperty('meta-title-suffix')) %}
  365. \t\t{% endif %}
  366. \t\t{% do pimcore_head_title().setSeparator(' ' ~ document.getProperty('meta-title-separator')|default('-') ~ ' ') %}
  367. \t\t{# set general meta tags #}
  368. \t\t{% if document.getDescription() is not empty %}
  369. \t\t\t{% do pimcore_head_meta().setDescription(document.getDescription()) %}
  370. \t\t{% endif %}
  371. \t\t{% do pimcore_head_meta().appendName('viewport', 'width=device-width, initial-scale=1, shrink-to-fit=no') %}
  372. \t\t{% do pimcore_head_meta().appendName('x-ua-compatible', 'IE=Edge') %}
  373. \t{% endapply %}
  374. \t{# add font preload tags #}
  375. \t{{ get_font_preload_tags() }}
  376. \t{# set social meta tags #}
  377. \t{% include 'includes/partials/head/meta-social.html.twig' %}
  378. \t{% include 'includes/partials/head/meta-favions.html.twig' %}
  379. \t{# alternate langages #}
  380. \t{% for key, lang in get_localized_links(document) %}
  381. \t\t{% if lang.language != document.getProperty('language') %}
  382. \t\t{%
  383. \t\t\tdo pimcore_head_link({
  384. \t\t\t\t'rel': 'alternate',
  385. \t\t\t\t'href': lang.link,
  386. \t\t\t\t'hreflang': lang.language,
  387. \t\t\t\t'type': 'text/html'
  388. \t\t\t})
  389. \t\t%}
  390. \t\t{% endif %}
  391. \t{% endfor %}
  392. \t{# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
  393. \t{% block layout_head_meta deferred %}
  394. \t\t{{ pimcore_head_title() }}
  395. \t\t{{ pimcore_head_meta() }}
  396. \t\t{% if pimcore_placeholder('canonical').count() %}
  397. \t\t\t<link rel=\"canonical\" href=\"{{ pimcore_placeholder('canonical') }}\"/>
  398. \t\t{% endif %}
  399. \t{% endblock %}
  400. \t{% block head_stylesheets deferred %}
  401. \t\t{{ pimcore_head_link() }}
  402. \t{% endblock %}
  403. \t<script type=\"text/javascript\">
  404. \t\tvar isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
  405. \t\tvar isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor);
  406. \t\tvar isEdge = window.navigator.userAgent.indexOf(\"Edge\") > -1;
  407. \t\tvar editmode = {{ editmode ? 'true' : 'false' }};
  408. \t\tvar locale = '{{ documentLanguage }}';
  409. \t\tvar path = '{{ document }}';
  410. \t\tvar device = '{{ device }}';
  411. \t\t//var deviceVendor = '';
  412. \t\tvar devmode = {{ app.debug ? 'true' : 'false' }};
  413. \t</script>
  414. </head>
  415. ""includes/head.html.twig""/var/www/snr/staging.nuernberger-bratwuerste.de/templates/includes/head.html.twig");
  416.     }
  417.     
  418.     public function checkSecurity()
  419.     {
  420.         static $tags = array("set" => 6"apply" => 9"if" => 10"do" => 22"include" => 61"for" => 65"block" => 79);
  421.         static $filters = array("default" => 45"spaceless" => 9"escape" => 98);
  422.         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);
  423.         try {
  424.             $this->sandbox->checkSecurity(
  425.                 ['set''apply''if''do''include''for''block'],
  426.                 ['default''spaceless''escape'],
  427.                 ['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']
  428.             );
  429.         } catch (SecurityError $e) {
  430.             $e->setSourceContext($this->source);
  431.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  432.                 $e->setTemplateLine($tags[$e->getTagName()]);
  433.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  434.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  435.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  436.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  437.             }
  438.             throw $e;
  439.         }
  440.     }
  441.     private $deferred;
  442. }