aboutsummaryrefslogtreecommitdiff
path: root/_site/articles/index.php
blob: 14f892b3810dd5c32a562ca07581125db4df09d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php $_TITLE = "Articles Index"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/header.php"; ?>

<div class="container" style="margin-top:30px;text-align: center;">
    <h2>Here be dragons!</h2>
    <p>This is the complete list of all the posts that were on UnchainedTech one day. Yep, they are all here!</p>
</div>
<?php $list = getArticlesList() ?>
<div class="container">
    <div class="list-group">
        <?php $index = 0;foreach ($list as $id => $item): ?>
        <?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>

<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/footer.php"; ?>