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>
|
2020-07-29 17:51:58 -04:00
|
|
|
<td class="align-right">Publishing Status</td>
|
|
|
|
<td><?= $data['status'] ?></td>
|
|
|
|
</tr>
|
2020-08-03 14:36:14 -04:00
|
|
|
<tr>
|
2016-04-14 17:51:00 -04:00
|
|
|
<td>Manga Type</td>
|
2020-08-03 14:36:14 -04:00
|
|
|
<td><?= ucfirst(strtolower($data['manga_type'])) ?></td>
|
2016-04-14 17:51:00 -04:00
|
|
|
</tr>
|
2020-08-03 14:36:14 -04:00
|
|
|
<?php if ( ! empty($data['volume_count'])): ?>
|
2016-04-14 17:51:00 -04:00
|
|
|
<tr>
|
|
|
|
<td>Volume Count</td>
|
|
|
|
<td><?= $data['volume_count'] ?></td>
|
|
|
|
</tr>
|
2020-08-03 14:36:14 -04:00
|
|
|
<?php endif ?>
|
|
|
|
<?php if ( ! empty($data['chapter_count'])): ?>
|
2016-04-14 17:51:00 -04:00
|
|
|
<tr>
|
|
|
|
<td>Chapter Count</td>
|
|
|
|
<td><?= $data['chapter_count'] ?></td>
|
2020-08-03 14:36:14 -04:00
|
|
|
</tr>
|
|
|
|
<?php endif ?>
|
2020-07-29 17:51:58 -04:00
|
|
|
|
|
|
|
<?php if ( ! empty($data['age_rating'])): ?>
|
|
|
|
<tr>
|
|
|
|
<td>Age Rating</td>
|
|
|
|
<td><abbr title="<?= $data['age_rating_guide'] ?>"><?= $data['age_rating'] ?></abbr>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endif ?>
|
2016-04-14 17:51:00 -04:00
|
|
|
<tr>
|
|
|
|
<td>Genres</td>
|
|
|
|
<td>
|
|
|
|
<?= implode(', ', $data['genres']); ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2018-11-08 12:15:30 -05:00
|
|
|
|
|
|
|
<br />
|
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>
|
2020-07-30 15:16:24 -04:00
|
|
|
<?php foreach ($data['titles_more'] as $title): ?>
|
2018-08-20 12:58:56 -04:00
|
|
|
<h3><?= $title ?></h3>
|
|
|
|
<?php endforeach ?>
|
2016-04-14 17:51:00 -04:00
|
|
|
|
|
|
|
<br />
|
2019-05-08 16:08:51 -04:00
|
|
|
<div class="description">
|
|
|
|
<p><?= str_replace("\n", '</p><p>', $data['synopsis']) ?></p>
|
|
|
|
</div>
|
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
|
|
|
|
2018-11-08 12:15:30 -05:00
|
|
|
<?php if (count($data['characters']) > 0): ?>
|
2018-10-29 14:43:06 -04:00
|
|
|
<h2>Characters</h2>
|
2018-11-08 12:15:30 -05:00
|
|
|
|
2020-08-21 19:25:27 -04:00
|
|
|
<?= $component->tabs('manga-characters', $data['characters'], static function($list, $role) use ($component, $helper, $url) {
|
|
|
|
$rendered = [];
|
|
|
|
foreach ($list as $id => $char)
|
|
|
|
{
|
|
|
|
$rendered[] = $component->character(
|
|
|
|
$char['name'],
|
|
|
|
$url->generate('character', ['slug' => $char['slug']]),
|
|
|
|
$helper->picture("images/characters/{$id}.webp"),
|
|
|
|
($role !== 'main') ? 'small-character' : 'character'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
return implode('', array_map('mb_trim', $rendered));
|
|
|
|
}) ?>
|
2017-03-31 16:36:22 -04:00
|
|
|
<?php endif ?>
|
2018-10-29 15:17:48 -04:00
|
|
|
|
2018-11-08 12:15:30 -05:00
|
|
|
<?php if (count($data['staff']) > 0): ?>
|
2018-10-29 15:17:48 -04:00
|
|
|
<h2>Staff</h2>
|
|
|
|
|
2020-08-21 19:25:27 -04:00
|
|
|
<?= $component->verticalTabs('manga-staff', $data['staff'],
|
|
|
|
fn($people) => implode('', array_map(
|
|
|
|
fn ($person) => $component->character(
|
|
|
|
$person['name'],
|
|
|
|
$url->generate('person', ['id' => $person['id'], 'slug' => $person['slug']]),
|
|
|
|
$helper->picture("images/people/{$person['id']}.webp")
|
|
|
|
),
|
|
|
|
$people
|
|
|
|
))
|
|
|
|
) ?>
|
2018-10-29 15:17:48 -04:00
|
|
|
<?php endif ?>
|
2016-04-14 17:51:00 -04:00
|
|
|
</main>
|