diff options
Diffstat (limited to 'includes/details.inc')
-rw-r--r-- | includes/details.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/includes/details.inc b/includes/details.inc index e4ee519..8fee082 100644 --- a/includes/details.inc +++ b/includes/details.inc @@ -1,5 +1,5 @@ <?php global $isLoggedIn; global $metadata; global $memberData; global $lang; global $pages; ?> -<div id="member-details" class="<?= $isLoggedIn ? 'member-details-loggedIn' : '' ?>" style="<?php if (!$isLoggedIn): ?>grid-template-columns: repeat(2, 1fr);<?php endif; ?> background-color: <?= isset($memberData["color"]) ? '#' . $memberData["color"] . "33" : "transparent" ?>; margin-left: -20px; margin-right: -20px;"> +<div id="member-details" class="<?= $isLoggedIn ? 'member-details-loggedIn' : '' ?>" style="<?php if (!$isLoggedIn): ?>grid-template-columns: repeat(3, 1fr);<?php endif; ?> background-color: <?= isset($memberData["color"]) ? '#' . $memberData["color"] . "33" : "transparent" ?>; margin-left: -20px; margin-right: -20px;"> <div> <b><?= $lang["details"]["food"] ?></b><span class="member-small-separator"><br></span> <?= match ($metadata["food"]) { @@ -68,4 +68,12 @@ <?php endif; ?> </div> <?php endif; ?> + <div> + <b><?= $lang["details"]["code"] ?></b><span class="member-small-separator"><br></span> + <?php if (isset($metadata["code"]) && trim($metadata["code"]) !== ""): ?> + <code style="color: white;"><?= strtoupper(substr($metadata["code"], 0, 3)) ?></code> + <?php else: ?> + - + <?php endif; ?> + </div> </div>
\ No newline at end of file |