From 4c26cb1a81471839b62134ff559aece2686d6b91 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 2 Dec 2008 14:38:57 -0500 Subject: [PATCH] add instructions to the public page for people who aren't logged in darcs-hash:20081202193857-5ed1f-1705c3f615b96790dcae30ec240c25721ea443cc.gz --- actions/public.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/actions/public.php b/actions/public.php index b7a14d8dce..598e053ae2 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'), -- 2.39.5