| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?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 = '<b>Foreign titles:</b>';
- 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 = '<b>Alternative titles:</b>';
- 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; ?>
- <b>Type:</b> <?= $anime->view_type ?><br>
- <b>Episodes:</b> <?= $anime->episode_count ?><br>
- <b>Aired:</b> <?= $anime->aired ?><br>
- <b>Producers:</b> <?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>
- <b>Genres:</b> <?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>
- <b>Duration:</b> <?= $anime->episode_duration ?><br>
- <b>Rating:</b> <?= $anime->rated ?><br>
- <b>Related:</b> <?php
- $str = '';
- $keys = array_keys($related);
- for ($i = 0; $i < count($keys); $i++) {
- if ($i > 0) $str .= ',';
- $str .= ' <a href="/anime/view/' . $related[$keys[$i]] . '">' . $keys[$i] . '</a>';
- } ?><?= $str ?>
- </p>
- <p>
- <a href="/animelist/add/<?= $anime->special_id ?>" id="add">Add</a>
- </p>
- <?php if (count($anime->cast) > 1): // why is this 1? ?>
- <section id="cast">
- <p>
- <a href="/anime/cast/<?= $anime->special_id ?>" onclick="return toggleCast()">Cast ↓</a>
- </p>
- <table>
- <?php for ($i = 0; $i < count($anime->cast); $i++): ?>
- <tr<? if ($i > 0) echo ' class="char"' ?>>
- <td colspan="3">
- <?= $anime->cast[$i]->character ?>
- </td>
- </tr>
- <?php if (isset($anime->cast[$i]->people)): ?>
- <?php foreach($anime->cast[$i]->people as $actor): ?>
- <tr>
- <td></td>
- <td><?= $actor->name ?></td>
- <td><?= $actor->language ?></td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
- <?php endfor; ?>
- </table>
- <br>
- <p id="castlink">
- <a href="" onclick="return toggleCast()">Cast ↑</a>
- </p>
- </section>
- <?php endif; ?>
- </section>
- <aside id="malstats">
- <h2>MAL Stats</h2>
- <p>
- <b>Score:</b> <?= $anime->mal_score ?><br>
- <b>Votes:</b> <?= $anime->mal_score_voted ?><br>
- <b>Ranked:</b> <?= $anime->mal_rank ?><br>
- <b>Popularity:</b> <?= $anime->mal_popularity ?><br>
- <b>Members:</b> <?= $anime->mal_score ?>
- </p>
- </aside>
- <br class="cl">
- <h2 class="ribbon">Synopsis</h2>
- <div class="triangle-ribbon"></div>
- <br class="cl">
- <p><?= $anime->synopsis ?></p>
|