29 $name = htmlspecialchars(
$user->name, ENT_QUOTES,
'UTF-8',
false);
32 $class =
"elgg-avatar elgg-avatar-$size";
33 if (isset(
$vars[
'class'])) {
34 $class =
"$class {$vars['class']}";
36 if (
$user->isBanned()) {
37 $class .=
' elgg-state-banned';
39 $name .=
" ($banned_text)";
55 if (isset(
$vars[
'img_class'])) {
61 if (isset(
$vars[
'override'])) {
65 if (isset(
$vars[
'hover'])) {
80 <
div class=
"<?php echo $class; ?>">
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_view_icon($name, $vars=array())
View one of the elgg sprite icons.
if(isset($vars['img_class'])) $use_hover
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(!array_key_exists($size, $icon_sizes)) if(!($user instanceof ElggUser)) $name
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg echo
Translates a string.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
if(!array_key_exists($size, $icon_sizes)) $vars['size']
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
if(isset($vars['class'])) if($user->isBanned()) $use_link