aboutsummaryrefslogtreecommitdiff
path: root/views/list
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-02 10:16:39 +0200
committerSyndamia <kamen@syndamia.com>2025-02-02 10:18:10 +0200
commitee1add20e2861e95de0b6b3b621f0a8e277f2a02 (patch)
tree181a3532501db013263c4456578b62d5442cc6c7 /views/list
parenta6f29034d18d5a5ce48d879845cce3544b0f8a3c (diff)
downloadnowayforward_human-ee1add20e2861e95de0b6b3b621f0a8e277f2a02.tar
nowayforward_human-ee1add20e2861e95de0b6b3b621f0a8e277f2a02.tar.gz
nowayforward_human-ee1add20e2861e95de0b6b3b621f0a8e277f2a02.zip
feat: Proper list page layout and export user logo logic to class
Diffstat (limited to 'views/list')
-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; ?>