- /**
- * show the avatar of the peopletag's creator
- *
- * This will use the default avatar if no avatar is assigned for the author.
- * It makes a link to the author's profile.
- *
- * @return void
- */
-
- function showAvatar($size=AVATAR_STREAM_SIZE)
- {
- $avatar = $this->profile->getAvatar($size);
-
- $this->out->element('img', array('src' => ($avatar) ?
- $avatar->displayUrl() :
- Avatar::defaultImage($size),
- 'class' => 'avatar photo',
- 'width' => $size,
- 'height' => $size,
- 'alt' =>
- ($this->profile->fullname) ?
- $this->profile->fullname :
- $this->profile->nickname));
- }
-