diff options
author | raylu <raylu@mixpanel.com> | 2011-07-17 18:35:17 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-17 18:54:20 -0700 |
commit | 467a1f8635ca93a48024fb80b4b44b4f979a2505 (patch) | |
tree | 786390aec8dca58a489d7fd4b03957239a1c6fa7 /views | |
parent | f5e76dbc7caeda4bc4984f00753220fe3bfbb7b2 (diff) | |
download | otakuhub-467a1f8635ca93a48024fb80b4b44b4f979a2505.tar.xz |
minor style fixes
Diffstat (limited to 'views')
-rw-r--r-- | views/anime/index.html.php | 2 | ||||
-rw-r--r-- | views/anime/view.html.php | 56 | ||||
-rw-r--r-- | views/pages/home.html.php | 8 |
3 files changed, 34 insertions, 32 deletions
diff --git a/views/anime/index.html.php b/views/anime/index.html.php index 270ed76..6b1adc0 100644 --- a/views/anime/index.html.php +++ b/views/anime/index.html.php @@ -1,5 +1,5 @@ <?php -$this->styles($this->html->style('anime')); +$this->styles($this->html->style('table')); $this->styles($this->html->style('pagination')); ?> diff --git a/views/anime/view.html.php b/views/anime/view.html.php index 11ac437..ce291c5 100644 --- a/views/anime/view.html.php +++ b/views/anime/view.html.php @@ -63,33 +63,35 @@ for ($i = 0; $i < count($anime->genres); $i++) { </p> </aside> -<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 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; ?> <br class="cl"> diff --git a/views/pages/home.html.php b/views/pages/home.html.php index 53cc58d..227a18b 100644 --- a/views/pages/home.html.php +++ b/views/pages/home.html.php @@ -69,13 +69,13 @@ $this->styles($this->html->style("/css/home.css")); <h2 class="ribbon">Why you'll ♡ OtakuHub~</h2> <div class="triangle-ribbon"></div> <br class="cl" /> -<h3>For Us By Us</h3> +<h3>For us by us</h3> <p> - Built by Otakus for Otakus, we know what you want, and we work tirelessly to give it to you. + Built by otakus for otakus. We know what you want and we work tirelessly to give it to you. </p> -<h3>Data Portability</h3> +<h3>Data portability</h3> <p> - Move your data between AnimePlanet AnimeDB or MAL or export your list for your own records + Move your data between AnimePlanet AnimeDB or MAL or export your list for your own records. </p> <h3>Meet others</h3> <p> |