summaryrefslogtreecommitdiff
path: root/pages/splitting.inc
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2024-03-29 22:05:35 +0100
committerRaindropsSys <raindrops@equestria.dev>2024-03-29 22:05:35 +0100
commit5860551daa0f60103ad24e93da29f401a653f144 (patch)
tree9ad97e04152a6edc11d5096c87880978df39086a /pages/splitting.inc
parenta51979ad60074db84af78a06d30fcb888ccb0b03 (diff)
downloadpluralconnect-5860551daa0f60103ad24e93da29f401a653f144.tar.gz
pluralconnect-5860551daa0f60103ad24e93da29f401a653f144.tar.bz2
pluralconnect-5860551daa0f60103ad24e93da29f401a653f144.zip
Updated 20 files, added 6 files, deleted 144 files and renamed .idea/ponycule.iml (automated)
Diffstat (limited to 'pages/splitting.inc')
-rw-r--r--pages/splitting.inc62
1 files changed, 0 insertions, 62 deletions
diff --git a/pages/splitting.inc b/pages/splitting.inc
deleted file mode 100644
index 2f5fa39..0000000
--- a/pages/splitting.inc
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn; global $lang; global $pages;
-require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc';
-
-if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/splitting.json")) file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/splitting.json", "{}");
-
-$cache = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/splitting.json"), true);
-
-?>
-
-<br>
-<div class="container">
- <?php if (!isset($cache["content"])): ob_start(); ?>
- <div id="page-content">
- <h2>Members by splitting date</h2>
- <?php $members = scoreOrderGlobal(); uasort($members, function ($a, $b) {
- return strtotime($a["created"]) - strtotime($b["created"]);
- }); foreach ($members as $member): ?>
- <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"] ?>
- </a>
-
- <div class="relation-item" style="display:flex;align-items:center;margin-left:10px;padding:0 20px;">
- Formed at least <?= timeAgo($member["created"]) ?> (<?= date('l j F Y', strtotime($member["created"])) ?>)
- </div>
- </div>
- <?php endforeach; ?>
- </div>
-
- <style>
- @media (max-width: 991px) {
- .relation {
- grid-template-columns: 1fr !important;
- }
-
- .relation-intro {
- text-align: center;
- border-bottom-left-radius: 0 !important;
- border-top-right-radius: 10px;
- border-right: none !important;
- border-bottom: 1px solid rgba(255, 255, 255, .1);
- }
-
- .relation-item-marefriends {
- margin-top: 20px !important;
- }
-
- .relation-item {
- margin-top: 10px;
- margin-left: 0 !important;
- padding: 10px 0 !important;
- text-align: center;
- }
- }
- </style>
- <?php $cache["content"] = ob_get_contents(); ob_end_clean(); endif;
- echo($cache["content"]); file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/splitting.json", json_encode($cache)); ?>
-</div>
-
-<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/footer.inc'; ?>