<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* partials/header.html.twig */
class __TwigTemplate_9b1a0f3870a33450ff4fdd1e0659bd7d extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'header' => [$this, 'block_header'],
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/header.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/header.html.twig"));
// line 1
yield from $this->unwrap()->yieldBlock('header', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 2
yield " <body>
<header id=\"header\" class=\"fixed-top\" style=\"display: flex; align-items: center; justify-content: space-between;\">
<a href=\"";
// line 4
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentRootPath(), "html", null, true);
yield "\" class=\"logo\"><img
src=\"";
// line 5
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);
yield "\" alt=\"\"
class=\"img-fluid\"></a>
<div class=\"container\" >
<nav id=\"navbar\" class=\"navbar\">
<ul>
";
// line 10
$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));
// line 11
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->env->getFunction('sulu_navigation_root_tree')->getCallable()("main"));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 12
yield " ";
$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));
// line 13
yield " <li ";
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); })()))) {
yield "class=\"active\"";
}
yield ">
<a href=\"";
// line 14
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);
yield "\" title=\"";
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);
yield "\">";
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);
yield "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 17
yield " </ul>
<i class=\"bi bi-list mobile-nav-toggle\"></i>
</nav>
</div>
</header>
</body>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "partials/header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 118 => 17, 105 => 14, 98 => 13, 95 => 12, 90 => 11, 88 => 10, 80 => 5, 76 => 4, 72 => 2, 49 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% block header %}
<body>
<header id=\"header\" class=\"fixed-top\" style=\"display: flex; align-items: center; justify-content: space-between;\">
<a href=\"{{ sulu_content_root_path() }}\" class=\"logo\"><img
src=\"{{ asset('build/website/website/styles/icon/logo.png') }}\" alt=\"\"
class=\"img-fluid\"></a>
<div class=\"container\" >
<nav id=\"navbar\" class=\"navbar\">
<ul>
{% set current_url = sulu_content_path(request.resourceLocator, request.webspaceKey) %}
{% for item in sulu_navigation_root_tree('main') %}
{% set item_url = sulu_content_path(item.url, item.webspaceKey, item.locale) %}
<li {% if current_url == item_url %}class=\"active\"{% endif %}>
<a href=\"{{ item_url }}\" title=\"{{ item.title }}\">{{ item.title }}</a>
</li>
{% endfor %}
</ul>
<i class=\"bi bi-list mobile-nav-toggle\"></i>
</nav>
</div>
</header>
</body>
{% endblock %}
", "partials/header.html.twig", "/www/htdocs/w00cd56a/prod_theatertotal/theatertotal_sulu_update/templates/partials/header.html.twig");
}
}