common_element('img', array('src' => $original->url,
'class' => 'avatar original',
'width' => $original->width,
- 'height' => $original->height));
+ 'height' => $original->height,
+ 'alt' => $user->nickname));
}
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
common_element('img', array('src' => $avatar->url,
'class' => 'avatar profile',
'width' => AVATAR_PROFILE_SIZE,
- 'height' => AVATAR_PROFILE_SIZE));
+ 'height' => AVATAR_PROFILE_SIZE,
+ 'alt' => $user->nickname));
}
common_element_start('form', array('enctype' => 'multipart/form-data',
'class' => 'avatar profile',
'width' => AVATAR_PROFILE_SIZE,
'height' => AVATAR_PROFILE_SIZE,
- 'title' => $profile->nickname));
+ 'alt' => $profile->nickname));
}
if ($profile->fullname) {
if ($profile->homepage) {
common_element_start('div', 'row');
}
- common_element_start('a', array('title' => $subs->fullname ||
+ common_element_start('a', array('title' => ($subs->fullname) ?
+ $subs->fullname :
$subs->nickname,
'href' => $subs->profileurl,
'class' => 'subscription'));
common_element('img', array('src' => (($avatar) ? $avatar->url : DEFAULT_MINI_AVATAR),
'width' => AVATAR_MINI_SIZE,
'height' => AVATAR_MINI_SIZE,
- 'class' => 'avatar mini'));
+ 'class' => 'avatar mini',
+ 'alt' => ($subs->fullname) ?
+ $subs->fullname :
+ $subs->nickname));
common_element_end('a');
if ($cnt % SUBSCRIPTIONS_PER_ROW == 0) {
common_element_start('div', 'row');
}
- common_element_start('a', array('title' => $subs->fullname ||
- $subs->nickname,
+ common_element_start('a', array('title' => ($subs->fullname) ?
+ $subs->fullname :
+ $subs->nickname,
'href' => $subs->profileurl,
'class' => 'subscription'));
$avatar = $subs->getAvatar(AVATAR_STREAM_SIZE);
common_element('img', array('src' => (($avatar) ? $avatar->url : DEFAULT_STREAM_AVATAR),
'width' => AVATAR_STREAM_SIZE,
'height' => AVATAR_STREAM_SIZE,
- 'class' => 'avatar stream'));
+ 'class' => 'avatar stream',
+ 'alt' => ($subs->fullname) ?
+ $subs->fullname :
+ $subs->nickname));
common_element_end('a');
# XXX: subscribe form here
common_element_start('div', 'row');
}
- common_element_start('a', array('title' => $subs->fullname ||
- $subs->nickname,
+ common_element_start('a', array('title' => ($subs->fullname) ?
+ $subs->fullname :
+ $subs->nickname,
'href' => $subs->profileurl,
'class' => 'subscription'));
$avatar = $subs->getAvatar(AVATAR_STREAM_SIZE);
common_element('img', array('src' => (($avatar) ? $avatar->url : DEFAULT_STREAM_AVATAR),
'width' => AVATAR_STREAM_SIZE,
'height' => AVATAR_STREAM_SIZE,
- 'class' => 'avatar stream'));
+ 'class' => 'avatar stream',
+ 'alt' => ($subs->fullname) ?
+ $subs->fullname :
+ $subs->nickname));
common_element_end('a');
# XXX: subscribe form here