2018-08-10 20:09:28 -04:00
|
|
|
<main class="media-list">
|
2017-02-15 16:30:14 -05:00
|
|
|
<?php if ($auth->isAuthenticated()): ?>
|
2016-03-07 14:37:49 -05:00
|
|
|
<a class="bracketed" href="<?= $url->generate('anime.add.get') ?>">Add Item</a>
|
2017-01-05 13:41:32 -05:00
|
|
|
<?php endif ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php if (empty($sections)): ?>
|
|
|
|
<h3>There's nothing here!</h3>
|
|
|
|
<?php else: ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?php foreach ($sections as $name => $items): ?>
|
2017-09-14 17:33:24 -04:00
|
|
|
<?php if (empty($items)): ?>
|
|
|
|
<section class="status">
|
|
|
|
<h2><?= $escape->html($name) ?></h2>
|
|
|
|
<h3>There's nothing here!</h3>
|
|
|
|
</section>
|
|
|
|
<?php else: ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<section class="status">
|
2015-09-17 23:11:18 -04:00
|
|
|
<h2><?= $escape->html($name) ?></h2>
|
2015-06-16 11:11:35 -04:00
|
|
|
<section class="media-wrap">
|
|
|
|
<?php foreach($items as $item): ?>
|
2017-02-15 16:30:14 -05:00
|
|
|
<?php if ($item['private'] && ! $auth->isAuthenticated()) continue; ?>
|
2018-08-21 17:09:42 -04:00
|
|
|
<?php include __DIR__ . '/cover-item.php' ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
</section>
|
2017-09-14 17:33:24 -04:00
|
|
|
<?php endif ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?php endforeach ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php endif ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
</main>
|