var/cache/dev/twig/a5/a575c971e5153c3c9a3c11f0e22d3ed0.php line 38

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/app.html.twig */
  14. class __TwigTemplate_ece361011a1b375ae2301d5bb33ba964 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.             'PAGE_CSS' => [$this'block_PAGE_CSS'],
  25.             'CONTENT_MID' => [$this'block_CONTENT_MID'],
  26.             'PAGE_JS' => [$this'block_PAGE_JS'],
  27.         ];
  28.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  29.         $this->checkSecurity();
  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""layout/app.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""layout/app.html.twig"));
  38.         // line 1
  39.         echo "<!doctype html>
  40. <html lang=\"";
  41.         // line 2
  42.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_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.'2$this->source); })()), "request", [], "any"falsefalsetrue2), "locale", [], "any"falsefalsetrue2), 2$this->source), "html"nulltrue);
  43.         echo "\">
  44. <head>
  45.     <meta charset=\"utf-8\" />
  46.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\" />
  47.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"";
  48.         // line 6
  49.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon.png"), "html"nulltrue);
  50.         echo "\" />
  51.     ";
  52.         // line 7
  53.         if (array_key_exists("product"$context)) {
  54.             // line 8
  55.             echo "        ";
  56.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [=> twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'8$this->source); })()), "name", [], "any"falsefalsetrue8)], "method"falsefalsetrue8);
  57.             // line 9
  58.             echo "    ";
  59.         }
  60.         // line 10
  61.         echo "
  62.     ";
  63.         // line 11
  64.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "append", [=> "Hugo Josten"], "method"falsefalsetrue11);
  65.         // line 12
  66.         echo "    ";
  67.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "setSeparator", [=> " - "], "method"falsefalsetrue12);
  68.         // line 13
  69.         echo "
  70.     ";
  71.         // line 14
  72.         echo $this->env->getFunction('pimcore_head_title')->getCallable()();
  73.         echo "
  74.     ";
  75.         // line 16
  76.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  77.         echo "
  78.     ";
  79.         // line 17
  80.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  81.         echo "
  82.     ";
  83.         // line 19
  84.         $this->displayBlock('PAGE_CSS'$context$blocks);
  85.         // line 21
  86.         echo "    <!-- Matomo -->
  87.     <script>
  88.         var _paq = window._paq = window._paq || [];
  89.         /* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */
  90.         _paq.push(['disableCookies']);
  91.         _paq.push(['trackPageView']);
  92.         _paq.push(['enableLinkTracking']);
  93.         (function() {
  94.             var u=\"https://mat.web-stats.eu/\";
  95.             _paq.push(['setTrackerUrl', u+'matomo.php']);
  96.             _paq.push(['setSiteId', '15']);
  97.             var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  98.             g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  99.         })();
  100.     </script>
  101.     <!-- End Matomo Code -->
  102. </head>
  103. <body class=\"antialiased\">
  104. <div class=\"bg-white\">
  105.     ";
  106.         // line 40
  107.         $context["navStartNode"] = 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.'40$this->source); })()), "getProperty", [=> "navigation_root"], "method"falsefalsetrue40);
  108.         // line 41
  109.         echo "    ";
  110.         if ( !((array_key_exists("otherLanguageUrl"$context)) ? (_twig_default_filter((isset($context["otherLanguageUrl"]) || array_key_exists("otherLanguageUrl"$context) ? $context["otherLanguageUrl"] : (function () { throw new RuntimeError('Variable "otherLanguageUrl" does not exist.'41$this->source); })()), null)) : (null))) {
  111.             // line 42
  112.             echo "        ";
  113.             $context["otherLanguageUrl"] = 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", [=> ("page_in_" . (((twig_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.'42$this->source); })()), "request", [], "any"falsefalsetrue42), "getLocale", [], "method"falsefalsetrue42) == "en")) ? ("de") : ("en")))], "method"falsefalsetrue42);
  114.             // line 43
  115.             echo "        ";
  116.             if (twig_test_empty((isset($context["otherLanguageUrl"]) || array_key_exists("otherLanguageUrl"$context) ? $context["otherLanguageUrl"] : (function () { throw new RuntimeError('Variable "otherLanguageUrl" does not exist.'43$this->source); })()))) {
  117.                 // line 44
  118.                 echo "            ";
  119.                 $context["currentPath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'44$this->source); })()), "request", [], "any"falsefalsetrue44), "attributes", [], "any"falsefalsetrue44), "get", [=> "_route"], "method"falsefalsetrue44), 44$this->source), (( !(null === twig_get_attribute($this->env$this->sourcetwig_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.'44$this->source); })()), "request", [], "any"falsefalsetrue44), "attributes", [], "any"falsefalsetrue44), "get", [=> "_route_params"], "method"falsefalsetrue44))) ? (twig_get_attribute($this->env$this->sourcetwig_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.'44$this->source); })()), "request", [], "any"falsefalsetrue44), "attributes", [], "any"falsefalsetrue44), "get", [=> "_route_params"], "method"falsefalsetrue44)) : ([])));
  120.                 // line 45
  121.                 echo "            ";
  122.                 $context["otherLanguageUrl"] = twig_replace_filter($this->sandbox->ensureToStringAllowed((isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'45$this->source); })()), 45$this->source), ["/en/" => "/de/""/de/" => "/en/"]);
  123.                 // line 46
  124.                 echo "            ";
  125.                 if (((isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'46$this->source); })()) == (isset($context["otherLanguageUrl"]) || array_key_exists("otherLanguageUrl"$context) ? $context["otherLanguageUrl"] : (function () { throw new RuntimeError('Variable "otherLanguageUrl" does not exist.'46$this->source); })()))) {
  126.                     // line 47
  127.                     echo "                ";
  128.                     $context["otherLanguageUrl"] = (((twig_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.'47$this->source); })()), "request", [], "any"falsefalsetrue47), "getLocale", [], "method"falsefalsetrue47) == "en")) ? ("/de") : ("/en"));
  129.                     // line 48
  130.                     echo "            ";
  131.                 }
  132.                 // line 49
  133.                 echo "        ";
  134.             }
  135.             // line 50
  136.             echo "    ";
  137.         }
  138.         // line 51
  139.         echo "
  140.     ";
  141.         // line 52
  142.         $this->loadTemplate("include/header.html.twig""layout/app.html.twig"52)->display($context);
  143.         // line 53
  144.         echo "    <div>
  145.         ";
  146.         // line 55
  147.         $this->displayBlock('CONTENT_MID'$context$blocks);
  148.         // line 57
  149.         echo "
  150.         ";
  151.         // line 58
  152.         $this->loadTemplate("include/footer.html.twig""layout/app.html.twig"58)->display($context);
  153.         // line 59
  154.         echo "    </div>
  155. </div>
  156. ";
  157.         // line 62
  158.         $this->displayBlock('PAGE_JS'$context$blocks);
  159.         // line 64
  160.         echo "</body>
  161. </html>";
  162.         
  163.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  164.         
  165.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  166.     }
  167.     // line 19
  168.     public function block_PAGE_CSS($context, array $blocks = [])
  169.     {
  170.         $macros $this->macros;
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_CSS"));
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  174.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_CSS"));
  175.         // line 20
  176.         echo "    ";
  177.         
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  179.         
  180.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  181.     }
  182.     // line 55
  183.     public function block_CONTENT_MID($context, array $blocks = [])
  184.     {
  185.         $macros $this->macros;
  186.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  187.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""CONTENT_MID"));
  188.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  189.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""CONTENT_MID"));
  190.         // line 56
  191.         echo "        ";
  192.         
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  194.         
  195.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  196.     }
  197.     // line 62
  198.     public function block_PAGE_JS($context, array $blocks = [])
  199.     {
  200.         $macros $this->macros;
  201.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_JS"));
  203.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  204.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_JS"));
  205.         
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  207.         
  208.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  209.     }
  210.     public function getTemplateName()
  211.     {
  212.         return "layout/app.html.twig";
  213.     }
  214.     public function isTraitable()
  215.     {
  216.         return false;
  217.     }
  218.     public function getDebugInfo()
  219.     {
  220.         return array (  224 => 62,  214 => 56,  204 => 55,  194 => 20,  184 => 19,  173 => 64,  171 => 62,  166 => 59,  164 => 58,  161 => 57,  159 => 55,  155 => 53,  153 => 52,  150 => 51,  147 => 50,  144 => 49,  141 => 48,  138 => 47,  135 => 46,  132 => 45,  129 => 44,  126 => 43,  123 => 42,  120 => 41,  118 => 40,  97 => 21,  95 => 19,  90 => 17,  86 => 16,  81 => 14,  78 => 13,  75 => 12,  73 => 11,  70 => 10,  67 => 9,  64 => 8,  62 => 7,  58 => 6,  51 => 2,  48 => 1,);
  221.     }
  222.     public function getSourceContext()
  223.     {
  224.         return new Source("<!doctype html>
  225. <html lang=\"{{ app.request.locale }}\">
  226. <head>
  227.     <meta charset=\"utf-8\" />
  228.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\" />
  229.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{ asset('build/images/favicon.png') }}\" />
  230.     {% if product is defined %}
  231.         {% do pimcore_head_title().set(product.name) %}
  232.     {% endif %}
  233.     {% do pimcore_head_title().append('Hugo Josten') %}
  234.     {% do pimcore_head_title().setSeparator(' - ') %}
  235.     {{ pimcore_head_title() }}
  236.     {{ encore_entry_link_tags('app') }}
  237.     {{ encore_entry_script_tags('app') }}
  238.     {% block PAGE_CSS %}
  239.     {% endblock %}
  240.     <!-- Matomo -->
  241.     <script>
  242.         var _paq = window._paq = window._paq || [];
  243.         /* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */
  244.         _paq.push(['disableCookies']);
  245.         _paq.push(['trackPageView']);
  246.         _paq.push(['enableLinkTracking']);
  247.         (function() {
  248.             var u=\"https://mat.web-stats.eu/\";
  249.             _paq.push(['setTrackerUrl', u+'matomo.php']);
  250.             _paq.push(['setSiteId', '15']);
  251.             var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  252.             g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  253.         })();
  254.     </script>
  255.     <!-- End Matomo Code -->
  256. </head>
  257. <body class=\"antialiased\">
  258. <div class=\"bg-white\">
  259.     {% set navStartNode = document.getProperty('navigation_root') %}
  260.     {% if not otherLanguageUrl|default(null) %}
  261.         {% set otherLanguageUrl = document.getProperty(\"page_in_\" ~ (app.request.getLocale() == \"en\" ? 'de' : 'en')) %}
  262.         {% if otherLanguageUrl is empty %}
  263.             {% set currentPath = path(app.request.attributes.get('_route'), (app.request.attributes.get('_route_params') is not null ? app.request.attributes.get('_route_params') : []) ) %}
  264.             {% set otherLanguageUrl = currentPath|replace({'/en/': '/de/', '/de/':'/en/'}) %}
  265.             {% if currentPath == otherLanguageUrl %}
  266.                 {% set otherLanguageUrl = (app.request.getLocale() == \"en\" ? '/de' : '/en') %}
  267.             {% endif %}
  268.         {% endif %}
  269.     {% endif %}
  270.     {% include 'include/header.html.twig' %}
  271.     <div>
  272.         {% block CONTENT_MID %}
  273.         {% endblock %}
  274.         {% include 'include/footer.html.twig' %}
  275.     </div>
  276. </div>
  277. {% block PAGE_JS %}
  278. {% endblock %}
  279. </body>
  280. </html>""layout/app.html.twig""/var/www/html/templates/layout/app.html.twig");
  281.     }
  282.     
  283.     public function checkSecurity()
  284.     {
  285.         static $tags = array("if" => 7"do" => 8"block" => 19"set" => 40"include" => 52);
  286.         static $filters = array("escape" => 2"default" => 41"replace" => 45);
  287.         static $functions = array("asset" => 6"pimcore_head_title" => 8"encore_entry_link_tags" => 16"encore_entry_script_tags" => 17"path" => 44);
  288.         try {
  289.             $this->sandbox->checkSecurity(
  290.                 ['if''do''block''set''include'],
  291.                 ['escape''default''replace'],
  292.                 ['asset''pimcore_head_title''encore_entry_link_tags''encore_entry_script_tags''path']
  293.             );
  294.         } catch (SecurityError $e) {
  295.             $e->setSourceContext($this->source);
  296.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  297.                 $e->setTemplateLine($tags[$e->getTagName()]);
  298.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  299.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  300.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  301.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  302.             }
  303.             throw $e;
  304.         }
  305.     }
  306. }