HummingBirdAnimeClient/app/views/collection/cover.php

39 lines
1.3 KiB
PHP
Raw Normal View History

<main>
2015-09-28 14:41:45 -04:00
<?php /*if (is_logged_in()): ?>
[<a href="<?= $config->full_url('collection/add', 'anime') ?>">Add Item</a>]
2015-09-28 14:41:45 -04:00
<?php endif*/ ?>
<?php if (empty($sections)): ?>
<h3>There's nothing here!</h3>
<?php else: ?>
<?php foreach ($sections as $name => $items): ?>
<section class="status">
<h2><?= $name ?></h2>
<section class="media-wrap">
<?php foreach($items as $item): ?>
<article class="media" id="a-<?= $item['hummingbird_id'] ?>">
2015-09-14 15:49:20 -04:00
<img src="<?= $urlGenerator->asset_url('images', 'anime', basename($item['cover_image'])) ?>" />
<div class="name">
<a href="https://hummingbird.me/anime/<?= $item['slug'] ?>">
<?= $item['title'] ?>
<?= ($item['alternate_title'] != "") ? "<br />({$item['alternate_title']})" : ""; ?>
</a>
</div>
2015-06-17 08:50:01 -04:00
<div class="table">
<div class="row">
<div class="completion">Episodes: <?= $item['episode_count'] ?></div>
<div class="media_type"><?= $item['show_type'] ?></div>
<div class="age_rating"><?= $item['age_rating'] ?></div>
</div>
</div>
</article>
2015-09-28 14:41:45 -04:00
<?php /*if (is_logged_in()): ?>
2015-09-14 15:49:20 -04:00
<span>[<a href="<?= $urlGenerator->full_url("collection/edit/{$item['hummingbird_id']}", "anime") ?>">Edit</a>]</span>
2015-09-28 14:41:45 -04:00
<?php endif*/ ?>
<?php endforeach ?>
2015-06-11 12:54:54 -04:00
</section>
</section>
<?php endforeach ?>
<?php endif ?>
2015-09-28 14:41:45 -04:00
</main>