summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-17 17:35:41 -0700
committerraylu <raylu@mixpanel.com>2011-07-17 17:35:41 -0700
commit2baaf56e140a06eed8fe0b1d28d744d34a537d49 (patch)
tree1f410c05a51bf46c8970f418c40e2660fa11bfbf /views
parent384834c9fb85d3a408c60dd38e8d1474116793ad (diff)
downloadotakuhub-2baaf56e140a06eed8fe0b1d28d744d34a537d49.tar.xz
cast (chars/VAs) on anime view page
there isn't yet a views/anime/cast.html.php for non-JS, but the controller is set up for it
Diffstat (limited to 'views')
-rw-r--r--views/anime/view.html.php51
1 files changed, 31 insertions, 20 deletions
diff --git a/views/anime/view.html.php b/views/anime/view.html.php
index 1b0eb0c..a722935 100644
--- a/views/anime/view.html.php
+++ b/views/anime/view.html.php
@@ -10,7 +10,7 @@ $this->styles($this->html->style('view'));
<img src="<?=$anime->image ?>" alt="<?= $anime->title ?>">
</aside>
-<section><p>
+<section id="info"><p>
<?php if(isset($anime->foreign_titles)):
$str = 'Foreign titles:';
for ($i = 0; $i < count($anime->foreign_titles); $i++) {
@@ -44,12 +44,13 @@ 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 .= ' <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>
+</p>
+</section>
<aside id="malstats">
<h2>MAL Stats</h2>
@@ -61,27 +62,37 @@ Popularity: <?= $anime->mal_popularity ?><br>
Members: <?= $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>
-<h2 class="ribbon">Characters and VA's</h2>
-<div class="triangle-ribbon"></div>
-<br class="cl">
+<section id="cast">
+<p>
+<a href="/anime/cast/<?= $anime->special_id ?>" onclick="return toggleCast()">Cast &#x2193;</a>
+</p>
+<p><table>
<?php foreach($anime->cast as $char): ?>
-<?= $char->character ?>
-<?= $char->role ?>
-Played by:
+ <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>
+</table></p>
+<p id="castlink">
+<a href="" onclick="return toggleCast()">Cast &#x2191;</a>
+</p>
+</section>
+
+<br class="cl">
+
+<h2 class="ribbon">Synopsis</h2>
+<div class="triangle-ribbon"></div>
+<br class="cl">
+<p><?= $anime->synopsis ?></p>