add linkAttributes() method for profilelist
This commit is contained in:
parent
a313aeab9c
commit
19401f6530
|
@ -181,9 +181,8 @@ class ProfileListItem extends Widget
|
||||||
function showAvatar()
|
function showAvatar()
|
||||||
{
|
{
|
||||||
$avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
|
$avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
|
||||||
$this->out->elementStart('a', array('href' => $this->profile->profileurl,
|
$aAttrs = $this->linkAttributes();
|
||||||
'class' => 'url entry-title',
|
$this->out->elementStart('a', $aAttrs);
|
||||||
'rel' => 'contact'));
|
|
||||||
$this->out->element('img', array('src' => ($avatar) ? $avatar->displayUrl() : Avatar::defaultImage(AVATAR_STREAM_SIZE),
|
$this->out->element('img', array('src' => ($avatar) ? $avatar->displayUrl() : Avatar::defaultImage(AVATAR_STREAM_SIZE),
|
||||||
'class' => 'photo avatar',
|
'class' => 'photo avatar',
|
||||||
'width' => AVATAR_STREAM_SIZE,
|
'width' => AVATAR_STREAM_SIZE,
|
||||||
|
@ -299,4 +298,11 @@ class ProfileListItem extends Widget
|
||||||
{
|
{
|
||||||
return htmlspecialchars($text);
|
return htmlspecialchars($text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function linkAttributes()
|
||||||
|
{
|
||||||
|
return array('href' => $this->profile->profileurl,
|
||||||
|
'class' => 'url entry-title',
|
||||||
|
'rel' => 'contact');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user