aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-04-07 23:10:38 +0200
committerMinteck <contact@minteck.org>2022-04-07 23:10:38 +0200
commit5301e9789a87e8e4863c94114ba0f00fb52cab7b (patch)
treeb022fdfe16e2e1a1af598e3f17dffa85ea1443b7 /index.php
parent96bdc0d6b270a4c6dd5cffa632a9eb89e054fc68 (diff)
downloadcloudsdale-5301e9789a87e8e4863c94114ba0f00fb52cab7b.tar.gz
cloudsdale-5301e9789a87e8e4863c94114ba0f00fb52cab7b.tar.bz2
cloudsdale-5301e9789a87e8e4863c94114ba0f00fb52cab7b.zip
Almost done (just missing social)
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/index.php b/index.php
index aecd3a7..2c28e8a 100644
--- a/index.php
+++ b/index.php
@@ -8,13 +8,14 @@
$config = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/pluralkit.json"), true);
$data = json_decode(file_get_contents("https://api.pluralkit.me/v2/systems/$config[system]/fronters"), true);
+
foreach ($data["members"] as $index => $fronter) {
if ($index + 1 === count($data["members"])) {
- echo($fronter["display_name"]);
+ echo("<a href='/members/read/?m=$fronter[uuid]' class='text-white'>" . $fronter["display_name"] . "</a>");
} else if ($index + 2 === count($data["members"])) {
- echo($fronter["display_name"] . " and ");
+ echo("<a href='/members/read/?m=$fronter[uuid]' class='text-white'>" . $fronter["display_name"] . "</a> and ");
} else {
- echo($fronter["display_name"] . ", ");
+ echo("<a href='/members/read/?m=$fronter[uuid]' class='text-white'>" . $fronter["display_name"] . "</a>, ");
}
}
@@ -25,7 +26,7 @@
<div class="container">
<div class="row">
<?php foreach (json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/projects.json"), true) as $project): if ($project["showcase"]): ?>
- <div class="col">
+ <div class="col-lg-4">
<div class="card stylized-card">
<div class="card-body">
<img class="stylized-card-icon" src="<?= $project["icon"] ?>" alt="">