aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/statistics_opt
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/admin/statistics_opt')
-rw-r--r--views/default/admin/statistics_opt/basic.php4
-rw-r--r--views/default/admin/statistics_opt/numentities.php4
-rw-r--r--views/default/admin/statistics_opt/online.php22
3 files changed, 17 insertions, 13 deletions
diff --git a/views/default/admin/statistics_opt/basic.php b/views/default/admin/statistics_opt/basic.php
index eed94c76b..f89314fef 100644
--- a/views/default/admin/statistics_opt/basic.php
+++ b/views/default/admin/statistics_opt/basic.php
@@ -19,9 +19,9 @@ $version = get_version();
$release = get_version(true);
?>
-<div class="admin_statistics">
+<div class="admin_settings site_stats">
<h3><?php echo elgg_echo('admin:statistics:label:basic'); ?></h3>
- <table>
+ <table class="styled">
<tr class="odd">
<td class="column_one"><b><?php echo elgg_echo('admin:statistics:label:version'); ?> :</b></td>
<td><?php echo elgg_echo('admin:statistics:label:version:release'); ?> - <?php echo $release; ?>, <?php echo elgg_echo('admin:statistics:label:version:version'); ?> - <?php echo $version; ?></td>
diff --git a/views/default/admin/statistics_opt/numentities.php b/views/default/admin/statistics_opt/numentities.php
index 9f67512e1..4336c5a82 100644
--- a/views/default/admin/statistics_opt/numentities.php
+++ b/views/default/admin/statistics_opt/numentities.php
@@ -12,9 +12,9 @@
$entity_stats = get_entity_statistics();
$even_odd = "";
?>
-<div class="admin_statistics">
+<div class="admin_settings site_entities">
<h3><?php echo elgg_echo('admin:statistics:label:numentities'); ?></h3>
- <table>
+ <table class="styled">
<?php
foreach ($entity_stats as $k => $entry) {
arsort($entry);
diff --git a/views/default/admin/statistics_opt/online.php b/views/default/admin/statistics_opt/online.php
index 70a2979c1..b30e8a396 100644
--- a/views/default/admin/statistics_opt/online.php
+++ b/views/default/admin/statistics_opt/online.php
@@ -9,12 +9,16 @@
*/
// users online
-get_context('search');
-$users_online = get_online_users();
-get_context('admin');
-?>
-
-<div class="admin_users_online">
- <h3><?php echo elgg_echo('admin:statistics:label:onlineusers'); ?></h3>
- <?php echo $users_online; ?>
-</div>
+if( (is_plugin_enabled('search')) && (is_plugin_enabled('profile')) ) {
+ get_context('search');
+ $users_online = get_online_users();
+ get_context('admin');
+ ?>
+
+ <div class="admin_settings users_online">
+ <h3><?php echo elgg_echo('admin:statistics:label:onlineusers'); ?></h3>
+ <?php echo $users_online; ?>
+ </div>
+<?php
+}
+?> \ No newline at end of file