aboutsummaryrefslogtreecommitdiff
path: root/_site/articles/index.php
diff options
context:
space:
mode:
authorMinteck <46352972+Minteck@users.noreply.github.com>2021-07-01 00:54:32 +0200
committerMinteck <46352972+Minteck@users.noreply.github.com>2021-07-01 00:54:32 +0200
commit1d62401c897a5ba82d0def92d97d09195a6d676f (patch)
treed26f11765a4eee20ac4867d5b77794fcdcaac641 /_site/articles/index.php
parent1f23d65f32e37d0c6d703951d6735c9926f8521c (diff)
downloadunchainedtech-1d62401c897a5ba82d0def92d97d09195a6d676f.tar.gz
unchainedtech-1d62401c897a5ba82d0def92d97d09195a6d676f.tar.bz2
unchainedtech-1d62401c897a5ba82d0def92d97d09195a6d676f.zip
Fixed stuff + official logo
Diffstat (limited to '_site/articles/index.php')
-rw-r--r--_site/articles/index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/_site/articles/index.php b/_site/articles/index.php
index 1ea7270..1ac8e1e 100644
--- a/_site/articles/index.php
+++ b/_site/articles/index.php
@@ -8,8 +8,10 @@
<div class="container">
<div class="list-group">
<?php $index = 0;foreach ($list as $id => $item): ?>
- <a href="/article/<?= $item["id"] ?>" class="list-group-item list-group-item-action"><?= $item["title"] ?></a>
- <?php $index++;endforeach; ?>
+ <?php if (!$item["admin"] || ($admin && $item["admin"])): ?>
+ <a href="<?= $item["admin"] ? "/admin" : "" ?>/article/<?= $item["id"] ?>" class="list-group-item list-group-item-action<?= $item["admin"] ? " list-group-item-admin" : "" ?>"><?= $item["title"] ?></a>
+ <?php endif; ?>
+ <?php $index++;endforeach; ?>
</div>
</div>