|
|
@@ -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 ?>
|