summaryrefslogtreecommitdiff
path: root/includes/navbar.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-12-10 22:27:08 +0100
committerMinteck <contact@minteck.org>2022-12-10 22:27:08 +0100
commit30303a3ad0d0f31d93c25f42bfd10d70e8277b72 (patch)
tree622964e7895c759232aff28230394aa5cc747be9 /includes/navbar.inc
parentf850a8a53efd719fef6c8784c5af7b89dd9a6a2f (diff)
downloadpluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.tar.gz
pluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.tar.bz2
pluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.zip
Update
Diffstat (limited to 'includes/navbar.inc')
-rw-r--r--includes/navbar.inc8
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>