diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-01 20:27:15 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-01 20:27:15 +0000 |
commit | 3e79004b04458c0ec11462a422dc67f2fb3c2bdb (patch) | |
tree | 854bf7ee1df19e44961f78ae90de645a7cd1bed9 /views/default/core/settings | |
parent | 0fc7a5edbc518abd92c4fc8c34b31ca05836132f (diff) | |
download | elgg-3e79004b04458c0ec11462a422dc67f2fb3c2bdb.tar.gz elgg-3e79004b04458c0ec11462a422dc67f2fb3c2bdb.tar.bz2 |
using the info module for user settings
git-svn-id: http://code.elgg.org/elgg/trunk@7808 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/core/settings')
-rw-r--r-- | views/default/core/settings/account/default_access.php | 12 | ||||
-rw-r--r-- | views/default/core/settings/account/email.php | 22 | ||||
-rw-r--r-- | views/default/core/settings/account/language.php | 32 | ||||
-rw-r--r-- | views/default/core/settings/account/notifications.php | 8 | ||||
-rw-r--r-- | views/default/core/settings/account/password.php | 53 | ||||
-rw-r--r-- | views/default/core/settings/statistics/numentities.php | 12 | ||||
-rw-r--r-- | views/default/core/settings/statistics/online.php | 21 | ||||
-rw-r--r-- | views/default/core/settings/tools/plugin.php | 18 |
8 files changed, 103 insertions, 75 deletions
diff --git a/views/default/core/settings/account/default_access.php b/views/default/core/settings/account/default_access.php index e7c280198..3fbf3d32d 100644 --- a/views/default/core/settings/account/default_access.php +++ b/views/default/core/settings/account/default_access.php @@ -13,16 +13,20 @@ if ($vars['config']->allow_user_default_access) { $default_access = $vars['config']->default_access; } ?> -<div class="user-settings access"> - <h3><?php echo elgg_echo('default_access:settings'); ?></h3> - <p> +<div class="elgg-module elgg-info-module"> + <div class="elgg-head"> + <h3><?php echo elgg_echo('default_access:settings'); ?></h3> + </div> + <div class="elgg-body"> + <p> <?php echo elgg_echo('default_access:label'); ?>: <?php echo elgg_view('input/access',array('internalname' => 'default_access', 'value' => $default_access)); ?> - </p> + </p> + </div> </div> <?php } diff --git a/views/default/core/settings/account/email.php b/views/default/core/settings/account/email.php index 396f8e79b..b0d69eb82 100644 --- a/views/default/core/settings/account/email.php +++ b/views/default/core/settings/account/email.php @@ -10,16 +10,18 @@ $user = elgg_get_page_owner(); if ($user) { ?> -<div class="user-settings email"> -<h3><?php echo elgg_echo('email:settings'); ?></h3> -<p> - <?php echo elgg_echo('email:address:label'); ?>: - <?php - - echo elgg_view('input/email',array('internalname' => 'email', 'value' => $user->email)); - - ?> -</p> +<div class="elgg-module elgg-info-module"> + <div class="elgg-head"> + <h3><?php echo elgg_echo('email:settings'); ?></h3> + </div> + <div class="elgg-body"> + <p> + <?php echo elgg_echo('email:address:label'); ?>: + <?php + echo elgg_view('input/email',array('internalname' => 'email', 'value' => $user->email)); + ?> + </p> + </div> </div> <?php }
\ No newline at end of file diff --git a/views/default/core/settings/account/language.php b/views/default/core/settings/account/language.php index ada133791..45d121c15 100644 --- a/views/default/core/settings/account/language.php +++ b/views/default/core/settings/account/language.php @@ -11,22 +11,22 @@ $user = elgg_get_page_owner(); if ($user) { ?> -<div class="user-settings language"> -<h3><?php echo elgg_echo('user:set:language'); ?></h3> -<p> - - <?php echo elgg_echo('user:language:label'); ?>: <?php - - $value = $CONFIG->language; - if ($user->language) { - $value = $user->language; - } - - echo elgg_view("input/pulldown", array('internalname' => 'language', 'value' => $value, 'options_values' => get_installed_translations())); - - ?> - -</p> +<div class="elgg-module elgg-info-module"> + <div class="elgg-head"> + <h3><?php echo elgg_echo('user:set:language'); ?></h3> + </div> + <div class="elgg-body"> + <p> + <?php echo elgg_echo('user:language:label'); ?>: + <?php + echo elgg_view("input/pulldown", array( + 'internalname' => 'language', + 'value' => $value, + 'options_values' => get_installed_translations() + )); + ?> + </p> + </div> </div> <?php }
\ No newline at end of file diff --git a/views/default/core/settings/account/notifications.php b/views/default/core/settings/account/notifications.php index afb142ebe..1a54b1a98 100644 --- a/views/default/core/settings/account/notifications.php +++ b/views/default/core/settings/account/notifications.php @@ -10,8 +10,11 @@ global $NOTIFICATION_HANDLERS; $notification_settings = get_user_notification_settings(elgg_get_page_owner_guid()); ?> -<div class="user-settings notifications"> -<h3><?php echo elgg_echo('notifications:usersettings'); ?></h3> +<div class="elgg-module elgg-info-module"> + <div class="elgg-head"> + <h3><?php echo elgg_echo('notifications:usersettings'); ?></h3> + </div> + <div class="elgg-body"> <p><?php echo elgg_echo('notifications:methods'); ?> @@ -48,4 +51,5 @@ $notification_settings = get_user_notification_settings(elgg_get_page_owner_guid } ?> </table> + </div> </div>
\ No newline at end of file diff --git a/views/default/core/settings/account/password.php b/views/default/core/settings/account/password.php index 0bd7f38f8..8e200754e 100644 --- a/views/default/core/settings/account/password.php +++ b/views/default/core/settings/account/password.php @@ -10,33 +10,36 @@ $user = elgg_get_page_owner(); if ($user) { ?> -<div class="user-settings password"> -<h3><?php echo elgg_echo('user:set:password'); ?></h3> +<div class="elgg-module elgg-info-module"> + <div class="elgg-head"> + <h3><?php echo elgg_echo('user:set:password'); ?></h3> + </div> + <div class="elgg-body"> + <?php + // only make the admin user enter current password for changing his own password. + if (!isadminloggedin() || isadminloggedin() && $user->guid == get_loggedin_userid()) { + ?> + <p> + <?php echo elgg_echo('user:current_password:label'); ?>: + <?php + echo elgg_view('input/password', array('internalname' => 'current_password')); + ?> + </p> + <?php } ?> - <?php - // only make the admin user enter current password for changing his own password. - if (!isadminloggedin() || isadminloggedin() && $user->guid == get_loggedin_userid()) { - ?> - <p> - <?php echo elgg_echo('user:current_password:label'); ?>: - <?php - echo elgg_view('input/password', array('internalname' => 'current_password')); - ?> - </p> - <?php } ?> + <p> + <?php echo elgg_echo('user:password:label'); ?>: + <?php + echo elgg_view('input/password', array('internalname' => 'password')); + ?> + </p> - <p> - <?php echo elgg_echo('user:password:label'); ?>: - <?php - echo elgg_view('input/password', array('internalname' => 'password')); - ?> - </p> - - <p> - <?php echo elgg_echo('user:password2:label'); ?>: <?php - echo elgg_view('input/password', array('internalname' => 'password2')); - ?> - </p> + <p> + <?php echo elgg_echo('user:password2:label'); ?>: <?php + echo elgg_view('input/password', array('internalname' => 'password2')); + ?> + </p> + </div> </div> <?php }
\ No newline at end of file diff --git a/views/default/core/settings/statistics/numentities.php b/views/default/core/settings/statistics/numentities.php index 10d2b7c68..dce668ae9 100644 --- a/views/default/core/settings/statistics/numentities.php +++ b/views/default/core/settings/statistics/numentities.php @@ -11,9 +11,12 @@ $entity_stats = get_entity_statistics(get_loggedin_userid()); if ($entity_stats) { ?> -<div class="user-settings statistics"> - <h3><?php echo elgg_echo('usersettings:statistics:label:numentities'); ?></h3> - <table class="styled"> +<div class="elgg-module elgg-info-module"> + <div class="elgg-head"> + <h3><?php echo elgg_echo('usersettings:statistics:label:numentities'); ?></h3> + </div> + <div class="elgg-body"> + <table class="styled"> <?php foreach ($entity_stats as $k => $entry) { foreach ($entry as $a => $b) { @@ -41,7 +44,8 @@ END; } } ?> - </table> + </table> + </div> </div> <?php }
\ No newline at end of file diff --git a/views/default/core/settings/statistics/online.php b/views/default/core/settings/statistics/online.php index dc24130cd..728248442 100644 --- a/views/default/core/settings/statistics/online.php +++ b/views/default/core/settings/statistics/online.php @@ -16,13 +16,16 @@ if ($log) { } ?> -<div class="user-settings details"> - <h3><?php echo elgg_echo('usersettings:statistics:yourdetails'); ?></h3> - - <table class="styled"> - <tr class="odd"><td class="column-one"><?php echo elgg_echo('usersettings:statistics:label:name'); ?></td><td><?php echo $user->name; ?></td></tr> - <tr class="even"><td class="column-one"><?php echo elgg_echo('usersettings:statistics:label:email'); ?></td><td><?php echo $user->email; ?></td></tr> - <tr class="odd"><td class="column-one"><?php echo elgg_echo('usersettings:statistics:label:membersince'); ?></td><td><?php echo date("r",$user->time_created); ?></td></tr> - <tr class="even"><td class="column-one"><?php echo elgg_echo('usersettings:statistics:label:lastlogin'); ?></td><td><?php echo date("r",$logged_in); ?></td></tr> - </table> +<div class="elgg-module elgg-info-module"> + <div class="elgg-head"> + <h3><?php echo elgg_echo('usersettings:statistics:yourdetails'); ?></h3> + </div> + <div class="elgg-body"> + <table class="styled"> + <tr class="odd"><td class="column-one"><?php echo elgg_echo('usersettings:statistics:label:name'); ?></td><td><?php echo $user->name; ?></td></tr> + <tr class="even"><td class="column-one"><?php echo elgg_echo('usersettings:statistics:label:email'); ?></td><td><?php echo $user->email; ?></td></tr> + <tr class="odd"><td class="column-one"><?php echo elgg_echo('usersettings:statistics:label:membersince'); ?></td><td><?php echo date("r",$user->time_created); ?></td></tr> + <tr class="even"><td class="column-one"><?php echo elgg_echo('usersettings:statistics:label:lastlogin'); ?></td><td><?php echo date("r",$logged_in); ?></td></tr> + </table> + </div> </div>
\ No newline at end of file diff --git a/views/default/core/settings/tools/plugin.php b/views/default/core/settings/tools/plugin.php index 981d8d937..8fcc87bee 100644 --- a/views/default/core/settings/tools/plugin.php +++ b/views/default/core/settings/tools/plugin.php @@ -23,11 +23,19 @@ if ($user_guid) { if (elgg_view("usersettings/{$plugin}/edit")) { ?> -<div class="user-settings"> - <h3><?php echo elgg_echo($plugin); ?></h3> - - <div id="<?php echo $plugin; ?>_settings"> - <?php echo elgg_view("object/plugin", array('plugin' => $plugin, 'entity' => find_plugin_usersettings($plugin, $user_guid), 'prefix' => 'user')) ?> +<div class="elgg-module elgg-info-module"> + <div class="elgg-head"> + <h3><?php echo elgg_echo($plugin); ?></h3> + </div> + <div class="elgg-body"> + <div id="<?php echo $plugin; ?>_settings"> + <?php echo elgg_view("object/plugin", array( + 'plugin' => $plugin, + 'entity' => find_plugin_usersettings($plugin, $user_guid), + 'prefix' => 'user' + )); + ?> + </div> </div> </div> <?php |