summaryrefslogtreecommitdiff
path: root/includes/details.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-01-10 14:54:04 +0100
committerMinteck <contact@minteck.org>2023-01-10 14:54:04 +0100
commit99c1d9af689e5325f3cf535c4007b3aeb8325229 (patch)
treee663b3c2ebdbd67c818ac0c5147f0ce1d2463cda /includes/details.inc
parent9871b03912fc28ad38b4037ebf26a78aa937baba (diff)
downloadpluralconnect-99c1d9af689e5325f3cf535c4007b3aeb8325229.tar.gz
pluralconnect-99c1d9af689e5325f3cf535c4007b3aeb8325229.tar.bz2
pluralconnect-99c1d9af689e5325f3cf535c4007b3aeb8325229.zip
Update - This is an automated commit
Diffstat (limited to 'includes/details.inc')
-rw-r--r--includes/details.inc28
1 files changed, 18 insertions, 10 deletions
diff --git a/includes/details.inc b/includes/details.inc
index 08ba52a..6002acd 100644
--- a/includes/details.inc
+++ b/includes/details.inc
@@ -1,5 +1,5 @@
<?php global $isLoggedIn; global $metadata; global $memberData; global $lang; global $pages; $pronouns = getMemberPronouns($memberData['pronouns']); ?>
-<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 id="member-details" class="<?= $isLoggedIn ? 'member-details-loggedIn' : '' ?>" style="<?php if (!$isLoggedIn): ?>grid-template-columns: repeat(4, 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"]) {
@@ -52,14 +52,6 @@
<?php endif; ?>
<?php endif; ?>
</div>
- <div>
- <b>Birthday:</b><span class="member-small-separator"><br></span>
- <?php if (isset($metadata["birth"]["date"]) && trim($metadata["birth"]["date"]) !== "" && $metadata["birth"]["date"] !== "01-01"): ?>
- <?= date('F jS', strtotime(date('Y') . "-" . $metadata["birth"]["date"])) ?>
- <?php else: ?>
- -
- <?php endif; ?>
- </div>
<?php endif; ?>
<div>
<b><?= $lang["details"]["code"] ?></b><span class="member-small-separator"><br></span>
@@ -69,6 +61,14 @@
-
<?php endif; ?>
</div>
+ <div>
+ <b>Primary interest:</b><span class="member-small-separator"><br></span>
+ <?php if (isset($metadata["interest"]) && trim($metadata["interest"]) !== ""): ?>
+ <?= trim($metadata["interest"]) ?>
+ <?php else: ?>
+ -
+ <?php endif; ?>
+ </div>
</div>
<?php if ($isLoggedIn): ?>
<div id="member-details-2" style="background-color: <?= isset($memberData["color"]) ? '#' . $memberData["color"] . "33" : "transparent" ?>; margin-left: -20px; margin-right: -20px;">
@@ -105,7 +105,7 @@
<div>
<style>
#member-details-2 {
- grid-template-columns: 2fr 1fr;
+ grid-template-columns: 2fr 1fr 1fr;
}
</style>
<div style="display: flex; align-items: center; justify-content: center; height: 100%;opacity:.5;">This member is too young to have a sexual relationship.</div>
@@ -131,6 +131,14 @@
break;
} ?><?php if ($metadata["polyamorous"]["romantic"]): ?> (poly)<?php endif; ?>
</div>
+ <div>
+ <b>Birthday:</b><span class="member-small-separator"><br></span>
+ <?php if (isset($metadata["birth"]["date"]) && trim($metadata["birth"]["date"]) !== "" && $metadata["birth"]["date"] !== "01-01"): ?>
+ <?= date('F jS', strtotime(date('Y') . "-" . $metadata["birth"]["date"])) ?>
+ <?php else: ?>
+ -
+ <?php endif; ?>
+ </div>
<!--<div>
<b>Item 4:</b><span class="member-small-separator"><br></span>
Value 4