From 1ab0de3ddd863703648bdaedf92a2ae6cc7eb6ff Mon Sep 17 00:00:00 2001 From: sarven Date: Tue, 20 Jan 2009 23:50:52 +0000 Subject: 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. --- actions/showstream.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'actions/showstream.php') 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'); -- cgit v1.2.3-54-g00ecf