aboutsummaryrefslogtreecommitdiff
path: root/app/views/components/navigator.link.dropdown.php
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2021-04-30 03:51:13 -0400
committerThedro Neely <thedroneely@gmail.com>2021-04-30 15:31:01 -0400
commit9d39a7ba3de79e27029bb5c9c2d72e114d8fa795 (patch)
tree226696a3c635e5f91b1ca97edff49b7f34663f58 /app/views/components/navigator.link.dropdown.php
parentfbd112c924190b1f622c59ff480f0cd2a2433249 (diff)
downloadthedroneely.com-9d39a7ba3de79e27029bb5c9c2d72e114d8fa795.tar.gz
thedroneely.com-9d39a7ba3de79e27029bb5c9c2d72e114d8fa795.tar.bz2
thedroneely.com-9d39a7ba3de79e27029bb5c9c2d72e114d8fa795.zip
app/views/partials/navigator: Unify
Diffstat (limited to 'app/views/components/navigator.link.dropdown.php')
-rw-r--r--app/views/components/navigator.link.dropdown.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/components/navigator.link.dropdown.php b/app/views/components/navigator.link.dropdown.php
new file mode 100644
index 0000000..be937f8
--- /dev/null
+++ b/app/views/components/navigator.link.dropdown.php
@@ -0,0 +1,13 @@
+<a href="<?php echo $route ?? null; ?>"
+ class="
+ <?php
+ echo $check = ($label === 'Home')
+ ? ($navigation->isActiveHome() ? ' navbar__active' : '')
+ : ($navigation->isActive($route ?? null) ? ' navbar__active' : '');
+ ?> navbar-item"
+ title="<?php echo $label ?? null; ?>"
+>
+ <?php echo $label ?? null; ?>
+</a>
+
+<?php $route = $label = null; ?>