diff options
author | sarven <csarven@plantard.controlezvous.ca> | 2009-01-21 06:31:53 +0000 |
---|---|---|
committer | sarven <csarven@plantard.controlezvous.ca> | 2009-01-21 06:31:53 +0000 |
commit | 6c7842129841878b65c1d686de64f98f1edcb16f (patch) | |
tree | 613e976c0f2841cb23c36648bc740308f0b3973f /actions/showstream.php | |
parent | 9376003871652300b5960437fd37461fdd85e63b (diff) |
Moved common_profile_new_message_nudge() to showstream.php
Diffstat (limited to 'actions/showstream.php')
-rw-r--r-- | actions/showstream.php | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/actions/showstream.php b/actions/showstream.php index 3882af845..a411fae5b 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -326,7 +326,24 @@ class ShowstreamAction extends Action } $this->elementEnd('li'); - common_profile_new_message_nudge($cur, $this->user, $this->profile); +// common_profile_new_message_nudge($cur, $this->user, $this->profile); + + $user = User::staticGet('id', $this->profile->id); + if ($cur && $cur->id != $user->id && $cur->mutuallySubscribed($user)) { + $this->elementStart('li', array('id' => 'user_send_a_new_message')); + $this->element('a', array('href' => common_local_url('newmessage', array('to' => $user->id))), + _('Send a message')); + $this->elementEnd('li'); + + if ($user->email && $user->emailnotifynudge) { + $this->elementStart('li', array('id' => 'user_nudge')); + $nf = new NudgeForm($this, $user); + $nf->show(); + $this->elementEnd('li'); + } + } + + if ($cur && $cur->id != $this->profile->id) { $blocked = $cur->hasBlocked($this->profile); @@ -349,7 +366,7 @@ class ShowstreamAction extends Action $url = common_local_url('remotesubscribe', array('nickname' => $this->profile->nickname)); $this->element('a', array('href' => $url, - 'id' => 'remotesubscribe'), + 'id' => 'user_subscribe_remote'), _('Subscribe')); } |