]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add instructions to people search
authorEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 22:17:54 +0000 (18:17 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 22:17:54 +0000 (18:17 -0400)
darcs-hash:20080709221754-84dde-1ad060768f3d4cd9ac8238474e1e418482c15843.gz

actions/peoplesearch.php

index 8e9193a6e86d6fd229a6a3f01ddf5d5c991bfa83..bfabb46e1175b2d738be7da00687e960469c0a04 100644 (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) {