Elgg
Version 1.11
|
Go to the source code of this file.
Variables | |
$user = elgg_extract('entity', $vars, elgg_get_logged_in_user_entity()) | |
Elgg user icon. More... | |
$size = elgg_extract('size', $vars, 'medium') | |
$icon_sizes = elgg_get_config('icon_sizes') | |
if(!array_key_exists($size, $icon_sizes)) if(!($user instanceof ElggUser)) | $name = htmlspecialchars($user->name, ENT_QUOTES, 'UTF-8', false) |
$username = $user->username | |
$class = "elgg-avatar elgg-avatar-$size" | |
if(isset($vars['class'])) if($user->isBanned()) | $use_link = elgg_extract('use_link', $vars, true) |
$icontime = $user->icontime | |
if(!$icontime) | $js = elgg_extract('js', $vars, '') |
if($js) | $img_class = '' |
if(isset($vars['img_class'])) | $use_hover = elgg_extract('use_hover', $vars, true) |
if(isset($vars['override'])) if(isset($vars['hover'])) | $icon |
$show_menu = $use_hover && (elgg_is_admin_logged_in() || !$user->isBanned()) | |
if($show_menu) if($use_link) | else |
Definition at line 70 of file default.php.
$icon_sizes = elgg_get_config('icon_sizes') |
Definition at line 20 of file default.php.
Definition at line 44 of file default.php.
if ($js) $img_class = '' |
Definition at line 54 of file default.php.
if (!$icontime) $js = elgg_extract('js', $vars, '') |
Definition at line 49 of file default.php.
if (!array_key_exists($size, $icon_sizes)) if (!($user instanceof ElggUser)) $name = htmlspecialchars($user->name, ENT_QUOTES, 'UTF-8', false) |
Definition at line 29 of file default.php.
$show_menu = $use_hover && (elgg_is_admin_logged_in() || !$user->isBanned()) |
Definition at line 77 of file default.php.
$size = elgg_extract('size', $vars, 'medium') |
Definition at line 19 of file default.php.
if (isset($vars['img_class'])) $use_hover = elgg_extract('use_hover', $vars, true) |
Definition at line 60 of file default.php.
if (isset($vars['class'])) if ($user->isBanned()) $use_link = elgg_extract('use_link', $vars, true) |
Definition at line 42 of file default.php.
$user = elgg_extract('entity', $vars, elgg_get_logged_in_user_entity()) |
Elgg user icon.
Rounded avatar corners - CSS3 method uses avatar as background image so we can clip it with border-radius in supported browsers
$vars['entity'] The user entity. If none specified, the current user is assumed. $vars['size'] The size - tiny, small, medium or large. (medium) $vars['use_hover'] Display the hover menu? (true) $vars['use_link'] Wrap a link around image? (true) $vars['class'] Optional class added to the .elgg-avatar div $vars['img_class'] Optional CSS class added to img $vars['link_class'] Optional CSS class for the link $vars['href'] Optional override of the link href
Definition at line 18 of file default.php.
Definition at line 30 of file default.php.
Definition at line 102 of file default.php.