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 | |
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')
-rw-r--r-- | app/views/partials/navigator.home.php | 5 | ||||
-rw-r--r-- | app/views/partials/navigator.links.php | 18 | ||||
-rw-r--r-- | app/views/partials/navigator.php | 8 |
3 files changed, 21 insertions, 10 deletions
diff --git a/app/views/partials/navigator.home.php b/app/views/partials/navigator.home.php index 1b1d99e..b0fa549 100644 --- a/app/views/partials/navigator.home.php +++ b/app/views/partials/navigator.home.php @@ -1,2 +1,3 @@ - -<a href="/" class="<?php echo $navigation->isActiveHome() ?? '' ?>navbar-item navbar__item">Home</a> +<a href="/" class="<?php echo $check = $navigation->isActiveHome() ? 'navbar__active' : ''; ?> navbar-item navbar__item"> + Home +</a> diff --git a/app/views/partials/navigator.links.php b/app/views/partials/navigator.links.php index 17211d9..8f2166f 100644 --- a/app/views/partials/navigator.links.php +++ b/app/views/partials/navigator.links.php @@ -1,5 +1,15 @@ +<a href="/posts/" class="<?php echo $check = $navigation->isActive('posts') ? 'navbar__active' : ''; ?> navbar-item navbar__item"> + Posts +</a> -<a href="/posts/" class="<?php echo $navigation->isActive('posts') ?? '' ?>navbar-item navbar__item">Posts</a> -<a href="/projects/" class="<?php echo $navigation->isActive('projects') ?? '' ?>navbar-item navbar__item">Projects</a> -<a href="/about/" class="<?php echo $navigation->isActive('about') ?? '' ?>navbar-item navbar__item">Profile</a> -<a href="/contact/" class="<?php echo $navigation->isActive('contact') ?? '' ?>navbar-item navbar__item">Contact</a> +<a href="/projects/" class="<?php echo $check = $navigation->isActive('projects') ? 'navbar__active' : ''; ?> navbar-item navbar__item"> + Projects +</a> + +<a href="/about/" class="<?php echo $check = $navigation->isActive('about') ? 'navbar__active' : ''; ?> navbar-item navbar__item"> + Profile +</a> + +<a href="/contact/" class="<?php echo $check = $navigation->isActive('contact') ? 'navbar__active' : ''; ?> navbar-item navbar__item"> + Contact +</a> 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'] |