aboutsummaryrefslogtreecommitdiff
path: root/app/layout
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-05 18:06:58 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-05 18:06:58 +0100
commitab14fcd190e47bd0fcb97165ef2954cc836a8052 (patch)
tree59254af3c5ed8a28e502be4b001b85608f67ceef /app/layout
parent4038bc885ceaef2f2b991d1deb191a71408123a7 (diff)
Recherche mobile
Implémente https://github.com/marienfressinaud/FreshRSS/issues/305
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/nav_menu.phtml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml
index 5154b4aae..f3e985dc0 100644
--- a/app/layout/nav_menu.phtml
+++ b/app/layout/nav_menu.phtml
@@ -175,4 +175,26 @@
</li>
</ul>
</div>
+
+ <div class="item search">
+ <form action="<?php echo _url ('index', 'index'); ?>" method="get">
+ <?php $search = Request::param ('search', ''); ?>
+ <input type="search" name="search" value="<?php echo $search; ?>" placeholder="<?php echo Translate::t ('search_short'); ?>" />
+
+ <?php $get = Request::param ('get', ''); ?>
+ <?php if($get != '') { ?>
+ <input type="hidden" name="get" value="<?php echo $get; ?>" />
+ <?php } ?>
+
+ <?php $order = Request::param ('order', ''); ?>
+ <?php if($order != '') { ?>
+ <input type="hidden" name="order" value="<?php echo $order; ?>" />
+ <?php } ?>
+
+ <?php $state = Request::param ('state', ''); ?>
+ <?php if($state != '') { ?>
+ <input type="hidden" name="state" value="<?php echo $state; ?>" />
+ <?php } ?>
+ </form>
+ </div>
</div>