HummingBirdAnimeClient/app/views/collection/cover-item.php

28 lines
981 B
PHP
Raw Permalink Normal View History

2018-08-10 20:09:28 -04:00
<article class="media" id="a-<?= $item['hummingbird_id'] ?>">
<?= $_->h->picture("images/anime/{$item['hummingbird_id']}.webp") ?>
2018-08-10 20:09:28 -04:00
<div class="name">
<a href="<?= $_->urlFromRoute('anime.details', ['id' => $item['slug']]) ?>">
2018-08-10 20:09:28 -04:00
<?= $item['title'] ?>
<?= ($item['alternate_title'] != "") ? "<small><br />{$item['alternate_title']}</small>" : ""; ?>
</a>
</div>
<div class="table">
<?php if ($_->isAuthenticated()): ?>
2018-08-10 20:09:28 -04:00
<div class="row">
<span class="edit">
<a class="bracketed"
href="<?= $_->urlFromRoute($collection_type . '.collection.edit.get', [
2018-08-10 20:09:28 -04:00
'id' => $item['hummingbird_id']
]) ?>">Edit</a>
</span>
</div>
<?php endif ?>
<div class="row">
2020-04-30 15:30:52 -04:00
<?php if ($item['episode_count'] > 1): ?>
2018-08-10 20:09:28 -04:00
<div class="completion">Episodes: <?= $item['episode_count'] ?></div>
2020-04-30 15:30:52 -04:00
<?php endif ?>
2018-08-10 20:09:28 -04:00
<div class="media_type"><?= $item['show_type'] ?></div>
<div class="age-rating"><?= $item['age_rating'] ?></div>
2018-08-10 20:09:28 -04:00
</div>
</div>
</article>