From 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 23 Feb 2023 19:34:56 +0100 Subject: Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated) --- includes/navigation.inc | 65 +------------------------------------------------ 1 file changed, 1 insertion(+), 64 deletions(-) (limited to 'includes/navigation.inc') 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, @@ -222,14 +212,6 @@ $navigation_global = [ "stepped" => null, "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", @@ -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, -- cgit