]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
a little better presentation for tag-other
authorEvan Prodromou <evan@prodromou.name>
Fri, 21 Nov 2008 00:36:08 +0000 (19:36 -0500)
committerEvan Prodromou <evan@prodromou.name>
Fri, 21 Nov 2008 00:36:08 +0000 (19:36 -0500)
darcs-hash:20081121003608-84dde-1bae74a9d4635423965c8f18a7555c2b0eab982e.gz

actions/tagother.php

index a5129faee112e0a46c6f6db1696b816e3a646012..1bf148743b3a0f79ad254da8fe1a081584d77ead 100644 (file)
@@ -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');