Just use avatarSize() method for SingleNoticeItem
This commit is contained in:
parent
24e1491582
commit
5650a6e9f7
|
@ -333,28 +333,8 @@ class ShownoticeAction extends OwnerDesignAction
|
||||||
// @todo FIXME: Class documentation missing.
|
// @todo FIXME: Class documentation missing.
|
||||||
class SingleNoticeItem extends DoFollowListItem
|
class SingleNoticeItem extends DoFollowListItem
|
||||||
{
|
{
|
||||||
/**
|
function avatarSize()
|
||||||
* show the avatar of the notice's author
|
|
||||||
*
|
|
||||||
* We use the larger size for single notice page.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
function showAvatar()
|
|
||||||
{
|
{
|
||||||
$avatar_size = AVATAR_PROFILE_SIZE;
|
return AVATAR_PROFILE_SIZE;
|
||||||
|
|
||||||
$avatar = $this->profile->getAvatar($avatar_size);
|
|
||||||
|
|
||||||
$this->out->element('img', array('src' => ($avatar) ?
|
|
||||||
$avatar->displayUrl() :
|
|
||||||
Avatar::defaultImage($avatar_size),
|
|
||||||
'class' => 'avatar photo',
|
|
||||||
'width' => $avatar_size,
|
|
||||||
'height' => $avatar_size,
|
|
||||||
'alt' =>
|
|
||||||
($this->profile->fullname) ?
|
|
||||||
$this->profile->fullname :
|
|
||||||
$this->profile->nickname));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user