From d3efed2f847ced2ecfaa536856f6a0acc4cddbfc Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 4 Aug 2008 17:08:31 +0000 Subject: User settings git-svn-id: https://code.elgg.org/elgg/trunk@1689 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../notifications/settings/usersettings.php | 14 ++++++++++--- views/default/page_elements/elgg_topbar.php | 2 +- views/default/user/settings/email.php | 7 ++++++- views/default/user/settings/language.php | 2 +- views/default/user/settings/name.php | 7 ++++++- views/default/user/settings/password.php | 11 +++++++--- views/default/usersettings/form.php | 3 +++ views/default/usersettings/statistics.php | 3 --- .../usersettings/statistics_opt/numentities.php | 24 +++++++++++++--------- .../default/usersettings/statistics_opt/online.php | 12 +++++------ 10 files changed, 56 insertions(+), 29 deletions(-) (limited to 'views') diff --git a/views/default/notifications/settings/usersettings.php b/views/default/notifications/settings/usersettings.php index edbaf5584..2792ccd4a 100644 --- a/views/default/notifications/settings/usersettings.php +++ b/views/default/notifications/settings/usersettings.php @@ -26,9 +26,17 @@ : - - $k) echo "checked=\"yes\" "; ?>/>
- $k) echo "checked=\"yes\" "; ?>/> + +k) { + $val = "yes"; + } else { + $val = "no"; + } + echo elgg_view('input/radio',array('internalname' => "method[{$k}]", 'options' => array('yes','no'), 'value' => $val)); + +?> - +

- : + : + 'email', 'value' => $user->email)); + + ?>

\ No newline at end of file diff --git a/views/default/user/settings/language.php b/views/default/user/settings/language.php index 0d478ac95..0dbe66b26 100644 --- a/views/default/user/settings/language.php +++ b/views/default/user/settings/language.php @@ -18,7 +18,7 @@

- : : language; if ($user->language) diff --git a/views/default/user/settings/name.php b/views/default/user/settings/name.php index da0ded99a..0faac2428 100644 --- a/views/default/user/settings/name.php +++ b/views/default/user/settings/name.php @@ -16,7 +16,12 @@ ?>

- : + : + 'name', 'value' => $user->name)); + + ?>

\ No newline at end of file diff --git a/views/default/user/settings/password.php b/views/default/user/settings/password.php index b40a131e6..b180609c6 100644 --- a/views/default/user/settings/password.php +++ b/views/default/user/settings/password.php @@ -14,10 +14,15 @@ if ($user) { ?> -

+

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

\ No newline at end of file diff --git a/views/default/usersettings/form.php b/views/default/usersettings/form.php index c6f2f4968..e245a0da1 100644 --- a/views/default/usersettings/form.php +++ b/views/default/usersettings/form.php @@ -1,9 +1,12 @@
+ +
+

diff --git a/views/default/usersettings/statistics.php b/views/default/usersettings/statistics.php index 8ab6712c6..a130e730e 100644 --- a/views/default/usersettings/statistics.php +++ b/views/default/usersettings/statistics.php @@ -10,7 +10,4 @@ * @link http://elgg.org/ */ - global $CONFIG; - - echo "

" . autop(elgg_echo("usersettings:statistics:description")) . "

"; ?> \ No newline at end of file diff --git a/views/default/usersettings/statistics_opt/numentities.php b/views/default/usersettings/statistics_opt/numentities.php index 4fe218048..c6d634f62 100644 --- a/views/default/usersettings/statistics_opt/numentities.php +++ b/views/default/usersettings/statistics_opt/numentities.php @@ -17,27 +17,31 @@ if ($entity_stats) { ?> -
-

+
+

$entry) { - echo "
"; 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 { + $a = elgg_echo("item:{$k}:{$a}"); + if (empty($a)) { + $a = "$k $a"; + } + } echo <<< END - - + + END; } - echo "
$a :$b{$a}:{$b}
"; } ?> diff --git a/views/default/usersettings/statistics_opt/online.php b/views/default/usersettings/statistics_opt/online.php index 6a4cb9c1b..4f4a07015 100644 --- a/views/default/usersettings/statistics_opt/online.php +++ b/views/default/usersettings/statistics_opt/online.php @@ -18,13 +18,13 @@ $logged_in=$log[0]->time_created; ?> -
-

+
+

- - - - + + + +
name; ?>
email; ?>
time_created); ?>
name; ?>
email; ?>
time_created); ?>
\ No newline at end of file -- cgit v1.2.3