30 $name = htmlspecialchars(
$user->getDisplayName() ??
'', ENT_QUOTES,
'UTF-8',
false);
38 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(string $entity_type=null, string $entity_subtype=null, $type= 'icon')
Returns a configuration array of icon sizes.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif($item instanceof\ElggRelationship) elseif(is_callable([$item, 'getType']))
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
if(empty($icon)) $show_menu
elgg_import_esm(string $name)
Helper functions for external files like css/js.
if(!array_key_exists($size, $icon_sizes)) $vars['size']
if(!$entity instanceof ElggEntity) $icon_sizes
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
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
if($user->isBanned()) elseif($user->isValidated()===false) $icon