HummingBirdAnimeClient/app/views/anime/cover.php

31 lines
903 B
PHP
Raw Permalink Normal View History

2018-08-10 20:09:28 -04:00
<main class="media-list">
<?php if ($_->isAuthenticated()): ?>
<a class="bracketed" href="<?= $_->urlFromRoute('anime.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): ?>
<?php if ($item['private'] && ! $_->isAuthenticated()) continue; ?>
<?= $_->component->animeCover($item) ?>
<?php endforeach ?>
</section>
</section>
2017-09-14 17:33:24 -04:00
<?php endif ?>
<?php endforeach ?>
<?php endif ?>
</main>