X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Fshowstream.php;h=eab1fc0a2d0df9693e14274aee10171a89f2d853;hb=a381bff4da077b84baaa56ef9780eb806e14b7dd;hp=9e209cd4a06e352bc212e0e35638b67a28ab2752;hpb=07904024145174b9f86f21d823e5b6c94048333a;p=quix0rs-gnu-social.git diff --git a/actions/showstream.php b/actions/showstream.php index 9e209cd4a0..eab1fc0a2d 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -60,6 +60,11 @@ class ShowstreamAction extends Action var $page = null; var $profile = null; + function isReadOnly() + { + return true; + } + function title() { if ($this->page == 1) { @@ -311,7 +316,7 @@ class ShowstreamAction extends Action $this->elementStart('div', 'entity_actions'); $this->element('h2', null, _('User actions')); $this->elementStart('ul'); - $this->elementStart('li', array('id' => 'entity_subscribe')); + $this->elementStart('li', array('class' => 'entity_subscribe')); $cur = common_current_user(); if ($cur) { if ($cur->id != $this->profile->id) { @@ -332,14 +337,14 @@ class ShowstreamAction extends Action $user = User::staticGet('id', $this->profile->id); if ($cur && $cur->id != $user->id && $cur->mutuallySubscribed($user)) { - $this->elementStart('li', array('id' => 'entity_send-a-message')); + $this->elementStart('li', array('class' => 'entity_send-a-message')); $this->element('a', array('href' => common_local_url('newmessage', array('to' => $user->id)), 'title' => _('Send a direct message to this user')), _('Message')); $this->elementEnd('li'); if ($user->email && $user->emailnotifynudge) { - $this->elementStart('li', array('id' => 'entity_nudge')); + $this->elementStart('li', array('class' => 'entity_nudge')); $nf = new NudgeForm($this, $user); $nf->show(); $this->elementEnd('li'); @@ -348,7 +353,7 @@ class ShowstreamAction extends Action if ($cur && $cur->id != $this->profile->id) { $blocked = $cur->hasBlocked($this->profile); - $this->elementStart('li', array('id' => 'entity_block')); + $this->elementStart('li', array('class' => 'entity_block')); if ($blocked) { $ubf = new UnblockForm($this, $this->profile); $ubf->show(); @@ -367,7 +372,7 @@ class ShowstreamAction extends Action $url = common_local_url('remotesubscribe', array('nickname' => $this->profile->nickname)); $this->element('a', array('href' => $url, - 'id' => 'entity_subscribe_remote'), + 'class' => 'entity_remote_subscribe'), _('Subscribe')); } @@ -531,6 +536,18 @@ class ShowstreamAction extends Action $this->elementEnd('div'); } + + function showAnonymousMessage() + { + $m = sprintf(_('**%s** has an account on %%%%site.name%%%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' . + 'based on the Free Software [Laconica](http://laconi.ca/) tool. ' . + '[Join now](%%%%action.register%%%%) to follow **%s**\'s notices and many more! ([Read more](%%%%doc.help%%%%))'), + $this->user->nickname, $this->user->nickname); + $this->elementStart('div', array('id' => 'anon_notice')); + $this->raw(common_markup_to_html($m)); + $this->elementEnd('div'); + } + } // We don't show the author for a profile, since we already know who it is!