parent::__construct($out, $user->getProfile());
}
- function canEdit()
+ function avatarSize()
{
- return true;
+ return AVATAR_STREAM_SIZE;
+ }
+
+ function avatar()
+ {
+ $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
+ if (empty($avatar)) {
+ $avatar = $this->profile->getAvatar(73);
+ }
+ return (!empty($avatar)) ?
+ $avatar->displayUrl() :
+ Avatar::defaultImage(AVATAR_STREAM_SIZE);
}
function location()