Elgg  Version 3.0
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 
14  'pagination' => false,
15  'limit' => $num_display,
16  'no_results' => true,
17 ]);
get_online_users(array $options=[])
Render a list of currently online users.
Definition: statistics.php:93
if(elgg_in_context('default_widgets')) $widget
Definition: content.php:8
if(!$widget instanceof ElggWidget) $num_display
Definition: content.php:10
elgg echo
Translates a string.
Definition: languages.js:43
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['type']
Definition: save.php:11