diff options
author | Minteck <contact@minteck.org> | 2023-03-03 07:04:02 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-03-03 07:04:02 +0100 |
commit | 29928887e733f3bc2c2baaf06dafd495a006753b (patch) | |
tree | 90f5fa4c5273f201cc2d26086298ad094d9dadda /includes/sysbanner.inc | |
parent | 3d77712a9ab014635c75a33ea0f491bbda6aead3 (diff) | |
download | pluralconnect-29928887e733f3bc2c2baaf06dafd495a006753b.tar.gz pluralconnect-29928887e733f3bc2c2baaf06dafd495a006753b.tar.bz2 pluralconnect-29928887e733f3bc2c2baaf06dafd495a006753b.zip |
Updated 18 files and added 10 files (automated)
Diffstat (limited to 'includes/sysbanner.inc')
-rw-r--r-- | includes/sysbanner.inc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/includes/sysbanner.inc b/includes/sysbanner.inc index 2ca3ee8..763c961 100644 --- a/includes/sysbanner.inc +++ b/includes/sysbanner.inc @@ -21,30 +21,6 @@ $pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pa <div style="display: grid; grid-template-columns: 1fr;height:100%;grid-template-rows: max-content max-content 1fr;"> <h3 style="height:max-content;"><?= $systemCommonName ?></h3> <div style="height:max-content;display:grid;grid-template-columns: repeat(4, 1fr);" id="member-card"> - <!--<span> - <b><abbr title="Most common fronter" data-bs-toggle="tooltip">MCF</abbr>: </b><?php - - $foundHost = false; - $hostGoneTravelling = false; - - $members = array_filter(scoreOrder(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/members.json"), true), $systemID), function ($i) use ($travelling) { - global $hostGoneTravelling; - if ($travelling[$i['id']]['travelling'] && $i["_metadata"]["host"]) $hostGoneTravelling = true; - return true; - }); - foreach ($members as $member) { - $data = parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/$member[id].json"), true)); - if ($data["host"]): $foundHost = true; ?> - <a class="member-link" href="/<?= $member["name"] ?>"><img src="<?= getAsset($systemID, $member["id"], "heads") ?>" style="width:24px;"> <?= getMiniName($member["display_name"] ?? $member["name"]) ?></a> - <?php endif; - } - - if (!$foundHost) echo("-"); - if ($hostGoneTravelling) echo("<br>(travelling)"); - - ?> - - </span>--> <span> <?php $fronters = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/fronters.json"), true); ?> <b><?= $lang["system"]["fronter"] ?> </b> @@ -117,12 +93,4 @@ $pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pa <img src="/assets/icons/compare.svg" style="vertical-align: middle;height: 24px;width: 24px;filter: invert(1)" alt=""> <span style="vertical-align: middle;" class="list-separator-desktop"><?= $pages["s:compare"]["name"][$lang["_name"]] ?></span> </a> - <!--<a title="<?= $pages["s:tree"]["name"][$lang["_name"]] ?>" data-bs-toggle="tooltip" style="display:inline-block;padding:5px 10px;text-align: center" class="system-action tooltip-nohelp" href="/<?= $system ?>/-/tree"> - <img src="/assets/icons/tree.svg" style="vertical-align: middle;height: 24px;width: 24px;filter: invert(1)" alt=""> - <span style="vertical-align: middle;" class="list-separator-desktop"><?= $pages["s:tree"]["name"][$lang["_name"]] ?></span> - </a>--> - <!--<a title="<?= $pages["s:species"]["name"][$lang["_name"]] ?>" data-bs-toggle="tooltip" style="display:inline-block;padding:5px 10px;text-align: center" class="system-action tooltip-nohelp" href="/<?= $system ?>/-/species"> - <img src="/assets/icons/species.svg" style="vertical-align: middle;height: 24px;width: 24px;filter: invert(1)" alt=""> - <span style="vertical-align: middle;" class="list-separator-desktop"><?= $pages["s:species"]["name"][$lang["_name"]] ?></span> - </a>--> </div>
\ No newline at end of file |