diff options
-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 | ||||
-rw-r--r-- | webroot/css/search.css | 1 | ||||
-rw-r--r-- | webroot/css/view.css | 1 |
5 files changed, 36 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> diff --git a/webroot/css/search.css b/webroot/css/search.css index 20ea164..6ac8596 100644 --- a/webroot/css/search.css +++ b/webroot/css/search.css @@ -19,6 +19,7 @@ p.more a { background: -webkit-linear-gradient(top, #ddd, #bbb); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dddddd', endColorstr='#bbbbbb'); color: #111; + outline: none; } p.more a:hover { background: #eee; diff --git a/webroot/css/view.css b/webroot/css/view.css index 7d10164..d5734a1 100644 --- a/webroot/css/view.css +++ b/webroot/css/view.css @@ -26,6 +26,7 @@ section#cast a { background: -webkit-linear-gradient(top, #ddd, #bbb); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dddddd', endColorstr='#bbbbbb'); color: #111; + outline: none; } section#cast a:hover { background: #eee; |