whitespace and formatting in showstream.php

This commit is contained in:
Evan Prodromou 2009-02-09 12:07:21 -05:00
parent c1bc77efd9
commit 9b7c57d094

View File

@ -178,21 +178,21 @@ class ShowstreamAction extends Action
function showFeeds() function showFeeds()
{ {
$this->element('link', array('rel' => 'alternate', $this->element('link', array('rel' => 'alternate',
'type' => 'application/rss+xml', 'type' => 'application/rss+xml',
'href' => common_local_url('userrss', 'href' => common_local_url('userrss',
array('nickname' => $this->user->nickname)), array('nickname' => $this->user->nickname)),
'title' => sprintf(_('Notice feed for %s (RSS)'), 'title' => sprintf(_('Notice feed for %s (RSS)'),
$this->user->nickname))); $this->user->nickname)));
$this->element('link', $this->element('link',
array('rel' => 'alternate', array('rel' => 'alternate',
'href' => common_local_url('api', 'href' => common_local_url('api',
array('apiaction' => 'statuses', array('apiaction' => 'statuses',
'method' => 'user_timeline.atom', 'method' => 'user_timeline.atom',
'argument' => $this->user->nickname)), 'argument' => $this->user->nickname)),
'type' => 'application/atom+xml', 'type' => 'application/atom+xml',
'title' => sprintf(_('Notice feed for %s (Atom)'), 'title' => sprintf(_('Notice feed for %s (Atom)'),
$this->user->nickname))); $this->user->nickname)));
} }
function extraHead() function extraHead()
@ -206,7 +206,7 @@ class ShowstreamAction extends Action
// for remote subscriptions etc. // for remote subscriptions etc.
$this->element('meta', array('http-equiv' => 'X-XRDS-Location', $this->element('meta', array('http-equiv' => 'X-XRDS-Location',
'content' => common_local_url('xrds', array('nickname' => 'content' => common_local_url('xrds', array('nickname' =>
$this->user->nickname)))); $this->user->nickname))));
if ($this->profile->bio) { if ($this->profile->bio) {
$this->element('meta', array('name' => 'description', $this->element('meta', array('name' => 'description',
@ -265,7 +265,7 @@ class ShowstreamAction extends Action
$hasFN = ($this->profile->fullname) ? 'nickname url uid' : 'fn nickname url uid'; $hasFN = ($this->profile->fullname) ? 'nickname url uid' : 'fn nickname url uid';
$this->element('a', array('href' => $this->profile->profileurl, $this->element('a', array('href' => $this->profile->profileurl,
'rel' => 'me', 'class' => $hasFN), 'rel' => 'me', 'class' => $hasFN),
$this->profile->nickname); $this->profile->nickname);
$this->elementEnd('dd'); $this->elementEnd('dd');
$this->elementEnd('dl'); $this->elementEnd('dl');
@ -333,7 +333,7 @@ class ShowstreamAction extends Action
$this->elementStart('li', 'entity_edit'); $this->elementStart('li', 'entity_edit');
$this->element('a', array('href' => common_local_url('profilesettings'), $this->element('a', array('href' => common_local_url('profilesettings'),
'title' => _('Edit profile settings')), 'title' => _('Edit profile settings')),
_('Edit')); _('Edit'));
$this->elementEnd('li'); $this->elementEnd('li');
} }
@ -356,7 +356,7 @@ class ShowstreamAction extends Action
} }
if ($cur && $cur->id != $user->id && $cur->mutuallySubscribed($user)) { if ($cur && $cur->id != $user->id && $cur->mutuallySubscribed($user)) {
$this->elementStart('li', 'entity_send-a-message'); $this->elementStart('li', 'entity_send-a-message');
$this->element('a', array('href' => common_local_url('newmessage', array('to' => $user->id)), $this->element('a', array('href' => common_local_url('newmessage', array('to' => $user->id)),
'title' => _('Send a direct message to this user')), 'title' => _('Send a direct message to this user')),
_('Message')); _('Message'));
@ -498,7 +498,7 @@ class ShowstreamAction extends Action
$this->elementStart('dl', 'entity_member-since'); $this->elementStart('dl', 'entity_member-since');
$this->element('dt', null, _('Member since')); $this->element('dt', null, _('Member since'));
$this->element('dd', null, date('j M Y', $this->element('dd', null, date('j M Y',
strtotime($this->profile->created))); strtotime($this->profile->created)));
$this->elementEnd('dl'); $this->elementEnd('dl');
$this->elementStart('dl', 'entity_subscriptions'); $this->elementStart('dl', 'entity_subscriptions');