Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
content.php
Go to the documentation of this file.
1 <?php
6 $num_display = sanitize_int($vars['entity']->num_display, false);
7 // set default value for display number
8 if (!$num_display) {
9  $num_display = 8;
10 }
11 
12 echo get_online_users(array(
13  'pagination' => false,
14  'limit' => $num_display
15 ));
get_online_users(array $options=array())
Render a list of currently online users.
Definition: statistics.php:89
$num_display
Banned users admin widget.
Definition: content.php:6
$vars['title']
Definition: content.php:19
sanitize_int($int, $signed=true)
Sanitizes an integer for database use.
Definition: database.php:180