summaryrefslogtreecommitdiff
path: root/includes/navigation.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/navigation.inc')
-rw-r--r--includes/navigation.inc65
1 files changed, 1 insertions, 64 deletions
diff --git a/includes/navigation.inc b/includes/navigation.inc
index b888fed..976cfff 100644
--- a/includes/navigation.inc
+++ b/includes/navigation.inc
@@ -2,19 +2,9 @@
$pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pages.json"), true);
-$subsystems1 = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/subsystems/ynmuc.json"), true);
-$cloudburst_subsystemsNotMember = array_values(array_filter($subsystems1, function ($i) {
- return $i["source_type"] !== "member";
-}));
-
-$subsystems2 = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/subsystems/gdapd.json"), true);
-$raindrops_subsystemsNotMember = array_values(array_filter($subsystems2, function ($i) {
- return $i["source_type"] !== "member";
-}));
-
global $navigation;
global $toplevel;
-global $lang; global $pages;
+global $lang; global $pages; global $app;
$navigation_admin = [
"admin" => true,
@@ -223,14 +213,6 @@ $navigation_global = [
"private" => false
],
[
- "name" => $pages["disclaimers"]["name"][$lang["_name"]],
- "icon" => "/assets/icons/disclaimers.svg",
- "invert" => true,
- "link" => "/-/disclaimers",
- "stepped" => null,
- "private" => false
- ],
- [
"name" => $pages["relations"]["name"][$lang["_name"]],
"icon" => "/assets/icons/relations.svg",
"invert" => true,
@@ -286,21 +268,6 @@ $navigation_cloudburst = [
]
]
],
- /*"subsystems" => [
- "name" => $lang["navigation"]["subsystems"],
- "minimal" => false,
- "items" => array_map(function ($subsystem) {
- $ssData = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/subsystems/ynmuc-" . $subsystem['source'] . ".json"), true);
-
- return [
- "name" => $ssData['name'] ?? $subsystem['source'],
- "icon" => "/assets/uploads/ss-$subsystem[source].png",
- "invert" => false,
- "link" => "/cloudburst/-/subsystem/$subsystem[source]",
- "stepped" => null
- ];
- }, $cloudburst_subsystemsNotMember)
- ],*/
"members" => [
"name" => $lang["navigation"]["members"],
"minimal" => false,
@@ -355,21 +322,6 @@ $navigation_other = [
]
]
],
- /*"subsystems" => [
- "name" => $lang["navigation"]["subsystems"],
- "minimal" => false,
- "items" => array_map(function ($subsystem) {
- $ssData = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/subsystems/ynmuc-" . $subsystem['source'] . ".json"), true);
-
- return [
- "name" => $ssData['name'] ?? $subsystem['source'],
- "icon" => "/assets/uploads/ss-$subsystem[source].png",
- "invert" => false,
- "link" => "/cloudburst/-/subsystem/$subsystem[source]",
- "stepped" => null
- ];
- }, $cloudburst_subsystemsNotMember)
- ],*/
"members" => [
"name" => $lang["navigation"]["members"],
"minimal" => false,
@@ -424,21 +376,6 @@ $navigation_raindrops = [
]
]
],
- /*"subsystems" => [
- "name" => $lang["navigation"]["subsystems"],
- "minimal" => false,
- "items" => array_map(function ($subsystem) {
- $ssData = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/subsystems/gdapd-" . $subsystem['source'] . ".json"), true);
-
- return [
- "name" => $ssData['name'] ?? $subsystem['source'],
- "icon" => "/assets/uploads/ss-$subsystem[source].png",
- "invert" => false,
- "link" => "/raindrops/-/subsystem/$subsystem[source]",
- "stepped" => null
- ];
- }, $raindrops_subsystemsNotMember)
- ],*/
"members" => [
"name" => $lang["navigation"]["members"],
"minimal" => false,