diff options
Diffstat (limited to 'includes/dev')
-rw-r--r-- | includes/dev/list.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/includes/dev/list.php b/includes/dev/list.php new file mode 100644 index 0000000..2ca9654 --- /dev/null +++ b/includes/dev/list.php @@ -0,0 +1,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>
\ No newline at end of file |