aboutsummaryrefslogtreecommitdiff
path: root/app/views/partials
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-04-30 20:52:54 -0400
committerThedro Neely <thedroneely@gmail.com>2019-04-30 20:52:54 -0400
commit16135f944bde91441fb03d26e5790632d6658a4a (patch)
tree580884384b5c713fa97c539980e2b5e5fea21895 /app/views/partials
parente6ba75472a9973c488e834867c83393705480325 (diff)
downloadthedroneely.com-16135f944bde91441fb03d26e5790632d6658a4a.tar.gz
thedroneely.com-16135f944bde91441fb03d26e5790632d6658a4a.tar.bz2
thedroneely.com-16135f944bde91441fb03d26e5790632d6658a4a.zip
app/views/partials/navigator: Make active link check more accurate by removing slashes
Diffstat (limited to 'app/views/partials')
-rw-r--r--app/views/partials/navigator.links.php8
-rw-r--r--app/views/partials/navigator.php6
2 files changed, 7 insertions, 7 deletions
diff --git a/app/views/partials/navigator.links.php b/app/views/partials/navigator.links.php
index 43a9af1..17211d9 100644
--- a/app/views/partials/navigator.links.php
+++ b/app/views/partials/navigator.links.php
@@ -1,5 +1,5 @@
-<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="/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>
diff --git a/app/views/partials/navigator.php b/app/views/partials/navigator.php
index 5164e7c..7344f31 100644
--- a/app/views/partials/navigator.php
+++ b/app/views/partials/navigator.php
@@ -15,7 +15,7 @@
</a>
<a href="/posts/" class="navbar-item navbar__icon
- <?php echo $navigation->isActive('/posts/') ?? 'has-text-gray' ?>">
+ <?php echo $navigation->isActive('posts') ?? 'has-text-gray' ?>">
<div class="has-text-centered">
<?php echo file_get_contents(
$_SERVER['DOCUMENT_ROOT']
@@ -26,7 +26,7 @@
</a>
<a href="/projects/" class="navbar-item navbar__icon
- <?php echo $navigation->isActive('/projects/') ?? 'has-text-gray' ?>">
+ <?php echo $navigation->isActive('projects') ?? 'has-text-gray' ?>">
<div class="has-text-centered">
<?php echo file_get_contents(
$_SERVER['DOCUMENT_ROOT']
@@ -37,7 +37,7 @@
</a>
<a href="/contact/" class="navbar-item navbar__icon
- <?php echo $navigation->isActive('/contact/') ?? 'has-text-gray' ?>">
+ <?php echo $navigation->isActive('contact') ?? 'has-text-gray' ?>">
<div class="has-text-centered">
<?php echo file_get_contents(
$_SERVER['DOCUMENT_ROOT']