$installed = array();
foreach ($CONFIG->translations as $k => $v) {
- $installed[$k] = elgg_echo($k, $k);
+ $installed[$k] = elgg_echo($k, array(), $k);
if (isadminloggedin()) {
$completeness = get_language_completeness($k);
if (($completeness < 100) && ($k != 'en')) {
}
</script>
-<div class="notification_friends">
-<h3>
- <?php echo elgg_echo('notifications:subscriptions:friends:title'); ?>
-</h3>
+<div class="elgg-module elgg-info-module">
+ <div class="elgg-head">
+ <h3>
+ <?php echo elgg_echo('notifications:subscriptions:friends:title'); ?>
+ </h3>
+ </div>
<p class="margin-none">
<?php echo elgg_echo('notifications:subscriptions:friends:description'); ?>
</p>
*/
- echo elgg_view('subscriptions/form/additions',$vars);
+echo elgg_view('subscriptions/form/additions',$vars);
// Display a description
-?>
-<div class="user-settings notifications">
-<?php
-
echo elgg_view('input/form',array(
'body' => elgg_view('notifications/subscriptions/personal') .
));
?>
-</div>
-<div class="notifications_per_user">
- <h3>
- <?php echo elgg_echo('notifications:subscriptions:title'); ?>
- </h3>
+<div class="elgg-module elgg-info-module">
+ <div class="elgg-head">
+ <h3>
+ <?php echo elgg_echo('notifications:subscriptions:title'); ?>
+ </h3>
+ </div>
<p>
<?php echo elgg_echo('notifications:subscriptions:description'); ?>
</p>
?>
-<div class="user-settings margin-top">
-
+<div class="elgg-module elgg-info-module">
+ <div class="elgg-body">
<?php
echo elgg_view('notifications/subscriptions/jsfuncs',$vars);
?>
}
?>
<input type="submit" value="<?php echo elgg_echo('save'); ?>" />
+ </div>
</div>
?>
<div class="notification_personal">
-<div class="notification_methods">
- <h3>
- <?php echo elgg_echo('notifications:subscriptions:personal:title'); ?>
- </h3>
+<div class="elgg-module elgg-info-module">
+ <div class="elgg-head">
+ <h3>
+ <?php echo elgg_echo('notifications:subscriptions:personal:title'); ?>
+ </h3>
+ </div>
</div>
<table id="notificationstable" cellspacing="0" cellpadding="4" border="0" width="100%">
<tr>
*/
?>
-<div class="elgg-col-2of3" id="dashboard-info">
- <div class="elgg-inner">
+<div class="elgg-col elgg-col-2of3" id="dashboard-info">
+ <div class="elgg-inner pas mhs mbl">
<p>
<?php echo elgg_echo("dashboard:nowidgets"); ?>
</p>
$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
}
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
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
$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'); ?>
}
?>
</table>
+ </div>
</div>
\ No newline at end of file
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
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) {
}
}
?>
- </table>
+ </table>
+ </div>
</div>
<?php
}
\ No newline at end of file
}
?>
-<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
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
/* ***************************************
Form Elements
*************************************** */
-/* default elgg core input field classes */
label {
font-weight: bold;
color: #333333;
font-size: 110%;
}
-input {
+input, textarea {
font: 120% Arial, Helvetica, sans-serif;
padding: 5px;
border: 1px solid #cccccc;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
}
+textarea {
+ height: 200px;
+ width: 98%;
+}
input[type="text"], textarea {
- width: 96%;
+ width: 98%;
}
input[type="password"] {
width: 200px;
background: #e4ecf5;
color:#333333;
}
-textarea {
- font: 120% Arial, Helvetica, sans-serif;
- border: solid 1px #cccccc;
- padding: 5px;
- color:#666666;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- height: 200px;
- width: 96%;
-}
textarea.monospace {
font-family: Monaco,"Courier New",Courier,monospace;
font-size: 13px;
/* ***************************************
USER SETTINGS
*************************************** */
-.user-settings {
- margin-bottom:20px;
-}
-.user-settings h3 {
- background:#e4e4e4;
- color:#333333;
- padding:5px;
- margin-top:10px;
- margin-bottom:10px;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
-}
-.user-settings label {
- color:#333333;
- font-size:100%;
- font-weight:normal;
-}
-.user-settings table.styled {
+table.styled {
width:100%;
}
-.user-settings table.styled {
+table.styled {
border-top:1px solid #cccccc;
}
-.user-settings table.styled td {
+table.styled td {
padding:2px 4px 2px 4px;
border-bottom:1px solid #cccccc;
}
-.user-settings table.styled td.column-one {
+table.styled td.column-one {
width:200px;
}
-.user-settings table.styled tr:hover {
+table.styled tr:hover {
background: #E4E4E4;
}
+
.add-user form {
width:300px;
}
.user-picker-entry .delete-button {
margin-right:10px;
}
-#dashboard-info {
- float: left;
- margin-bottom: 15px;
-}
#dashboard-info .elgg-inner {
- margin: 0 5px;
border: 2px solid #dedede;
- padding: 5px;
}
* CSS reset
* spacing
* grid
+ * base
*******************************************************************************/
echo elgg_view('css/elements/reset', $vars);