2015-06-16 11:11:35 -04:00
|
|
|
<main>
|
2015-12-08 14:52:59 -05:00
|
|
|
<?php if ($auth->is_authenticated()): ?>
|
2016-01-04 10:53:03 -05:00
|
|
|
<a class="bracketed" href="<?= $urlGenerator->url('collection/add', 'anime') ?>">Add Item</a>
|
2015-12-08 14:52:59 -05:00
|
|
|
<?php endif ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php if (empty($sections)): ?>
|
|
|
|
<h3>There's nothing here!</h3>
|
|
|
|
<?php else: ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?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'])) ?>" />
|
2015-06-16 11:11:35 -04:00
|
|
|
<div class="name">
|
2015-07-02 14:04:04 -04:00
|
|
|
<a href="https://hummingbird.me/anime/<?= $item['slug'] ?>">
|
2015-06-16 11:11:35 -04:00
|
|
|
<?= $item['title'] ?>
|
|
|
|
<?= ($item['alternate_title'] != "") ? "<br />({$item['alternate_title']})" : ""; ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
</a>
|
2015-06-16 11:11:35 -04:00
|
|
|
</div>
|
2015-06-17 08:50:01 -04:00
|
|
|
<div class="table">
|
2016-01-04 10:53:03 -05:00
|
|
|
<?php if ($auth->is_authenticated()): ?>
|
|
|
|
<div class="row">
|
|
|
|
<span class="edit"><a class="bracketed" href="<?= $urlGenerator->url("collection/edit/{$item['hummingbird_id']}") ?>">Edit</a></span>
|
|
|
|
<?php /*<span class="delete"><a class="bracketed" href="<?= $urlGenerator->url("collection/delete/{$item['hummingbird_id']}") ?>">Delete</a></span> */ ?>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
2015-06-17 08:50:01 -04:00
|
|
|
<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>
|
2015-06-16 11:11:35 -04:00
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
<?php endforeach ?>
|
2015-06-11 12:54:54 -04:00
|
|
|
</section>
|
2015-06-16 11:11:35 -04:00
|
|
|
</section>
|
|
|
|
<?php endforeach ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php endif ?>
|
2015-09-28 14:41:45 -04:00
|
|
|
</main>
|