2018-08-10 20:09:28 -04:00
|
|
|
<main class="media-list">
|
2023-12-21 13:46:15 -05:00
|
|
|
<?php if ($_->isAuthenticated()): ?>
|
|
|
|
<a class="bracketed" href="<?= $_->urlFromRoute('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: ?>
|
2019-07-10 13:32:05 -04:00
|
|
|
<br />
|
|
|
|
<label>Filter: <input type='text' class='media-filter' /></label>
|
|
|
|
<br />
|
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">
|
2023-12-21 13:46:15 -05:00
|
|
|
<h2><?= $_->escape->html($name) ?></h2>
|
2017-09-14 17:33:24 -04:00
|
|
|
<h3>There's nothing here!</h3>
|
|
|
|
</section>
|
|
|
|
<?php else: ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<section class="status">
|
2023-12-21 13:46:15 -05:00
|
|
|
<h2><?= $_->escape->html($name) ?></h2>
|
2015-06-16 11:11:35 -04:00
|
|
|
<section class="media-wrap">
|
|
|
|
<?php foreach($items as $item): ?>
|
2023-12-21 13:46:15 -05:00
|
|
|
<?php if ($item['private'] && ! $_->isAuthenticated()) continue; ?>
|
|
|
|
<?= $_->component->animeCover($item) ?>
|
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>
|