2017-03-31 13:37:53 -04:00
|
|
|
<main class="details fixed">
|
2016-04-14 17:51:00 -04:00
|
|
|
<section class="flex flex-no-wrap">
|
|
|
|
<div>
|
2018-10-05 21:32:15 -04:00
|
|
|
<picture class="cover">
|
|
|
|
<source srcset="<?= $urlGenerator->assetUrl("images/manga/{$data['id']}-original.webp") ?>" type="image/webp">
|
|
|
|
<source srcset="<?= $urlGenerator->assetUrl("images/manga/{$data['id']}-original.jpg") ?>" type="image/jpeg">
|
|
|
|
<img src="<?= $urlGenerator->assetUrl("images/manga/{$data['id']}-original.jpg") ?>" alt="" />
|
|
|
|
</picture>
|
2016-04-14 17:51:00 -04:00
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>Manga Type</td>
|
2018-10-05 22:36:54 -04:00
|
|
|
<td><?= ucfirst($data['manga_type']) ?></td>
|
2016-04-14 17:51:00 -04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Volume Count</td>
|
|
|
|
<td><?= $data['volume_count'] ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Chapter Count</td>
|
|
|
|
<td><?= $data['chapter_count'] ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Genres</td>
|
|
|
|
<td>
|
|
|
|
<?= implode(', ', $data['genres']); ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div>
|
2017-01-04 13:16:58 -05:00
|
|
|
<h2><a rel="external" href="<?= $data['url'] ?>"><?= $data['title'] ?></a></h2>
|
2018-08-20 12:58:56 -04:00
|
|
|
<?php foreach($data['titles'] as $title): ?>
|
|
|
|
<h3><?= $title ?></h3>
|
|
|
|
<?php endforeach ?>
|
2016-04-14 17:51:00 -04:00
|
|
|
|
|
|
|
<br />
|
|
|
|
<p><?= nl2br($data['synopsis']) ?></p>
|
|
|
|
</div>
|
|
|
|
</section>
|
2017-03-31 16:36:22 -04:00
|
|
|
|
2017-03-24 10:59:07 -04:00
|
|
|
<?php if (count($characters) > 0): ?>
|
|
|
|
<h2>Characters</h2>
|
2017-03-31 16:36:22 -04:00
|
|
|
<section class="media-wrap">
|
2017-04-13 11:44:03 -04:00
|
|
|
<?php foreach($characters as $id => $char): ?>
|
2017-03-24 10:59:07 -04:00
|
|
|
<?php if ( ! empty($char['image']['original'])): ?>
|
2017-03-31 16:36:22 -04:00
|
|
|
<article class="character">
|
2017-03-24 10:59:07 -04:00
|
|
|
<?php $link = $url->generate('character', ['slug' => $char['slug']]) ?>
|
2017-03-31 16:36:22 -04:00
|
|
|
<div class="name">
|
|
|
|
<?= $helper->a($link, $char['name']); ?>
|
|
|
|
</div>
|
2017-03-24 10:59:07 -04:00
|
|
|
<a href="<?= $link ?>">
|
2018-10-05 21:32:15 -04:00
|
|
|
<picture>
|
|
|
|
<source srcset="<?= $urlGenerator->assetUrl("images/characters/{$id}.webp") ?>" type="image/webp">
|
|
|
|
<source srcset="<?= $urlGenerator->assetUrl("images/characters/{$id}.jpg") ?>" type="image/jpeg">
|
|
|
|
<img src="<?= $urlGenerator->assetUrl("images/characters/{$id}.jpg") ?>" alt="" />
|
|
|
|
</picture>
|
2017-03-24 10:59:07 -04:00
|
|
|
</a>
|
2017-03-31 16:36:22 -04:00
|
|
|
</article>
|
2017-03-24 10:59:07 -04:00
|
|
|
<?php endif ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
2017-03-31 16:36:22 -04:00
|
|
|
<?php endif ?>
|
2016-04-14 17:51:00 -04:00
|
|
|
</main>
|