add instructions to people search

darcs-hash:20080709221754-84dde-1ad060768f3d4cd9ac8238474e1e418482c15843.gz
This commit is contained in:
Evan Prodromou 2008-07-09 18:17:54 -04:00
parent 1dfae4a0b3
commit 70d41055df
1 changed files with 13 additions and 0 deletions

View File

@ -30,7 +30,20 @@ class PeoplesearchAction extends Action {
$this->show_form();
}
function get_instructions() {
return _t('Search for people on %%site.name%% by their name, location, or interests.');
}
function show_top($error=NULL) {
if ($error) {
common_element('p', 'error', $error);
} else {
$instr = $this->get_instructions();
$output = common_markup_to_html($instr);
common_element_start('div', 'instructions');
common_raw($output);
common_element_end('div');
}
}
function show_form($error=NULL) {