diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-10-13 20:47:27 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-10-13 20:47:27 -0400 |
commit | 4109bea7208b8b1c39db19581aa5a5004ebd650b (patch) | |
tree | 4204b61d05a5df9d98c6e33f3d6e613bf3d29b59 /app/views/partials/navigator.php | |
parent | 20d2adb6f291b8ace71e8a89ed181f73fd78d3ee (diff) | |
download | thedroneely.com-4109bea7208b8b1c39db19581aa5a5004ebd650b.tar.gz thedroneely.com-4109bea7208b8b1c39db19581aa5a5004ebd650b.tar.bz2 thedroneely.com-4109bea7208b8b1c39db19581aa5a5004ebd650b.zip |
app/views/partials/navigator: Update navigation page checks
Diffstat (limited to 'app/views/partials/navigator.php')
-rw-r--r-- | app/views/partials/navigator.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/partials/navigator.php b/app/views/partials/navigator.php index 90c3f6b..6650850 100644 --- a/app/views/partials/navigator.php +++ b/app/views/partials/navigator.php @@ -6,7 +6,7 @@ <div class="navbar-brand navbar__mobile__compact"> <a href="/" class="navbar-item navbar__icon - <?php echo $navigation->isActiveHome() ?? 'has-text-gray' ?>"> + <?php echo $check = $navigation->isActiveHome() ? 'navbar__active' : ''; ?>"> <div class="has-text-centered"> <?php echo file_get_contents( $_SERVER['DOCUMENT_ROOT'] @@ -17,7 +17,7 @@ </a> <a href="/posts/" class="navbar-item navbar__icon - <?php echo $navigation->isActive('posts') ?? 'has-text-gray' ?>"> + <?php echo $check = $navigation->isActive('posts') ? 'navbar__active' : ''; ?>"> <div class="has-text-centered"> <?php echo file_get_contents( $_SERVER['DOCUMENT_ROOT'] @@ -28,7 +28,7 @@ </a> <a href="/projects/" class="navbar-item navbar__icon - <?php echo $navigation->isActive('projects') ?? 'has-text-gray' ?>"> + <?php echo $check = $navigation->isActive('projects') ? 'navbar__active' : ''; ?>"> <div class="has-text-centered"> <?php echo file_get_contents( $_SERVER['DOCUMENT_ROOT'] @@ -39,7 +39,7 @@ </a> <a href="/contact/" class="navbar-item navbar__icon - <?php echo $navigation->isActive('contact') ?? 'has-text-gray' ?>"> + <?php echo $check = $navigation->isActive('contact') ? 'navbar__active' : ''; ?>"> <div class="has-text-centered"> <?php echo file_get_contents( $_SERVER['DOCUMENT_ROOT'] |