var/cache/website/dev/twig/99/9922fb073ae51226bd544cf2ede77aad.php line 74

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