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();
}
}
- function avatarSize()
- {
- return AVATAR_PROFILE_SIZE;
- }
-
function showTags()
{
}