name, ENT_QUOTES, 'UTF-8', false); $username = $user->username; $icontime = $user->icontime; if (!$icontime) { $icontime = "default"; } $js = elgg_extract('js', $vars, ''); if ($js) { elgg_deprecated_notice("Passing 'js' to icon views is deprecated.", 1.8, 5); } $img_class = ''; if (isset($vars['img_class'])) { $img_class = $vars['img_class']; } $use_hover = elgg_extract('use_hover', $vars, true); if (isset($vars['override'])) { elgg_deprecated_notice("Use 'use_hover' rather than 'override' with user avatars", 1.8, 5); $use_hover = false; } if (isset($vars['hover'])) { // only 1.8.0 was released with 'hover' as the key $use_hover = $vars['hover']; } $spacer_url = elgg_get_site_url() . '_graphics/spacer.gif'; $icon_url = elgg_format_url($user->getIconURL($size)); $icon = elgg_view('output/img', array( 'src' => $spacer_url, 'alt' => $name, 'title' => $name, 'class' => $img_class, 'style' => "background: url($icon_url) no-repeat;", )); $show_menu = $use_hover && (elgg_is_admin_logged_in() || !$user->isBanned()); ?>