diff options
author | Minteck <contact@minteck.org> | 2023-02-23 19:34:56 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-02-23 19:34:56 +0100 |
commit | 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 (patch) | |
tree | 75be5fba4368472fb11c8015aee026b2b9a71888 /includes/subsysbanner.inc | |
parent | 8cc1f13c17fa2fb5a4410542d39e650e02945634 (diff) | |
download | pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.gz pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.bz2 pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.zip |
Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated)
Diffstat (limited to 'includes/subsysbanner.inc')
-rw-r--r-- | includes/subsysbanner.inc | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/includes/subsysbanner.inc b/includes/subsysbanner.inc deleted file mode 100644 index 2f85dc3..0000000 --- a/includes/subsysbanner.inc +++ /dev/null @@ -1,71 +0,0 @@ -<?php - -global $memberData; -global $memberCommonName; -global $memberID; -global $systemCommonName; -global $systemID; -global $system; -global $subsystemData; -global $subsystemID; -global $subsystem; -global $lang; global $pages; - -$fronters = array_map(function ($item) { - return $item["id"]; -}, json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/fronters.json"), true)["members"]); - -?> - -<div id="system-info" style="background:rgba(255, 255, 255, .1);border-radius:10px;display:grid;grid-template-columns: 128px 1fr;"> - <img src="/assets/uploads/ss-<?= $subsystemID ?>.png" alt="" style="height:128px;border-top-left-radius:10px;border-bottom-left-radius:10px;"> - <div style="padding:10px 10px 10px 20px;text-align:center;"> - <div style="display: grid; grid-template-columns: 1fr;height:100%;grid-template-rows: max-content max-content 1fr;"> - <h3 style="height:max-content;"><?= $subsystemData["name"] ?></h3> - <div style="height:max-content;display:grid;grid-template-columns: repeat(4, 1fr);" id="member-card"> - <span> - <b><?= $lang["subsystem"]["fronter"] ?></b> - <?php if (in_array($fronters[0], $subsystem["members"])): $member = getMember($fronters[0]); ?> - <a class="member-link" href="/<?= $member["name"] ?>"><img src="<?= getAsset($member['system'], $member["id"], "heads") ?>" style="width:24px;"> <?= getMiniName($member["display_name"] ?? $member["name"]) ?></a> - <?php else: ?> - <span class="text-muted">N/A</span> - <?php endif; ?> - </span> - <span> - <?php - - $subsystem = getSubsystemByID($subsystemID); - $arr = array_filter(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/switches.json"), true), function ($i) use ($subsystem) { - return isset($i["members"][0]) && in_array($i["members"][0], $subsystem["members"]); - }); - sort($arr); - $previousID = $arr[in_array($fronters[0], $subsystem["members"]) ? 1 : 0]["members"][0]; - $member = null; - - foreach (json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/members.json"), true) as $members) { - if ($members["id"] === $previousID) { - $member = $members; - break; - } - } - - ?> - <b><?= $lang["subsystem"]["last"] ?> </b><a class="member-link" href="/<?= $member["name"] ?>"><img src="<?= getAsset($systemID - , $member["id"], "heads") ?>" style="width:24px;"> <?= getMiniName($member["display_name"] ?? $member["name"]) ?></a> - </span> - <span> - <b><?= $lang["subsystem"]["members"] ?></b> <?= count($subsystem["members"]) ?> - </span> - <span> - <b><?= $lang["subsystem"]["parent"] ?></b> <a class="member-link" href="/<?= $system ?>"><img style="width:24px;border-radius:5px;" src="/assets/uploads/<?= $system ?>.png"> <?= getMiniName($systemCommonName) ?></a> - </span> - </div> - </div> - </div> -</div> - -<div id="system-actions" style="margin-top:10px;padding:5px 10px;background:rgba(255, 255, 255, .1);border-radius:10px;"> - <div style="padding: 5px 10px;text-align: center;"> - <?= $lang["subsystem"]["intro"] ?> <b><a style="color:white;text-decoration: none;" href="/<?= $system ?>"><?= $systemCommonName ?></a></b>. - </div> -</div>
\ No newline at end of file |