]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add instructions to the public page for people who aren't logged in
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 2 Dec 2008 19:38:57 +0000 (14:38 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 2 Dec 2008 19:38:57 +0000 (14:38 -0500)
darcs-hash:20081202193857-5ed1f-1705c3f615b96790dcae30ec240c25721ea443cc.gz

actions/public.php

index b7a14d8dce8302d18c4bff4d29b5308fe79b81d0..598e053ae2f22c816c8880e172b288249da551e9 100644 (file)
@@ -44,11 +44,23 @@ class PublicAction extends StreamAction {
        function show_top() {
                if (common_logged_in()) {
                        common_notice_form('public');
+               } else {
+                       $instr = $this->get_instructions();
+                       $output = common_markup_to_html($instr);
+                       common_element_start('div', 'instructions');
+                       common_raw($output);
+                       common_element_end('div');
                }
                
                $this->public_views_menu();
        }
 
+       function get_instructions() {
+               return _('This is %%site.name%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
+                                'based on the Free Software [Laconica](http://laconi.ca/) tool. [Read more](%%doc.about%%)' .
+                                '[Join now](%%action.register%%) to share notices about yourself with friends, family, and colleagues!');
+       }
+
        function show_header() {
                common_element('link', array('rel' => 'alternate',
                                                                         'href' => common_local_url('publicrss'),