Browse Source

Improve presentation of social networks links in profile - final adjustment to icon alignment - refs #6749

Yannick Warnier 11 years ago
parent
commit
785f80238b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      main/social/profile.php

+ 3 - 3
main/social/profile.php

@@ -448,10 +448,10 @@ if ($show_full_profile) {
                         }
                     } elseif ($field_type == UserManager::USER_FIELD_TYPE_SOCIAL_PROFILE) {
                         $icon_path = UserManager::get_favicon_from_url($data);
-                        $bottom = '0.3';
+                        $bottom = '0.2';
                         //quick hack for hi5
-                        $domain = parse_url($icon_path, PHP_URL_HOST); if ($domain == 'www.hi5.com' or $domain == 'hi5.com') { $bottom = '0.8'; }
-                        $data = '<a href="'.$data.'"><img src="'.$icon_path.'" alt="ico" style="margin-right:0.5em;margin-bottom:-'.$bottom.'em;" />'.ucfirst($field_display_text).'</a>';
+                        $domain = parse_url($icon_path, PHP_URL_HOST); if ($domain == 'www.hi5.com' or $domain == 'hi5.com') { $bottom = '-0.8'; }
+                        $data = '<a href="'.$data.'"><img src="'.$icon_path.'" alt="icon" style="margin-right:0.5em;margin-bottom:'.$bottom.'em;" />'.$field_display_text.'</a>';
                         $extra_information_value .= '<dd>'.$data.'</dd>';
                     } else {
                         if (!empty($data)) {