var/cache/dev/twig/7d/7d5460fc0a8fe46301e64802320ef8cb.php line 33

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. /* _page/_guest/_nav.html.twig */
  14. class __TwigTemplate_f9f003c5a201df6721dc996daeb30dda 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.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_page/_guest/_nav.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""_page/_guest/_nav.html.twig"));
  33.         // line 1
  34.         echo "
  35. <!-- ======= Header ======= -->
  36. <header id=\"header\" class=\"header fixed-top\" data-scrollto-offset=\"0\">
  37.     <div class=\"container-fluid d-flex align-items-center justify-content-between\">
  38.         <a href=\"";
  39.         // line 6
  40.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  41.         echo "\" class=\"logo d-flex align-items-center scrollto me-auto me-lg-0\">
  42.             <!-- Uncomment the line below if you also wish to use an image logo -->
  43.             <!-- <img src=\"assets/img/logo.png\" alt=\"\"> -->
  44.             ";
  45.         // line 9
  46.         $context["logo"] = $this->extensions['App\Twig\SettingsExtension']->getSetting("logo"true);
  47.         // line 10
  48.         echo "            ";
  49.         if ( !(null === (isset($context["logo"]) || array_key_exists("logo"$context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.'10$this->source); })()))) {
  50.             // line 11
  51.             echo "                <img src=\"";
  52.             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"falsefalsefalse11) . 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"falsefalsefalse11))), "html"nulltrue);
  53.             echo "\" alt=\"\" class=\"img-fluid\">
  54.             ";
  55.         } else {
  56.             // line 13
  57.             echo "                TeZeA
  58.             ";
  59.         }
  60.         // line 15
  61.         echo "        </a>
  62.         <nav id=\"navbar\" class=\"navbar\">
  63.             <ul>
  64.                 <li><a class=\"nav-link scrollto\" href=\"";
  65.         // line 20
  66.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  67.         echo "\">Home</a></li>
  68.                 ";
  69.         // line 22
  70.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  71.             // line 23
  72.             echo "                ";
  73.             // line 38
  74.             echo "                    ";
  75.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  76.                 // line 39
  77.                 echo "                        <li><a class=\"nav-link scrollto\" href=\"";
  78.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("panel");
  79.                 echo "\">Panel</a></li>
  80.                     ";
  81.             }
  82.             // line 41
  83.             echo "                    ";
  84.         } else {
  85.             // line 42
  86.             echo "                        <li><a class=\"nav-link scrollto btn-getstarted me-2\" href=\"";
  87.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  88.             echo "\">Logowanie</a></li>
  89.                         <li><a class=\"nav-link scrollto btn-getstarted\" href=\"";
  90.             // line 43
  91.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
  92.             echo "\">Rejestracja</a></li>
  93.                 ";
  94.         }
  95.         // line 45
  96.         echo "
  97.             </ul>
  98.             <i class=\"bi bi-list mobile-nav-toggle d-none\"></i>
  99.         </nav><!-- .navbar -->
  100.     </div>
  101. </header><!-- End Header -->
  102. ";
  103.         
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  105.         
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107.     }
  108.     public function getTemplateName()
  109.     {
  110.         return "_page/_guest/_nav.html.twig";
  111.     }
  112.     public function isTraitable()
  113.     {
  114.         return false;
  115.     }
  116.     public function getDebugInfo()
  117.     {
  118.         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,);
  119.     }
  120.     public function getSourceContext()
  121.     {
  122.         return new Source("
  123. <!-- ======= Header ======= -->
  124. <header id=\"header\" class=\"header fixed-top\" data-scrollto-offset=\"0\">
  125.     <div class=\"container-fluid d-flex align-items-center justify-content-between\">
  126.         <a href=\"{{ path('home') }}\" class=\"logo d-flex align-items-center scrollto me-auto me-lg-0\">
  127.             <!-- Uncomment the line below if you also wish to use an image logo -->
  128.             <!-- <img src=\"assets/img/logo.png\" alt=\"\"> -->
  129.             {%  set logo = getSetting('logo', true) %}
  130.             {% if logo is not null %}
  131.                 <img src=\"{{ asset(logo.path ~ logo.name) }}\" alt=\"\" class=\"img-fluid\">
  132.             {% else %}
  133.                 TeZeA
  134.             {% endif %}
  135.         </a>
  136.         <nav id=\"navbar\" class=\"navbar\">
  137.             <ul>
  138.                 <li><a class=\"nav-link scrollto\" href=\"{{ path('home')}}\">Home</a></li>
  139.                 {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  140.                 {#  {% if is_granted('ROLE_USER') %}
  141.                         <li class=\"dropdown\"><a href=\"#\"><span>Moje konto</span> <i class=\"bi bi-chevron-right\"></i></a>
  142.                             <ul>
  143.                                 <li><a href=\"{{ path(\"user_profil\") }}\">{% trans %}Mój profil{% endtrans %}</a></li>
  144.                                 <li>
  145.                                     <a href=\"{{ path(\"serviceSystemClient_tickets\") }}\">{% trans %}Zgłoszenia{% endtrans %}</a>
  146.                                 </li>
  147.                                 <li>
  148.                                     <a href=\"{{ path(\"user_edit\", { 'id': app.user.id }) }}\">{% trans %}Płatności{% endtrans %}</a>
  149.                                 </li>
  150.                                 <li><a href=\"#\" data-bs-toggle=\"modal\"
  151.                                        data-bs-target=\"#logoutModal\">{% trans %}Wyloguj{% endtrans %}</a></li>
  152.                             </ul>
  153.                         </li>
  154.                     {% endif %}#}
  155.                     {% if is_granted('ROLE_USER') %}
  156.                         <li><a class=\"nav-link scrollto\" href=\"{{ path('panel') }}\">Panel</a></li>
  157.                     {% endif %}
  158.                     {% else %}
  159.                         <li><a class=\"nav-link scrollto btn-getstarted me-2\" href=\"{{ path('app_login') }}\">Logowanie</a></li>
  160.                         <li><a class=\"nav-link scrollto btn-getstarted\" href=\"{{ path('app_register') }}\">Rejestracja</a></li>
  161.                 {% endif %}
  162.             </ul>
  163.             <i class=\"bi bi-list mobile-nav-toggle d-none\"></i>
  164.         </nav><!-- .navbar -->
  165.     </div>
  166. </header><!-- End Header -->
  167. ""_page/_guest/_nav.html.twig""/home/tezea/domains/tezea.pl/public_html/templates/_page/_guest/_nav.html.twig");
  168.     }
  169. }