var/cache/website/dev/twig/75/75cfa0b3986ecff601d81bc41e2c6cd5.php line 39

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. use Twig\TemplateWrapper;
  15. /* partials/header.html.twig */
  16. class __TwigTemplate_9b1a0f3870a33450ff4fdd1e0659bd7d extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. 'header' => [$this, 'block_header'],
  30. ];
  31. }
  32. protected function doDisplay(array $context, array $blocks = []): iterable
  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", "partials/header.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", "partials/header.html.twig"));
  39. // line 1
  40. yield from $this->unwrap()->yieldBlock('header', $context, $blocks);
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  43. yield from [];
  44. }
  45. /**
  46. * @return iterable<null|scalar|\Stringable>
  47. */
  48. public function block_header(array $context, array $blocks = []): iterable
  49. {
  50. $macros = $this->macros;
  51. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  53. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
  55. // line 2
  56. yield " <body>
  57. <header id=\"header\" class=\"fixed-top\" style=\"display: flex; align-items: center; justify-content: space-between;\">
  58. <a href=\"";
  59. // line 4
  60. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentRootPath(), "html", null, true);
  61. yield "\" class=\"logo\"><img
  62. src=\"";
  63. // line 5
  64. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/website/website/styles/icon/logo.png"), "html", null, true);
  65. yield "\" alt=\"\"
  66. class=\"img-fluid\"></a>
  67. <div class=\"container\" >
  68. <nav id=\"navbar\" class=\"navbar\">
  69. <ul>
  70. ";
  71. // line 10
  72. $context["current_url"] = $this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(CoreExtension::getAttribute($this->env, $this->source, (isset($context["request"]) || array_key_exists("request", $context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.', 10, $this->source); })()), "resourceLocator", [], "any", false, false, false, 10), CoreExtension::getAttribute($this->env, $this->source, (isset($context["request"]) || array_key_exists("request", $context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.', 10, $this->source); })()), "webspaceKey", [], "any", false, false, false, 10));
  73. // line 11
  74. yield " ";
  75. $context['_parent'] = $context;
  76. $context['_seq'] = CoreExtension::ensureTraversable($this->env->getFunction('sulu_navigation_root_tree')->getCallable()("main"));
  77. foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  78. // line 12
  79. yield " ";
  80. $context["item_url"] = $this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, false, 12), CoreExtension::getAttribute($this->env, $this->source, $context["item"], "webspaceKey", [], "any", false, false, false, 12), CoreExtension::getAttribute($this->env, $this->source, $context["item"], "locale", [], "any", false, false, false, 12));
  81. // line 13
  82. yield " <li ";
  83. if (((isset($context["current_url"]) || array_key_exists("current_url", $context) ? $context["current_url"] : (function () { throw new RuntimeError('Variable "current_url" does not exist.', 13, $this->source); })()) == (isset($context["item_url"]) || array_key_exists("item_url", $context) ? $context["item_url"] : (function () { throw new RuntimeError('Variable "item_url" does not exist.', 13, $this->source); })()))) {
  84. yield "class=\"active\"";
  85. }
  86. yield ">
  87. <a href=\"";
  88. // line 14
  89. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["item_url"]) || array_key_exists("item_url", $context) ? $context["item_url"] : (function () { throw new RuntimeError('Variable "item_url" does not exist.', 14, $this->source); })()), "html", null, true);
  90. yield "\" title=\"";
  91. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 14), "html", null, true);
  92. yield "\">";
  93. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 14), "html", null, true);
  94. yield "</a>
  95. </li>
  96. ";
  97. }
  98. $_parent = $context['_parent'];
  99. unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
  100. $context = array_intersect_key($context, $_parent) + $_parent;
  101. // line 17
  102. yield " </ul>
  103. <i class=\"bi bi-list mobile-nav-toggle\"></i>
  104. </nav>
  105. </div>
  106. </header>
  107. </body>
  108. ";
  109. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  111. yield from [];
  112. }
  113. /**
  114. * @codeCoverageIgnore
  115. */
  116. public function getTemplateName(): string
  117. {
  118. return "partials/header.html.twig";
  119. }
  120. /**
  121. * @codeCoverageIgnore
  122. */
  123. public function getDebugInfo(): array
  124. {
  125. return array ( 118 => 17, 105 => 14, 98 => 13, 95 => 12, 90 => 11, 88 => 10, 80 => 5, 76 => 4, 72 => 2, 49 => 1,);
  126. }
  127. public function getSourceContext(): Source
  128. {
  129. return new Source("{% block header %}
  130. <body>
  131. <header id=\"header\" class=\"fixed-top\" style=\"display: flex; align-items: center; justify-content: space-between;\">
  132. <a href=\"{{ sulu_content_root_path() }}\" class=\"logo\"><img
  133. src=\"{{ asset('build/website/website/styles/icon/logo.png') }}\" alt=\"\"
  134. class=\"img-fluid\"></a>
  135. <div class=\"container\" >
  136. <nav id=\"navbar\" class=\"navbar\">
  137. <ul>
  138. {% set current_url = sulu_content_path(request.resourceLocator, request.webspaceKey) %}
  139. {% for item in sulu_navigation_root_tree('main') %}
  140. {% set item_url = sulu_content_path(item.url, item.webspaceKey, item.locale) %}
  141. <li {% if current_url == item_url %}class=\"active\"{% endif %}>
  142. <a href=\"{{ item_url }}\" title=\"{{ item.title }}\">{{ item.title }}</a>
  143. </li>
  144. {% endfor %}
  145. </ul>
  146. <i class=\"bi bi-list mobile-nav-toggle\"></i>
  147. </nav>
  148. </div>
  149. </header>
  150. </body>
  151. {% endblock %}
  152. ", "partials/header.html.twig", "/www/htdocs/w00cd56a/prod_theatertotal/theatertotal_sulu_update/templates/partials/header.html.twig");
  153. }
  154. }