diff options
author | RaindropsSys <contact@minteck.org> | 2023-04-23 10:51:37 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-04-23 10:51:37 +0200 |
commit | c4657e4509733699c0f26a3c900bab47e915d5a0 (patch) | |
tree | be93d5a3403c5dddc1bf8cc18bb3eded706109bb /includes/util | |
parent | b4bcb0912c5fe1c7f00c7ac76e5b67620781d3cc (diff) | |
download | pluralconnect-c4657e4509733699c0f26a3c900bab47e915d5a0.tar.gz pluralconnect-c4657e4509733699c0f26a3c900bab47e915d5a0.tar.bz2 pluralconnect-c4657e4509733699c0f26a3c900bab47e915d5a0.zip |
Updated 5 files and added 2 files (automated)
Diffstat (limited to 'includes/util')
-rw-r--r-- | includes/util/banner.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/util/banner.inc b/includes/util/banner.inc index 0db683f..2a493f8 100644 --- a/includes/util/banner.inc +++ b/includes/util/banner.inc @@ -478,6 +478,14 @@ function getMemberBannerData(string $id, string $system, bool $french = false) { } } + if (($isLoggedIn || $isLowerLoggedIn) && $metadata["alcohol"] !== null && $metadata["alcohol"] !== false) { + $badges[] = [ + "id" => "alcohol", + "color" => "secondary", + "html" => '<span data-bs-toggle="tooltip" data-bs-html="true" title="<b>Alcohol</b><br>' . ucfirst(getMemberPronouns($member['pronouns'])["subjective"]) . ' drinks alcohol, and thus may be drunk or hungover at times." class="badge rounded-pill bg-secondary">Alcohol</span>' + ]; + } + return [ 'id' => $member['name'], 'color' => $member["color"] ?? "000000", |