<?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;

/* addons/navigation.html */
class __TwigTemplate_47ad5e9dca4a4c8b0e0be554a76e1ab3 extends \Twig\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;
        // line 2
        echo "<nav class=\"iz-nav\" aria-label=\"Primary\">
  <div class=\"iz-nav__inner\">

    <div class=\"iz-nav__left\" role=\"navigation\" aria-label=\"Primary links\">
      <a class=\"iz-nav__link\" href=\"";
        // line 6
        echo ($context["U_INDEX"] ?? null);
        echo "\">";
        echo ((array_key_exists("L_FORUM_INDEX", $context)) ? (_twig_default_filter(($context["L_FORUM_INDEX"] ?? null), ($context["L_HOME"] ?? null))) : (($context["L_HOME"] ?? null)));
        echo "</a>

      ";
        // line 8
        if ((($context["S_DISPLAY_SEARCH"] ?? null) && ($context["U_SEARCH"] ?? null))) {
            // line 9
            echo "        <a class=\"iz-nav__link\" href=\"";
            echo ($context["U_SEARCH"] ?? null);
            echo "\">";
            echo ($context["L_SEARCH"] ?? null);
            echo "</a>
      ";
        }
        // line 11
        echo "
      ";
        // line 12
        if ((($context["S_DISPLAY_MEMBERLIST"] ?? null) && ($context["U_MEMBERLIST"] ?? null))) {
            // line 13
            echo "        <a class=\"iz-nav__link\" href=\"";
            echo ($context["U_MEMBERLIST"] ?? null);
            echo "\">";
            echo ($context["L_MEMBERLIST"] ?? null);
            echo "</a>
      ";
        }
        // line 15
        echo "
      ";
        // line 16
        if (($context["U_FAQ"] ?? null)) {
            // line 17
            echo "        <a class=\"iz-nav__link\" href=\"";
            echo ($context["U_FAQ"] ?? null);
            echo "\">";
            echo ($context["L_FAQ"] ?? null);
            echo "</a>
      ";
        }
        // line 19
        echo "    </div>

    <div class=\"iz-nav__right\" role=\"navigation\" aria-label=\"Account and tools\">
      ";
        // line 22
        if (($context["S_USER_LOGGED_IN"] ?? null)) {
            // line 23
            echo "        ";
            // line 24
            echo "        ";
            if (($context["U_VIEW_ALL_NOTIFICATIONS"] ?? null)) {
                // line 25
                echo "          <div class=\"iz-nav__group\" data-iz-menu>
            <button class=\"iz-nav__iconbtn\" type=\"button\"
                    data-iz-menu-button
                    aria-expanded=\"false\"
                    aria-haspopup=\"true\"
                    aria-label=\"";
                // line 30
                echo ($context["L_NOTIFICATIONS"] ?? null);
                echo "\">
              <span class=\"iz-ico\" aria-hidden=\"true\">
                <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" focusable=\"false\" aria-hidden=\"true\">
                  <path fill=\"currentColor\" d=\"M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm7-6V11a7 7 0 0 0-5-6.71V3a2 2 0 1 0-4 0v1.29A7 7 0 0 0 5 11v5l-2 2v1h20v-1l-2-2Z\"/>
                </svg>
              </span>
              ";
                // line 36
                if (($context["UNREAD_NOTIFICATIONS_COUNT"] ?? null)) {
                    // line 37
                    echo "                <span class=\"iz-badge\" aria-label=\"";
                    echo ($context["UNREAD_NOTIFICATIONS_COUNT"] ?? null);
                    echo " ";
                    echo ($context["L_NOTIFICATIONS"] ?? null);
                    echo "\">";
                    echo ($context["UNREAD_NOTIFICATIONS_COUNT"] ?? null);
                    echo "</span>
              ";
                }
                // line 39
                echo "            </button>

            <div class=\"iz-nav__menu iz-nav__menu--right\" data-iz-menu-panel hidden>
              <a class=\"iz-nav__menuitem\" href=\"";
                // line 42
                echo ($context["U_VIEW_ALL_NOTIFICATIONS"] ?? null);
                echo "\">";
                echo ($context["L_SEE_ALL"] ?? null);
                echo "</a>
              ";
                // line 43
                if (($context["U_MARK_ALL_NOTIFICATIONS"] ?? null)) {
                    // line 44
                    echo "                <a class=\"iz-nav__menuitem\" href=\"";
                    echo ($context["U_MARK_ALL_NOTIFICATIONS"] ?? null);
                    echo "\">";
                    echo ($context["L_MARK_ALL_READ"] ?? null);
                    echo "</a>
              ";
                }
                // line 46
                echo "            </div>
          </div>
        ";
            }
            // line 49
            echo "
        ";
            // line 51
            echo "        ";
            if (($context["U_PRIVATEMSGS"] ?? null)) {
                // line 52
                echo "          <a class=\"iz-nav__iconbtn iz-nav__iconlink\" href=\"";
                echo ($context["U_PRIVATEMSGS"] ?? null);
                echo "\" aria-label=\"";
                echo ($context["L_PRIVATE_MESSAGES"] ?? null);
                echo "\">
            <span class=\"iz-ico\" aria-hidden=\"true\">
              <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" focusable=\"false\" aria-hidden=\"true\">
                <path fill=\"currentColor\" d=\"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 4-8 5L4 8V6l8 5 8-5v2Z\"/>
              </svg>
            </span>
            ";
                // line 58
                if (($context["PRIVATE_MESSAGE_COUNT"] ?? null)) {
                    // line 59
                    echo "              <span class=\"iz-badge\" aria-label=\"";
                    echo ($context["PRIVATE_MESSAGE_COUNT"] ?? null);
                    echo " ";
                    echo ($context["L_PRIVATE_MESSAGES"] ?? null);
                    echo "\">";
                    echo ($context["PRIVATE_MESSAGE_COUNT"] ?? null);
                    echo "</span>
            ";
                }
                // line 61
                echo "          </a>
        ";
            }
            // line 63
            echo "
        ";
            // line 65
            echo "        <div class=\"iz-nav__group\" data-iz-menu>
          <button class=\"iz-nav__userbtn\" type=\"button\"
                  data-iz-menu-button
                  aria-expanded=\"false\"
                  aria-haspopup=\"true\">
            <span class=\"iz-nav__usertext\">
              ";
            // line 71
            if (($context["CURRENT_USERNAME_SIMPLE"] ?? null)) {
                echo ($context["CURRENT_USERNAME_SIMPLE"] ?? null);
            } else {
                echo ($context["CURRENT_USERNAME"] ?? null);
            }
            // line 72
            echo "            </span>
          </button>

          <div class=\"iz-nav__menu iz-nav__menu--account iz-nav__menu--right\" data-iz-menu-panel hidden>
            ";
            // line 76
            if (($context["U_PROFILE"] ?? null)) {
                // line 77
                echo "              <a class=\"iz-nav__menuitem\" href=\"";
                echo ($context["U_PROFILE"] ?? null);
                echo "\">";
                echo ($context["L_PROFILE"] ?? null);
                echo "</a>
            ";
            }
            // line 79
            echo "            ";
            if (($context["U_UCP"] ?? null)) {
                // line 80
                echo "              <a class=\"iz-nav__menuitem\" href=\"";
                echo ($context["U_UCP"] ?? null);
                echo "\">";
                echo ((array_key_exists("L_USER_CONTROL_PANEL", $context)) ? (_twig_default_filter(($context["L_USER_CONTROL_PANEL"] ?? null), ($context["L_UCP"] ?? null))) : (($context["L_UCP"] ?? null)));
                echo "</a>
            ";
            }
            // line 82
            echo "            ";
            if (($context["U_LOGIN_LOGOUT"] ?? null)) {
                // line 83
                echo "              <a class=\"iz-nav__menuitem\" href=\"";
                echo ($context["U_LOGIN_LOGOUT"] ?? null);
                echo "\">";
                echo ($context["L_LOGIN_LOGOUT"] ?? null);
                echo "</a>
            ";
            }
            // line 85
            echo "          </div>
        </div>

      ";
        } else {
            // line 89
            echo "        ";
            // line 90
            echo "        ";
            if ((( !($context["S_IS_BOT"] ?? null) && ($context["S_REGISTER_ENABLED"] ?? null)) && ($context["U_REGISTER"] ?? null))) {
                // line 91
                echo "          <a class=\"iz-btn iz-btn--secondary iz-nav__authbtn\" href=\"";
                echo ($context["U_REGISTER"] ?? null);
                echo "\">";
                echo ($context["L_REGISTER"] ?? null);
                echo "</a>
        ";
            }
            // line 93
            echo "        ";
            if (($context["U_LOGIN_LOGOUT"] ?? null)) {
                // line 94
                echo "          <a class=\"iz-btn iz-btn--primary iz-nav__authbtn\" href=\"";
                echo ($context["U_LOGIN_LOGOUT"] ?? null);
                echo "\">";
                echo ($context["L_LOGIN"] ?? null);
                echo "</a>
        ";
            }
            // line 96
            echo "      ";
        }
        // line 97
        echo "    </div>

  </div>
</nav>
";
    }

    public function getTemplateName()
    {
        return "addons/navigation.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  274 => 97,  271 => 96,  263 => 94,  260 => 93,  252 => 91,  249 => 90,  247 => 89,  241 => 85,  233 => 83,  230 => 82,  222 => 80,  219 => 79,  211 => 77,  209 => 76,  203 => 72,  197 => 71,  189 => 65,  186 => 63,  182 => 61,  172 => 59,  170 => 58,  158 => 52,  155 => 51,  152 => 49,  147 => 46,  139 => 44,  137 => 43,  131 => 42,  126 => 39,  116 => 37,  114 => 36,  105 => 30,  98 => 25,  95 => 24,  93 => 23,  91 => 22,  86 => 19,  78 => 17,  76 => 16,  73 => 15,  65 => 13,  63 => 12,  60 => 11,  52 => 9,  50 => 8,  43 => 6,  37 => 2,);
    }

    public function getSourceContext()
    {
        return new Source("", "addons/navigation.html", "");
    }
}
