summaryrefslogtreecommitdiff
path: root/pages/travelling.inc
diff options
context:
space:
mode:
Diffstat (limited to 'pages/travelling.inc')
-rw-r--r--pages/travelling.inc17
1 files changed, 14 insertions, 3 deletions
diff --git a/pages/travelling.inc b/pages/travelling.inc
index 9eadaed..ee2e2c3 100644
--- a/pages/travelling.inc
+++ b/pages/travelling.inc
@@ -129,10 +129,13 @@ global $travelling;
...array_values(array_filter(scoreOrderGlobal(), function ($i) use ($travelling) {
return $travelling[$i['id']]["travelling"] && ($i["_system"] === "gdapd" || $i["_system"] === "ynmuc");
})),
+ "SEPARATOR",
...array_values(array_filter(scoreOrderGlobal(), function ($i) use ($travelling) {
return !$travelling[$i['id']]["travelling"] && ($i["_system"] === "gdapd" || $i["_system"] === "ynmuc");
}))
- ] as $member): ?>
+ ] as $member): if (is_string($member)): ?>
+ <hr>
+ <?php else: ?>
<div class="relation" style="background-color:rgba(255, 255, 255, .1);margin-bottom:10px;padding:10px;border-radius:10px;display:grid;grid-template-columns: 1fr 2fr max-content;">
<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"] ?>
@@ -143,7 +146,11 @@ global $travelling;
<b style="padding-right:5px;">Current location:</b><span class="list-separator-mobile"><br></span>
<?php $system = $member['_system'] === "gdapd" ? ($travelling[$member['id']]["travelling"] ? "ynmuc" : "gdapd") : ($travelling[$member['id']]["travelling"] ? "gdapd" : "ynmuc"); ?>
<?php if ($travelling[$member['id']]["travelling"] && $travelling[$member['id']]["equestria"]): ?>
- <img style="width:24px;" src="/assets/logo/equestria.png"> Equestria
+ <?php if ($member["_metadata"]["fictive"]): ?>
+ <img style="width:24px;" src="/assets/logo/equestria.png"> Equestria
+ <?php else: ?>
+ <img style="width:24px;" src="/assets/logo/celeste.png"> Celeste
+ <?php endif; ?>
<?php else: ?>
<a class="member-link" href="/<?= $system === "gdapd" ? "raindrops" : "cloudburst" ?>"><img style="width:24px;border-radius:5px;" src="<?= getAsset($system) ?>"> <?= $system === "gdapd" ? "Raindrops" : "Cloudburst" ?> System</a>
<?php endif; ?>
@@ -170,13 +177,17 @@ global $travelling;
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="?toggleTravel&member=<?= $member['id'] ?>"><img style="width:24px;border-radius:5px;" src="<?= getAsset($system === "gdapd" ? "ynmuc" : "gdapd") ?>"> <?= $system === "gdapd" ? "Cloudburst" : "Raindrops" ?> System</a></li>
+ <?php if ($member["_metadata"]["fictive"]): ?>
<li><a class="dropdown-item" href="?toggleTravel&equestria&member=<?= $member['id'] ?>"><img style="width:24px;" src="/assets/logo/equestria.png"> Equestria</a></li>
+ <?php endif; if (isset($member["_metadata"]["fictive2"]) && $member["_metadata"]["fictive2"]): ?>
+ <li><a class="dropdown-item" href="?toggleTravel&equestria&member=<?= $member['id'] ?>"><img style="width:24px;" src="/assets/logo/celeste.png"> Celeste</a></li>
+ <?php endif; ?>
</ul>
</div>
<?php endif; ?>
</div>
</div>
- <?php endforeach; ?>
+ <?php endif; endforeach; ?>
</div>
<style>