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>
|
2017-04-13 11:44:03 -04:00
|
|
|
<img class="cover" src="<?= $urlGenerator->assetUrl('images/manga', "{$data['id']}.jpg") ?>" alt="<?= $data['title'] ?> cover image" />
|
2016-04-14 17:51:00 -04:00
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>Manga Type</td>
|
|
|
|
<td><?= $data['manga_type'] ?></td>
|
|
|
|
</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>
|
|
|
|
<?php if( ! empty($data['en_title'])): ?>
|
|
|
|
<h3><?= $data['en_title'] ?></h3>
|
2016-04-14 17:51:00 -04:00
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<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 ?>">
|
2017-04-13 11:44:03 -04:00
|
|
|
<?= $helper->img($urlGenerator->assetUrl('images/characters', "{$id}.jpg"), [
|
2017-03-24 10:59:07 -04:00
|
|
|
'width' => '225'
|
|
|
|
]) ?>
|
|
|
|
</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>
|