abstract function avatar();
abstract function name();
abstract function url();
- abstract function canEdit();
- abstract function editUrl();
- abstract function editText();
abstract function location();
abstract function homepage();
abstract function description();
function show()
{
- $this->out->elementStart('div', 'profile_block');
+ $this->out->elementStart('div', 'profile_block section');
$size = $this->avatarSize();
'width' => $size,
'height' => $size));
- if ($this->canEdit()) {
- $this->out->element('a', array('href' => $this->editUrl()),
- $this->editText());
- }
-
$name = $this->name();
if (!empty($name)) {
+ $this->out->elementStart('p', 'profile_block_name');
$url = $this->url();
if (!empty($url)) {
$this->out->element('a', array('href' => $url),
$name);
} else {
- $this->out->element('span', 'profile_block_name', $name);
+ $this->out->text($name);
}
+ $this->out->elementEnd('p');
}
$location = $this->location();
if (!empty($location)) {
- $this->out->element('span', 'profile_block_location', $location);
+ $this->out->element('p', 'profile_block_location', $location);
}
$homepage = $this->homepage();