* @copyright Curverider Ltd 2008 * @link http://elgg.com/ * * @uses $vars['entity'] The user entity. If none specified, the current user is assumed. * @uses $vars['size'] The size - small, medium or large. If none specified, medium is assumed. */ // Get entity if (empty($vars['entity'])) $vars['entity'] = $vars['user']; if ($vars['entity'] instanceof ElggUser) { $name = htmlentities($vars['entity']->name, null, 'UTF-8'); $username = $vars['entity']->username; if ($icontime = $vars['entity']->icontime) { $icontime = "{$icontime}"; } else { $icontime = "default"; } // Get size if (!in_array($vars['size'],array('small','medium','large','tiny','master','topbar'))) $vars['size'] = "medium"; // Get any align and js if (!empty($vars['align'])) { $align = " align=\"{$vars['align']}\" "; } else { $align = ""; } // Override if (isset($vars['override']) && $vars['override'] == true) { $override = true; } else $override = false; if (!$override) { ?>