From: Evan Prodromou Date: Sat, 16 Apr 2011 15:22:46 +0000 (-0400) Subject: show best name in noticelistitem X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b3e7838552131d8c59cd8137f5b78587fde3d63a;p=quix0rs-gnu-social.git show best name in noticelistitem --- diff --git a/lib/noticelistitem.php b/lib/noticelistitem.php index 9c50966406..f7b28534be 100644 --- a/lib/noticelistitem.php +++ b/lib/noticelistitem.php @@ -202,20 +202,21 @@ class NoticeListItem extends Widget * * @return void */ + function showAuthor() { - $this->out->elementStart('span', 'vcard author'); + $this->out->elementStart('div', 'vcard author'); $attrs = array('href' => $this->profile->profileurl, - 'class' => 'url'); - if (!empty($this->profile->fullname)) { - $attrs['title'] = $this->profile->getFancyName(); - } + 'class' => 'url', + 'title' => $this->profile->nickname); $this->out->elementStart('a', $attrs); $this->showAvatar(); - $this->out->text(' '); - $this->showNickname(); $this->out->elementEnd('a'); - $this->out->elementEnd('span'); + $this->out->element('a', array('href' => $this->profile->profileurl, + 'class' => 'url nickname fn', + 'title' => $this->profile->nickname), + $this->profile->getBestName()); + $this->out->elementEnd('div'); } /**