diff options
Diffstat (limited to 'views/list/index.php')
| -rw-r--r-- | views/list/index.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/views/list/index.php b/views/list/index.php index 9047fb3..9bc348d 100644 --- a/views/list/index.php +++ b/views/list/index.php @@ -15,11 +15,12 @@ <p><?= $list->Description ?></p> <p><?= $author->Username ?></p> </section> - <?php foreach($list->allItems() as $webpage): ?> - <section> - <?= $webpage->URL ?> - </section> - <?php endforeach; ?> + <?php + foreach ($list->allItems() as $page) { + include $VIEWS_DIR . '/archive/item.php'; + } + include_once $VIEWS_DIR . '/archive/item_show.php'; + ?> <?php else: ?> <p> |
