summaryrefslogtreecommitdiffstats
path: root/views/anime/view.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/anime/view.html.php')
-rw-r--r--views/anime/view.html.php117
1 files changed, 68 insertions, 49 deletions
diff --git a/views/anime/view.html.php b/views/anime/view.html.php
index 4a3b8c9..1b0eb0c 100644
--- a/views/anime/view.html.php
+++ b/views/anime/view.html.php
@@ -1,58 +1,77 @@
-<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><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; ?>
-</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/>
-
-<h2 class="ribbon">Statistics</h2>
-Score: <br/>
-Ranked: <br/>
-Popularity: <br/>
-Members:<br/>
-Favorited by: over 9000 Users<br/>
+<?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="/producer/view/' . $anime->genres[$i] . '">' . $anime->genres[$i] . '</a>';
+} ?><?= $str ?><br>
+Duration: <?= $anime->episode_duration ?><br>
+Rating: <?= $anime->rated ?><br>
+Related: <?= $related ?>
+</p></section>
-<h2 class="ribbon"> My Info </h2>
-<hr/>
-<!-- End Sidebar -->
-</div>
-<div class="grid_8" id="content">
-<!-- Start Content -->
-<h2>Synopsis</h2>
-<hr/>
-<?= $content->synopsis ?>
+<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>
+<br class="cl">
-<h2>Related Animes</h2>
-<hr/>
+<h2 class="ribbon">Synopsis</h2>
+<div class="triangle-ribbon"></div>
+<br class="cl">
+<p><?= $anime->synopsis ?></p>
-<h2>Characters And VA's </h2>
-<hr/>
-<?php foreach($content->cast as $char): ?>
+<h2 class="ribbon">Characters and VA's</h2>
+<div class="triangle-ribbon"></div>
+<br class="cl">
+<?php foreach($anime->cast as $char): ?>
<?= $char->character ?>
<?= $char->role ?>
Played by:
@@ -65,4 +84,4 @@ Played by:
<?php endforeach; ?>
</div>
<br class="cl"/>
-</div> \ No newline at end of file
+</div>