aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/components/navigator.link.dropdown.php7
-rw-r--r--app/views/components/navigator.link.php6
2 files changed, 2 insertions, 11 deletions
diff --git a/app/views/components/navigator.link.dropdown.php b/app/views/components/navigator.link.dropdown.php
index be937f8..0657bc6 100644
--- a/app/views/components/navigator.link.dropdown.php
+++ b/app/views/components/navigator.link.dropdown.php
@@ -1,10 +1,5 @@
<a href="<?php echo $route ?? null; ?>"
- class="
- <?php
- echo $check = ($label === 'Home')
- ? ($navigation->isActiveHome() ? ' navbar__active' : '')
- : ($navigation->isActive($route ?? null) ? ' navbar__active' : '');
- ?> navbar-item"
+ class="<?php if ($navigation->isActive($route ?? null)) { echo ' navbar__active'; } ?> navbar-item"
title="<?php echo $label ?? null; ?>"
>
<?php echo $label ?? null; ?>
diff --git a/app/views/components/navigator.link.php b/app/views/components/navigator.link.php
index a129acf..3b57d62 100644
--- a/app/views/components/navigator.link.php
+++ b/app/views/components/navigator.link.php
@@ -1,12 +1,8 @@
<a href="<?php echo $route ?? null; ?>" class="navbar-item navbar__icon has-text-centered
<?php
-
$hiddenLabels = [ 'Profile' ];
if (in_array($label, $hiddenLabels)) { echo ' navbar__icon__hidden'; }
-
- echo $check = ($label === 'Home')
- ? ($navigation->isActiveHome() ? ' navbar__active' : '')
- : ($navigation->isActive($route ?? null) ? ' navbar__active' : '');
+ if ($navigation->isActive($route ?? null)) { echo ' navbar__active'; }
?>
">
<div class="has-text-centered">