2015-06-16 11:11:35 -04:00
|
|
|
<main>
|
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">
|
2015-09-17 23:11:18 -04:00
|
|
|
<h2><?= $escape->html($name) ?></h2>
|
2015-06-16 11:11:35 -04:00
|
|
|
<section class="media-wrap">
|
|
|
|
<?php foreach($items as $item): ?>
|
|
|
|
<article class="media" id="a-<?= $item['anime']['id'] ?>">
|
2015-06-24 16:01:35 -04:00
|
|
|
<?php if (is_logged_in()): ?>
|
|
|
|
<button class="plus_one" hidden>+1 Episode</button>
|
|
|
|
<?php endif ?>
|
2015-09-17 23:11:18 -04:00
|
|
|
<?= $helper->img($item['anime']['cover_image']); ?>
|
2015-06-17 08:50:01 -04:00
|
|
|
<div class="name">
|
2015-09-17 23:11:18 -04:00
|
|
|
<a href="<?= $escape->attr($item['anime']['url']) ?>">
|
|
|
|
<?= $escape->html($item['anime']['title']) ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?= ($item['anime']['alternate_title'] != "") ? "<br />({$item['anime']['alternate_title']})" : ""; ?>
|
2015-06-24 16:01:35 -04:00
|
|
|
</a>
|
2015-06-16 11:11:35 -04:00
|
|
|
</div>
|
2015-06-17 08:50:01 -04:00
|
|
|
<div class="table">
|
|
|
|
<div class="row">
|
2015-06-17 16:46:10 -04:00
|
|
|
<div class="user_rating">Rating: <?= ($item['rating']['value'] > 0) ? (int)($item['rating']['value'] * 2) : " - " ?> / 10</div>
|
2015-06-24 16:01:35 -04:00
|
|
|
<div class="completion">Episodes:
|
|
|
|
<span class="completed_number"><?= $item['episodes_watched'] ?></span> /
|
|
|
|
<span class="total_number"><?= ($item['anime']['episode_count'] != 0) ? $item['anime']['episode_count'] : "-" ?></span>
|
|
|
|
</div>
|
2015-06-17 08:50:01 -04:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2015-09-17 23:11:18 -04:00
|
|
|
<div class="media_type"><?= $escape->html($item['anime']['show_type']) ?></div>
|
|
|
|
<div class="airing_status"><?= $escape->html($item['anime']['status']) ?></div>
|
|
|
|
<div class="age_rating"><?= $escape->html($item['anime']['age_rating']) ?></div>
|
2015-06-17 08:50:01 -04:00
|
|
|
</div>
|
2015-06-16 11:11:35 -04:00
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<?php endforeach ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php endif ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
</main>
|
2015-06-24 16:01:35 -04:00
|
|
|
<?php if (is_logged_in()): ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<script src="<?= $config->asset_url('js.php?g=edit') ?>"></script>
|
2015-06-24 16:01:35 -04:00
|
|
|
<?php endif ?>
|