summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-12-02 14:38:57 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-12-02 14:38:57 -0500
commit4c26cb1a81471839b62134ff559aece2686d6b91 (patch)
tree35564e102cd4d432132a3340fefac26b2b2bd726
parentde9ea671fcebb800285d94acbf49dd393a16cd21 (diff)
add instructions to the public page for people who aren't logged in
darcs-hash:20081202193857-5ed1f-1705c3f615b96790dcae30ec240c25721ea443cc.gz
-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'),