diff options
Diffstat (limited to 'src/application/views/nav_guest.php')
-rw-r--r-- | src/application/views/nav_guest.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/application/views/nav_guest.php b/src/application/views/nav_guest.php deleted file mode 100644 index 95c236e..0000000 --- a/src/application/views/nav_guest.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php - -$nextParam = ""; - -switch ($GLOBALS["action"]) { - case "auth": - case "register": - $nextParam = $_GET["next"] ?? ""; - break; - default: - $nextParam = $_SERVER["REQUEST_URI"]; -} - -if ($GLOBALS["action"] === "login") - -?> -<ul class="nav navbar-nav navbar-right"> -<li<?= $GLOBALS["action"] === "search" ? ' class="active"' : '' ?>><a href="?_action=search"><span class="fa fa-search" aria-hidden="true"></span><span class="sr-only"><?= __("Search") ?></span></a></li> -<li<?= $GLOBALS["action"] === "auth" ? ' class="active"' : '' ?>><a href="?_action=auth&next=<?= htmlentities(urlencode($nextParam)) ?>"><?= __("Log in") ?></a></li> -<?php if (REGISTRATION_ENABLED): ?> -<li<?= $GLOBALS["action"] === "register" ? ' class="active"' : '' ?>><a href="?_action=register&next=<?= htmlentities(urlencode($nextParam)) ?>"><?= __("Register") ?></a></li> -<?php endif; ?> -</ul>
\ No newline at end of file |