X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fsearchaction.php;h=b994e20296b895078722ad028fe8b36defdf507b;hb=fb4b004435403dd0d4126a0c11c9fa5c557e9dba;hp=14c3ed016d15aaeb0bcc4aff664676c20da080f9;hpb=59119482ca34540bd7f0a2a1aa994de1d5328ea2;p=quix0rs-gnu-social.git diff --git a/lib/searchaction.php b/lib/searchaction.php index 14c3ed016d..b994e20296 100644 --- a/lib/searchaction.php +++ b/lib/searchaction.php @@ -62,21 +62,6 @@ class SearchAction extends Action $this->showPage(); } - /** - * Show tabset for this page - * - * Uses the SearchGroupNav widget - * - * @return void - * @see SearchGroupNav - */ - - function showLocalNav() - { - $nav = new SearchGroupNav($this, $this->trimmed('q')); - $nav->show(); - } - function showTop($arr=null) { $error = null; @@ -99,10 +84,6 @@ class SearchAction extends Action return null; } - function showNoticeForm() { - // remote post notice form - } - function showContent() { $this->showTop(); $this->showForm(); @@ -127,7 +108,8 @@ class SearchAction extends Action // TRANS: Used as a field label for the field where one or more keywords // TRANS: for searching can be entered. $this->input('q', _('Keyword(s)'), $q); - $this->submit('search', _m('BUTTON','Search')); + // TRANS: Button text for searching site. + $this->element('input', array('type'=>'submit', 'class'=>'submit', 'value'=>_m('BUTTON','Search'))); $this->elementEnd('li'); $this->elementEnd('ul'); $this->elementEnd('fieldset'); @@ -138,39 +120,30 @@ class SearchAction extends Action } function searchSuggestions($q) { - // @todo FIXME: This formatting does not make this string get picked up by gettext. - // TRANS: Standard search suggestions shown when a search does not give any results. - $message = _(<<elementStart('dl', array('id' => 'help_search', 'class' => 'help')); - // TRANS: Definition list item with instructions on how to get (better) search results. - $this->element('dt', null, _('Search help')); - $this->elementStart('dd', 'instructions'); + $this->elementStart('div', 'help instructions'); $this->raw(common_markup_to_html($message)); - $this->elementEnd('dd'); $this->elementEnd('div'); } }