31 $return = $event->getValue();
45 'name' =>
'online_users_count',
48 'title' =>
elgg_echo(
'admin:statistics:label:numonline'),
50 'deps' => [
'admin/users/online'],
51 'href' =>
'admin/users/online',
58 'name' =>
'view_site',
62 'parent_name' =>
'account',
69 'name' =>
'admin_logout',
70 'icon' =>
'sign-out-alt',
73 'parent_name' =>
'account',
84 'src' =>
$admin->getIconURL(
'small'),
85 'alt' =>
$admin->getDisplayName(),
87 'link_class' =>
'elgg-avatar-small',
111 $return = $event->getValue();
114 'name' =>
'maintenance',
116 'text' =>
elgg_echo(
'admin:configure_utilities:maintenance'),
117 'href' =>
'admin/configure_utilities/maintenance',
118 'link_class' =>
'elgg-maintenance-mode-warning',
138 $return = $event->getValue();
141 'name' =>
'administer',
142 'text' =>
elgg_echo(
'menu:page:header:administer'),
148 'name' =>
'dashboard',
152 'parent_name' =>
'administer',
160 'parent_name' =>
'administer',
166 'href' =>
'admin/users',
168 'parent_name' =>
'administer',
172 'name' =>
'upgrades',
174 'href' =>
'admin/upgrades',
176 'parent_name' =>
'administer',
200 $administer =
$default->get(
'administer');
201 if (!$administer instanceof \
ElggMenuItem || empty($administer->getChildren())) {
207 foreach ($administer->getChildren() as $child) {
208 if ($child->getID() ===
'users') {
222 'name' =>
'users:all',
224 'href' =>
'admin/users',
225 'parent_name' =>
'users',
232 $users->addItemClass(
'elgg-has-selected-child');
233 $users->addItemClass(
'elgg-state-selected');
254 $return = $event->getValue();
257 'name' =>
'configure',
258 'text' =>
elgg_echo(
'menu:page:header:configure'),
264 'name' =>
'settings:basic',
265 'text' =>
elgg_echo(
'admin:site_settings'),
266 'href' =>
'admin/site_settings',
268 'parent_name' =>
'configure',
272 'name' =>
'settings:icons',
274 'href' =>
'admin/site_icons',
276 'parent_name' =>
'configure',
280 'name' =>
'settings:theme',
282 'href' =>
'admin/theme',
284 'parent_name' =>
'configure',
288 'name' =>
'security',
290 'href' =>
'admin/security',
292 'parent_name' =>
'configure',
296 'name' =>
'configure_utilities:maintenance',
297 'text' =>
elgg_echo(
'admin:configure_utilities:maintenance'),
298 'href' =>
'admin/configure_utilities/maintenance',
300 'parent_name' =>
'configure',
304 'name' =>
'configure_utilities:robots',
305 'text' =>
elgg_echo(
'admin:configure_utilities:robots'),
306 'href' =>
'admin/configure_utilities/robots',
308 'parent_name' =>
'configure',
327 $return = $event->getValue();
330 'name' =>
'utilities',
331 'text' =>
elgg_echo(
'menu:page:header:utilities'),
337 'name' =>
'configure_utilities:menu_items',
338 'text' =>
elgg_echo(
'admin:configure_utilities:menu_items'),
339 'href' =>
'admin/configure_utilities/menu_items',
340 'parent_name' =>
'utilities',
363 $return = $event->getValue();
366 'name' =>
'default_widgets',
367 'text' =>
elgg_echo(
'admin:configure_utilities:default_widgets'),
368 'href' =>
'admin/configure_utilities/default_widgets',
369 'parent_name' =>
'utilities',
388 $return = $event->getValue();
391 'name' =>
'information',
392 'text' =>
elgg_echo(
'menu:page:header:information'),
400 'href' =>
'admin/server',
401 'parent_name' =>
'information',
406 'name' =>
'information:security',
408 'href' =>
'admin/security/information',
409 'parent_name' =>
'information',
414 'name' =>
'information:performance',
415 'text' =>
elgg_echo(
'admin:performance'),
416 'href' =>
'admin/performance',
417 'parent_name' =>
'information',
422 'name' =>
'statistics',
424 'href' =>
'admin/statistics',
425 'parent_name' =>
'information',
432 'href' =>
'admin/cron',
433 'parent_name' =>
'information',
elgg_generate_action_url(string $action, array $query=[], bool $add_csrf_tokens=true)
Generate an action URL.
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
Saves user notification settings.
if(empty($user_guids)) $users
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Database abstraction query builder.
elgg_trigger_event_results(string $event, string $type, array $params=[], $returnvalue=null)
Triggers an event where it is expected that the mixed return value could be manipulated by event call...
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
static normalizeTimestamp($time)
Returns timestamp value of the time representation.
static shortFormatOutput($n, $precision=0)
Use to convert large positive numbers in to short form like 1K, 1M, 1B or 1T Example: shortFormatOutp...
compare(string $x, string $comparison, $y=null, string $type=null, bool $case_sensitive=null)
Build value comparison clause.
elgg_count_entities(array $options=[])
Returns a count of entities.
elgg_get_site_url()
Get the URL for the current (or specified) site, ending with "/".
$selected
Admin helper view for tabs on the different security pages.
const ELGG_VALUE_TIMESTAMP
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
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.