HummingBirdAnimeClient/app/views/anime/collection.php

28 lines
900 B
PHP
Raw Normal View History

<main>
<?php foreach ($sections as $name => $items): ?>
<section class="status">
<h2><?= $name ?></h2>
<section class="media-wrap">
<?php foreach($items as $item): ?>
<a href="https://hummingbird.me/anime/<?= $item['slug'] ?>">
<article class="media" id="a-<?= $item['hummingbird_id'] ?>">
<img src="<?= $item['cover_image'] ?>" />
<div class="name">
<?= $item['title'] ?>
<?= ($item['alternate_title'] != "") ? "<br />({$item['alternate_title']})" : ""; ?>
</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>
2015-06-17 08:50:01 -04:00
</article>
</a>
<?php endforeach ?>
2015-06-11 12:54:54 -04:00
</section>
</section>
<?php endforeach ?>
</main>