show best name in noticelistitem
This commit is contained in:
parent
0925b96840
commit
b3e7838552
|
@ -202,20 +202,21 @@ class NoticeListItem extends Widget
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function showAuthor()
|
function showAuthor()
|
||||||
{
|
{
|
||||||
$this->out->elementStart('span', 'vcard author');
|
$this->out->elementStart('div', 'vcard author');
|
||||||
$attrs = array('href' => $this->profile->profileurl,
|
$attrs = array('href' => $this->profile->profileurl,
|
||||||
'class' => 'url');
|
'class' => 'url',
|
||||||
if (!empty($this->profile->fullname)) {
|
'title' => $this->profile->nickname);
|
||||||
$attrs['title'] = $this->profile->getFancyName();
|
|
||||||
}
|
|
||||||
$this->out->elementStart('a', $attrs);
|
$this->out->elementStart('a', $attrs);
|
||||||
$this->showAvatar();
|
$this->showAvatar();
|
||||||
$this->out->text(' ');
|
|
||||||
$this->showNickname();
|
|
||||||
$this->out->elementEnd('a');
|
$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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user