summaryrefslogtreecommitdiff
path: root/includes/util/banner.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/util/banner.inc')
-rw-r--r--includes/util/banner.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/includes/util/banner.inc b/includes/util/banner.inc
index 01362a0..1f4d7fd 100644
--- a/includes/util/banner.inc
+++ b/includes/util/banner.inc
@@ -337,6 +337,14 @@ function getMemberBannerData(string $id, string $system, bool $french = false) {
];
}
+ if (($metadata["host"] ?? false)) {
+ $badges[] = [
+ "id" => "host",
+ "color" => "fc6735",
+ "html" => '<span data-bs-toggle="tooltip" data-bs-html="true" title="<b>Host</b><br>' . ucfirst(getMemberPronouns($member['pronouns'])["subjective"]) . ' ' . (getMemberPronouns($member['pronouns'])["third"] ? "is" : "are") . ' the host in ' . getMemberPronouns($member['pronouns'])["possessive_det"] . ' system." class="badge rounded-pill" style="background-color:#fc6735;height:24px;display:inline-flex;align-items:center;position:relative;top:1px;"><span>Host</span></span>'
+ ];
+ }
+
if (($metadata["leader"] ?? false)) {
$badges[] = [
"id" => "leader",
@@ -403,4 +411,4 @@ function getMemberBannerData(string $id, string $system, bool $french = false) {
'friends' => $friends ?? []
]
];
-} \ No newline at end of file
+}