We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit fbc11b72 authored by Evan Prodromou's avatar Evan Prodromou

Allow profileblock subclasses to show different sized avatars

parent f242cf0e
......@@ -61,11 +61,13 @@ abstract class ProfileBlock extends Widget
$this->out->elementStart('div', 'profile_block');
$size = $this->avatarSize();
$this->out->element('img', array('src' => $this->avatar(),
'class' => 'profile_block_avatar',
'alt' => $this->name(),
'height' => AVATAR_PROFILE_SIZE));
'width' => $size,
'height' => $size));
if ($this->canEdit()) {
$this->out->element('a', array('href' => $this->editUrl()),
......@@ -106,4 +108,10 @@ abstract class ProfileBlock extends Widget
function avatarSize()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment