aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/overview
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/admin/overview')
-rw-r--r--views/default/admin/overview/numentities.php9
-rw-r--r--views/default/admin/overview/online.php24
2 files changed, 33 insertions, 0 deletions
diff --git a/views/default/admin/overview/numentities.php b/views/default/admin/overview/numentities.php
new file mode 100644
index 000000000..0d0e1b83b
--- /dev/null
+++ b/views/default/admin/overview/numentities.php
@@ -0,0 +1,9 @@
+<?php
+/**
+ * Elgg statistics screen
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
diff --git a/views/default/admin/overview/online.php b/views/default/admin/overview/online.php
new file mode 100644
index 000000000..0045f8299
--- /dev/null
+++ b/views/default/admin/overview/online.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * Elgg statistics screen
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
+
+// users online
+if( (is_plugin_enabled('search')) && (is_plugin_enabled('profile')) ) {
+ get_context('search');
+ $users_online = get_online_users();
+ get_context('admin');
+ ?>
+
+ <div class="admin_settings members_list users_online">
+ <h3><?php echo elgg_echo('admin:statistics:label:onlineusers'); ?></h3>
+ <?php echo $users_online; ?>
+ </div>
+<?php
+}
+?> \ No newline at end of file