aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
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="">