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.inc8
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",