diff options
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 ?> |