aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--languages/en.php8
-rw-r--r--views/default/admin/statistics_opt/basic.php6
-rw-r--r--views/default/admin/statistics_opt/numentities.php27
3 files changed, 30 insertions, 11 deletions
diff --git a/languages/en.php b/languages/en.php
index b47d6a7ee..f80743563 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -1,6 +1,12 @@
<?php
$english = array(
+
+ /**
+ * Sites
+ */
+
+ 'item:site' => 'Sites',
/**
* Sessions
@@ -174,6 +180,7 @@
* Groups
*/
+ 'group' => "Group",
'item:group' => "Groups",
/**
@@ -182,6 +189,7 @@
'profile' => "Profile",
'user' => "User",
+ 'item:user' => "Users",
/**
* Profile menu items and titles
diff --git a/views/default/admin/statistics_opt/basic.php b/views/default/admin/statistics_opt/basic.php
index b249db830..212ef5728 100644
--- a/views/default/admin/statistics_opt/basic.php
+++ b/views/default/admin/statistics_opt/basic.php
@@ -18,15 +18,15 @@
include_once($CONFIG->path . "version.php");
?>
-<div>
+<div class="admin_statistics">
<h2><?php echo elgg_echo('admin:statistics:label:basic'); ?></h2>
<table>
<tr>
- <td><b><?php echo elgg_echo('admin:statistics:label:version'); ?> :</b></td>
+ <td style="width: 250px"><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>
</tr>
<tr>
- <td><b><?php echo elgg_echo('admin:statistics:label:numusers'); ?> :</b></td>
+ <td style="width: 250px"><b><?php echo elgg_echo('admin:statistics:label:numusers'); ?> :</b></td>
<td><?php echo $users_stats; ?></td>
</tr>
diff --git a/views/default/admin/statistics_opt/numentities.php b/views/default/admin/statistics_opt/numentities.php
index a424b78cf..20a2168fb 100644
--- a/views/default/admin/statistics_opt/numentities.php
+++ b/views/default/admin/statistics_opt/numentities.php
@@ -14,22 +14,33 @@
// Get entity statistics
$entity_stats = get_entity_statistics();
?>
-<div>
+<div class="admin_statistics">
<h2><?php echo elgg_echo('admin:statistics:label:numentities'); ?></h2>
<table>
<?php
foreach ($entity_stats as $k => $entry)
- {
+ {
+ arsort($entry);
foreach ($entry as $a => $b)
{
- if ($a == "__base__")
- $a=$k;
- else
- $a = "$k $a";
+ if ($a == "__base__") {
+ $a = elgg_echo("item:{$k}");
+ if (empty($a))
+ $a = $k;
+ }
+ else {
+ if (empty($a))
+ $a = elgg_echo("item:{$k}");
+ else
+ $a = elgg_echo("item:{$k}:{$a}");
+ if (empty($a)) {
+ $a = "$k $a";
+ }
+ }
echo <<< END
<tr>
- <td><b>$a :</b></td>
- <td>$b</td>
+ <td style="width: 250px">{$a}:</td>
+ <td>{$b}</td>
</tr>
END;
}