2015-06-16 11:11:35 -04:00
|
|
|
<main>
|
|
|
|
<?php foreach ($sections as $name => $items): ?>
|
|
|
|
<section class="status">
|
|
|
|
<h2><?= $name ?></h2>
|
|
|
|
<section class="media-wrap">
|
|
|
|
<?php foreach($items as $item): ?>
|
2015-06-24 16:01:35 -04:00
|
|
|
<article class="media" id="manga-<?= $item['id'] ?>">
|
|
|
|
<?php if (is_logged_in()): ?>
|
|
|
|
<div class="edit_buttons" hidden>
|
|
|
|
<button class="plus_one_chapter">+1 Chapter</button>
|
|
|
|
<button class="plus_one_volume">+1 Volume</button>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<img src="<?= $item['manga']['poster_image'] ?>" />
|
|
|
|
<div class="name">
|
2015-06-24 16:01:35 -04:00
|
|
|
<a href="https://hummingbird.me/manga/<?= $item['manga_id'] ?>">
|
2015-06-16 11:11:35 -04:00
|
|
|
<?= $item['manga']['romaji_title'] ?>
|
|
|
|
<?= (isset($item['manga']['english_title'])) ? "<br />({$item['manga']['english_title']})" : ""; ?>
|
2015-06-24 16:01:35 -04:00
|
|
|
</a>
|
2015-06-16 11:11:35 -04:00
|
|
|
</div>
|
2015-06-24 16:01:35 -04:00
|
|
|
<div class="table">
|
|
|
|
<div class="row">
|
|
|
|
<div class="user_rating">Rating: <?= ($item['rating'] > 0) ? (int)($item['rating'] * 2) : '-' ?> / 10</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="chapter_completion">
|
|
|
|
Chapters: <span class="chapters_read"><?= $item['chapters_read'] ?></span> /
|
|
|
|
<span class="chapter_count"><?= ($item['manga']['chapter_count'] > 0) ? $item['manga']['chapter_count'] : "-" ?></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="volume_completion">
|
|
|
|
Volumes: <span class="volumes_read"><?= $item['volumes_read'] ?></span> /
|
|
|
|
<span class="volume_count"><?= ($item['manga']['volume_count'] > 0) ? $item['manga']['volume_count'] : "-" ?></span>
|
|
|
|
</div>
|
2015-06-16 11:11:35 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php /*<div class="medium_metadata">
|
|
|
|
<div class="media_type"><?= $item['manga']['manga_type'] ?></div>
|
|
|
|
</div> */ ?>
|
|
|
|
</article>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<?php endforeach ?>
|
2015-06-24 16:01:35 -04:00
|
|
|
</main>
|
|
|
|
<?php if (is_logged_in()): ?>
|
|
|
|
<script src="<?= asset_url('js.php?g=edit') ?>"></script>
|
|
|
|
<?php endif ?>
|