var/cache/dev/twig/cb/cbaad4226e95c5cd92149eadd1f00918.php line 143

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_4e315fb05733068a193df624da7cc29e 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 "</head>
  87. <body class=\"antialiased\">
  88. <div class=\"bg-white\">
  89.     ";
  90.         // line 24
  91.         $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.'24$this->source); })()), "getProperty", [=> "navigation_root"], "method"falsefalsetrue24);
  92.         // line 25
  93.         echo "    ";
  94.         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.'25$this->source); })()), null)) : (null))) {
  95.             // line 26
  96.             echo "        ";
  97.             $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.'26$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.'26$this->source); })()), "request", [], "any"falsefalsetrue26), "getLocale", [], "method"falsefalsetrue26) == "en")) ? ("de") : ("en")))], "method"falsefalsetrue26);
  98.             // line 27
  99.             echo "        ";
  100.             if (twig_test_empty((isset($context["otherLanguageUrl"]) || array_key_exists("otherLanguageUrl"$context) ? $context["otherLanguageUrl"] : (function () { throw new RuntimeError('Variable "otherLanguageUrl" does not exist.'27$this->source); })()))) {
  101.                 // line 28
  102.                 echo "            ";
  103.                 $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.'28$this->source); })()), "request", [], "any"falsefalsetrue28), "attributes", [], "any"falsefalsetrue28), "get", [=> "_route"], "method"falsefalsetrue28), 28$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.'28$this->source); })()), "request", [], "any"falsefalsetrue28), "attributes", [], "any"falsefalsetrue28), "get", [=> "_route_params"], "method"falsefalsetrue28))) ? (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.'28$this->source); })()), "request", [], "any"falsefalsetrue28), "attributes", [], "any"falsefalsetrue28), "get", [=> "_route_params"], "method"falsefalsetrue28)) : ([])));
  104.                 // line 29
  105.                 echo "            ";
  106.                 $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.'29$this->source); })()), 29$this->source), ["/en/" => "/de/""/de/" => "/en/"]);
  107.                 // line 30
  108.                 echo "            ";
  109.                 if (((isset($context["currentPath"]) || array_key_exists("currentPath"$context) ? $context["currentPath"] : (function () { throw new RuntimeError('Variable "currentPath" does not exist.'30$this->source); })()) == (isset($context["otherLanguageUrl"]) || array_key_exists("otherLanguageUrl"$context) ? $context["otherLanguageUrl"] : (function () { throw new RuntimeError('Variable "otherLanguageUrl" does not exist.'30$this->source); })()))) {
  110.                     // line 31
  111.                     echo "                ";
  112.                     $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.'31$this->source); })()), "request", [], "any"falsefalsetrue31), "getLocale", [], "method"falsefalsetrue31) == "en")) ? ("/de") : ("/en"));
  113.                     // line 32
  114.                     echo "            ";
  115.                 }
  116.                 // line 33
  117.                 echo "        ";
  118.             }
  119.             // line 34
  120.             echo "    ";
  121.         }
  122.         // line 35
  123.         echo "
  124.     ";
  125.         // line 36
  126.         $this->loadTemplate("include/header.html.twig""layout/app.html.twig"36)->display($context);
  127.         // line 37
  128.         echo "    <div>
  129.         ";
  130.         // line 39
  131.         $this->displayBlock('CONTENT_MID'$context$blocks);
  132.         // line 41
  133.         echo "
  134.         ";
  135.         // line 42
  136.         $this->loadTemplate("include/footer.html.twig""layout/app.html.twig"42)->display($context);
  137.         // line 43
  138.         echo "    </div>
  139. </div>
  140. ";
  141.         // line 46
  142.         $this->displayBlock('PAGE_JS'$context$blocks);
  143.         // line 48
  144.         echo "</body>
  145. </html>";
  146.         
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  148.         
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  150.     }
  151.     // line 19
  152.     public function block_PAGE_CSS($context, array $blocks = [])
  153.     {
  154.         $macros $this->macros;
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_CSS"));
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_CSS"));
  159.         // line 20
  160.         echo "    ";
  161.         
  162.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  163.         
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  165.     }
  166.     // line 39
  167.     public function block_CONTENT_MID($context, array $blocks = [])
  168.     {
  169.         $macros $this->macros;
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""CONTENT_MID"));
  172.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""CONTENT_MID"));
  174.         // line 40
  175.         echo "        ";
  176.         
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178.         
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180.     }
  181.     // line 46
  182.     public function block_PAGE_JS($context, array $blocks = [])
  183.     {
  184.         $macros $this->macros;
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  186.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_JS"));
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  188.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""PAGE_JS"));
  189.         
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  191.         
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193.     }
  194.     public function getTemplateName()
  195.     {
  196.         return "layout/app.html.twig";
  197.     }
  198.     public function isTraitable()
  199.     {
  200.         return false;
  201.     }
  202.     public function getDebugInfo()
  203.     {
  204.         return array (  208 => 46,  198 => 40,  188 => 39,  178 => 20,  168 => 19,  157 => 48,  155 => 46,  150 => 43,  148 => 42,  145 => 41,  143 => 39,  139 => 37,  137 => 36,  134 => 35,  131 => 34,  128 => 33,  125 => 32,  122 => 31,  119 => 30,  116 => 29,  113 => 28,  110 => 27,  107 => 26,  104 => 25,  102 => 24,  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,);
  205.     }
  206.     public function getSourceContext()
  207.     {
  208.         return new Source("<!doctype html>
  209. <html lang=\"{{ app.request.locale }}\">
  210. <head>
  211.     <meta charset=\"utf-8\" />
  212.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\" />
  213.     <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{ asset('build/images/favicon.png') }}\" />
  214.     {% if product is defined %}
  215.         {% do pimcore_head_title().set(product.name) %}
  216.     {% endif %}
  217.     {% do pimcore_head_title().append('Hugo Josten') %}
  218.     {% do pimcore_head_title().setSeparator(' - ') %}
  219.     {{ pimcore_head_title() }}
  220.     {{ encore_entry_link_tags('app') }}
  221.     {{ encore_entry_script_tags('app') }}
  222.     {% block PAGE_CSS %}
  223.     {% endblock %}
  224. </head>
  225. <body class=\"antialiased\">
  226. <div class=\"bg-white\">
  227.     {% set navStartNode = document.getProperty('navigation_root') %}
  228.     {% if not otherLanguageUrl|default(null) %}
  229.         {% set otherLanguageUrl = document.getProperty(\"page_in_\" ~ (app.request.getLocale() == \"en\" ? 'de' : 'en')) %}
  230.         {% if otherLanguageUrl is empty %}
  231.             {% set currentPath = path(app.request.attributes.get('_route'), (app.request.attributes.get('_route_params') is not null ? app.request.attributes.get('_route_params') : []) ) %}
  232.             {% set otherLanguageUrl = currentPath|replace({'/en/': '/de/', '/de/':'/en/'}) %}
  233.             {% if currentPath == otherLanguageUrl %}
  234.                 {% set otherLanguageUrl = (app.request.getLocale() == \"en\" ? '/de' : '/en') %}
  235.             {% endif %}
  236.         {% endif %}
  237.     {% endif %}
  238.     {% include 'include/header.html.twig' %}
  239.     <div>
  240.         {% block CONTENT_MID %}
  241.         {% endblock %}
  242.         {% include 'include/footer.html.twig' %}
  243.     </div>
  244. </div>
  245. {% block PAGE_JS %}
  246. {% endblock %}
  247. </body>
  248. </html>""layout/app.html.twig""/var/www/html/templates/layout/app.html.twig");
  249.     }
  250.     
  251.     public function checkSecurity()
  252.     {
  253.         static $tags = array("if" => 7"do" => 8"block" => 19"set" => 24"include" => 36);
  254.         static $filters = array("escape" => 2"default" => 25"replace" => 29);
  255.         static $functions = array("asset" => 6"pimcore_head_title" => 8"encore_entry_link_tags" => 16"encore_entry_script_tags" => 17"path" => 28);
  256.         try {
  257.             $this->sandbox->checkSecurity(
  258.                 ['if''do''block''set''include'],
  259.                 ['escape''default''replace'],
  260.                 ['asset''pimcore_head_title''encore_entry_link_tags''encore_entry_script_tags''path']
  261.             );
  262.         } catch (SecurityError $e) {
  263.             $e->setSourceContext($this->source);
  264.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  265.                 $e->setTemplateLine($tags[$e->getTagName()]);
  266.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  267.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  268.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  269.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  270.             }
  271.             throw $e;
  272.         }
  273.     }
  274. }