diff options
author | sarven <csarven@plantard.controlezvous.ca> | 2009-01-20 23:50:52 +0000 |
---|---|---|
committer | sarven <csarven@plantard.controlezvous.ca> | 2009-01-20 23:50:52 +0000 |
commit | 1ab0de3ddd863703648bdaedf92a2ae6cc7eb6ff (patch) | |
tree | 1671fc8cf87c4fc221cd5a9d52af2d3bfbc3710c | |
parent | caeb74c9a5598147a77d0bb250d8fde67ad929ad (diff) |
If user has fn, then it will not link to their own profile with @class
'fn'. Only put @class 'fn' on the anchor if there is no fn.
-rw-r--r-- | actions/showstream.php | 7 | ||||
-rw-r--r-- | lib/profilelist.php | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/actions/showstream.php b/actions/showstream.php index d550ec295..3fe71576d 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -243,9 +243,10 @@ class ShowstreamAction extends Action $this->elementStart('dl', 'user_nickname'); $this->element('dt', null, _('Nickname')); $this->elementStart('dd'); - $this->element('a', array('href' => $this->profile->profileurl, - 'rel' => 'me', 'class' => 'nickname url uid'), - $this->profile->nickname); + $hasFN = ($this->profile->fullname) ? 'nickname url uid' : 'fn nickname url uid'; + $this->element('a', array('href' => $this->profile->profileurl, + 'rel' => 'me', 'class' => $hasFN), + $this->profile->nickname); $this->elementEnd('dd'); $this->elementEnd('dl'); diff --git a/lib/profilelist.php b/lib/profilelist.php index 24b357385..973df7bb6 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -87,7 +87,7 @@ class ProfileList extends Widget function showProfile() { - $this->out->elementStart('li', array('class' => 'profile vcard', + $this->out->elementStart('li', array('class' => 'profile', 'id' => 'profile-' . $this->profile->id)); $user = common_current_user(); |