summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/public.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/actions/public.php b/actions/public.php
index b7a14d8dc..598e053ae 100644
--- a/actions/public.php
+++ b/actions/public.php
@@ -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'),