X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsearchaction.php;h=450b04ba7a825140646f9e2a3a73eec9697761f4;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=7038424fab1733b2f73c21684fee4b4dda8f729b;hpb=31c1177970124cee31823cab3a11542c23b4126d;p=quix0rs-gnu-social.git diff --git a/lib/searchaction.php b/lib/searchaction.php index 7038424fab..450b04ba7a 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 showObjectNav() - { - $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,32 +120,27 @@ 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));