blob: 2ca9654a8e06638efd9580401c08ad238d80d46f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<div class="list-group">
<?php
$articles = scandir($_SERVER['DOCUMENT_ROOT'] . "/creations/dev");
$i = 1;
foreach ($articles as $article):
?>
<?php if (trim($article) !== "." && trim($article) !== ".." && is_dir($_SERVER['DOCUMENT_ROOT'] . "/creations/dev/" . $article)): ?>
<a href="/creations/dev/<?= $article ?>" class="list-group-item list-group-item-action"><img src="<?= trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/creations/dev/" . $article . "/icon.txt")) ?>" width="24px"> <?= file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/creations/dev/" . $article . "/title.txt") ?></a>
<?php endif;$i++; ?>
<?php endforeach; ?>
</div>
|