abstract class ProfileBlock extends Widget
{
- abstract function avatar();
+ protected $avatarSize = AVATAR_PROFILE_SIZE;
+
abstract function name();
abstract function url();
abstract function location();
function show()
{
$this->showActions();
- $this->showAvatar();
+ $this->showAvatar($this->profile);
$this->showName();
$this->showLocation();
$this->showHomepage();
$this->showTags();
}
- function showAvatar()
- {
- $size = $this->avatarSize();
-
- $this->out->element(
- 'img',
- array(
- 'src' => $this->avatar(),
- 'class' => 'ur_face',
- 'alt' => $this->name(),
- 'width' => $size,
- 'height' => $size
- )
- );
- }
-
function showName()
{
$name = $this->name();
array('href' => $otherProfile['href'],
'rel' => 'me',
'class' => 'profile_block_otherprofile',
- 'alt' => $otherProfile['text']));
+ 'title' => $otherProfile['text']));
$this->out->element('img',
array('src' => $otherProfile['image'],
'class' => 'profile_block_otherprofile_icon'));
$this->out->elementEnd('a');
$this->out->elementEnd('li');
}
- }
- }
- function avatarSize()
- {
- return AVATAR_PROFILE_SIZE;
+ $this->out->elementEnd('ul');
+ }
}
function showTags()