From 0417260bf158c5d7b62888dae2e202b0de115a05 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 10 Aug 2022 00:04:25 +0200 Subject: Initial commit --- includes/banner.php | 222 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 222 insertions(+) create mode 100644 includes/banner.php (limited to 'includes/banner.php') diff --git a/includes/banner.php b/includes/banner.php new file mode 100644 index 0000000..b5088df --- /dev/null +++ b/includes/banner.php @@ -0,0 +1,222 @@ + + + +
;background:rgba(255, 255, 255, .1);border-radius:10px;display:grid;grid-template-columns: 128px 1fr;"> +
+ +
+
+

+ +

+
+ + Host + + + Fictive + + + Little + + + + , temporarily behaving and feeling younger than the body is." class="badge rounded-pill bg-secondary">Age regresses into "> + + Age regressor + + + + 0): ?> + instead of , temporarily behaving and feeling younger than the body is." class="badge rounded-pill bg-warning">Age regressed from "> + + , meaning they are not totally independent from ." class="badge rounded-pill bg-light">Facet of "> + + + + Not talking + + +   + +
+
54, 1fr);" id="member-card"> + + Prefixes: + + + + + + Pronouns: + + + + + Last fronted: + (started " . trim(timeAgo(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID-fronters.json"), true)["timestamp"])) . ")"); + } else { + $switches = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID-switches.json"), true); + + $thisMember = array_filter($switches, function ($item) { + global $memberData; + return in_array($memberData["id"], $item["members"]); + }); + $thisMember = array_values($thisMember); + $thisIndex = array_search($thisMember[0], $switches); + + $frontingStart = $thisMember[0]; + $frontingEnd = $switches[$thisIndex - 1]; + + if ($frontingEnd === null) { + echo("A long time ago
-"); + } else { + echo('' . timeAgo($frontingEnd["timestamp"]) . ''); + + $seconds = (strtotime($frontingEnd["timestamp"]) - strtotime($frontingStart["timestamp"])); + if ($seconds > 60) { + if ($seconds > 3600) { + echo("
(for " . round($seconds / 3600) . " hours)"); + } else { + echo("
(for " . round($seconds / 60) . " minutes)"); + } + } else { + echo("
(for " . $seconds . " seconds)"); + } + } + } + + ?> +
+ + + Species: + + " style="width:32px;vertical-align: middle;position:relative;top:-5px;" src="/assets/species/.png" alt=""> + + + + System: + +
Subsystem: "> + +
+
+
+ + + Marefriends: 1 ? '
' : '' ?> + + /">.png" style="width:24px;"> ,

'); ?> + + - + + + Sisters: 1 ? '
' : '' ?> + + /">.png" style="width:24px;"> ,

'); ?> + + - + +
+
+
\ No newline at end of file -- cgit