diff options
author | raylu <raylu@mixpanel.com> | 2011-07-16 22:58:09 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-16 23:07:36 -0700 |
commit | 994c36b8279480b6e3374017140e36d77401d3a4 (patch) | |
tree | bf93a3b31be862ead08433df2bec7c0481fcc0f0 /views/search/index.html.php | |
parent | 5cc64bc633e8ff287cf7bb16ab1a8b8d2afb29b3 (diff) | |
download | otakuhub-994c36b8279480b6e3374017140e36d77401d3a4.tar.xz |
add manga to search/index
Diffstat (limited to 'views/search/index.html.php')
-rw-r--r-- | views/search/index.html.php | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/views/search/index.html.php b/views/search/index.html.php index bee0bb8..1672570 100644 --- a/views/search/index.html.php +++ b/views/search/index.html.php @@ -5,27 +5,29 @@ $this->styles($this->html->style('search')); <?= $this->_render('element', 'search') ?> +<?php if(count($anime) > 0): ?> <h2 class="ribbon">Anime</h2> <div class="triangle-ribbon"></div> -<?= $this->_render('element', 'animetable', compact('anime')) ?> -<p class="more"> -<a href="/search/anime/?q=<?= $q ?>">More</a> -</p> + <?= $this->_render('element', 'animetable') ?> + <p class="more"> + <a href="/search/anime/?q=<?= $q ?>">More</a> + </p> +<?php endif ?> +<?php if(count($manga) > 0): ?> <h2 class="ribbon">Manga</h2> <div class="triangle-ribbon"></div> -<p>results</p> -<?php if(count($manga) > 0): ?> -<p class="more"> -<a href="/search/manga/?q=<?= $q ?>">More</a> -</p> + <?= $this->_render('element', 'mangatable') ?> + <p class="more"> + <a href="/search/manga/?q=<?= $q ?>">More</a> + </p> <?php endif ?> +<?php if(count($kdrama) > 0): ?> <h2 class="ribbon">K-Drama</h2> <div class="triangle-ribbon"></div> -<?= $this->_render('element', 'kdramatable', compact('anime')) ?> -<?php if(count($kdrama) > 0): ?> -<p class="more"> -<a href="/search/kdrama/?q=<?= $q ?>">More</a> -</p> + <?= $this->_render('element', 'kdramatable') ?> + <p class="more"> + <a href="/search/kdrama/?q=<?= $q ?>">More</a> + </p> <?php endif ?> |