aboutsummaryrefslogtreecommitdiff
path: root/views/list/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/list/index.php')
-rw-r--r--views/list/index.php28
1 files changed, 18 insertions, 10 deletions
diff --git a/views/list/index.php b/views/list/index.php
index 9bc348d..9b49268 100644
--- a/views/list/index.php
+++ b/views/list/index.php
@@ -10,20 +10,28 @@
?>
<?php if ($list !== null): ?>
- <section>
- <p><?= $list->Name ?></p>
- <p><?= $list->Description ?></p>
- <p><?= $author->Username ?></p>
+ <section class="list-container">
+ <section>
+ <h2><?= $list->Name ?></h2>
+ <p class="user-info">
+ <?php $author->icon(); ?>
+ <?= $author->Username ?>
+ </p>
+ <p><?= $list->Description ?></p>
+ </section>
+ <section>
+ <?php
+ foreach ($list->allItems() as $page) {
+ include $VIEWS_DIR . '/archive/item.php';
+ }
+ include_once $VIEWS_DIR . '/archive/item_show.php';
+ ?>
+ </section>
</section>
- <?php
- foreach ($list->allItems() as $page) {
- include $VIEWS_DIR . '/archive/item.php';
- }
- include_once $VIEWS_DIR . '/archive/item_show.php';
- ?>
<?php else: ?>
<p>
List doesn't exist
</p>
+
<?php endif; ?>