aboutsummaryrefslogtreecommitdiff
path: root/model/Navigation.php
diff options
context:
space:
mode:
Diffstat (limited to 'model/Navigation.php')
-rw-r--r--model/Navigation.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/model/Navigation.php b/model/Navigation.php
deleted file mode 100644
index 72ee891..0000000
--- a/model/Navigation.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-class Navigation
-{
- public function requestContains($route)
- {
- if (strpos($_SERVER['REQUEST_URI'], $route) !== false) {
- return true;
- }
- return false;
- }
-
- public function isActiveHome()
- {
- if ($_SERVER['REQUEST_URI'] === '/') {
- return 'link-active text-black ';
- }
- return;
- }
-
- public function isActive($route)
- {
- if ($_SERVER['REQUEST_URI'] === $route
- || $this->requestContains($route)
- ) {
- return 'link-active text-black ';
- }
- return;
- }
-}