2018-11-01 22:01:09 -04:00
|
|
|
<?php use function Aviat\AnimeClient\getLocalImg; ?>
|
2017-03-31 13:37:53 -04:00
|
|
|
<main class="details fixed">
|
2018-10-26 13:08:45 -04:00
|
|
|
<section class="flex">
|
|
|
|
<aside class="info">
|
2018-11-08 11:36:42 -05:00
|
|
|
<?= $helper->picture("images/anime/{$data['id']}-original.webp") ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
|
2016-03-07 14:37:49 -05:00
|
|
|
<br />
|
2018-11-01 22:01:09 -04:00
|
|
|
|
2018-11-02 10:48:20 -04:00
|
|
|
<table class="media-details">
|
2017-01-05 22:24:45 -05:00
|
|
|
<tr>
|
2018-11-02 10:48:20 -04:00
|
|
|
<td class="align-right">Airing Status</td>
|
2018-11-08 11:36:42 -05:00
|
|
|
<td><?= $data['status'] ?></td>
|
2017-01-05 22:24:45 -05:00
|
|
|
</tr>
|
2016-03-07 14:37:49 -05:00
|
|
|
<tr>
|
|
|
|
<td>Show Type</td>
|
2018-11-08 11:36:42 -05:00
|
|
|
<td><?= $data['show_type'] ?></td>
|
2016-03-07 14:37:49 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Episode Count</td>
|
2018-11-08 11:36:42 -05:00
|
|
|
<td><?= $data['episode_count'] ?? '-' ?></td>
|
2016-03-07 14:37:49 -05:00
|
|
|
</tr>
|
2018-11-08 11:36:42 -05:00
|
|
|
<?php if ( ! empty($data['episode_length'])): ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
<tr>
|
|
|
|
<td>Episode Length</td>
|
2018-11-08 11:36:42 -05:00
|
|
|
<td><?= $data['episode_length'] ?> minutes</td>
|
2018-11-01 22:01:09 -04:00
|
|
|
</tr>
|
2018-01-30 16:57:13 -05:00
|
|
|
<?php endif ?>
|
2018-11-08 11:36:42 -05:00
|
|
|
<?php if ( ! empty($data['age_rating'])): ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
<tr>
|
|
|
|
<td>Age Rating</td>
|
2018-11-08 11:36:42 -05:00
|
|
|
<td><abbr title="<?= $data['age_rating_guide'] ?>"><?= $data['age_rating'] ?></abbr>
|
2018-11-01 22:01:09 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-01-12 15:41:20 -05:00
|
|
|
<?php endif ?>
|
2016-03-07 14:37:49 -05:00
|
|
|
<tr>
|
|
|
|
<td>Genres</td>
|
|
|
|
<td>
|
2018-11-08 11:36:42 -05:00
|
|
|
<?= implode(', ', $data['genres']) ?>
|
2016-03-07 14:37:49 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2018-10-26 13:08:45 -04:00
|
|
|
</aside>
|
|
|
|
<article class="text">
|
2018-11-08 11:36:42 -05:00
|
|
|
<h2 class="toph"><a rel="external" href="<?= $data['url'] ?>"><?= $data['title'] ?></a></h2>
|
|
|
|
<?php foreach ($data['titles'] as $title): ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
<h3><?= $title ?></h3>
|
|
|
|
<?php endforeach ?>
|
2016-03-07 14:37:49 -05:00
|
|
|
<br />
|
2018-11-08 11:36:42 -05:00
|
|
|
<p class="description"><?= nl2br($data['synopsis']) ?></p>
|
|
|
|
<?php if (count($data['streaming_links']) > 0): ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
<hr />
|
|
|
|
<h4>Streaming on:</h4>
|
2018-11-05 11:22:35 -05:00
|
|
|
<table class="full-width invisible streaming-links">
|
2018-11-01 22:01:09 -04:00
|
|
|
<thead>
|
2017-01-13 16:49:46 -05:00
|
|
|
<tr>
|
2018-11-02 10:48:20 -04:00
|
|
|
<th class="align-left">Service</th>
|
2017-01-13 16:49:46 -05:00
|
|
|
<th>Subtitles</th>
|
|
|
|
<th>Dubs</th>
|
|
|
|
</tr>
|
2018-11-01 22:01:09 -04:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-11-08 11:36:42 -05:00
|
|
|
<?php foreach ($data['streaming_links'] as $link): ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
<tr>
|
2018-11-02 10:48:20 -04:00
|
|
|
<td class="align-left">
|
2018-11-01 22:01:09 -04:00
|
|
|
<?php if ($link['meta']['link'] !== FALSE): ?>
|
|
|
|
<a
|
|
|
|
href="<?= $link['link'] ?>"
|
2018-11-08 11:36:42 -05:00
|
|
|
title="Stream '<?= $data['title'] ?>' on <?= $link['meta']['name'] ?>"
|
2018-11-01 22:01:09 -04:00
|
|
|
>
|
2018-11-05 09:56:38 -05:00
|
|
|
<?= $helper->picture("images/{$link['meta']['image']}", 'svg', [
|
|
|
|
'class' => 'streaming-logo',
|
|
|
|
'width' => 50,
|
|
|
|
'height' => 50,
|
|
|
|
'alt' => "{$link['meta']['name']} logo",
|
|
|
|
]); ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
<?= $link['meta']['name'] ?>
|
|
|
|
</a>
|
|
|
|
<?php else: ?>
|
2018-11-05 09:56:38 -05:00
|
|
|
<?= $helper->picture("images/{$link['meta']['image']}", 'svg', [
|
|
|
|
'class' => 'streaming-logo',
|
|
|
|
'width' => 50,
|
|
|
|
'height' => 50,
|
|
|
|
'alt' => "{$link['meta']['name']} logo",
|
|
|
|
]); ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
<?= $link['meta']['name'] ?>
|
|
|
|
<?php endif ?>
|
|
|
|
</td>
|
|
|
|
<td><?= implode(', ', $link['subs']) ?></td>
|
|
|
|
<td><?= implode(', ', $link['dubs']) ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-01-13 16:49:46 -05:00
|
|
|
<?php endif ?>
|
2018-11-08 11:36:42 -05:00
|
|
|
<?php if ( ! empty($data['trailer_id'])): ?>
|
2018-11-05 09:56:38 -05:00
|
|
|
<div class="responsive-iframe">
|
2018-01-31 10:55:20 -05:00
|
|
|
<h4>Trailer</h4>
|
2018-11-01 22:01:09 -04:00
|
|
|
<iframe
|
2018-11-05 09:56:38 -05:00
|
|
|
width="560"
|
|
|
|
height="315"
|
2018-11-08 11:36:42 -05:00
|
|
|
src="https://www.youtube.com/embed/<?= $data['trailer_id'] ?>"
|
2018-11-05 09:56:38 -05:00
|
|
|
frameborder="0"
|
|
|
|
allow="autoplay; encrypted-media"
|
|
|
|
allowfullscreen
|
2018-11-01 22:01:09 -04:00
|
|
|
></iframe>
|
2018-11-05 09:56:38 -05:00
|
|
|
</div>
|
2018-01-31 10:55:20 -05:00
|
|
|
<?php endif ?>
|
2018-10-26 13:08:45 -04:00
|
|
|
</article>
|
2016-03-07 14:37:49 -05:00
|
|
|
</section>
|
2017-03-31 16:36:22 -04:00
|
|
|
|
2018-11-08 11:36:42 -05:00
|
|
|
<?php if (count($data['characters']) > 0): ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
<section>
|
|
|
|
<h2>Characters</h2>
|
|
|
|
|
|
|
|
<div class="tabs">
|
|
|
|
<?php $i = 0 ?>
|
2018-11-08 11:36:42 -05:00
|
|
|
<?php foreach ($data['characters'] as $role => $list): ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
<input
|
|
|
|
type="radio" name="character-types"
|
|
|
|
id="character-types-<?= $i ?>" <?= ($i === 0) ? 'checked' : '' ?> />
|
|
|
|
<label for="character-types-<?= $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-20 13:14:01 -04:00
|
|
|
</section>
|
2018-10-29 14:43:06 -04:00
|
|
|
<?php endif ?>
|
|
|
|
|
2018-11-08 11:36:42 -05:00
|
|
|
<?php if (count($data['staff']) > 0): ?>
|
|
|
|
<?php //dump($data['staff']); ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
<section>
|
|
|
|
<h2>Staff</h2>
|
2018-10-29 14:43:06 -04:00
|
|
|
|
2018-11-01 22:01:09 -04:00
|
|
|
<div class="vertical-tabs">
|
|
|
|
<?php $i = 0; ?>
|
2018-11-08 11:36:42 -05:00
|
|
|
<?php foreach ($data['staff'] as $role => $people): ?>
|
2018-11-01 22:01:09 -04:00
|
|
|
<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): ?>
|
2018-11-02 10:48:20 -04:00
|
|
|
<article class='character small-person'>
|
2018-11-01 22:01:09 -04:00
|
|
|
<?php $link = $url->generate('person', ['id' => $person['id']]) ?>
|
|
|
|
<div class="name">
|
|
|
|
<a href="<?= $link ?>">
|
|
|
|
<?= $person['name'] ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<a href="<?= $link ?>">
|
|
|
|
<?= $helper->picture(getLocalImg($person['image']['original'] ?? NULL)) ?>
|
|
|
|
</a>
|
|
|
|
</article>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
2018-10-29 14:43:06 -04:00
|
|
|
</div>
|
2018-11-01 22:01:09 -04:00
|
|
|
<?php $i++; ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</div>
|
|
|
|
</section>
|
2017-03-31 16:36:22 -04:00
|
|
|
<?php endif ?>
|
2016-02-01 09:49:18 -05:00
|
|
|
</main>
|