diff options
Diffstat (limited to 'includes/components/sysbanner.inc')
-rw-r--r-- | includes/components/sysbanner.inc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/includes/components/sysbanner.inc b/includes/components/sysbanner.inc index a97169a..6a66ab4 100644 --- a/includes/components/sysbanner.inc +++ b/includes/components/sysbanner.inc @@ -20,23 +20,8 @@ $pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pa <h3 style="height:max-content;"><?= $systemCommonName ?></h3> <div style="height:max-content;" id="member-card"> <span> - <?php - - if ($systemID === $app["other"]["id"]) { - $travellers = []; - } else { - $travellers = array_filter(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . ($systemID === "gdapd" ? "ynmuc" : "gdapd") . "/members.json"), true), function ($i) use ($travelling) { - return $travelling[$i['id']]['travelling'] && !$travelling[$i['id']]['equestria']; - }); - } - - ?> <?= count(scoreOrder(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/members.json"), true), $systemID)) ?> members<?php - if (count($travellers) > 0) { - echo(" (+ " . count($travellers) . " " . (count($travellers) > 1 ? $lang["system"]["travellers"] : $lang["system"]["traveller"]) . ")"); - } - ?><br><?php $leaders = array_filter(scoreOrderGlobal(), function ($i) use ($systemID) { return $i["_system"] === $systemID && isset($i["_metadata"]["leader2"]) && $i["_metadata"]["leader2"]; }); if (count($leaders) > 0): ?><span style="vertical-align: middle; height: 24px;">Leader<?= count($leaders) > 1 ? "s" : "" ?>: </span><?php foreach ($leaders as $index => $leader): ?><a href="/<?= $leader["name"] ?>" class="member-link"><img src="<?= getAsset($leader["_system"], $leader["id"], "heads") ?>"><span style="vertical-align: middle;"> <?= $leader["display_name"] ?? $leader["name"] ?></span></a><?= $index <= count($leaders) - 1 ? ", " : "" ?><?php endforeach; ?><?php endif; ?> |