30 $name = htmlspecialchars(
$user->getDisplayName(), ENT_QUOTES,
'UTF-8',
false);
39 if (
$user->isBanned()) {
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_get_icon_sizes($entity_type=null, $entity_subtype=null, $type= 'icon')
Returns a configuration array of icon sizes.
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
if(empty($icon)) $show_menu
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
elgg echo
Translates a string.
if(!array_key_exists($size, $icon_sizes)) $vars['size']
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(!$entity instanceof ElggEntity) $icon_sizes
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
if(!array_key_exists($size, $icon_sizes)) $name
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.