summaryrefslogtreecommitdiff
path: root/includes/navigation.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-22 10:29:48 +0100
committerMinteck <contact@minteck.org>2023-02-22 10:29:48 +0100
commitbf2558253637537c2d57765e557bdc0e164c58ee (patch)
tree9c50b253090001183ba574cc073d13f74e273758 /includes/navigation.inc
parent005bbb3c5b211dbb52cf8dcedac505f8a683cf42 (diff)
downloadpluralconnect-bf2558253637537c2d57765e557bdc0e164c58ee.tar.gz
pluralconnect-bf2558253637537c2d57765e557bdc0e164c58ee.tar.bz2
pluralconnect-bf2558253637537c2d57765e557bdc0e164c58ee.zip
Updated 23 files, added assets/uploads/pt-princesscelestia.png and renamed assets/uploads/pt-luna.png (automated)
Diffstat (limited to 'includes/navigation.inc')
-rw-r--r--includes/navigation.inc104
1 files changed, 55 insertions, 49 deletions
diff --git a/includes/navigation.inc b/includes/navigation.inc
index 7f744b9..82b6046 100644
--- a/includes/navigation.inc
+++ b/includes/navigation.inc
@@ -18,7 +18,7 @@ global $lang; global $pages;
$navigation_admin = [
"admin" => true,
- "name" => $lang["navigation"]["admin"],
+ "name" => "Private utilities",
"icon" => "/assets/icons/admin.svg",
"invert" => true,
"items" => [
@@ -31,14 +31,16 @@ $navigation_admin = [
"icon" => "/assets/icons/emergency.svg",
"invert" => false,
"link" => "/-/emergency",
- "stepped" => "rgb(220,53,69)"
+ "stepped" => "rgb(220,53,69)",
+ "private" => false
],
[
"name" => $pages["wakeup"]["name"][$lang["_name"]],
"icon" => "/assets/icons/wakeup.svg",
"invert" => false,
"link" => "/-/wakeup",
- "stepped" => "rgb(13,202,240)"
+ "stepped" => "rgb(13,202,240)",
+ "private" => false
]
]
],
@@ -51,63 +53,72 @@ $navigation_admin = [
"icon" => "/assets/icons/about.svg",
"invert" => true,
"link" => "/-/about",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["fronting"]["name"][$lang["_name"]],
"icon" => "/assets/icons/fronting.svg",
"invert" => true,
"link" => "/-/fronting",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["profiles"]["name"][$lang["_name"]],
"icon" => "/assets/icons/profiles.svg",
"invert" => true,
"link" => "/-/profiles",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["money"]["name"][$lang["_name"]],
"icon" => "/assets/icons/money.svg",
"invert" => true,
"link" => "/-/money",
- "stepped" => null
+ "stepped" => null,
+ "private" => true
],
[
"name" => $pages["rules"]["name"][$lang["_name"]],
"icon" => "/assets/icons/rules.svg",
"invert" => true,
"link" => "/-/rules",
- "stepped" => null
+ "stepped" => null,
+ "private" => true
],
[
"name" => $pages["docs"]["name"][$lang["_name"]],
"icon" => "/assets/icons/docs.svg",
"invert" => true,
"link" => "/-/docs",
- "stepped" => null
+ "stepped" => null,
+ "private" => true
],
[
"name" => $pages["computers"]["name"][$lang["_name"]],
"icon" => "/assets/icons/computers.svg",
"invert" => true,
"link" => "/-/computers",
- "stepped" => null
+ "stepped" => null,
+ "private" => true
],
[
"name" => $pages["travelling"]["name"][$lang["_name"]],
"icon" => "/assets/icons/travelling.svg",
"invert" => true,
"link" => "/-/travelling",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["stats"]["name"][$lang["_name"]],
"icon" => "/assets/icons/stats.svg",
"invert" => true,
"link" => "/-/stats",
- "stepped" => null
+ "stepped" => null,
+ "private" => true
]
]
],
@@ -120,28 +131,32 @@ $navigation_admin = [
"icon" => "/assets/icons/splitting.svg",
"invert" => true,
"link" => "/-/splitting",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["byfront"]["name"][$lang["_name"]],
"icon" => "/assets/icons/byfront.svg",
"invert" => true,
"link" => "/-/byfront",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["alphabet"]["name"][$lang["_name"]],
"icon" => "/assets/icons/alphabet.svg",
"invert" => true,
"link" => "/-/alphabet",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["s:species"]["name"][$lang["_name"]],
"icon" => "/assets/icons/species.svg",
"invert" => true,
"link" => "/-/byspecies",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
]
],
@@ -196,35 +211,32 @@ $navigation_global = [
"icon" => "/assets/icons/home.svg",
"invert" => true,
"link" => "/",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["disclaimers"]["name"][$lang["_name"]],
"icon" => "/assets/icons/disclaimers.svg",
"invert" => true,
"link" => "/-/disclaimers",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["relations"]["name"][$lang["_name"]],
"icon" => "/assets/icons/relations.svg",
"invert" => true,
"link" => "/-/relations",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
- ($_SERVER['HTTP_HOST'] !== "fr.equestria.horse" ? [
- "name" => $pages["government"]["name"][$lang["_name"]],
- "icon" => "/assets/icons/government.svg",
- "invert" => true,
- "link" => "/-/government",
- "stepped" => null
- ] : null),
[
"name" => $pages["terminology"]["name"][$lang["_name"]],
"icon" => "/assets/icons/terminology.svg",
"invert" => true,
"link" => "/-/terminology",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
]
]
]
@@ -245,28 +257,24 @@ $navigation_cloudburst = [
"icon" => "/assets/icons/about.svg",
"invert" => true,
"link" => "/cloudburst",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["s:history"]["name"][$lang["_name"]],
"icon" => "/assets/icons/history.svg",
"invert" => true,
"link" => "/cloudburst/-/history",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["s:compare"]["name"][$lang["_name"]],
"icon" => "/assets/icons/compare.svg",
"invert" => true,
"link" => "/cloudburst/-/compare",
- "stepped" => null
- ],
- [
- "name" => $pages["s:species"]["name"][$lang["_name"]],
- "icon" => "/assets/icons/species.svg",
- "invert" => true,
- "link" => "/cloudburst/-/species",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
]
]
],
@@ -294,7 +302,8 @@ $navigation_cloudburst = [
"icon" => getAsset($member["system"], $member["id"], "heads"),
"invert" => false,
"link" => "/$member[name]",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
];
}, array_filter(scoreOrder(withTravelers(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/ynmuc/members.json"), true), "ynmuc"), "ynmuc"), function ($member) {
return $member['name'] !== "unknown" && $member['name'] !== "fusion" && $member['name'] !== "new";
@@ -317,28 +326,24 @@ $navigation_raindrops = [
"icon" => "/assets/icons/about.svg",
"invert" => true,
"link" => "/raindrops",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["s:history"]["name"][$lang["_name"]],
"icon" => "/assets/icons/history.svg",
"invert" => true,
"link" => "/raindrops/-/history",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
],
[
"name" => $pages["s:compare"]["name"][$lang["_name"]],
"icon" => "/assets/icons/compare.svg",
"invert" => true,
"link" => "/raindrops/-/compare",
- "stepped" => null
- ],
- [
- "name" => $pages["s:species"]["name"][$lang["_name"]],
- "icon" => "/assets/icons/species.svg",
- "invert" => true,
- "link" => "/raindrops/-/species",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
]
]
],
@@ -366,7 +371,8 @@ $navigation_raindrops = [
"icon" => getAsset($member["system"], $member["id"], "heads"),
"invert" => false,
"link" => "/$member[name]",
- "stepped" => null
+ "stepped" => null,
+ "private" => false
];
}, array_filter(scoreOrder(withTravelers(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd/members.json"), true), "gdapd"), "gdapd"), function ($member) {
return $member['name'] !== "unknown" && $member['name'] !== "fusion" && $member['name'] !== "new";