| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?php
- $this->styles($this->html->style('view'));
- ?>
- <h2 class="ribbon full"><?= $anime->title ?></h2>
- <div class="triangle-ribbon"></div>
- <br class="cl">
- <aside id="img">
- <img src="<?=$anime->image ?>" alt="<?= $anime->title ?>">
- </aside>
- <section id="info"><p>
- <?php if(isset($anime->foreign_titles)):
- $str = 'Foreign titles:';
- for ($i = 0; $i < count($anime->foreign_titles); $i++) {
- if ($i > 0) $str .= '<b>,</b>';
- $str .= ' ' . $anime->foreign_titles[$i];
- }
- $str .= '<br>';
- ?>
- <?= $str ?>
- <?php endif; ?>
- <?php if(isset($anime->alternative_titles)):
- $str = 'Alternative titles:';
- for ($i = 0; $i < count($anime->alternative_titles); $i++) {
- if ($i > 0) $str .= '<b>,</b>';
- $str .= ' ' . $anime->alternative_titles[$i];
- }
- $str .= '<br>';
- ?>
- <?= $str ?>
- <?php endif; ?>
- Type: <?= $anime->view_type ?><br>
- Episodes: <?= $anime->episode_count ?><br>
- Aired: <?= $anime->aired ?><br>
- Producers: <?php
- $str = '';
- for ($i = 0; $i < count($anime->producers); $i++) {
- if ($i > 0) $str .= ',';
- $str .= ' <a href="/producer/view/' . $anime->producers[$i] . '">' . $anime->producers[$i] . '</a>';
- } ?><?= $str ?><br>
- Genres: <?php
- $str = '';
- for ($i = 0; $i < count($anime->genres); $i++) {
- if ($i > 0) $str .= ',';
- $str .= ' <a href="/genre/view/' . $anime->genres[$i] . '">' . $anime->genres[$i] . '</a>';
- } ?><?= $str ?><br>
- Duration: <?= $anime->episode_duration ?><br>
- Rating: <?= $anime->rated ?><br>
- Related: <?= $related ?>
- </p>
- </section>
- <aside id="malstats">
- <h2>MAL Stats</h2>
- <p>
- Score: <?= $anime->mal_score ?><br>
- Votes: <?= $anime->mal_score_voted ?><br>
- Ranked: <?= $anime->mal_rank ?><br>
- Popularity: <?= $anime->mal_popularity ?><br>
- Members: <?= $anime->mal_score ?>
- </p>
- </aside>
- <section id="cast">
- <p>
- <a href="/anime/cast/<?= $anime->special_id ?>" onclick="return toggleCast()">Cast ↓</a>
- </p>
- <table>
- <?php foreach($anime->cast as $char): ?>
- <tr>
- <td colspan="3">
- <?= $char->character ?>
- </td>
- </tr>
- <?php if (isset($char->people)): ?>
- <?php foreach($char->people as $actor): ?>
- <tr>
- <td></td>
- <td><?= $actor->name ?></td>
- <td><?= $actor->language ?></td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
- <?php endforeach; ?>
- </table>
- <br>
- <p id="castlink">
- <a href="" onclick="return toggleCast()">Cast ↑</a>
- </p>
- </section>
- <br class="cl">
- <h2 class="ribbon">Synopsis</h2>
- <div class="triangle-ribbon"></div>
- <br class="cl">
- <p><?= $anime->synopsis ?></p>
|