From a1abec1d617c9330d9c06bda2f462d213f013f53 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 16 Oct 2009 20:54:48 +0000 Subject: Finish up standardizing views/default/* git-svn-id: http://code.elgg.org/elgg/trunk@3557 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/user/settings/default_access.php | 52 +++++++++++----------- views/default/user/settings/email.php | 41 +++++++++--------- views/default/user/settings/language.php | 60 +++++++++++++------------- views/default/user/settings/name.php | 11 ++--- views/default/user/settings/password.php | 45 ++++++++++--------- 5 files changed, 105 insertions(+), 104 deletions(-) (limited to 'views/default/user/settings') diff --git a/views/default/user/settings/default_access.php b/views/default/user/settings/default_access.php index d5df5e426..3a6e6842c 100644 --- a/views/default/user/settings/default_access.php +++ b/views/default/user/settings/default_access.php @@ -1,30 +1,30 @@ allow_user_default_access) { + $user = page_owner_entity(); - * @author Curverider Ltd + if ($user) { + if (false === ($default_access = $user->getPrivateSetting('elgg_default_access'))) { + $default_access = $vars['config']->default_access; + } +?> +

+

+ : + allow_user_default_access) { - $user = page_owner_entity(); - - if ($user) { - if (false === ($default_access = $user->getPrivateSetting('elgg_default_access'))) { - $default_access = $vars['config']->default_access; - } - ?> -

-

- : - 'default_access', 'value' => $default_access)); - - ?> -

+ echo elgg_view('input/access',array('internalname' => 'default_access', 'value' => $default_access)); - \ No newline at end of file + ?> +

+ + -

-

- : - +

+ : + 'email', 'value' => $user->email)); - echo elgg_view('input/email',array('internalname' => 'email', 'value' => $user->email)); - - ?> -

+ ?> +

- \ No newline at end of file + -

-

- - : language; - if ($user->language) - $value = $user->language; - - echo elgg_view("input/pulldown", array('internalname' => 'language', 'value' => $value, 'options_values' => get_installed_translations())); - - ?> - -

- - \ No newline at end of file +

+

+ + : language; + if ($user->language) { + $value = $user->language; + } + + echo elgg_view("input/pulldown", array('internalname' => 'language', 'value' => $value, 'options_values' => get_installed_translations())); + + ?> + +

+ +

@@ -21,7 +21,8 @@ echo elgg_view('input/text',array('internalname' => 'name', 'value' => $user->name)); echo elgg_view('input/hidden',array('internalname' => 'guid', 'value' => $user->guid)); - ?> + ?>

- \ No newline at end of file + -

-

- : - 'password')); - ?>

- : 'password2')); - ?> -

+

+

+ : + 'password')); + ?>

+ : 'password2')); + ?> +

- \ No newline at end of file +