From c4657e4509733699c0f26a3c900bab47e915d5a0 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 23 Apr 2023 10:51:37 +0200 Subject: Updated 5 files and added 2 files (automated) --- includes/util/banner.inc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'includes/util/banner.inc') 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" => 'Alcohol' + ]; + } + return [ 'id' => $member['name'], 'color' => $member["color"] ?? "000000", -- cgit