X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsearchaction.php;h=cc640b739245d341b71dd5fb6b5331af2a24b0dc;hb=fb70dc02362155c8951a1a0ad66a668f1f857ca5;hp=67d0bcdeb84c57598c7d11ce99650d7daaa03e38;hpb=e109b2592f86dec977922bc4474dde36aed109cb;p=quix0rs-gnu-social.git diff --git a/lib/searchaction.php b/lib/searchaction.php index 67d0bcdeb8..cc640b7392 100644 --- a/lib/searchaction.php +++ b/lib/searchaction.php @@ -51,31 +51,17 @@ class SearchAction extends Action * * @return boolean true */ - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; } - function handle($args) + function handle(array $args=array()) { parent::handle($args); $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; @@ -98,10 +84,6 @@ class SearchAction extends Action return null; } - function showNoticeForm() { - // remote post notice form - } - function showContent() { $this->showTop(); $this->showForm(); @@ -127,7 +109,7 @@ class SearchAction extends Action // TRANS: for searching can be entered. $this->input('q', _('Keyword(s)'), $q); // TRANS: Button text for searching site. - $this->submit('search', _m('BUTTON','Search')); + $this->element('input', array('type'=>'submit', 'class'=>'submit', 'value'=>_m('BUTTON','Search'))); $this->elementEnd('li'); $this->elementEnd('ul'); $this->elementEnd('fieldset'); @@ -138,37 +120,30 @@ class SearchAction extends Action } function searchSuggestions($q) { - // @todo FIXME: i18n issue: 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('div', 'help instructions'); $this->raw(common_markup_to_html($message)); $this->elementEnd('div'); - - $this->elementEnd('div'); } }