diff options
Diffstat (limited to 'includes/navbar.inc')
-rw-r--r-- | includes/navbar.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/navbar.inc b/includes/navbar.inc index 379f102..3e68493 100644 --- a/includes/navbar.inc +++ b/includes/navbar.inc @@ -1,4 +1,4 @@ -<?php global $isLoggedIn; global $isUserLoggedIn; global $demoHeader; global $pages; global $useNewUI; global $navigation; ?> +<?php global $isLoggedIn; global $isUserLoggedIn; global $demoHeader; global $pages; global $useNewUI; global $navigation; global $lang; global $pages; ?> <?php if (!$useNewUI): ?> <nav class="navbar navbar-expand-<?= $isLoggedIn ? 'xl' : 'lg' ?> bg-dark navbar-dark fixed-top" style="height:60px;"> @@ -24,12 +24,12 @@ <li><h5 class="dropdown-header"><?= $category["name"] ?></h5></li> <?php endif; ?> - <?php foreach ($category["items"] as $link): ?> + <?php foreach ($category["items"] as $link): if (isset($link)): ?> <li><a class="dropdown-item" href="<?= $link["link"] ?>"> <img src="<?= $link["icon"] ?>" <?php if ($link["invert"]): ?>class="dropdown-icon"<?php endif; ?> alt="" style="width:24px; border-radius: 5px; vertical-align: middle;"> <span style="vertical-align: middle;<?= isset($link["stepped"]) ? "color: $link[stepped];" : "" ?>"><?= isset($link["stepped"]) ? "<b>$link[name]</b>" : $link["name"] ?></span> </a></li> - <?php endforeach; ?> + <?php endif; endforeach; ?> <?php endforeach; ?> </ul> </li> @@ -59,7 +59,7 @@ <a class="nav-link" href="/-/login"> <?php global $_PROFILE; ?> <span style="vertical-align: middle;"> - Not logged in + <?= $lang["navitation"]["login"] ?> </span> <img alt="" src="/assets/icons/login.svg" style="filter:invert(1);width:24px;vertical-align: middle;"> </a> |