summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-11 14:36:34 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-11 14:36:34 -0400
commitd0f8fd20fb9e50aad9568a458934b52a9439228c (patch)
treead95b104b0e8dfb64b7b91dfef28f7fac8d04afb /actions/showstream.php
parentf4ed6059980afdaede47e33307c6432e83aea484 (diff)
push notice form and sub-menu into header div
darcs-hash:20080611183634-84dde-97119e7ef1abb01f6ce8723955dc5d6e06e644a8.gz
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 6fed6df12..52dbcd0ff 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -52,7 +52,9 @@ class ShowstreamAction extends StreamAction {
header('X-XRDS-Location: '. common_local_url('xrds', array('nickname' =>
$user->nickname)));
- common_show_header($profile->nickname, array($this, 'show_header'), $user);
+ common_show_header($profile->nickname,
+ array($this, 'show_header'), $user,
+ array($this, 'show_top'));
$cur = common_current_user();
@@ -69,6 +71,17 @@ class ShowstreamAction extends StreamAction {
common_show_footer();
}
+ function show_top($user) {
+
+ $cur = common_current_user();
+
+ if ($cur && $cur->id == $user->id) {
+ common_notice_form();
+ }
+
+ $this->views_menu();
+ }
+
function show_header($user) {
common_element('link', array('rel' => 'alternate',
'href' => common_local_url('userrss', array('nickname' =>