HummingBirdAnimeClient/app/views/manga/cover.php

30 lines
835 B
PHP
Raw Normal View History

2018-08-10 20:09:28 -04:00
<main class="media-list">
<?php if ($_->isAuthenticated()): ?>
<a class="bracketed" href="<?= $_->urlFromRoute('manga.add.get') ?>">Add Item</a>
<?php endif ?>
<?php if (empty($sections)): ?>
<h3>There's nothing here!</h3>
<?php else: ?>
<br />
<label>Filter: <input type='text' class='media-filter' /></label>
<br />
<?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>
2017-09-14 17:33:24 -04:00
<h3>There's nothing here!</h3>
</section>
<?php else: ?>
<section class="status">
<h2><?= $_->escape->html($name) ?></h2>
<section class="media-wrap">
<?php foreach($items as $item): ?>
2020-08-26 17:26:42 -04:00
<?= $component->mangaCover($item, $name) ?>
<?php endforeach ?>
</section>
</section>
2017-09-14 17:33:24 -04:00
<?php endif ?>
<?php endforeach ?>
<?php endif ?>
</main>