diff options
author | Michael Francis <edude03@gmail.com> | 2011-07-17 20:38:31 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-07-17 20:38:31 -0400 |
commit | c9994190d2ba584e1eb95b6b47ff586da7b0f29f (patch) | |
tree | ff4d02327f8e988925036f7406c760dfba8791d3 /views/search/index.html.php | |
parent | 7be960630a8c0b4dab94245c73453b22db3f305e (diff) | |
parent | 2baaf56e140a06eed8fe0b1d28d744d34a537d49 (diff) | |
download | otakuhub-c9994190d2ba584e1eb95b6b47ff586da7b0f29f.tar.xz |
Merge branch 'master' of git.raylu.net:otakuhub
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 ?> |