<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* _page/_guest/_nav.html.twig */
class __TwigTemplate_f9f003c5a201df6721dc996daeb30dda extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "_page/_guest/_nav.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "_page/_guest/_nav.html.twig"));
// line 1
echo "
<!-- ======= Header ======= -->
<header id=\"header\" class=\"header fixed-top\" data-scrollto-offset=\"0\">
<div class=\"container-fluid d-flex align-items-center justify-content-between\">
<a href=\"";
// line 6
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\" class=\"logo d-flex align-items-center scrollto me-auto me-lg-0\">
<!-- Uncomment the line below if you also wish to use an image logo -->
<!-- <img src=\"assets/img/logo.png\" alt=\"\"> -->
";
// line 9
$context["logo"] = $this->extensions['App\Twig\SettingsExtension']->getSetting("logo", true);
// line 10
echo " ";
if ( !(null === (isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 10, $this->source); })()))) {
// line 11
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((twig_get_attribute($this->env, $this->source, (isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 11, $this->source); })()), "path", [], "any", false, false, false, 11) . twig_get_attribute($this->env, $this->source, (isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 11, $this->source); })()), "name", [], "any", false, false, false, 11))), "html", null, true);
echo "\" alt=\"\" class=\"img-fluid\">
";
} else {
// line 13
echo " TeZeA
";
}
// line 15
echo " </a>
<nav id=\"navbar\" class=\"navbar\">
<ul>
<li><a class=\"nav-link scrollto\" href=\"";
// line 20
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\">Home</a></li>
";
// line 22
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 23
echo " ";
// line 38
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 39
echo " <li><a class=\"nav-link scrollto\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("panel");
echo "\">Panel</a></li>
";
}
// line 41
echo " ";
} else {
// line 42
echo " <li><a class=\"nav-link scrollto btn-getstarted me-2\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
echo "\">Logowanie</a></li>
<li><a class=\"nav-link scrollto btn-getstarted\" href=\"";
// line 43
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
echo "\">Rejestracja</a></li>
";
}
// line 45
echo "
</ul>
<i class=\"bi bi-list mobile-nav-toggle d-none\"></i>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "_page/_guest/_nav.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 109 => 45, 104 => 43, 99 => 42, 96 => 41, 90 => 39, 87 => 38, 85 => 23, 83 => 22, 78 => 20, 71 => 15, 67 => 13, 61 => 11, 58 => 10, 56 => 9, 50 => 6, 43 => 1,);
}
public function getSourceContext()
{
return new Source("
<!-- ======= Header ======= -->
<header id=\"header\" class=\"header fixed-top\" data-scrollto-offset=\"0\">
<div class=\"container-fluid d-flex align-items-center justify-content-between\">
<a href=\"{{ path('home') }}\" class=\"logo d-flex align-items-center scrollto me-auto me-lg-0\">
<!-- Uncomment the line below if you also wish to use an image logo -->
<!-- <img src=\"assets/img/logo.png\" alt=\"\"> -->
{% set logo = getSetting('logo', true) %}
{% if logo is not null %}
<img src=\"{{ asset(logo.path ~ logo.name) }}\" alt=\"\" class=\"img-fluid\">
{% else %}
TeZeA
{% endif %}
</a>
<nav id=\"navbar\" class=\"navbar\">
<ul>
<li><a class=\"nav-link scrollto\" href=\"{{ path('home')}}\">Home</a></li>
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
{# {% if is_granted('ROLE_USER') %}
<li class=\"dropdown\"><a href=\"#\"><span>Moje konto</span> <i class=\"bi bi-chevron-right\"></i></a>
<ul>
<li><a href=\"{{ path(\"user_profil\") }}\">{% trans %}Mój profil{% endtrans %}</a></li>
<li>
<a href=\"{{ path(\"serviceSystemClient_tickets\") }}\">{% trans %}Zgłoszenia{% endtrans %}</a>
</li>
<li>
<a href=\"{{ path(\"user_edit\", { 'id': app.user.id }) }}\">{% trans %}Płatności{% endtrans %}</a>
</li>
<li><a href=\"#\" data-bs-toggle=\"modal\"
data-bs-target=\"#logoutModal\">{% trans %}Wyloguj{% endtrans %}</a></li>
</ul>
</li>
{% endif %}#}
{% if is_granted('ROLE_USER') %}
<li><a class=\"nav-link scrollto\" href=\"{{ path('panel') }}\">Panel</a></li>
{% endif %}
{% else %}
<li><a class=\"nav-link scrollto btn-getstarted me-2\" href=\"{{ path('app_login') }}\">Logowanie</a></li>
<li><a class=\"nav-link scrollto btn-getstarted\" href=\"{{ path('app_register') }}\">Rejestracja</a></li>
{% endif %}
</ul>
<i class=\"bi bi-list mobile-nav-toggle d-none\"></i>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->
", "_page/_guest/_nav.html.twig", "/home/tezea/domains/tezea.pl/public_html/templates/_page/_guest/_nav.html.twig");
}
}