summaryrefslogtreecommitdiff
path: root/includes/details.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-12-21 18:09:20 +0100
committerMinteck <contact@minteck.org>2022-12-21 18:09:20 +0100
commitae766d28c07628e71629a72452261898ea72057a (patch)
tree79bf1110a59f8339ce685b80c12d18f3650700d8 /includes/details.inc
parent9d5e468be5e58269f8730305745eee29b9d957d5 (diff)
downloadpluralconnect-ae766d28c07628e71629a72452261898ea72057a.tar.gz
pluralconnect-ae766d28c07628e71629a72452261898ea72057a.tar.bz2
pluralconnect-ae766d28c07628e71629a72452261898ea72057a.zip
Update - This is an automated commit
Diffstat (limited to 'includes/details.inc')
-rw-r--r--includes/details.inc10
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