summaryrefslogtreecommitdiff
path: root/actions/public.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-14 08:20:38 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-14 08:20:38 -0400
commit27a615aefdb63875ebeb2d1657f7773e7d3bd9e8 (patch)
tree019ac4953287c80f0f9cc030de9c780412496048 /actions/public.php
parent9ff4794f1b586d693a0e8649c985b99dc74bbc5e (diff)
add public tab
darcs-hash:20080614122038-84dde-af7c2be04d41c1d85b62cf74724fe8e4a877a84a.gz
Diffstat (limited to 'actions/public.php')
-rw-r--r--actions/public.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/actions/public.php b/actions/public.php
index 270c082ba..099d1cc88 100644
--- a/actions/public.php
+++ b/actions/public.php
@@ -28,7 +28,9 @@ class PublicAction extends StreamAction {
$page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
- common_show_header(_t('Public timeline'), array($this, 'show_header'));
+ common_show_header(_t('Public timeline'),
+ array($this, 'show_header'), NULL,
+ array($this, 'show_top'));
# XXX: Public sidebar here?
@@ -37,6 +39,15 @@ class PublicAction extends StreamAction {
common_show_footer();
}
+ function show_top($user) {
+
+ if (common_logged_in()) {
+ common_notice_form();
+ }
+
+ $this->views_menu();
+ }
+
function show_header() {
common_element('link', array('rel' => 'alternate',
'href' => common_local_url('publicrss'),