Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
widgets
online_users
content.php
Go to the documentation of this file.
1
<?php
6
$widget
=
elgg_extract
(
'entity'
,
$vars
);
7
if
(!
$widget
instanceof
ElggWidget
) {
8
return
;
9
}
10
11
$num_display
= (int)
$widget
->num_display ?: 8;
12
13
echo
get_online_users
([
14
'pagination'
=>
false
,
15
'limit'
=>
$num_display
,
16
'no_results'
=>
true
,
17
]);
get_online_users
get_online_users(array $options=[])
Render a list of currently online users.
Definition:
statistics.php:93
$widget
if(elgg_in_context('default_widgets')) $widget
Definition:
content.php:8
$num_display
if(!$widget instanceof ElggWidget) $num_display
Definition:
content.php:10
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_extract
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:1131
$vars
$vars['type']
Definition:
save.php:11
ElggWidget
Definition:
ElggWidget.php:16
Generated on Mon Jan 18 2021 00:00:25 for Elgg by
1.8.11