'profile:editdefault:delete:success' => 'Default profile item deleted!',
'profile:defaultprofile:reset' => 'Default system profile reset',
'profile:resetdefault' => 'Reset default profile',
- 'profile:explainchangefields' => 'You can replace the existing profile fields with your own using the form below. <br /><br />Give the new profile field a label, for example, \'Favorite team\', then select the field type (eg. text, url, tags), and click the \'Add\' button. To re-order the fields drag on the handle next to the field label. To edit a field label - click on the label\'s text to make it editable. <br />At any time you can revert back to the default profile set up, but you will loose any information already entered into custom fields on profile pages.',
+ 'profile:explainchangefields' => "You can replace the existing profile fields with your own using the form below. \n\n Give the new profile field a label, for example, 'Favorite team', then select the field type (eg. text, url, tags), and click the 'Add' button. To re-order the fields drag on the handle next to the field label. To edit a field label - click on the label's text to make it editable. \n\n At any time you can revert back to the default profile set up, but you will loose any information already entered into custom fields on profile pages.",
'profile:editdefault:success' => 'Item successfully added to default profile',
'profile:editdefault:fail' => 'Default profile could not be saved',
'admin:view_site' => 'View site',
'admin:loggedin' => 'Logged in as %s',
+ 'admin:menu' => 'Menu',
+
'admin:configuration:success' => "Your settings have been saved.",
'admin:configuration:fail' => "Your settings could not be saved.",
*/
function logbrowser_init() {
- elgg_extend_view('css/admin', 'logbrowser/css');
-
elgg_register_plugin_hook_handler('register', 'menu:user_hover', 'logbrowser_user_hover_menu');
elgg_add_admin_menu_item('logbrowser', elgg_echo('logbrowser'), 'utilities');
* @package ElggLogBrowser
*/
-$limit = get_input('limit', 40);
+$limit = get_input('limit', 20);
$offset = get_input('offset');
$search_username = get_input('search_username');
// display admin body
$body = <<<__HTML
-$title
$form
-<div class="admin_settings log_browser radius8 clearfix">
- $nav $table $nav
-</div>
+$nav
+$table
+$nav
__HTML;
echo $body;
+++ /dev/null
-<?php
-/**
- * Elgg logbrowser CSS
- *
- * @package ElggLogBrowser
- */
-
-?>
-#logbrowser_search_area {
- margin-top:10px;
- margin-bottom:10px;
-}
-#log_browser_search_form {
- padding: 10px;
- margin-bottom:10px;
- background-color: #eeeeee;
-}
-.admin_settings.log_browser {
- background-color: #eeeeee;
- padding-top:7px;
- padding-bottom:7px;
-}
-.log_entry {
- margin: 5px;
-}
-.log_entry td, th {
- padding: 4px 8px;
- background: white;
- border: 1px solid #cccccc;
-}
-.log_entry th {
- background-color: #dddddd;
-}
-.log_entry .alt td {
- background: #eeeeee;
-}
-.log_entry_time {
- width: 210px;
-}
-.log_entry_user {
- width: 120px;
-}
-.log_entry_guid {
- width: 80px;
-}
-.log_entry_object {
- width: 120px;
-}
-.log_entry_action {
- width: 75px;
-}
\ No newline at end of file
*/
?>
-<div id="logbrowser_search_area">
+<div id="logbrowser-search-area">
<?php
// Time lower limit
));
?>
- <div id="log_browser_search_form" class="hidden radius8"><?php echo $wrappedform; ?></div>
+ <div id="log-browser-search-form" class="elgg-module elgg-inline-module hidden">
+ <div class="elgg-head">
+ <h3><?php echo elgg_echo('logbrowser:search'); ?></h3>
+ </div>
+ <div class="elgg-body">
+ <?php echo $wrappedform; ?>
+ </div>
+ </div>
<p>
- <a class="link" onclick="elgg_slide_toggle(this,'#logbrowser_search_area','#log_browser_search_form');">
+ <a class="link" href="#" onclick="elgg_slide_toggle(this,'#logbrowser-search-area','#log-browser-search-form');">
<?php echo elgg_echo('logbrowser:search'); ?>
</a>
</p>
$log_entries = $vars['log_entries'];
?>
-<table class="log_entry">
+<table class="elgg-table">
<tr>
<th><?php echo elgg_echo('logbrowser:date'); ?></th>
<th><?php echo elgg_echo('logbrowser:user:name'); ?></th>
* @subpackage Core
*/
-$builder = new ElggMenuBuilder('site');
-$menu = $builder->getMenu('name');
-$menu_items = $menu['default'];
-$featured_menu_names = elgg_get_config('site_featured_menu_names');
-
-$dropdown_values = array();
-foreach ($menu_items as $item) {
- $dropdown_values[$item->getName()] = $item->getTitle();
-}
-$dropdown_values[''] = elgg_echo('none');
-
-echo "<div class='admin_settings menuitems'><h3>".elgg_echo('admin:menu_items:configure')."</h3>";
-echo "<p class='margin-top'>".strip_tags(elgg_view('output/longtext', array('value' => elgg_echo("admin:menu_items:description"))))."</p>";
-$form_body = '';
-
-// @todo Could probably make this number configurable
-for ($i=0; $i<6; $i++) {
- if (array_key_exists($i, $featured_menu_names)) {
- $current_value = $featured_menu_names[$i];
- } else {
- $current_value = '';
- }
-
- $form_body .= elgg_view('input/pulldown', array(
- 'options_values' => $dropdown_values,
- 'internalname' => 'featured_menu_names[]',
- 'value' => $current_value
- ));
-}
-
-// add arbitrary links
-$form_body .= "<h3>".elgg_echo('admin:add_menu_item')."</h3>";
-$form_body .= elgg_view('output/longtext', array('value' => elgg_echo("admin:add_menu_item:description")));
-
-$custom_items = elgg_get_config('site_custom_menu_items');
-
-$name_str = elgg_echo('name');
-$url_str = elgg_echo('admin:plugins:label:website');
-
-$form_body .= '<ul class="custom_menuitems">';
-
-if (is_array($custom_items)) {
- foreach ($custom_items as $title => $url) {
- $name_input = elgg_view('input/text', array(
- 'internalname' => 'custom_menu_titles[]',
- 'value' => $title
- ));
-
- $url_input = elgg_view('input/text', array(
- 'internalname' => 'custom_menu_urls[]',
- 'value' => $url
- ));
-
- $form_body .= "<li class='custom_menuitem'>$name_str: $name_input $url_str: $url_input $delete</li>";
- }
-}
-
-$new = elgg_echo('new');
-$name_input = elgg_view('input/text', array(
- 'internalname' => 'custom_menu_titles[]',
-));
-
-$url_input = elgg_view('input/text', array(
- 'internalname' => 'custom_menu_urls[]',
-));
-
-$form_body .= "<li class='custom_menuitem'>$name_str: $name_input $url_str: $url_input</li>
-</ul>";
-
-$form_body .= elgg_view('input/submit', array('value' => elgg_echo('save')));
-
-echo elgg_view('input/form', array(
- 'body' => $form_body,
- 'action' => "action/admin/menu/save"
-));
-echo "</div>";
\ No newline at end of file
+echo elgg_view_form('admin/menu/save');
$reset = elgg_view_form('profile/fields/reset', array(), array());
$body = <<<__HTML
-$title
$add
$list
<div class="default_profile_reset">
$form_body = elgg_view("settings/{$plugin}/edit", $vars);
$form_body .= elgg_view('input/hidden', array('internalname' => 'plugin', 'value' => $plugin));
-$form_body .= "<div class='divider'></div>" . elgg_view('input/submit', array('value' => elgg_echo('save')));
-$form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset'), 'class' => 'elgg-action-button disabled'));
+$form_body .= elgg_view('input/submit', array('value' => elgg_echo('save')));
+//$form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset')));
-echo elgg_view_title($plugin_info['name']);
-
-echo elgg_view('input/form', array('body' => $form_body, 'internalid' => 'plugin_settings', 'action' => "action/plugins/settings/save"));
\ No newline at end of file
+?>
+<div class="elgg-module elgg-inline-module">
+ <div class="elgg-head">
+ <h3><?php echo $plugin_info['name']; ?></h3>
+ </div>
+ <div class="elgg-body">
+ <?php
+ echo elgg_view('input/form', array(
+ 'body' => $form_body,
+ 'internalid' => 'plugin_settings',
+ 'action' => "action/plugins/settings/save",
+ ));
+ ?>
+ </div>
+</div>
<h3><?php echo elgg_echo('admin:statistics:label:basic'); ?></h3>
</div>
<div class="elgg-body">
- <table class="elgg-table">
+ <table class="elgg-table-alt">
<tr class="odd">
<td><b><?php echo elgg_echo('admin:statistics:label:version'); ?> :</b></td>
<td><?php echo elgg_echo('admin:statistics:label:version:release'); ?> - <?php echo $release; ?>, <?php echo elgg_echo('admin:statistics:label:version:version'); ?> - <?php echo $version; ?></td>
<h3><?php echo elgg_echo('admin:statistics:label:numentities'); ?></h3>
</div>
<div class="elgg-body">
- <table class="elgg-table">
+ <table class="elgg-table-alt">
<?php
foreach ($entity_stats as $k => $entry) {
arsort($entry);
?>
-<div class="admin_settings members-list users_online">
- <h3><?php echo elgg_echo('admin:users:newest'); ?></h3>
- <?php echo $users; ?>
+<div class="elgg-module elgg-inline-module">
+ <div class="elgg-head">
+ <h3><?php echo elgg_echo('admin:users:newest'); ?></h3>
+ </div>
+ <div class="elgg-body">
+ <?php echo $users; ?>
+ </div>
</div>
$users_online = get_online_users();
?>
-<div class="admin_settings members-list users_online">
- <h3><?php echo elgg_echo('admin:statistics:label:onlineusers'); ?></h3>
- <?php echo $users_online; ?>
+<div class="elgg-module elgg-inline-module">
+ <div class="elgg-head">
+ <h3><?php echo elgg_echo('admin:statistics:label:onlineusers'); ?></h3>
+ </div>
+ <div class="elgg-body">
+ <?php echo $users_online; ?>
+ </div>
</div>
blockquote, q {
quotes: "" "";
}
-a {
- text-decoration: none;
-}
/* ***************************************
BASICS
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
line-height: auto;
- color:#666666;
+ color: #666666;
}
h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; line-height: 1.1em; }
h4 { font-size: 1.0em; }
h5 { font-size: 0.9em; }
h6 { font-size: 0.8em; }
-a:hover,
-a.selected {
+
+a {
+ color: #333333;
+}
+a:hover {
color: black;
text-decoration: underline;
}
pre, code {
- background:#EBF5FF;
+ background: #EBF5FF;
}
blockquote {
- background:#EBF5FF;
+ background: #EBF5FF;
+}
+p {
+ margin-bottom: 15px;
}
+
table.mceLayout {
width:100% !important;
}
-.clearfloat { clear:both; }
+.clearfloat {
+ clear:both;
+}
/* Clearfix! */
.clearfix:after {
- content:".";
- display:block;
- height:0;
- clear:both;
- visibility:hidden;
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
}
.elgg-body {
width: auto;
word-wrap: break-word;
- overflow: hidden;
+ display: table-cell;
}
.elgg-body:after {
display: block;
}
.elgg-site-title a {
color: #dddddd;
+ text-decoration: none;
}
.elgg-site-title a:hover {
color: white;
border: 1px solid #cccccc;
padding: 20px;
position: relative;
+}
+.elgg-main > .elgg-inner {
min-height: 400px;
}
.elgg-sidebar {
float: right;
margin-left: 30px;
}
+.elgg-main > .elgg-inner > .elgg-head {
+ margin-bottom: 10px;
+}
.elgg-main h2 {
color: #333333;
}
display: block;
padding: 5px;
color: #333333;
+ cursor: pointer;
+ text-decoration: none;
}
.elgg-page-menu .elgg-menu-closed:before {
content: "\25B8";
padding-right: 4px;
}
.elgg-page-menu a:hover {
+ color: black;
text-decoration: none;
}
.elgg-page-menu li.selected > ul {
width: 100%;
border-top: 1px solid #cccccc;
}
+.elgg-table td, th {
+ background: white;
+ border: 1px solid #cccccc;
+}
+.elgg-table th {
+ background-color: #dddddd;
+}
+.elgg-table .alt td {
+ background: #eeeeee;
+}
.elgg-table td {
+ padding: 4px 8px;
+ border-bottom: 1px solid #cccccc;
+}
+.elgg-table-alt {
+ width: 100%;
+ border-top: 1px solid #cccccc;
+}
+.elgg-table-alt td {
padding: 2px 4px 2px 4px;
border-bottom: 1px solid #cccccc;
}
-.elgg-table td:first-child {
+.elgg-table-alt td:first-child {
width: 200px;
}
-.elgg-table tr:hover {
+.elgg-table-alt tr:hover {
background: #E4E4E4;
}
+/* ***************************************
+ LISTS AND IMAGE BLOCK
+*************************************** */
+.elgg-image-block {
+ padding: 3px 0;
+}
+.elgg-image-block .elgg-image {
+ float: left;
+ margin-right: 5px;
+}
+.elgg-list-item {
+ margin: 3px;
+}
+.elgg-list-metadata {
+ float: right;
+ margin-left: 15px;
+ font-size: 90%;
+}
+.elgg-list-metadata > li {
+ float: left;
+ margin-left: 15px;
+}
+.elgg-list-metadata, .elgg-list-metadata a {
+ color: #aaaaaa;
+}
+.elgg-simple-list li {
+ margin-bottom: 5px;
+}
+/* ***************************************
+ FORMS AND INPUT
+*************************************** */
+label {
+ font-weight: bold;
+ color:#333333;
+ font-size: 110%;
+}
+input {
+ font: 120% Arial, Helvetica, sans-serif;
+ padding: 5px;
+ border: 1px solid #cccccc;
+ color:#666666;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+}
+input[type="submit"], .elgg-submit-button {
+ font-size: 14px;
+ font-weight: bold;
+ color: white;
+ text-decoration: none;
+ background-color: #333333;
+ border-color: #333333;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ width: auto;
+ padding: 2px 4px;
+ margin:10px 0 10px 0;
+ cursor: pointer;
+ outline: none;
+}
+input[type="submit"]:hover, .elgg-submit-button:hover {
+ color: white;
+ background-color: #000000;
+ text-decoration: none;
+}
+.elgg-submit-button {
+ padding: 4px 8px;
+}
+/* ***************************************
+ PAGINATION
+*************************************** */
+.elgg-pagination {
+ margin: 10px 0;
+ display: block;
+ text-align: center;
+}
+.elgg-pagination li {
+ display: inline;
+ margin: 0 6px 0 0;
+ text-align: center;
+}
+.elgg-pagination a, .elgg-pagination span {
+ padding: 2px 6px;
+ color: #333333;
+ border: 1px solid #333333;
+ font-size: 12px;
+ text-decoration: none;
+}
+.elgg-pagination a:hover {
+ background: #333333;
+ color: white;
+ text-decoration: none;
+}
+<?php //@todo use "disabled" on the li ?>
+.elgg-pagination .inactive {
+ color: #CCCCCC;
+ border-color: #CCCCCC;
+}
+<?php //@todo Choose b/w elgg-state-active or elgg-state-selected ?>
+.elgg-pagination .active {
+ color: #555555;
+ border-color: #555555;
+}
+.elgg-list-subtitle, .elgg-subtitle {
+ color: #666666;
+ font-size: 85%;
+ line-height: 1.2em;
+ font-style: italic;
+ margin-bottom: 5px;
+}
+.avatar_menu_button {
+ display: none;
+}
+<?php // @todo clean up and figure out what admin css needs ?>
+.elgg-user-icon {
+ position:relative;
+}
+.elgg-hover-menu {
+ display: none;
+}
+.elgg-user-icon.tiny,
+img.tiny {
+ width:25px;
+ height:25px;
+
+ -o-background-size: 25px;
+ -webkit-background-size: 25px;
+ -khtml-background-size: 25px;
+ -moz-background-size: 25px;
+}
+.elgg-user-icon.small,
+img.small {
+ width:40px;
+ height:40px;
+ /* remove the border-radius if you don't want rounded avatars in supported browsers */
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ -moz-background-clip: border;
-
-
-
-
-
-.admin_settings.users_online .profile_status {
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- line-height:1.2em;
+ -o-background-size: 40px;
+ -webkit-background-size: 40px;
+ -khtml-background-size: 40px;
+ -moz-background-size: 40px;
}
-.admin_settings.users_online .profile_status span {
- font-size:90%;
- color:#666666;
+img.large {
+ width:200px;
+ height:200px;
}
-.admin_settings.users_online p.owner_timestamp {
- padding-left:3px;
+img.medium {
+ width:100px;
+ height:100px;
}
-
-
-
-
/*
.elgg-admin .elgg-page-footer {
<?php //@todo convert to new style ?>
-.admin_settings h3 {
- background:#999999;
- color:white;
- padding:5px;
- margin-top:10px;
- margin-bottom:10px;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
-}
.admin_settings label {
color:#333333;
font-size:100%;
/* ***************************************
GENERAL FORM ELEMENTS
*************************************** */
+
+
/* default elgg core input field classes */
-.admin_area .input-text,
-.admin_area .input-tags,
-.admin_area .input-url,
-.admin_area .input-textarea {
+.input-text,
+.input-tags,
+.input-url,
+.input-textarea {
width:98%;
}
.admin_area .input-access {
padding:0;
border:none;
}
-.admin_area label {
- font-weight: bold;
- color:#333333;
- font-size: 110%;
-}
.admin_area input {
font: 120% Arial, Helvetica, sans-serif;
padding: 5px;
text-shadow:0 -1px 0 #999999;
}
-
-
-/* ***************************************
- CONTENT HEADER
-**************************************** */
-#content_header {
- border-bottom:1px solid #CCCCCC;
-}
-#content_header:after {
- content: ".";
- display: block;
- height: 0;
- clear: both;
- visibility: hidden;
-}
-.content-header-title {
- float:left;
-}
-.content-header-title {
- margin-right:10px;
- max-width: 530px;
-}
-.content-header-title h2 {
- border:none;
- margin-bottom:0;
- padding-bottom:5px;
-}
-.content-header-options {
- float:right;
-}
-.content-header-options .elgg-action-button {
- float:right;
- margin:0 0 5px 10px;
-}
-
/* ECML */
.ecml_admin_table {
width:100%;
color: #555;
}
-
-
-
-
-
-
-
-.admin_settings {
- margin-bottom:20px;
-}
-.admin_settings table.styled {
- width:100%;
-}
-.admin_settings table.styled {
- border-top:1px solid #cccccc;
-}
-.admin_settings table.styled td {
- padding:2px 4px 2px 4px;
- border-bottom:1px solid #cccccc;
-}
-.admin_settings table.styled td.column-one {
- width:200px;
-}
-.admin_settings table.styled tr:hover {
- background: #E4E4E4;
-}
-.admin_settings.users_online .profile_status {
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- line-height:1.2em;
-}
-.admin_settings.users_online .profile_status span {
- font-size:90%;
- color:#666666;
-}
-.admin_settings.users_online p.owner_timestamp {
- padding-left:3px;
-}
.admin_plugin_reorder {
float:right;
width:200px;
-moz-border-radius: 4px;
}
-/* ***************************************
- ELGG TABBED PAGE NAVIGATION
-*************************************** */
-.elgg-tabs {
- margin-bottom:5px;
- padding: 0;
- border-bottom: 2px solid #cccccc;
- display:table;
- width:100%;
-}
-.elgg-tabs ul {
- list-style: none;
- padding: 0;
- margin: 0;
-}
-.elgg-tabs li {
- float: left;
- border: 2px solid #cccccc;
- border-bottom-width: 0;
- background: #eeeeee;
- margin: 0 0 0 10px;
- -moz-border-radius-topleft:5px;
- -moz-border-radius-topright:5px;
- -webkit-border-top-left-radius:5px;
- -webkit-border-top-right-radius:5px;
-}
-.elgg-tabs a {
- text-decoration: none;
- display: block;
- padding:3px 10px 0 10px;
- text-align: center;
- height:21px;
- color:#999999;
-}
-.elgg-tabs a:hover {
- background: #dedede;
- color:#4690D6;
-}
-.elgg-tabs .selected {
- border-color: #cccccc;
- background: white;
-}
-.elgg-tabs .selected a {
- position: relative;
- top: 2px;
- background: white;
-}
+
.add-user form {
width:300px;
}
--- /dev/null
+<?php
+/**
+ * Form body for setting up site menu
+ */
+
+// get site menu items
+global $CONFIG;
+$menu = $CONFIG->menus['site'];
+$builder = new ElggMenuBuilder($menu);
+$menu = $builder->getMenu('name');
+$menu_items = $menu['default'];
+
+$featured_menu_names = elgg_get_config('site_featured_menu_names');
+
+$dropdown_values = array();
+foreach ($menu_items as $item) {
+ $dropdown_values[$item->getName()] = $item->getTitle();
+}
+$dropdown_values[''] = elgg_echo('none');
+
+?>
+<div class="elgg-module elgg-inline-module">
+ <div class="elgg-head">
+ <h3><?php echo elgg_echo('admin:menu_items:configure'); ?></h3>
+ </div>
+ <div class="elgg-body">
+<?php
+echo elgg_view('output/longtext', array(
+ 'value' => elgg_echo("admin:menu_items:description")
+));
+
+// @todo Could probably make this number configurable
+for ($i=0; $i<6; $i++) {
+ if (array_key_exists($i, $featured_menu_names)) {
+ $current_value = $featured_menu_names[$i];
+ } else {
+ $current_value = '';
+ }
+
+ echo elgg_view('input/pulldown', array(
+ 'options_values' => $dropdown_values,
+ 'internalname' => 'featured_menu_names[]',
+ 'value' => $current_value
+ ));
+}
+?>
+ </div>
+</div>
+
+<div class="elgg-module elgg-inline-module">
+ <div class="elgg-head">
+ <h3><?php echo elgg_echo('admin:add_menu_item'); ?></h3>
+ </div>
+ <div class="elgg-body">
+<?php
+echo elgg_view('output/longtext', array(
+ 'value' => elgg_echo("admin:add_menu_item:description")
+));
+
+$custom_items = elgg_get_config('site_custom_menu_items');
+
+$name_str = elgg_echo('name');
+$url_str = elgg_echo('admin:plugins:label:website');
+
+echo '<ul class="elgg-simple-list">';
+
+if (is_array($custom_items)) {
+ foreach ($custom_items as $title => $url) {
+ $name_input = elgg_view('input/text', array(
+ 'internalname' => 'custom_menu_titles[]',
+ 'value' => $title
+ ));
+
+ $url_input = elgg_view('input/text', array(
+ 'internalname' => 'custom_menu_urls[]',
+ 'value' => $url
+ ));
+
+ echo "<li>$name_str: $name_input $url_str: $url_input $delete</li>";
+ }
+}
+
+$new = elgg_echo('new');
+$name_input = elgg_view('input/text', array(
+ 'internalname' => 'custom_menu_titles[]',
+));
+
+$url_input = elgg_view('input/text', array(
+ 'internalname' => 'custom_menu_urls[]',
+));
+
+echo "<li class='custom_menuitem'>$name_str: $name_input $url_str: $url_input</li>
+</ul>";
+
+?>
+ </div>
+</div>
+<?php
+
+echo elgg_view('input/submit', array('value' => elgg_echo('save')));
$submit_control</p>
END;
-echo "<p class='margin-top'>" . elgg_echo('profile:explainchangefields') . "</p>";
+echo autop(elgg_echo('profile:explainchangefields'));
echo $formbody;
$admin_option = true;
}
-$form_body = "<p><label>" . elgg_echo('name') . "<br />" . elgg_view('input/text' , array('internalname' => 'name')) . "</label></p>";
-$form_body .= "<p><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text' , array('internalname' => 'username')) . "</label></p>";
-$form_body .= "<p><label>" . elgg_echo('email') . "<br />" . elgg_view('input/text' , array('internalname' => 'email')) . "</label></p>";
-$form_body .= "<p><label>" . elgg_echo('password') . "<br />" . elgg_view('input/password' , array('internalname' => 'password')) . "</label></p>";
-$form_body .= "<p><label>" . elgg_echo('passwordagain') . "<br />" . elgg_view('input/password' , array('internalname' => 'password2')) . "</label></p>";
+$form_body = "<p><label>" . elgg_echo('name') . "</label><br />" . elgg_view('input/text' , array('internalname' => 'name')) . "</p>";
+$form_body .= "<p><label>" . elgg_echo('username') . "</label><br />" . elgg_view('input/text' , array('internalname' => 'username')) . "</p>";
+$form_body .= "<p><label>" . elgg_echo('email') . "</label><br />" . elgg_view('input/text' , array('internalname' => 'email')) . "</p>";
+$form_body .= "<p><label>" . elgg_echo('password') . "</label><br />" . elgg_view('input/password' , array('internalname' => 'password')) . "</p>";
+$form_body .= "<p><label>" . elgg_echo('passwordagain') . "</label><br />" . elgg_view('input/password' , array('internalname' => 'password2')) . "</p>";
$form_body .= "<p>";
if ($admin_option) {
$form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option'))));
+ $form_body .= '</p><p>';
}
$form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "</p>";
?>
-<div class="admin_settings add-user">
- <h3><?php echo elgg_echo('adduser'); ?></h3>
- <?php echo elgg_view('input/form', array('action' => "action/useradd", 'body' => $form_body)) ?>
+<div class="elgg-module elgg-inline-module">
+ <div class="elgg-head">
+ <h3><?php echo elgg_echo('adduser'); ?></h3>
+ </div>
+ <div class="elgg-body">
+ <?php
+ echo elgg_view('input/form', array(
+ 'action' => "action/useradd",
+ 'body' => $form_body,
+ ));
+ ?>
+ </div>
</div>
\ No newline at end of file
?>
</div>
<div class="elgg-main elgg-body">
- <?php
- if (isset($vars['title'])) {
- echo elgg_view_title($vars['title']);
- }
-
- if (isset($vars['content'])) {
- echo $vars['content'];
- }
- ?>
+ <div class="elgg-inner">
+ <div class="elgg-head">
+ <?php
+ if (isset($vars['title'])) {
+ echo elgg_view_title($vars['title']);
+ }
+ ?>
+ </div>
+ <?php
+ if (isset($vars['content'])) {
+ echo $vars['content'];
+ }
+ ?>
+ </div>
</div>
</div>
<div class="elgg-page-footer"></div>
\ No newline at end of file
$content = elgg_view_menu('page', array('sort_by' => 'name'));
echo elgg_view('layout/objects/module', array(
- 'title' => elgg_echo('menu'),
+ 'title' => elgg_echo('admin:menu'),
'body' => $content,
'class' => 'elgg-main-module',
));