aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/online_users/content.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/widgets/online_users/content.php')
-rw-r--r--views/default/widgets/online_users/content.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/default/widgets/online_users/content.php b/views/default/widgets/online_users/content.php
new file mode 100644
index 000000000..6e0cc7abb
--- /dev/null
+++ b/views/default/widgets/online_users/content.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * Online users widget
+ */
+
+$count = find_active_users(600, 10, 0, true);
+$objects = find_active_users(600, 10);
+
+if ($objects) {
+ echo elgg_view_entity_list($objects, array(
+ 'count' => $count,
+ 'limit' => 10,
+ 'pagination' => false,
+ ));
+}