29 $return = $hook->getValue();
34 'src' =>
$user->getIconURL(
'small'),
35 'alt' =>
$user->getDisplayName(),
39 'link_class' =>
'elgg-avatar-small',
40 'icon_alt' =>
'angle-down',
46 'name' =>
'usersettings',
47 'icon' =>
'sliders-h',
50 'username' =>
$user->username,
54 'parent_name' =>
'account',
57 if (
$user->isAdmin()) {
59 'name' =>
'administration',
65 'parent_name' =>
'account',
71 'icon' =>
'sign-out-alt',
76 'parent_name' =>
'account',
95 $return = $hook->getValue();
98 'name' =>
'maintenance_mode',
100 'text' =>
elgg_echo(
'admin:maintenance_mode:indicator_menu_item'),
101 'href' =>
'admin/configure_utilities/maintenance',
130 'alt' =>
'original user photo',
134 $menu = $hook->getValue();
137 'name' =>
'logout_as',
141 'link_class' =>
'login-as-topbar',
144 'parent_name' =>
'account',
get_user($guid)
Get a user object from a GUID.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_generate_action_url($action, array $query=[], $add_csrf_tokens=true)
Generate an action URL.
elgg_get_session()
Gets Elgg's session object.
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Models an event passed to hook handlers.
if(empty($user)) $original_user
if(function_exists('apache_get_version')) $icon
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
elgg_generate_url($name, array $parameters=[])
Generate a URL for named route.
_elgg_services()
Get the global service provider.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.