diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-26 11:19:22 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-26 11:19:22 +0000 |
commit | 5f3faad7e5d540bea9eba1a0171f4d1a6e812106 (patch) | |
tree | b92051e39759452b59c636d5c9576d65cf73766b /mod/profile/views/default/profile/icon.php | |
parent | ab5f815bc06fef117c1ec32a7986a437259019d4 (diff) | |
download | elgg-5f3faad7e5d540bea9eba1a0171f4d1a6e812106.tar.gz elgg-5f3faad7e5d540bea9eba1a0171f4d1a6e812106.tar.bz2 |
Update to site user avatars to use CSS3 rounding for modern browsers. Older browsers will display as square avatars.
git-svn-id: http://code.elgg.org/elgg/trunk@5870 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default/profile/icon.php')
-rw-r--r-- | mod/profile/views/default/profile/icon.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/profile/views/default/profile/icon.php b/mod/profile/views/default/profile/icon.php index d5623e0c8..775da97ab 100644 --- a/mod/profile/views/default/profile/icon.php +++ b/mod/profile/views/default/profile/icon.php @@ -98,8 +98,15 @@ if ($vars['entity'] instanceof ElggUser) { } } - - ?><img src="<?php echo $vars['entity']->getIcon($vars['size']); ?>" border="0" <?php echo $align; ?> alt="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" title="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" <?php echo $vars['js']; ?> /><?php + + // Rounded avatar corners - CSS3 method - users avatar as background image so we can clip it with border-radius in supported browsers + ?> + <img src="<?php echo $vars['url']; ?>_graphics/spacer.gif" border="0" <?php echo $align; ?> alt="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" title="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" <?php echo $vars['js']; ?> style="background: url(<?php echo $vars['entity']->getIcon($vars['size']); ?>) no-repeat;" class="<?php echo $vars['size']; ?>" /> + <?php + /* + original avatar method + <img src="<?php echo $vars['entity']->getIcon($vars['size']); ?>" border="0" <?php echo $align; ?> alt="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" title="<?php echo htmlentities($vars['entity']->name, ENT_QUOTES, 'UTF-8'); ?>" <?php echo $vars['js']; ?> /> + */ if (!$override) { ?> |