aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/users
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-08 18:24:36 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-08 18:24:36 +0000
commitfd1acc79bce6c6e1cee19040857b6d8e073cbc2f (patch)
treebcee5e3c0ddd88b194b22adaa2d71a7a076d9130 /views/default/admin/users
parentc62205862130103778018c87d6fccee0ab6ae6d2 (diff)
downloadelgg-fd1acc79bce6c6e1cee19040857b6d8e073cbc2f.tar.gz
elgg-fd1acc79bce6c6e1cee19040857b6d8e073cbc2f.tar.bz2
drying up the title creation in the admin backend
git-svn-id: http://code.elgg.org/elgg/trunk@7864 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/users')
-rw-r--r--views/default/admin/users/add.php1
-rw-r--r--views/default/admin/users/newest.php23
-rw-r--r--views/default/admin/users/online.php21
3 files changed, 17 insertions, 28 deletions
diff --git a/views/default/admin/users/add.php b/views/default/admin/users/add.php
index 9caeedd89..83cad6106 100644
--- a/views/default/admin/users/add.php
+++ b/views/default/admin/users/add.php
@@ -3,5 +3,4 @@
* Display an add user form.
*/
-echo elgg_view_title(elgg_echo('admin:users'));
echo elgg_view('forms/useradd', array('show_admin'=>true)); \ No newline at end of file
diff --git a/views/default/admin/users/newest.php b/views/default/admin/users/newest.php
index 4d5b85836..c224df215 100644
--- a/views/default/admin/users/newest.php
+++ b/views/default/admin/users/newest.php
@@ -1,17 +1,14 @@
<?php
// newest users
-if (is_plugin_enabled('profile')) {
- $users = elgg_list_entities(array(
- 'type' => 'user', 'subtype'=>null,
- 'full_view' => FALSE
- ));
+$users = elgg_list_entities(array(
+ 'type' => 'user',
+ 'subtype'=> null,
+ 'full_view' => FALSE
+));
- echo elgg_view_title(elgg_echo('admin:users'));
- ?>
+?>
- <div class="admin_settings members-list users_online">
- <h3><?php echo elgg_echo('admin:users:newest'); ?></h3>
- <?php echo $users; ?>
- </div>
-<?php
-} \ No newline at end of file
+<div class="admin_settings members-list users_online">
+ <h3><?php echo elgg_echo('admin:users:newest'); ?></h3>
+ <?php echo $users; ?>
+</div>
diff --git a/views/default/admin/users/online.php b/views/default/admin/users/online.php
index 9c0f52c7f..aa3515948 100644
--- a/views/default/admin/users/online.php
+++ b/views/default/admin/users/online.php
@@ -1,16 +1,9 @@
<?php
-// users online
-if ((is_plugin_enabled('search')) && (is_plugin_enabled('profile'))) {
- elgg_push_context('search');
- $users_online = get_online_users();
- elgg_pop_context();
-
- echo elgg_view_title(elgg_echo('admin:users'));
- ?>
- <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
+$users_online = get_online_users();
+
+?>
+<div class="admin_settings members-list users_online">
+ <h3><?php echo elgg_echo('admin:statistics:label:onlineusers'); ?></h3>
+ <?php echo $users_online; ?>
+</div>