summaryrefslogtreecommitdiff
path: root/pages/byfront.inc
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-04-10 13:31:57 +0200
committerRaindropsSys <contact@minteck.org>2023-04-10 13:31:57 +0200
commitd4ec482e69c31454b3b39b7ae913ba480e918421 (patch)
tree06102fd4fa3a7df23486f6c220c1462cde81ec7a /pages/byfront.inc
parent53d263a9e834dad41b7f81dc3d6a7e49cf396fd8 (diff)
downloadpluralconnect-d4ec482e69c31454b3b39b7ae913ba480e918421.tar.gz
pluralconnect-d4ec482e69c31454b3b39b7ae913ba480e918421.tar.bz2
pluralconnect-d4ec482e69c31454b3b39b7ae913ba480e918421.zip
Updated 3 files and deleted pages/api/menu.php (automated)
Diffstat (limited to 'pages/byfront.inc')
-rw-r--r--pages/byfront.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/pages/byfront.inc b/pages/byfront.inc
index 2ec62bd..78c2319 100644
--- a/pages/byfront.inc
+++ b/pages/byfront.inc
@@ -111,7 +111,7 @@ $travelling = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includ
}
if ((isset($age) && $age > 0 && time() > 1677628800) || time() <= 1677628800): ?>
- <div class="relation" style="background-color:<?php if ($member["_metadata"]["less_frequent"] || $member["_metadata"]["persecutor"]): ?><?php if ($member["_lastFronted"] > time() - (86400 * 21)): ?>rgba(255, 255, 255, .1)<?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 37)): ?>rgba(255, 227, 0, 0.17)rgba(128,54,54,0.17)<?php endif; ?>;<?php endif; ?><?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 21)): ?>rgba(255, 255, 255, .1)<?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 30)): ?>rgba(255, 227, 0, 0.17)<?php else: ?>rgba(255,55,55,0.17)<?php endif; ?>;<?php endif; ?><?php endif; ?>;margin-bottom:10px;padding:10px;border-radius:10px;display:grid;grid-template-columns: 1fr 2fr max-content;<?php if ($travelling[$member['id']]["travelling"]): ?>opacity: 0.75;<?php endif; ?><?php if (isset($member["_metadata"]["not_fronting"]) && $member["_metadata"]["not_fronting"]): ?>background-color:rgba(255, 255, 255, .1) !important;<?php endif; ?>">
+ <div class="relation" style="background-color:<?php if ($member["_metadata"]["less_frequent"] || $member["_metadata"]["persecutor"]): ?><?php if ($member["_lastFronted"] > time() - (86400 * 21)): ?>rgba(128, 54, 54, .1)<?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 37)): ?>rgba(255, 227, 0, 0.17)<?php else: ?>rgba(255, 255, 255, .1)<?php endif; ?>;<?php endif; ?><?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 21)): ?>rgba(255, 255, 255, .1)<?php else: ?><?php if ($member["_lastFronted"] > time() - (86400 * 30)): ?>rgba(255, 227, 0, 0.17)<?php else: ?>rgba(255,55,55,0.17)<?php endif; ?>;<?php endif; ?><?php endif; ?>;margin-bottom:10px;padding:10px;border-radius:10px;display:grid;grid-template-columns: 1fr 2fr max-content;<?php if ($travelling[$member['id']]["travelling"] || $member["_metadata"]["punished"]): ?>opacity: 0.75;<?php endif; ?><?php if (isset($member["_metadata"]["not_fronting"]) && $member["_metadata"]["not_fronting"]): ?>background-color:rgba(255, 255, 255, .1) !important;<?php endif; ?>">
<a class="relation-intro" style="background-color:rgba(255, 255, 255, .05);border-right:1px solid rgba(255, 255, 255, .1);margin:-10px;padding:10px;border-top-left-radius:10px;border-bottom-left-radius:10px;color: white;display:flex;align-items:center;text-decoration: none;" href="/<?= $member["name"] ?>">
<img src="<?= getAsset($member['system'], $member["id"], "heads") ?>" style="width:24px;">&nbsp;<?= $member["display_name"] ?? $member["name"] ?>
<span style="display: inline-block;margin-left: auto;">
@@ -124,6 +124,9 @@ $travelling = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includ
<?php if ($member["_metadata"]["persecutor"]): ?>
<span class="badge bg-light text-black rounded-pill">Persecutor</span>
<?php endif; ?>
+ <?php if ($member["_metadata"]["punished"]): ?>
+ <span class="badge bg-light text-black rounded-pill">Punished</span>
+ <?php endif; ?>
<?php if ($member["_metadata"]["shared_memory"] !== 2): ?>
<span class="badge text-black bg-warning rounded-pill">Memory</span>
<?php endif; ?>