From a1d90df64dbb70fc5a7c0ebe29f3db4ef0360572 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 6 Sep 2005 02:01:33 +0000 Subject: [PATCH] Break up profile page into more logical sections git-svn-id: http://svn.automattic.com/wordpress/trunk@2840 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/profile.php | 323 +++++++++++++++--------------------------- wp-admin/wp-admin.css | 41 +++--- 2 files changed, 130 insertions(+), 234 deletions(-) diff --git a/wp-admin/profile.php b/wp-admin/profile.php index ae74d3492f..c86320c2ed 100644 --- a/wp-admin/profile.php +++ b/wp-admin/profile.php @@ -1,68 +1,9 @@ - - - - - -
- -

To have a one-click bookmarklet, just copy and paste this
into a new text file:

- -
-

Save it as wordpress.reg, and double-click on this file in an Explorer
- window. Answer Yes to the question, and restart Internet Explorer.

- That's it, you can now right-click in an IE window and select
- 'Post to WP' to make the bookmarklet appear. :)

- -

-

- -
-

-
- ERROR: please enter your nickname (can be the same as your username)")); - return false; - } + check_admin_referer(); /* if the ICQ UIN has been entered, check to see if it has only numbers */ if (!empty($_POST["newuser_icq"])) { @@ -81,19 +22,19 @@ case 'update': return false; } - $pass1 = $_POST["pass1"]; - $pass2 = $_POST["pass2"]; + $pass1 = $_POST['pass1']; + $pass2 = $_POST['pass2']; do_action('check_passwords', array($user_login, &$pass1, &$pass2)); if ( '' == $pass1 ) { if ( '' != $pass2 ) - die (__("ERROR: you typed your new password only once. Go back to type it twice.")); - $updatepassword = ""; + die (__('ERROR: you typed your new password only once. Go back to type it twice.')); + $updatepassword = ''; } else { if ('' == $pass2) - die (__("ERROR: you typed your new password only once. Go back to type it twice.")); + die (__('ERROR: you typed your new password only once. Go back to type it twice.')); if ( $pass1 != $pass2 ) - die (__("ERROR: you typed two different passwords. Go back to correct that.")); + die (__('ERROR: you typed two different passwords. Go back to correct that.')); $newuser_pass = $pass1; $updatepassword = "user_pass=MD5('$newuser_pass'), "; wp_clearcookie(); @@ -128,53 +69,114 @@ case 'update': do_action('profile_update', $user_ID); wp_redirect('profile.php?updated=true'); -break; + exit; +} +$title = 'Profile'; -default: - $parent_file = 'profile.php'; - include_once('admin-header.php'); - $profileuser = new WP_User($user_ID); - $profiledata = &$profileuser->data; +$parent_file = 'profile.php'; +include_once('admin-header.php'); +$profileuser = new WP_User($user_ID); +$profiledata = &$profileuser->data; - $bookmarklet_height= 440; +$bookmarklet_height= 440; +?> -if (isset($updated)) { ?> +

-
-

-
-

- - -

+
+

+ +

+ + +

+ +
+ +

+

+ +

+ +

+ +

+
+ +
+ + +

+ +

+ +

+ +

+ +

+

+
+
+
+ +

+

+
+ + +
+ +

+

+

+
+ + + + +
- - - - - - - - - - - - caps) > count($profileuser->roles)): ?> @@ -194,115 +196,12 @@ if (isset($updated)) { ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
user_login; ?>
roles as $role => $value) { - if($output != '') $output .= ', '; - $output .= $wp_roles->role_names[$role]; - } - echo $output; - ?>
-
Password (Leave blank to stay the same.)') ?> -
-
-

- -

+

+ +

+
- - -
- -
- WordPress Sidebar!') ?> - -
-
-. - -
- -
- */ -include('admin-footer.php'); - ?> + \ No newline at end of file diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 6b5737f37d..3dcda7e13d 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -485,28 +485,6 @@ table .vers, table .name { margin-right: 16em; } -#profile { - margin: 10px; -} - -#profile .left { - border-right: 1px dashed #ccc; - float: left; - margin-right: 5px; - padding-right: 5px; -} - -#profile label { - float: left; - padding-right: 3px; - text-align: right; - width: 85px; -} - -#profile p { - margin: 0 0 4px 0; -} - #save { width: 15em; } @@ -695,6 +673,25 @@ table .vers, table .name { border: 1px solid #ccc; } +#your-profile fieldset { + border: 1px solid #ccc; + float: left; + width: 40%; + padding: .5em 2em; + margin: 1em; +} + +#your-profile fieldset input { + width: 100%; + font-size: 20px; + padding: 2px; +} + +#your-profile legend { + font-family: Georgia, "Times New Roman", Times, serif; + font-size: 22px; +} + /* default box styles */ .dbx-box { background: #fff;