summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-20 19:36:08 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-20 19:36:08 -0500
commit9325fec4f05caeec9742bb9af7ce0c1db08ca329 (patch)
treed1a7a300e4ab60a0b916aa2ac13f9f28213944e3 /actions
parent909b0d93111b9e6f1ccaf56075b8bbe433c482fb (diff)
a little better presentation for tag-other
darcs-hash:20081121003608-84dde-1bae74a9d4635423965c8f18a7555c2b0eab982e.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/tagother.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/actions/tagother.php b/actions/tagother.php
index a5129faee..1bf148743 100644
--- a/actions/tagother.php
+++ b/actions/tagother.php
@@ -58,17 +58,17 @@ class TagotherAction extends Action {
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
- if ($avatar) {
- common_element('img', array('src' => $avatar->url,
- 'class' => 'avatar profile',
- 'width' => AVATAR_PROFILE_SIZE,
- 'height' => AVATAR_PROFILE_SIZE,
- 'alt' => $profile->nickname));
- }
+ common_element('img', array('src' => ($avatar) ? common_avatar_display_url($avatar) : common_default_avatar(AVATAR_PROFILE_SIZE),
+ 'class' => 'avatar stream',
+ 'width' => AVATAR_PROFILE_SIZE,
+ 'height' => AVATAR_PROFILE_SIZE,
+ 'alt' =>
+ ($profile->fullname) ? $profile->fullname :
+ $profile->nickname));
common_element('a', array('href' => $profile->profileurl,
'class' => 'external profile nickname'),
- $nickname);
+ $profile->nickname);
if ($profile->fullname) {
common_element_start('div', 'fullname');