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">
|
2018-10-26 13:08:45 -04:00
|
|
|
<aside class="info">
|
2018-11-01 22:01:09 -04:00
|
|
|
<?= $helper->picture("images/manga/{$data['id']}-original.webp", 'jpg', ['class' => 'cover']) ?>
|
|
|
|
|
2016-04-14 17:51:00 -04:00
|
|
|
<br />
|
2018-11-01 22:01:09 -04:00
|
|
|
|
2018-11-02 10:48:20 -04:00
|
|
|
<table class="media-details">
|
2016-04-14 17:51:00 -04:00
|
|
|
<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>
|
2018-10-26 13:08:45 -04:00
|
|
|
</aside>
|
|
|
|
<article class="text">
|
2018-11-01 22:01:09 -04:00
|
|
|
<h2 class="toph"><a rel="external" href="<?= $data['url'] ?>"><?= $data['title'] ?></a></h2>
|
|
|
|
<?php foreach ($data['titles'] as $title): ?>
|
2018-08-20 12:58:56 -04:00
|
|
|
<h3><?= $title ?></h3>
|
|
|
|
<?php endforeach ?>
|
2016-04-14 17:51:00 -04:00
|
|
|
|
|
|
|
<br />
|
|
|
|
<p><?= nl2br($data['synopsis']) ?></p>
|
2018-10-26 13:08:45 -04:00
|
|
|
</article>
|
2016-04-14 17:51:00 -04:00
|
|
|
</section>
|
2017-03-31 16:36:22 -04:00
|
|
|
|
2017-03-24 10:59:07 -04:00
|
|
|
<?php if (count($characters) > 0): ?>
|
2018-10-29 14:43:06 -04:00
|
|
|
<h2>Characters</h2>
|
2018-11-01 22:01:09 -04:00
|
|
|
<div class="tabs">
|
|
|
|
<?php $i = 0 ?>
|
|
|
|
<?php foreach ($characters as $role => $list): ?>
|
|
|
|
<input
|
|
|
|
type="radio" name="character-role-tabs"
|
|
|
|
id="character-tabs<?= $i ?>" <?= $i === 0 ? 'checked' : '' ?> />
|
|
|
|
<label for="character-tabs<?= $i ?>"><?= ucfirst($role) ?></label>
|
|
|
|
<section class="content media-wrap flex flex-wrap flex-justify-start">
|
|
|
|
<?php foreach ($list as $id => $char): ?>
|
|
|
|
<?php if ( ! empty($char['image']['original'])): ?>
|
2018-11-02 10:48:20 -04:00
|
|
|
<article class="<?= $role === 'supporting' ? 'small-' : '' ?>character">
|
2018-11-01 22:01:09 -04:00
|
|
|
<?php $link = $url->generate('character', ['slug' => $char['slug']]) ?>
|
|
|
|
<div class="name">
|
|
|
|
<?= $helper->a($link, $char['name']); ?>
|
|
|
|
</div>
|
|
|
|
<a href="<?= $link ?>">
|
|
|
|
<?= $helper->picture("images/characters/{$id}.webp") ?>
|
|
|
|
</a>
|
|
|
|
</article>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
<?php $i++ ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</div>
|
2017-03-31 16:36:22 -04:00
|
|
|
<?php endif ?>
|
2018-10-29 15:17:48 -04:00
|
|
|
|
|
|
|
<?php if (count($staff) > 0): ?>
|
|
|
|
<h2>Staff</h2>
|
|
|
|
|
2018-11-01 22:01:09 -04:00
|
|
|
<div class="vertical-tabs">
|
|
|
|
<?php $i = 0 ?>
|
|
|
|
<?php foreach ($staff as $role => $people): ?>
|
|
|
|
<div class="tab">
|
|
|
|
<input
|
|
|
|
type="radio" name="staff-roles" id="staff-role<?= $i ?>" <?= $i === 0 ? 'checked' : '' ?> />
|
|
|
|
<label for="staff-role<?= $i ?>"><?= $role ?></label>
|
|
|
|
<section class='content media-wrap flex flex-wrap flex-justify-start'>
|
|
|
|
<?php foreach ($people as $pid => $person): ?>
|
|
|
|
<article class='character person'>
|
|
|
|
<?php $link = $url->generate('person', ['id' => $pid]) ?>
|
|
|
|
<div class="name">
|
|
|
|
<a href="<?= $link ?>">
|
|
|
|
<?= $person['name'] ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<a href="<?= $link ?>">
|
|
|
|
<?= $helper->picture("images/people/{$pid}.webp") ?>
|
|
|
|
</a>
|
|
|
|
</article>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<?php $i++ ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</div>
|
2018-10-29 15:17:48 -04:00
|
|
|
<?php endif ?>
|
2016-04-14 17:51:00 -04:00
|
|
|
</main>
|