29 $return = $event->getValue();
34 'src' =>
$user->getIconURL(
'small'),
35 'alt' =>
$user->getDisplayName(),
39 'link_class' =>
'elgg-avatar-small',
45 'name' =>
'usersettings',
46 'icon' =>
'sliders-h',
49 'username' =>
$user->username,
53 'parent_name' =>
'account',
56 if (
$user->isAdmin()) {
58 'name' =>
'administration',
64 'parent_name' =>
'account',
70 'icon' =>
'sign-out-alt',
75 'parent_name' =>
'account',
94 $return = $event->getValue();
97 'name' =>
'maintenance_mode',
99 'text' =>
elgg_echo(
'admin:maintenance_mode:indicator_menu_item'),
100 'href' =>
'admin/configure_utilities/maintenance',
129 'alt' =>
'original user photo',
133 $menu = $event->getValue();
136 'name' =>
'logout_as',
140 'link_class' =>
'login-as-topbar',
143 'parent_name' =>
'account',
elgg_generate_action_url(string $action, array $query=[], bool $add_csrf_tokens=true)
Generate an action URL.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_get_session()
Gets Elgg's session object.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
if(!$user instanceof\ElggUser) $original_user
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
if(function_exists('apache_get_version')) $icon
get_user(int $guid)
Elgg users Functions to manage multiple or single users in an Elgg install.
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
_elgg_services()
Get the global service provider.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
Models an event passed to event handlers.
getDisplayName()
Get the entity's display name.