aboutsummaryrefslogtreecommitdiff
path: root/app/layout/header.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-29 00:57:08 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-29 00:57:08 +0200
commit9820345eec3958e9df1b1f8daaaa776de0d333e5 (patch)
treee85c0890ca77be78c858e0c3f0e4721f779cb28f /app/layout/header.phtml
parent00bac232e0976a2ca09e7c4e73956cd802176480 (diff)
Revue de code pour la récupération des articles : ATTENTION GROS CHANGEMENTS, aucune garantie de stabilité et possibles régressions. La recherche dans le contenu des articles fonctionnent et possibilité de rechercher des tags
Diffstat (limited to 'app/layout/header.phtml')
-rw-r--r--app/layout/header.phtml15
1 files changed, 13 insertions, 2 deletions
diff --git a/app/layout/header.phtml b/app/layout/header.phtml
index d6fe41950..4b62a9003 100644
--- a/app/layout/header.phtml
+++ b/app/layout/header.phtml
@@ -15,10 +15,21 @@
</div>
<div class="item search">
- <form action="<?php echo _url ('index', 'index'); ?>" method="get">
+ <?php
+ $params = Request::params ();
+ if (isset ($params['search'])) {
+ unset ($params['search']);
+ }
+ $url = array (
+ 'c' => 'index',
+ 'a' => 'index',
+ 'params' => $params
+ );
+ ?>
+ <form action="<?php echo Url::display ($url); ?>" method="post">
<div class="stick">
<?php $s = Request::param ('search', ''); ?>
- <input type="text" name="search" id="search" value="<?php echo $s; ?>" placeholder="<?php echo Translate::t ('search_on_title'); ?>" />
+ <input type="text" name="search" id="search" value="<?php echo $s; ?>" placeholder="<?php echo Translate::t ('search'); ?>" />
<button class="btn" type="submit"><i class="icon i_search"></i></button>
</div>
</form>