From 14817d46e6626501027e8ccb85bab28814c295db Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 1 Jul 2008 18:24:42 +0000 Subject: Admin menus to the contextual menu git-svn-id: https://code.elgg.org/elgg/trunk@1258 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/views/default/profile/menu/actions.php | 19 ++++++++++++++++++- mod/profile/views/default/profile/userdetails.php | 15 --------------- 2 files changed, 18 insertions(+), 16 deletions(-) (limited to 'mod') diff --git a/mod/profile/views/default/profile/menu/actions.php b/mod/profile/views/default/profile/menu/actions.php index f69ad1316..c2b4112d4 100644 --- a/mod/profile/views/default/profile/menu/actions.php +++ b/mod/profile/views/default/profile/menu/actions.php @@ -21,5 +21,22 @@ } } } - + + if (isadminloggedin()){ + if ($_SESSION['user']->getGUID() != $vars['entity']->guid){ +?> + +

+ +

+ +

+ + admin) { ?> +

+ + + \ No newline at end of file diff --git a/mod/profile/views/default/profile/userdetails.php b/mod/profile/views/default/profile/userdetails.php index 160ff4abe..e0b6d676e 100644 --- a/mod/profile/views/default/profile/userdetails.php +++ b/mod/profile/views/default/profile/userdetails.php @@ -116,21 +116,6 @@ } // TODO: Add admin console options here - if (isadminloggedin()){ - if ($_SESSION['id']!=$vars['entity']->guid){ -?> - -   - -   - -   - - admin) { ?>  - -

-- cgit v1.2.3