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-10-05 21:32:15 -04:00
|
|
|
<picture class="cover">
|
|
|
|
<source srcset="<?= $urlGenerator->assetUrl("images/anime/{$show_data['id']}-original.webp") ?>" type="image/webp">
|
|
|
|
<source srcset="<?= $urlGenerator->assetUrl("images/anime/{$show_data['id']}-original.jpg") ?>" type="image/jpeg">
|
|
|
|
<img src="<?= $urlGenerator->assetUrl("images/anime/{$show_data['id']}-original.jpg") ?>" alt="" />
|
|
|
|
</picture>
|
2016-03-07 14:37:49 -05:00
|
|
|
<br />
|
|
|
|
<br />
|
2017-01-13 16:49:46 -05:00
|
|
|
<table class="media_details">
|
2017-01-05 22:24:45 -05:00
|
|
|
<tr>
|
2016-03-07 14:37:49 -05:00
|
|
|
<td class="align_right">Airing Status</td>
|
2018-01-30 14:02:28 -05:00
|
|
|
<td><?= $show_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-01-30 14:02:28 -05:00
|
|
|
<td><?= $show_data['show_type'] ?></td>
|
2016-03-07 14:37:49 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Episode Count</td>
|
2018-01-30 14:02:28 -05:00
|
|
|
<td><?= $show_data['episode_count'] ?? '-' ?></td>
|
2016-03-07 14:37:49 -05:00
|
|
|
</tr>
|
2018-01-30 16:57:13 -05:00
|
|
|
<?php if ( ! empty($show_data['episode_length'])): ?>
|
2016-03-07 14:37:49 -05:00
|
|
|
<tr>
|
|
|
|
<td>Episode Length</td>
|
2018-01-30 14:02:28 -05:00
|
|
|
<td><?= $show_data['episode_length'] ?> minutes</td>
|
2016-03-07 14:37:49 -05:00
|
|
|
</tr>
|
2018-01-30 16:57:13 -05:00
|
|
|
<?php endif ?>
|
2018-01-30 14:02:28 -05:00
|
|
|
<?php if ( ! empty($show_data['age_rating'])): ?>
|
2016-03-07 14:37:49 -05:00
|
|
|
<tr>
|
|
|
|
<td>Age Rating</td>
|
2018-01-30 14:02:28 -05:00
|
|
|
<td><abbr title="<?= $show_data['age_rating_guide'] ?>"><?= $show_data['age_rating'] ?></abbr></td>
|
2016-03-07 14:37:49 -05:00
|
|
|
</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-01-30 14:02:28 -05:00
|
|
|
<?= implode(', ', $show_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-08-08 10:12:45 -04:00
|
|
|
<h2><a rel="external" href="<?= $show_data['url'] ?>"><?= $show_data['title'] ?></a></h2>
|
2018-01-30 14:02:28 -05:00
|
|
|
<?php foreach ($show_data['titles'] as $title): ?>
|
2017-01-05 22:24:45 -05:00
|
|
|
<h3><?= $title ?></h3>
|
|
|
|
<?php endforeach ?>
|
2016-03-07 14:37:49 -05:00
|
|
|
<br />
|
2018-01-30 14:02:28 -05:00
|
|
|
<p><?= nl2br($show_data['synopsis']) ?></p>
|
|
|
|
<?php if (count($show_data['streaming_links']) > 0): ?>
|
2017-01-13 16:49:46 -05:00
|
|
|
<hr />
|
|
|
|
<h4>Streaming on:</h4>
|
|
|
|
<table class="full_width invisible">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="align_left">Service</th>
|
|
|
|
<th>Subtitles</th>
|
|
|
|
<th>Dubs</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-01-30 14:02:28 -05:00
|
|
|
<?php foreach($show_data['streaming_links'] as $link): ?>
|
2017-01-13 16:49:46 -05:00
|
|
|
<tr>
|
|
|
|
<td class="align_left">
|
2017-02-16 14:30:39 -05:00
|
|
|
<?php if ($link['meta']['link'] !== FALSE): ?>
|
2018-01-30 14:02:28 -05:00
|
|
|
<a href="<?= $link['link'] ?>" title="Stream '<?= $show_data['title'] ?>' on <?= $link['meta']['name'] ?>">
|
2017-02-16 14:30:39 -05:00
|
|
|
<img class="streaming-logo" width="50" height="50" src="<?= $urlGenerator->assetUrl('images', $link['meta']['image']) ?>" alt="<?= $link['meta']['name'] ?> logo" />
|
|
|
|
<?= $link['meta']['name'] ?>
|
2017-01-13 16:49:46 -05:00
|
|
|
</a>
|
|
|
|
<?php else: ?>
|
2017-02-16 14:30:39 -05:00
|
|
|
<img class="streaming-logo" width="50" height="50" src="<?= $urlGenerator->assetUrl('images', $link['meta']['image']) ?>" alt="<?= $link['meta']['name'] ?> logo" />
|
|
|
|
<?= $link['meta']['name'] ?>
|
2017-01-13 16:49:46 -05:00
|
|
|
<?php endif ?>
|
|
|
|
</td>
|
2017-02-16 14:30:39 -05:00
|
|
|
<td><?= implode(', ', $link['subs']) ?></td>
|
|
|
|
<td><?= implode(', ', $link['dubs']) ?></td>
|
2017-01-13 16:49:46 -05:00
|
|
|
</tr>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<?php endif ?>
|
2018-01-31 10:55:20 -05:00
|
|
|
<?php if ( ! empty($show_data['trailer_id'])): ?>
|
|
|
|
<hr />
|
|
|
|
<h4>Trailer</h4>
|
|
|
|
<iframe width="560" height="315" src="https://www.youtube.com/embed/<?= $show_data['trailer_id'] ?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
|
|
|
|
<?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
|
|
|
|
2017-03-20 13:14:01 -04:00
|
|
|
<?php if (count($characters) > 0): ?>
|
2018-10-29 14:43:06 -04:00
|
|
|
<br />
|
2018-10-29 09:39:56 -04:00
|
|
|
<hr />
|
2017-03-20 13:14:01 -04:00
|
|
|
<h2>Characters</h2>
|
2018-10-29 09:39:56 -04:00
|
|
|
<?php foreach($characters as $role => $list): ?>
|
|
|
|
<h3><?= ucfirst($role) ?></h3>
|
2018-10-26 13:08:45 -04:00
|
|
|
<section class="media-wrap flex flex-wrap flex-justify-start">
|
2018-10-29 09:39:56 -04:00
|
|
|
<?php foreach($list as $id => $char): ?>
|
2017-03-20 19:08:33 -04:00
|
|
|
<?php if ( ! empty($char['image']['original'])): ?>
|
2017-03-31 16:36:22 -04:00
|
|
|
<article class="character">
|
2017-03-20 13:14:01 -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-20 13:14:01 -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-20 13:14:01 -04:00
|
|
|
</a>
|
2017-03-31 16:36:22 -04:00
|
|
|
</article>
|
2017-03-20 13:14:01 -04:00
|
|
|
<?php endif ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
2018-10-29 14:43:06 -04:00
|
|
|
<?php endforeach ?>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if (count($staff) > 0): ?>
|
|
|
|
<br />
|
|
|
|
<hr />
|
|
|
|
<h2>Staff</h2>
|
|
|
|
|
|
|
|
<?php foreach($staff as $role => $people): ?>
|
|
|
|
<h3><?= $role ?></h3>
|
|
|
|
<section class='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 ?>">
|
|
|
|
<picture>
|
|
|
|
<source
|
|
|
|
srcset="<?= $urlGenerator->assetUrl("images/people/{$pid}.webp") ?>"
|
|
|
|
type="image/webp"
|
|
|
|
>
|
|
|
|
<source
|
|
|
|
srcset="<?= $urlGenerator->assetUrl("images/people/{$pid}.jpg") ?>"
|
|
|
|
type="image/jpeg"
|
|
|
|
>
|
|
|
|
<img src="<?= $urlGenerator->assetUrl("images/people/{$pid}.jpg") ?>" alt="" />
|
|
|
|
</picture>
|
|
|
|
</a>
|
|
|
|
</article>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
<?php endforeach ?>
|
2017-03-31 16:36:22 -04:00
|
|
|
<?php endif ?>
|
2016-02-01 09:49:18 -05:00
|
|
|
</main>
|