2016-03-07 14:37:49 -05:00
|
|
|
<main class="details">
|
|
|
|
<section class="flex flex-no-wrap">
|
|
|
|
<div>
|
2017-01-13 16:49:46 -05:00
|
|
|
<img class="cover" src="<?= $data['cover_image'] ?>" alt="" />
|
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>
|
|
|
|
<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>
|
|
|
|
<td><?= $data['show_type'] ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Episode Count</td>
|
2017-01-12 15:41:20 -05:00
|
|
|
<td><?= $data['episode_count'] ?? '-' ?></td>
|
2016-03-07 14:37:49 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Episode Length</td>
|
|
|
|
<td><?= $data['episode_length'] ?> minutes</td>
|
|
|
|
</tr>
|
2017-01-12 15:41:20 -05:00
|
|
|
<?php if ( ! empty($data['age_rating'])): ?>
|
2016-03-07 14:37:49 -05:00
|
|
|
<tr>
|
|
|
|
<td>Age Rating</td>
|
2016-12-22 21:36:23 -05:00
|
|
|
<td><abbr title="<?= $data['age_rating_guide'] ?>"><?= $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>
|
2016-12-22 21:36:23 -05:00
|
|
|
<?= implode(', ', $data['genres']) ?>
|
2016-03-07 14:37:49 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div>
|
2017-01-05 22:24:45 -05:00
|
|
|
<h2><a rel="external" href="<?= $data['url'] ?>"><?= array_shift($data['titles']) ?></a></h2>
|
|
|
|
<?php foreach ($data['titles'] as $title): ?>
|
|
|
|
<h3><?= $title ?></h3>
|
|
|
|
<?php endforeach ?>
|
2016-03-07 14:37:49 -05:00
|
|
|
<br />
|
|
|
|
<p><?= nl2br($data['synopsis']) ?></p>
|
2017-01-13 16:49:46 -05:00
|
|
|
<?php if (count($data['streaming_links']) > 0): ?>
|
|
|
|
<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>
|
2017-02-16 14:30:39 -05:00
|
|
|
<?php foreach($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): ?>
|
|
|
|
<a href="<?= $link['link'] ?>" title="Stream '<?= $data['title'] ?>' on <?= $link['meta']['name'] ?>">
|
|
|
|
<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 ?>
|
|
|
|
<?php /*<pre><?= print_r($data, TRUE) ?></pre> */ ?>
|
2016-03-07 14:37:49 -05:00
|
|
|
</div>
|
|
|
|
</section>
|
2016-02-01 09:49:18 -05:00
|
|
|
</main>
|