diff options
author | RaindropsSys <contact@minteck.org> | 2023-06-10 11:06:53 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-06-10 11:06:53 +0200 |
commit | 2e7294c83c6388e3855ce787f0a18c20ed652131 (patch) | |
tree | 7e3a4ee156fa93954a501b0f112fa2d1055064f0 /includes/util/banner.inc | |
parent | 85145d4a0f7ddd7717af495cbd3f42891042d047 (diff) | |
download | pluralconnect-2e7294c83c6388e3855ce787f0a18c20ed652131.tar.gz pluralconnect-2e7294c83c6388e3855ce787f0a18c20ed652131.tar.bz2 pluralconnect-2e7294c83c6388e3855ce787f0a18c20ed652131.zip |
Updated 12 files and added includes/system/compare.inc (automated)
Diffstat (limited to 'includes/util/banner.inc')
-rw-r--r-- | includes/util/banner.inc | 10 |
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 +} |