var/cache/dev/twig/0a/0ab63cc6eb5bb331bbfee52ccacceea6.php line 37

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. /* layout/layout-snippet.html.twig */
  14. class __TwigTemplate_3d38d08cb607a118974420d91e82b910 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.             'head_stylesheets' => [$this, 'block_head_stylesheets'],
  25.             'layout_head_meta' => [$this, 'block_layout_head_meta'],
  26.             'headscripts' => [$this, 'block_headscripts'],
  27.         ];
  28.         $this->deferred = $this->env->getExtension('Twig\DeferredExtension\DeferredExtension');
  29.     }
  30.     protected function doDisplay(array $context, array $blocks = [])
  31.     {
  32.         $macros = $this->macros;
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/layout-snippet.html.twig"));
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/layout-snippet.html.twig"));
  37.         // line 1
  38.         ob_start();
  39.         // line 2
  40.         echo "
  41.     ";
  42.         // line 4
  43.         echo "    ";
  44.         $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));
  45.         // line 5
  46.         echo "
  47.     ";
  48.         // line 7
  49.         echo "
  50.     ";
  51.         // line 8
  52.         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);
  53.         // line 9
  54.         echo "    ";
  55.         if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 9, $this->source); })())) {
  56.             // line 10
  57.             echo "        ";
  58.             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);
  59.             // line 11
  60.             echo "    ";
  61.         }
  62.         // line 12
  63.         echo "    ";
  64.         // line 13
  65.         echo "    ";
  66.         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);
  67.         // line 14
  68.         echo "
  69.     ";
  70.         // line 16
  71.         echo "    ";
  72.         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);
  73.         // line 17
  74.         echo "    ";
  75.         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);
  76.         // line 18
  77.         echo "    ";
  78.         // line 19
  79.         echo "    ";
  80.         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)) {
  81.             // line 20
  82.             echo "        ";
  83.             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);
  84.             // line 21
  85.             echo "    ";
  86.         }
  87.         // line 22
  88.         echo "
  89.     ";
  90.         // line 24
  91.         echo "    ";
  92.         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);
  93.         // line 25
  94.         echo "
  95.     ";
  96.         // line 26
  97.         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")) {
  98.             // line 27
  99.             echo "        ";
  100.             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);
  101.             // line 28
  102.             echo "    ";
  103.         } else {
  104.             // line 29
  105.             echo "        ";
  106.             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);
  107.             // line 30
  108.             echo "    ";
  109.         }
  110.         // line 31
  111.         echo "
  112.     ";
  113.         // line 32
  114.         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);
  115.         // line 33
  116.         echo "
  117. ";
  118.         $___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
  119.         // line 1
  120.         echo twig_spaceless($___internal_parse_0_);
  121.         // line 35
  122.         echo "
  123. <!DOCTYPE html>
  124. <html lang=\"";
  125.         // line 37
  126.         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);
  127.         echo "\">
  128. <head>
  129.     <meta charset=\"UTF-8\">
  130.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  131.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5\">
  132.         ";
  133.         // line 44
  134.         $this->displayBlock('head_stylesheets', $context, $blocks);
  135.         // line 47
  136.         echo "
  137.     ";
  138.         // line 50
  139.         echo "    ";
  140.         $this->loadTemplate("includes/favicons.html.twig", "layout/layout-snippet.html.twig", 50)->display($context);
  141.         // line 51
  142.         echo "    ";
  143.         // line 52
  144.         echo "
  145.     <link rel=\"canonical\" href=\"";
  146.         // line 53
  147.         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);
  148.         echo "\"/>
  149.     ";
  150.         // line 56
  151.         echo "    ";
  152.         $this->displayBlock('layout_head_meta', $context, $blocks);
  153.         // line 60
  154.         echo "
  155.     ";
  156.         // line 62
  157.         echo "    ";
  158.         $context["subdomainName"] = ("https://" . $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("subdomain"));
  159.         // line 63
  160.         echo "    ";
  161.         $this->loadTemplate("includes/window-vars.html.twig", "layout/layout-snippet.html.twig", 63)->display($context);
  162.         // line 64
  163.         echo "    ";
  164.         // line 65
  165.         echo "</head>
  166. <body id=\"body\" class=\"snippet-body\">
  167.     <main class=\"wrapper-body noSelect\">
  168.         ";
  169.         // line 69
  170.         $this->displayBlock("content", $context, $blocks);
  171.         echo "
  172.         ";
  173.         // line 71
  174.         if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 71, $this->source); })())) {
  175.             // line 72
  176.             echo "            ";
  177.             echo twig_include($this->env, $context, "includes/blocks/cookies-eu-banner.html.twig");
  178.             echo "
  179.         ";
  180.         }
  181.         // line 74
  182.         echo "
  183.     ";
  184.         // line 77
  185.         echo "    ";
  186.         // line 78
  187.         echo "    </main>
  188. </body>
  189. ";
  190.         // line 81
  191.         $this->displayBlock('headscripts', $context, $blocks);
  192.         // line 84
  193.         echo "</html>";
  194.         $this->deferred->resolve($this, $context, $blocks);
  195.         
  196.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  197.         
  198.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  199.     }
  200.     public function block_head_stylesheets($context, array $blocks = [])
  201.     {
  202.         $this->deferred->defer($this, 'head_stylesheets');
  203.     }
  204.     // line 44
  205.     public function block_head_stylesheets_deferred($context, array $blocks = [])
  206.     {
  207.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  208.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
  209.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  210.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
  211.         // line 45
  212.         echo "            ";
  213.         echo call_user_func_array($this->env->getFunction('pimcore_head_link')->getCallable(), []);
  214.         echo "
  215.         ";
  216.         
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  218.         
  219.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  220.         $this->deferred->resolve($this, $context, $blocks);
  221.     }
  222.     public function block_layout_head_meta($context, array $blocks = [])
  223.     {
  224.         $this->deferred->defer($this, 'layout_head_meta');
  225.     }
  226.     // line 56
  227.     public function block_layout_head_meta_deferred($context, array $blocks = [])
  228.     {
  229.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  230.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta"));
  231.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  232.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta"));
  233.         // line 57
  234.         echo "        ";
  235.         echo call_user_func_array($this->env->getFunction('pimcore_head_title')->getCallable(), []);
  236.         echo "
  237.         ";
  238.         // line 58
  239.         echo call_user_func_array($this->env->getFunction('pimcore_head_meta')->getCallable(), []);
  240.         echo "
  241.     ";
  242.         
  243.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  244.         
  245.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  246.         $this->deferred->resolve($this, $context, $blocks);
  247.     }
  248.     public function block_headscripts($context, array $blocks = [])
  249.     {
  250.         $this->deferred->defer($this, 'headscripts');
  251.     }
  252.     // line 81
  253.     public function block_headscripts_deferred($context, array $blocks = [])
  254.     {
  255.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  256.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
  257.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  258.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headscripts"));
  259.         // line 82
  260.         echo "    ";
  261.         echo call_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []);
  262.         echo "
  263. ";
  264.         
  265.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  266.         
  267.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  268.         $this->deferred->resolve($this, $context, $blocks);
  269.     }
  270.     public function getTemplateName()
  271.     {
  272.         return "layout/layout-snippet.html.twig";
  273.     }
  274.     public function isTraitable()
  275.     {
  276.         return false;
  277.     }
  278.     public function getDebugInfo()
  279.     {
  280.         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,);
  281.     }
  282.     public function getSourceContext()
  283.     {
  284.         return new Source("{% apply spaceless %}
  285.     {# Page name #}
  286.     {% set pageName = pimcore_website_config('pageName', null, app.request.locale) %}
  287.     {# styles #}
  288.     {% do pimcore_head_link().appendStylesheet(asset('/assets/dist/css/app.min.css')) %}
  289.     {% if editmode %}
  290.         {% do pimcore_head_link().appendStylesheet(asset('/assets/dist/css/editmode.min.css')) %}
  291.     {% endif %}
  292.     {# scripts #}
  293.     {% do pimcore_head_script().appendFile(asset('/assets/dist/js/app.min.js')) %}
  294.     {# Title#}
  295.     {% do pimcore_head_title().set(document.getProperty('title')) %}
  296.     {% do pimcore_head_title().append(pageName) %}
  297.     {##}
  298.     {% if document.getProperty('title') %}
  299.         {% do pimcore_head_title().setSeparator(' | ') %}
  300.     {% endif %}
  301.     {# Meta-Tags #}
  302.     {% do pimcore_head_meta().setDescription(document.getProperty(\"description\")) %}
  303.     {% if app.request.schemeAndHttpHost  == \"https://apimedia.a4interactive.ch\" %}
  304.         {% do pimcore_head_meta().setName('robots', 'noindex, follow') %}
  305.     {% else %}
  306.         {% do pimcore_head_meta().setName('robots', 'index, follow') %}
  307.     {% endif %}
  308.     {% do pimcore_head_meta().setName('language', app.request.locale) %}
  309. {% endapply %}
  310. <!DOCTYPE html>
  311. <html lang=\"{{ app.request.locale }}\">
  312. <head>
  313.     <meta charset=\"UTF-8\">
  314.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  315.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=5\">
  316.         {% block head_stylesheets deferred %}
  317.             {{ pimcore_head_link() }}
  318.         {% endblock %}
  319.     {# favicon Start #}
  320.     {% include 'includes/favicons.html.twig' %}
  321.     {# favicon End #}
  322.     <link rel=\"canonical\" href=\"{{ app.request.getSchemeAndHttpHost ~ app.request.baseUrl ~ app.request.pathInfo }}\"/>
  323.     {##}
  324.     {% block layout_head_meta deferred %}
  325.         {{ pimcore_head_title() }}
  326.         {{ pimcore_head_meta() }}
  327.     {% endblock %}
  328.     {# window variables start #}
  329.     {% set subdomainName = \"https://#{pimcore_website_config('subdomain')}\" %}
  330.     {% include 'includes/window-vars.html.twig' %}
  331.     {# window variables end #}
  332. </head>
  333. <body id=\"body\" class=\"snippet-body\">
  334.     <main class=\"wrapper-body noSelect\">
  335.         {{ block('content') }}
  336.         {% if not editmode %}
  337.             {{ include('includes/blocks/cookies-eu-banner.html.twig') }}
  338.         {% endif %}
  339.     {# footer start
  340.     {{ pimcore_inc(document.getProperty('footer')) }}#}
  341.     {# footer end #}
  342.     </main>
  343. </body>
  344. {% block headscripts deferred %}
  345.     {{ pimcore_head_script() | raw }}
  346. {% endblock %}
  347. </html>", "layout/layout-snippet.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/apimedia.a4interactive.ch/apimedia/templates/layout/layout-snippet.html.twig");
  348.     }
  349. }