diff options
Diffstat (limited to 'views/anime/view.html.php')
-rw-r--r-- | views/anime/view.html.php | 142 |
1 files changed, 86 insertions, 56 deletions
diff --git a/views/anime/view.html.php b/views/anime/view.html.php index 4a3b8c9..a722935 100644 --- a/views/anime/view.html.php +++ b/views/anime/view.html.php @@ -1,68 +1,98 @@ -<h2 class="ribbon full"><?= $content->title ?></h2> +<?php +$this->styles($this->html->style('view')); +?> + +<h2 class="ribbon full"><?= $anime->title ?></h2> <div class="triangle-ribbon"></div> -<br class="cl" /> +<br class="cl"> -<div class="container_12"> -<!-- Start Sidebar --> -<div class="grid_4" id="sidebar"> -<img src="<?=$content->image ?>" > +<aside id="img"> +<img src="<?=$anime->image ?>" alt="<?= $anime->title ?>"> +</aside> -<h2 class="ribbon"> Alternative Titles </h2> -<hr/> -<p> -<?php if(isset($content->alternative_titles)) : ?> -<?php foreach($content->alternative_titles as $title): ?> - <?= $title ?> -<?php endforeach; ?> +<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> -<h2> Information </h2> -<span> Type: <?= $content->view_type ?> </span> -Episodes: <?= $content->episode_count ?><br/> -Status: <?= $content->status ?><br/> -Aired: <?= $content->aired ?><br/> -Producers: <?php foreach($content->producers as $producer): ?> -<a href="/producer/view/<?= $producer ?>"><?= $producer ?></a>, -<?php endforeach; ?><br/> -Genres: <?php foreach($content->genres as $genres): ?> -<a href="/genres/view/<?= $genres ?>"><?= $genres ?></a>, -<?php endforeach ?><br/> -Duration: <?= $content->episode_duration ?><br/> -Rating: <?= $content->rating ?><br/> +</section> -<h2 class="ribbon">Statistics</h2> -Score: <br/> -Ranked: <br/> -Popularity: <br/> -Members:<br/> -Favorited by: over 9000 Users<br/> - -<h2 class="ribbon"> My Info </h2> -<hr/> -<!-- End Sidebar --> -</div> -<div class="grid_8" id="content"> -<!-- Start Content --> -<h2>Synopsis</h2> -<hr/> -<?= $content->synopsis ?> - -<h2>Related Animes</h2> -<hr/> +<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> -<h2>Characters And VA's </h2> -<hr/> -<?php foreach($content->cast as $char): ?> -<?= $char->character ?> -<?= $char->role ?> -Played by: +<section id="cast"> +<p> +<a href="/anime/cast/<?= $anime->special_id ?>" onclick="return toggleCast()">Cast ↓</a> +</p> +<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): ?> - <?= $actor->name ?> - <?= $actor->language ?> + <tr> + <td></td> + <td><?= $actor->name ?></td> + <td><?= $actor->language ?></td> + </tr> <?php endforeach; ?> <?php endif; ?> <?php endforeach; ?> -</div> -<br class="cl"/> -</div>
\ No newline at end of file +</table></p> +<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> |