var/cache/dev/twig/82/82be7fe10d768e9468fd4c64f0b1bc1c.php line 36

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.html.twig */
  14. class __TwigTemplate_f887851ef2f4a34d10e26ca05c9b64f0 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.             'scripts' => [$this'block_scripts'],
  26.         ];
  27.         $this->deferred $this->env->getExtension('Twig\DeferredExtension\DeferredExtension');
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/layout.html.twig"));
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/layout.html.twig"));
  36.         // line 1
  37.         ob_start();
  38.         // line 2
  39.         echo "
  40. ";
  41.         // line 4
  42.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/dist/main.css")], "method"falsefalsefalse4);
  43.         // line 5
  44.         echo "
  45. ";
  46.         // line 10
  47.         echo "
  48. ";
  49.         // line 12
  50.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/dist/main.js")], "method"falsefalsefalse12);
  51.         // line 13
  52.         echo "
  53. ";
  54.         $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  55.         // line 1
  56.         echo twig_spaceless($___internal_parse_0_);
  57.         // line 15
  58.         echo "
  59. ";
  60.         // line 17
  61.         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.'17$this->source); })()), "getProperty", [=> "transparentHeader"], "method"falsefalsefalse17) && (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); })()), "getProperty", [=> "transparentHeader"], "method"falsefalsefalse17) == 1))) {
  62.             // line 18
  63.             echo "    ";
  64.             $context["headerClass"] = "transparent-header";
  65.         } else {
  66.             // line 20
  67.             echo "    ";
  68.             $context["headerClass"] = "";
  69.         }
  70.         // line 22
  71.         echo "
  72. <!DOCTYPE html>
  73. <html class=\"no-js\" lang=\"";
  74.         // line 24
  75.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'24$this->source); })()), "request", [], "any"falsefalsefalse24), "locale", [], "any"falsefalsefalse24), "html"nulltrue);
  76.         echo "\">
  77. <head>
  78.     <meta charset=\"utf-8\">
  79.     <meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\">
  80.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=yes\">
  81.     ";
  82.         // line 32
  83.         echo "    ";
  84.         echo twig_include($this->env$context"layout/head/meta.html.twig");
  85.         echo "
  86.     ";
  87.         // line 35
  88.         echo "    ";
  89.         echo twig_include($this->env$context"layout/head/language.html.twig");
  90.         echo "
  91.     ";
  92.         // line 38
  93.         echo "    ";
  94.         echo twig_include($this->env$context"layout/head/structured-data.html.twig");
  95.         echo "
  96.     ";
  97.         // line 41
  98.         echo "    ";
  99.         echo twig_include($this->env$context"layout/head/favicon.html.twig");
  100.         echo "
  101.     ";
  102.         // line 44
  103.         echo "    ";
  104.         echo twig_include($this->env$context"layout/head/env-variables.html.twig");
  105.         echo "
  106.     ";
  107.         // line 46
  108.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'46$this->source); })())) {
  109.             // line 47
  110.             echo "        ";
  111.             echo $this->env->getFunction('pimcore_head_title')->getCallable()();
  112.             echo "
  113.         ";
  114.             // line 48
  115.             echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
  116.             echo "
  117.     ";
  118.         }
  119.         // line 50
  120.         echo "
  121.     ";
  122.         // line 52
  123.         echo "    ";
  124.         $this->displayBlock('head_stylesheets'$context$blocks);
  125.         // line 55
  126.         echo "
  127.     ";
  128.         // line 57
  129.         echo "    ";
  130.         // line 58
  131.         echo "
  132.     ";
  133.         // line 60
  134.         echo "    ";
  135.         // line 61
  136.         echo "
  137. </head>
  138. <body class=\"";
  139.         // line 63
  140.         echo twig_escape_filter($this->env, (isset($context["headerClass"]) || array_key_exists("headerClass"$context) ? $context["headerClass"] : (function () { throw new RuntimeError('Variable "headerClass" does not exist.'63$this->source); })()), "html"nulltrue);
  141.         echo "\">
  142.     ";
  143.         // line 66
  144.         echo "    ";
  145.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'66$this->source); })())) {
  146.             // line 67
  147.             echo "        ";
  148.             echo twig_include($this->env$context"layout/components/header.html.twig");
  149.             echo "
  150.     ";
  151.         }
  152.         // line 69
  153.         echo "
  154.     ";
  155.         // line 71
  156.         echo "    ";
  157.         // line 80
  158.         echo "
  159.     ";
  160.         // line 82
  161.         echo "    ";
  162.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'82$this->source); })())) {
  163.             // line 83
  164.             echo "        ";
  165.             $this->displayBlock("content"$context$blocks);
  166.             echo "
  167.     ";
  168.         } else {
  169.             // line 85
  170.             echo "        <main>
  171.             ";
  172.             // line 86
  173.             $this->displayBlock("content"$context$blocks);
  174.             echo "
  175.         </main>
  176.     ";
  177.         }
  178.         // line 89
  179.         echo "
  180.     ";
  181.         // line 91
  182.         echo "    ";
  183.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'91$this->source); })())) {
  184.             // line 92
  185.             echo "        ";
  186.             echo twig_include($this->env$context"layout/components/to-the-top.html.twig");
  187.             echo "
  188.     ";
  189.         }
  190.         // line 94
  191.         echo "
  192.     ";
  193.         // line 96
  194.         echo "    ";
  195.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'96$this->source); })())) {
  196.             // line 97
  197.             echo "        ";
  198.             echo twig_include($this->env$context"layout/components/cookies-eu-banner.html.twig");
  199.             echo "
  200.     ";
  201.         }
  202.         // line 99
  203.         echo "
  204.     ";
  205.         // line 101
  206.         echo "    ";
  207.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'101$this->source); })())) {
  208.             // line 102
  209.             echo "        <footer>
  210.             ";
  211.             // line 103
  212.             echo $this->env->getFunction('pimcore_inc')->getCallable()(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); })()), "getProperty", [=> "footer"], "method"falsefalsefalse103));
  213.             echo "
  214.         </footer>
  215.     ";
  216.         }
  217.         // line 106
  218.         echo "
  219.     ";
  220.         // line 108
  221.         echo "    ";
  222.         $this->displayBlock('scripts'$context$blocks);
  223.         // line 111
  224.         echo "
  225. </body>
  226. </html>";
  227.         $this->deferred->resolve($this$context$blocks);
  228.         
  229.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  230.         
  231.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  232.     }
  233.     public function block_head_stylesheets($context, array $blocks = [])
  234.     {
  235.         $this->deferred->defer($this'head_stylesheets');
  236.     }
  237.     // line 52
  238.     public function block_head_stylesheets_deferred($context, array $blocks = [])
  239.     {
  240.         $macros $this->macros;
  241.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  242.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_stylesheets"));
  243.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  244.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_stylesheets"));
  245.         // line 53
  246.         echo "        ";
  247.         echo $this->env->getFunction('pimcore_head_link')->getCallable()();
  248.         echo "
  249.     ";
  250.         
  251.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  252.         
  253.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  254.         $this->deferred->resolve($this$context$blocks);
  255.     }
  256.     public function block_scripts($context, array $blocks = [])
  257.     {
  258.         $this->deferred->defer($this'scripts');
  259.     }
  260.     // line 108
  261.     public function block_scripts_deferred($context, array $blocks = [])
  262.     {
  263.         $macros $this->macros;
  264.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  265.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  266.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  267.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  268.         // line 109
  269.         echo "        ";
  270.         echo $this->env->getFunction('pimcore_head_script')->getCallable()();
  271.         echo "
  272.     ";
  273.         
  274.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  275.         
  276.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  277.         $this->deferred->resolve($this$context$blocks);
  278.     }
  279.     public function getTemplateName()
  280.     {
  281.         return "layout/layout.html.twig";
  282.     }
  283.     public function isTraitable()
  284.     {
  285.         return false;
  286.     }
  287.     public function getDebugInfo()
  288.     {
  289.         return array (  298 => 109,  288 => 108,  269 => 53,  259 => 52,  241 => 111,  238 => 108,  235 => 106,  229 => 103,  226 => 102,  223 => 101,  220 => 99,  214 => 97,  211 => 96,  208 => 94,  202 => 92,  199 => 91,  196 => 89,  190 => 86,  187 => 85,  181 => 83,  178 => 82,  175 => 80,  173 => 71,  170 => 69,  164 => 67,  161 => 66,  156 => 63,  152 => 61,  150 => 60,  147 => 58,  145 => 57,  142 => 55,  139 => 52,  136 => 50,  131 => 48,  126 => 47,  124 => 46,  118 => 44,  112 => 41,  106 => 38,  100 => 35,  94 => 32,  84 => 24,  80 => 22,  76 => 20,  72 => 18,  70 => 17,  67 => 15,  65 => 1,  61 => 13,  59 => 12,  56 => 10,  53 => 5,  51 => 4,  48 => 2,  46 => 1,);
  290.     }
  291.     public function getSourceContext()
  292.     {
  293.         return new Source("{% apply spaceless %}
  294. {# css #}
  295. {% do pimcore_head_link().appendStylesheet(asset('/assets/dist/main.css')) %}
  296. {# {% do pimcore_head_link().appendStylesheet(asset('/static/assets/lib/aos.css')) %} #}
  297. {# {% do pimcore_head_link().appendStylesheet(asset('/static/assets/lib/select2.min.css')) %} #}
  298. {# {% do pimcore_head_link().appendStylesheet(asset('/static/assets/dist/plyr.css')) %} #}
  299. {# {% do pimcore_head_link().appendStylesheet(asset('/static/assets/dist/hamburgers.min.css')) %} #}
  300. {# js #}
  301. {% do pimcore_head_script().appendFile(asset('/assets/dist/main.js')) %}
  302. {% endapply %}
  303. {# transparent header #}
  304. {% if document.getProperty('transparentHeader') and document.getProperty('transparentHeader') == 1 %}
  305.     {% set headerClass = 'transparent-header' %}
  306. {% else %}
  307.     {% set headerClass = '' %}
  308. {% endif %}
  309. <!DOCTYPE html>
  310. <html class=\"no-js\" lang=\"{{ app.request.locale }}\">
  311. <head>
  312.     <meta charset=\"utf-8\">
  313.     <meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\">
  314.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=yes\">
  315.     {# meta #}
  316.     {{ include('layout/head/meta.html.twig') }}
  317.     {# language #}
  318.     {{ include('layout/head/language.html.twig') }}
  319.     {# structured data #}
  320.     {{ include('layout/head/structured-data.html.twig') }}
  321.     {# favicon #}
  322.     {{ include('layout/head/favicon.html.twig') }}
  323.     {# env variables #}
  324.     {{ include('layout/head/env-variables.html.twig') }}
  325.     {% if not editmode %}
  326.         {{ pimcore_head_title() }}
  327.         {{ pimcore_head_meta() }}
  328.     {% endif %}
  329.     {# css #}
  330.     {% block head_stylesheets deferred %}
  331.         {{ pimcore_head_link() }}
  332.     {% endblock %}
  333.     {# adobe font #}
  334.     {# <link rel=\"stylesheet\" href=\"https://use.typekit.net/xxx.css\"> #}
  335.     {# google search console #}
  336.     {# <meta name=\"google-site-verification\" content=\"\"> #}
  337. </head>
  338. <body class=\"{{ headerClass }}\">
  339.     {# header #}
  340.     {% if not editmode %}
  341.         {{ include('layout/components/header.html.twig') }}
  342.     {% endif %}
  343.     {# h1 #}
  344.     {# {% if not (blogDetail is defined) %}
  345.         {% if document.getProperty('h1') is defined and document.getProperty('h1') %}
  346.             <h1 class=\"document-h1\">{{ document.getProperty('h1') }}</h1>
  347.         {% elseif document.title %}
  348.             <h1 class=\"document-h1\">{{ document.title }}</h1>
  349.         {% else %}
  350.             <h1 class=\"document-h1\">{{ pimcore_website_config('pageName', null, app.request.locale) }}</h1>
  351.         {% endif %}
  352.     {% endif %} #}
  353.     {# content #}
  354.     {% if editmode %}
  355.         {{ block('content') }}
  356.     {% else %}
  357.         <main>
  358.             {{ block('content') }}
  359.         </main>
  360.     {% endif %}
  361.     {# to the top #}
  362.     {% if not editmode %}
  363.         {{ include('layout/components/to-the-top.html.twig') }}
  364.     {% endif %}
  365.     {# cookie banner #}
  366.     {% if not editmode %}
  367.         {{ include('layout/components/cookies-eu-banner.html.twig') }}
  368.     {% endif %}
  369.     {# footer #}
  370.     {% if not editmode %}
  371.         <footer>
  372.             {{ pimcore_inc(document.getProperty('footer')) }}
  373.         </footer>
  374.     {% endif %}
  375.     {# js #}
  376.     {% block scripts deferred %}
  377.         {{ pimcore_head_script() }}
  378.     {% endblock %}
  379. </body>
  380. </html>""layout/layout.html.twig""/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/layout/layout.html.twig");
  381.     }
  382. }