HummingBirdAnimeClient/app/views/manga/cover.php

58 lines
2.1 KiB
PHP
Raw Normal View History

<main>
2017-01-03 21:06:49 -05:00
<?php /* if ($auth->is_authenticated()): ?>
2016-02-02 11:34:03 -05:00
<a class="bracketed" href="<?= $urlGenerator->url('manga/add') ?>">Add Item</a>
2017-01-03 21:06:49 -05:00
<?php endif */ ?>
<?php if (empty($sections)): ?>
<h3>There's nothing here!</h3>
<?php else: ?>
<?php foreach ($sections as $name => $items): ?>
<section class="status">
2015-09-17 23:11:18 -04:00
<h2><?= $escape->html($name) ?></h2>
<section class="media-wrap">
<?php foreach($items as $item): ?>
<article class="media" id="manga-<?= $item['id'] ?>">
2017-01-03 21:06:49 -05:00
<?php /*if ($auth->is_authenticated()): ?>
<div class="edit_buttons" hidden>
<button class="plus_one_chapter">+1 Chapter</button>
</div>
2017-01-03 21:06:49 -05:00
<?php endif */ ?>
2015-10-01 16:01:23 -04:00
<img src="<?= $escape->attr($item['manga']['image']) ?>" />
<div class="name">
2016-04-14 17:51:00 -04:00
<a href="<?= $url->generate('manga.details', ['id' => $item['manga']['slug']]) ?>">
2015-10-01 16:01:23 -04:00
<?= $escape->html($item['manga']['title']) ?>
<?= (isset($item['manga']['alternate_title'])) ? "<br />({$item['manga']['alternate_title']})" : ""; ?>
</a>
</div>
<div class="table">
2017-01-03 21:06:49 -05:00
<?php /*if ($auth->is_authenticated()): ?>
<div class="row">
<span class="edit">
<a class="bracketed" title="Edit information about this manga" href="<?= $urlGenerator->url("manga/edit/{$item['id']}/{$name}") ?>">Edit</a>
</span>
</div>
2017-01-03 21:06:49 -05:00
<?php endif */ ?>
<div class="row">
2015-10-01 16:01:23 -04:00
<div class="user_rating">Rating: <?= $item['user_rating'] ?> / 10</div>
</div>
<div class="row">
<div class="chapter_completion">
2015-10-01 16:01:23 -04:00
Chapters: <span class="chapters_read"><?= $item['chapters']['read'] ?></span> /
<span class="chapter_count"><?= $item['chapters']['total'] ?></span>
</div>
</div>
<div class="row">
<div class="volume_completion">
2017-01-04 13:16:58 -05:00
Volumes: <span class="volume_count"><?= $item['volumes']['total'] ?></span>
</div>
</div>
</div>
</article>
<?php endforeach ?>
</section>
</section>
<?php endforeach ?>
<?php endif ?>
</main>
2017-01-03 21:06:49 -05:00
<?php /*if ($auth->is_authenticated()): ?>
<script src="<?= $urlGenerator->asset_url('js.php/g/edit') ?>"></script>
2017-01-04 13:16:58 -05:00
<?php endif*/ ?>