var/cache/website/dev/twig/23/23a9111491af3d7e4f2db1cd2dd327f3.php line 57

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. /* base.html.twig */
  14. class __TwigTemplate_0d48b6930af742d04da592b0ab0a63c4 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.             'meta' => [$this'block_meta'],
  25.             'style' => [$this'block_style'],
  26.             'content' => [$this'block_content'],
  27.             'footer' => [$this'block_footer'],
  28.             'javascripts' => [$this'block_javascripts'],
  29.             'custom_javascripts' => [$this'block_custom_javascripts'],
  30.         ];
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  39.         // line 1
  40.         echo "<!DOCTYPE html>
  41. <html lang=\"";
  42.         // line 2
  43.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_split_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.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "locale", [], "any"falsefalsefalse2), "_"), 0, [], "array"falsefalsefalse2), "html"nulltrue);
  44.         echo "\">
  45. <head>
  46.     ";
  47.         // line 4
  48.         $context["webspaceSettings"] = $this->extensions['Sulu\Bundle\SnippetBundle\Twig\SnippetAreaTwigExtension']->loadByArea("webspace_settings");
  49.         // line 5
  50.         echo "
  51.     <meta charset=\"utf-8\">
  52.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  53.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  54.     <link rel=\"shortcut icon\" href=\"";
  55.         // line 10
  56.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/website/images/favicon.ico"), "html"nulltrue);
  57.         echo "\">
  58.     <link rel=\"icon\" type=\"image/png\" href=\"";
  59.         // line 11
  60.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/website/images/favicon-16x16.png"), "html"nulltrue);
  61.         echo "\" sizes=\"16x16\">
  62.     <link rel=\"icon\" type=\"image/png\" href=\"";
  63.         // line 12
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/website/images/favicon-32x32.png"), "html"nulltrue);
  65.         echo "\" sizes=\"32x32\">
  66.     <link rel=\"icon\" type=\"image/png\" href=\"";
  67.         // line 13
  68.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/website/images/android-chrome-192x192.png"), "html"nulltrue);
  69.         echo "\" sizes=\"192x192\">
  70.     <link rel=\"icon\" type=\"image/png\" href=\"";
  71.         // line 14
  72.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/website/images/android-chrome-512x512.png"), "html"nulltrue);
  73.         echo "\" sizes=\"512x512\">
  74.     <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"";
  75.         // line 15
  76.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/website/images/apple-touch-icon.png"), "html"nulltrue);
  77.         echo "\">
  78.     ";
  79.         // line 17
  80.         $this->displayBlock('meta'$context$blocks);
  81.         // line 25
  82.         echo "
  83.     ";
  84.         // line 26
  85.         $this->displayBlock('style'$context$blocks);
  86.         // line 37
  87.         echo "</head>
  88. <body>
  89.     <div>
  90.         ";
  91.         // line 40
  92.         $this->loadTemplate("components/navbar.html.twig""base.html.twig"40)->display($context);
  93.         // line 41
  94.         echo "
  95.         <main>
  96.             ";
  97.         // line 43
  98.         $this->displayBlock('content'$context$blocks);
  99.         // line 44
  100.         echo "        </main>
  101.     </div>
  102.     <footer class=\"py-5\">
  103.         ";
  104.         // line 48
  105.         $this->displayBlock('footer'$context$blocks);
  106.         // line 51
  107.         echo "    </footer>
  108.     ";
  109.         // line 53
  110.         $this->displayBlock('javascripts'$context$blocks);
  111.         // line 56
  112.         echo "
  113.     ";
  114.         // line 57
  115.         $this->displayBlock('custom_javascripts'$context$blocks);
  116.         // line 59
  117.         echo "</body>
  118. </html>
  119. ";
  120.         
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  122.         
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  124.     }
  125.     // line 17
  126.     public function block_meta($context, array $blocks = [])
  127.     {
  128.         $macros $this->macros;
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  132.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  133.         // line 18
  134.         echo "        ";
  135.         $this->loadTemplate("@SuluWebsite/Extension/seo.html.twig""base.html.twig"18)->display(twig_array_merge($context, ["seo" => ((twig_get_attribute($this->env$this->source,         // line 19
  136. ($context["extension"] ?? null), "seo", [], "any"truetruefalse19)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["extension"] ?? null), "seo", [], "any"falsefalsefalse19), [])) : ([])), "content" => ((        // line 20
  137. array_key_exists("content"$context)) ? (_twig_default_filter((isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'20$this->source); })()), [])) : ([])), "localizations" => ((        // line 21
  138. array_key_exists("localizations"$context)) ? (_twig_default_filter((isset($context["localizations"]) || array_key_exists("localizations"$context) ? $context["localizations"] : (function () { throw new RuntimeError('Variable "localizations" does not exist.'21$this->source); })()), [])) : ([])), "shadowBaseLocale" => ((        // line 22
  139. array_key_exists("shadowBaseLocale"$context)) ? (_twig_default_filter((isset($context["shadowBaseLocale"]) || array_key_exists("shadowBaseLocale"$context) ? $context["shadowBaseLocale"] : (function () { throw new RuntimeError('Variable "shadowBaseLocale" does not exist.'22$this->source); })()))) : (""))]));
  140.         // line 24
  141.         echo "    ";
  142.         
  143.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  144.         
  145.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  146.     }
  147.     // line 26
  148.     public function block_style($context, array $blocks = [])
  149.     {
  150.         $macros $this->macros;
  151.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""style"));
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""style"));
  155.         // line 27
  156.         echo "        ";
  157.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  158.         echo "
  159.         ";
  160.         // line 28
  161.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("fonts");
  162.         echo "
  163.         ";
  164.         // line 29
  165.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("theme");
  166.         echo "
  167.         <style>
  168.             :root {
  169.                 --azh-yellow: ";
  170.         // line 32
  171.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["webspaceSettings"] ?? null), "content", [], "any"falsetruefalse32), "themeColor", [], "any"truetruefalse32)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["webspaceSettings"] ?? null), "content", [], "any"falsetruefalse32), "themeColor", [], "any"falsefalsefalse32), "#6e6867")) : ("#6e6867")), "html"nulltrue);
  172.         echo " !important;
  173.                 --azh-yellow-hover: ";
  174.         // line 33
  175.         echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["webspaceSettings"] ?? null), "content", [], "any"falsetruefalse33), "themeColorHover", [], "any"truetruefalse33)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["webspaceSettings"] ?? null), "content", [], "any"falsetruefalse33), "themeColorHover", [], "any"falsefalsefalse33), "#ada6a5")) : ("#ada6a5")), "html"nulltrue);
  176.         echo " !important;
  177.             }
  178.         </style>
  179.     ";
  180.         
  181.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  182.         
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184.     }
  185.     // line 43
  186.     public function block_content($context, array $blocks = [])
  187.     {
  188.         $macros $this->macros;
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  191.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  193.         
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  195.         
  196.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  197.     }
  198.     // line 48
  199.     public function block_footer($context, array $blocks = [])
  200.     {
  201.         $macros $this->macros;
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  204.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  206.         // line 49
  207.         echo "            ";
  208.         $this->loadTemplate("components/footer.html.twig""base.html.twig"49)->display($context);
  209.         // line 50
  210.         echo "        ";
  211.         
  212.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  213.         
  214.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  215.     }
  216.     // line 53
  217.     public function block_javascripts($context, array $blocks = [])
  218.     {
  219.         $macros $this->macros;
  220.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  221.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  222.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  223.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  224.         // line 54
  225.         echo "        ";
  226.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  227.         echo "
  228.     ";
  229.         
  230.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  231.         
  232.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  233.     }
  234.     // line 57
  235.     public function block_custom_javascripts($context, array $blocks = [])
  236.     {
  237.         $macros $this->macros;
  238.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  239.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""custom_javascripts"));
  240.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  241.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""custom_javascripts"));
  242.         // line 58
  243.         echo "    ";
  244.         
  245.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  246.         
  247.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  248.     }
  249.     public function getTemplateName()
  250.     {
  251.         return "base.html.twig";
  252.     }
  253.     public function isTraitable()
  254.     {
  255.         return false;
  256.     }
  257.     public function getDebugInfo()
  258.     {
  259.         return array (  286 => 58,  276 => 57,  263 => 54,  253 => 53,  243 => 50,  240 => 49,  230 => 48,  212 => 43,  198 => 33,  194 => 32,  188 => 29,  184 => 28,  179 => 27,  169 => 26,  159 => 24,  157 => 22,  156 => 21,  155 => 20,  154 => 19,  152 => 18,  142 => 17,  130 => 59,  128 => 57,  125 => 56,  123 => 53,  119 => 51,  117 => 48,  111 => 44,  109 => 43,  105 => 41,  103 => 40,  98 => 37,  96 => 26,  93 => 25,  91 => 17,  86 => 15,  82 => 14,  78 => 13,  74 => 12,  70 => 11,  66 => 10,  59 => 5,  57 => 4,  52 => 2,  49 => 1,);
  260.     }
  261.     public function getSourceContext()
  262.     {
  263.         return new Source("<!DOCTYPE html>
  264. <html lang=\"{{ app.request.locale|split('_')[0] }}\">
  265. <head>
  266.     {% set webspaceSettings = sulu_snippet_load_by_area('webspace_settings') %}
  267.     <meta charset=\"utf-8\">
  268.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  269.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  270.     <link rel=\"shortcut icon\" href=\"{{ asset('build/website/images/favicon.ico') }}\">
  271.     <link rel=\"icon\" type=\"image/png\" href=\"{{ asset('build/website/images/favicon-16x16.png') }}\" sizes=\"16x16\">
  272.     <link rel=\"icon\" type=\"image/png\" href=\"{{ asset('build/website/images/favicon-32x32.png') }}\" sizes=\"32x32\">
  273.     <link rel=\"icon\" type=\"image/png\" href=\"{{ asset('build/website/images/android-chrome-192x192.png') }}\" sizes=\"192x192\">
  274.     <link rel=\"icon\" type=\"image/png\" href=\"{{ asset('build/website/images/android-chrome-512x512.png') }}\" sizes=\"512x512\">
  275.     <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"{{ asset('build/website/images/apple-touch-icon.png') }}\">
  276.     {% block meta %}
  277.         {% include \"@SuluWebsite/Extension/seo.html.twig\" with {
  278.             \"seo\": extension.seo|default([]),
  279.             \"content\": content|default([]),
  280.             \"localizations\": localizations|default([]),
  281.             \"shadowBaseLocale\": shadowBaseLocale|default(),
  282.         } %}
  283.     {% endblock %}
  284.     {% block style %}
  285.         {{ encore_entry_link_tags('app') }}
  286.         {{ encore_entry_link_tags('fonts') }}
  287.         {{ encore_entry_link_tags('theme') }}
  288.         <style>
  289.             :root {
  290.                 --azh-yellow: {{ webspaceSettings.content.themeColor|default('#6e6867') }} !important;
  291.                 --azh-yellow-hover: {{ webspaceSettings.content.themeColorHover|default('#ada6a5') }} !important;
  292.             }
  293.         </style>
  294.     {% endblock %}
  295. </head>
  296. <body>
  297.     <div>
  298.         {% include 'components/navbar.html.twig' %}
  299.         <main>
  300.             {% block content %}{% endblock %}
  301.         </main>
  302.     </div>
  303.     <footer class=\"py-5\">
  304.         {% block footer %}
  305.             {% include 'components/footer.html.twig' %}
  306.         {% endblock %}
  307.     </footer>
  308.     {% block javascripts %}
  309.         {{ encore_entry_script_tags('app') }}
  310.     {% endblock %}
  311.     {% block custom_javascripts %}
  312.     {% endblock %}
  313. </body>
  314. </html>
  315. ""base.html.twig""/var/www/html/templates/base.html.twig");
  316.     }
  317. }