var/cache/website/dev/twig/eb/eb0d7bebda88d64b95cafd5d04d830cdd70cada9e2680fd740fa9ecb73800d5f.php line 73

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_d62abbfc2d38aa7304f07de01483ff062b03fb0a23f47f7ead8f9c9d84f03a2a 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.             'header' => [$this'block_header'],
  27.             'content' => [$this'block_content'],
  28.             'footer' => [$this'block_footer'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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.     <meta charset=\"utf-8\">
  47.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  48.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  49.     ";
  50.         // line 8
  51.         $this->displayBlock('meta'$context$blocks);
  52.         // line 16
  53.         echo "
  54.     ";
  55.         // line 17
  56.         $this->displayBlock('style'$context$blocks);
  57.         // line 18
  58.         echo "</head>
  59. <body>
  60.     <header>
  61.         ";
  62.         // line 21
  63.         $this->displayBlock('header'$context$blocks);
  64.         // line 37
  65.         echo "    </header>
  66.     <form action=\"";
  67.         // line 39
  68.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sulu_search.website_search");
  69.         echo "\" method=\"GET\">
  70.         <input name=\"q\" type=\"text\" placeholder=\"Search\"/>
  71.         <input type=\"submit\" value=\"Go\"/>
  72.     </form>
  73.     <main>
  74.         ";
  75.         // line 45
  76.         $this->displayBlock('content'$context$blocks);
  77.         // line 46
  78.         echo "    </main>
  79.     <footer>
  80.         ";
  81.         // line 49
  82.         $this->displayBlock('footer'$context$blocks);
  83.         // line 52
  84.         echo "    </footer>
  85.     ";
  86.         // line 54
  87.         $this->displayBlock('javascripts'$context$blocks);
  88.         // line 55
  89.         echo "</body>
  90. </html>
  91. ";
  92.         
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  94.         
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  96.     }
  97.     // line 8
  98.     public function block_meta($context, array $blocks = [])
  99.     {
  100.         $macros $this->macros;
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta"));
  105.         // line 9
  106.         echo "        ";
  107.         $this->loadTemplate("@SuluWebsite/Extension/seo.html.twig""base.html.twig"9)->display(twig_array_merge($context, ["seo" => ((twig_get_attribute($this->env$this->source,         // line 10
  108. ($context["extension"] ?? null), "seo", [], "any"truetruefalse10)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["extension"] ?? null), "seo", [], "any"falsefalsefalse10), [])) : ([])), "content" => ((        // line 11
  109. 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.'11$this->source); })()), [])) : ([])), "localizations" => ((        // line 12
  110. 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.'12$this->source); })()), [])) : ([])), "shadowBaseLocale" => ((        // line 13
  111. 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.'13$this->source); })()))) : (""))]));
  112.         // line 15
  113.         echo "    ";
  114.         
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  116.         
  117.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  118.     }
  119.     // line 17
  120.     public function block_style($context, array $blocks = [])
  121.     {
  122.         $macros $this->macros;
  123.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  124.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""style"));
  125.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  126.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""style"));
  127.         
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  129.         
  130.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  131.     }
  132.     // line 21
  133.     public function block_header($context, array $blocks = [])
  134.     {
  135.         $macros $this->macros;
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  140.         // line 22
  141.         echo "            <nav>
  142.                 <ul>
  143.                     <li>
  144.                         <a href=\"";
  145.         // line 25
  146.         echo twig_escape_filter($this->env$this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentRootPath(), "html"nulltrue);
  147.         echo "\">Homepage</a>
  148.                     </li>
  149.                     ";
  150.         // line 28
  151.         $context['_parent'] = $context;
  152.         $context['_seq'] = twig_ensure_traversable($this->env->getFunction('sulu_navigation_root_tree')->getCallable()("main"));
  153.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  154.             // line 29
  155.             echo "                        <li>
  156.                             <a href=\"";
  157.             // line 30
  158.             echo twig_escape_filter($this->env$this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(twig_get_attribute($this->env$this->source$context["item"], "url", [], "any"falsefalsefalse30), twig_get_attribute($this->env$this->source$context["item"], "webspaceKey", [], "any"falsefalsefalse30)), "html"nulltrue);
  159.             echo "\"
  160.                                title=\"";
  161.             // line 31
  162.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "title", [], "any"falsefalsefalse31), "html"nulltrue);
  163.             echo "\">";
  164.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "title", [], "any"falsefalsefalse31), "html"nulltrue);
  165.             echo "</a>
  166.                         </li>
  167.                     ";
  168.         }
  169.         $_parent $context['_parent'];
  170.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  171.         $context array_intersect_key($context$_parent) + $_parent;
  172.         // line 34
  173.         echo "                </ul>
  174.             </nav>
  175.         ";
  176.         
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  178.         
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  180.     }
  181.     // line 45
  182.     public function block_content($context, array $blocks = [])
  183.     {
  184.         $macros $this->macros;
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  187.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  188.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  189.         
  190.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  191.         
  192.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  193.     }
  194.     // line 49
  195.     public function block_footer($context, array $blocks = [])
  196.     {
  197.         $macros $this->macros;
  198.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  199.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  201.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  202.         // line 50
  203.         echo "            <p>Copyright ";
  204.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env"now""Y"), "html"nulltrue);
  205.         echo " SULU</p>
  206.         ";
  207.         
  208.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  209.         
  210.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  211.     }
  212.     // line 54
  213.     public function block_javascripts($context, array $blocks = [])
  214.     {
  215.         $macros $this->macros;
  216.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  217.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  218.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  219.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  220.         
  221.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  222.         
  223.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  224.     }
  225.     public function getTemplateName()
  226.     {
  227.         return "base.html.twig";
  228.     }
  229.     public function isTraitable()
  230.     {
  231.         return false;
  232.     }
  233.     public function getDebugInfo()
  234.     {
  235.         return array (  256 => 54,  243 => 50,  233 => 49,  215 => 45,  203 => 34,  192 => 31,  188 => 30,  185 => 29,  181 => 28,  175 => 25,  170 => 22,  160 => 21,  142 => 17,  132 => 15,  130 => 13,  129 => 12,  128 => 11,  127 => 10,  125 => 9,  115 => 8,  103 => 55,  101 => 54,  97 => 52,  95 => 49,  90 => 46,  88 => 45,  79 => 39,  75 => 37,  73 => 21,  68 => 18,  66 => 17,  63 => 16,  61 => 8,  52 => 2,  49 => 1,);
  236.     }
  237.     public function getSourceContext()
  238.     {
  239.         return new Source("<!DOCTYPE html>
  240. <html lang=\"{{ app.request.locale|split('_')[0] }}\">
  241. <head>
  242.     <meta charset=\"utf-8\">
  243.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  244.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  245.     {% block meta %}
  246.         {% include \"@SuluWebsite/Extension/seo.html.twig\" with {
  247.             \"seo\": extension.seo|default([]),
  248.             \"content\": content|default([]),
  249.             \"localizations\": localizations|default([]),
  250.             \"shadowBaseLocale\": shadowBaseLocale|default(),
  251.         } %}
  252.     {% endblock %}
  253.     {% block style %}{% endblock %}
  254. </head>
  255. <body>
  256.     <header>
  257.         {% block header %}
  258.             <nav>
  259.                 <ul>
  260.                     <li>
  261.                         <a href=\"{{ sulu_content_root_path() }}\">Homepage</a>
  262.                     </li>
  263.                     {% for item in sulu_navigation_root_tree('main') %}
  264.                         <li>
  265.                             <a href=\"{{ sulu_content_path(item.url, item.webspaceKey) }}\"
  266.                                title=\"{{ item.title }}\">{{ item.title }}</a>
  267.                         </li>
  268.                     {% endfor %}
  269.                 </ul>
  270.             </nav>
  271.         {% endblock %}
  272.     </header>
  273.     <form action=\"{{ path('sulu_search.website_search') }}\" method=\"GET\">
  274.         <input name=\"q\" type=\"text\" placeholder=\"Search\"/>
  275.         <input type=\"submit\" value=\"Go\"/>
  276.     </form>
  277.     <main>
  278.         {% block content %}{% endblock %}
  279.     </main>
  280.     <footer>
  281.         {% block footer %}
  282.             <p>Copyright {{ 'now'|date('Y') }} SULU</p>
  283.         {% endblock %}
  284.     </footer>
  285.     {% block javascripts %}{% endblock %}
  286. </body>
  287. </html>
  288. ""base.html.twig""/home/jumo/sites/test/sulu/templates/base.html.twig");
  289.     }
  290. }