aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Różalski <cristo.rabani@gmail.com>2012-11-28 00:09:05 +0100
committerKrzysztof Różalski <cristo.rabani@gmail.com>2012-11-28 00:33:33 +0100
commit04e73aa6428eb792bedbbd616891de52eed3dcbf (patch)
tree7b716f8fb63117e5c6f71b0fd1baaa9acf32c80b
parent522a8d1a7b6eaf5e6bd826f6d29d51eb5f788b64 (diff)
downloadelgg-04e73aa6428eb792bedbbd616891de52eed3dcbf.tar.gz
elgg-04e73aa6428eb792bedbbd616891de52eed3dcbf.tar.bz2
Fixes #4935 - Adds admin listing in admin panel
-rw-r--r--engine/lib/admin.php5
-rw-r--r--languages/en.php2
-rw-r--r--views/default/admin/users/admins.php12
3 files changed, 17 insertions, 2 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php
index b65d98c95..3f23f079c 100644
--- a/engine/lib/admin.php
+++ b/engine/lib/admin.php
@@ -268,8 +268,9 @@ function admin_init() {
// users
elgg_register_admin_menu_item('administer', 'users', null, 20);
elgg_register_admin_menu_item('administer', 'online', 'users', 10);
- elgg_register_admin_menu_item('administer', 'newest', 'users', 20);
- elgg_register_admin_menu_item('administer', 'add', 'users', 30);
+ elgg_register_admin_menu_item('administer', 'admins', 'users', 20);
+ elgg_register_admin_menu_item('administer', 'newest', 'users', 30);
+ elgg_register_admin_menu_item('administer', 'add', 'users', 40);
// configure
// plugins
diff --git a/languages/en.php b/languages/en.php
index 62b35dd81..2b5ba00fd 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -582,6 +582,7 @@ $english = array(
'admin:users' => "Users",
'admin:users:online' => 'Currently Online',
'admin:users:newest' => 'Newest',
+ 'admin:users:admins' => 'Administrators',
'admin:users:add' => 'Add New User',
'admin:users:description' => "This admin panel allows you to control user settings for your site. Choose an option below to get started.",
'admin:users:adduser:label' => "Click here to add a new user...",
@@ -733,6 +734,7 @@ $english = array(
'admin:statistics:label:numusers' => "Number of users",
'admin:statistics:label:numonline' => "Number of users online",
'admin:statistics:label:onlineusers' => "Users online now",
+ 'admin:statistics:label:admins'=>"Admins",
'admin:statistics:label:version' => "Elgg version",
'admin:statistics:label:version:release' => "Release",
'admin:statistics:label:version:version' => "Version",
diff --git a/views/default/admin/users/admins.php b/views/default/admin/users/admins.php
new file mode 100644
index 000000000..9b175d437
--- /dev/null
+++ b/views/default/admin/users/admins.php
@@ -0,0 +1,12 @@
+<?php
+$admins = elgg_list_entities(array(), 'elgg_get_admins');
+
+?>
+<div class="elgg-module elgg-module-inline">
+ <div class="elgg-head">
+ <h3><?php echo elgg_echo('admin:statistics:label:admins'); ?></h3>
+ </div>
+ <div class="elgg-body">
+ <?php echo $admins; ?>
+ </div>
+</div>