diff options
Diffstat (limited to 'app/views/components/navigator.link.dropdown.php')
-rw-r--r-- | app/views/components/navigator.link.dropdown.php | 13 |
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; ?> |