2 require_once('admin.php');
4 $title = __('Profile');
6 $parent_file = 'profile.php';
7 include_once('admin-header.php');
8 $profileuser = new WP_User($user_ID);
10 $bookmarklet_height= 440;
13 <?php if ( isset($_GET['updated']) ) { ?>
14 <div id="message" class="updated fade">
15 <p><strong><?php _e('Profile updated.') ?></strong></p>
20 <h2><?php _e('Your Profile and Personal Options'); ?></h2>
21 <form name="profile" id="your-profile" action="profile-update.php" method="post">
23 <input type="hidden" name="from" value="profile" />
24 <input type="hidden" name="checkuser_id" value="<?php echo $user_ID ?>" />
28 <legend><?php _e('Name'); ?></legend>
29 <p><label><?php _e('Username: (no editing)'); ?><br />
30 <input type="text" name="user_login" value="<?php echo $profileuser->user_login; ?>" disabled="disabled" />
33 <p><label><?php _e('First name:') ?><br />
34 <input type="text" name="first_name" value="<?php echo $profileuser->first_name ?>" /></label></p>
36 <p><label><?php _e('Last name:') ?><br />
37 <input type="text" name="last_name" value="<?php echo $profileuser->last_name ?>" /></label></p>
39 <p><label><?php _e('Nickname:') ?><br />
40 <input type="text" name="nickname" value="<?php echo $profileuser->nickname ?>" /></label></p>
42 <p><label><?php _e('Display name publicly as:') ?> <br />
43 <select name="display_name">
44 <option value="<?php echo $profileuser->display_name; ?>"><?php echo $profileuser->display_name; ?></option>
45 <option value="<?php echo $profileuser->nickname ?>"><?php echo $profileuser->nickname ?></option>
46 <option value="<?php echo $profileuser->user_login ?>"><?php echo $profileuser->user_login ?></option>
47 <?php if ( !empty( $profileuser->first_name ) ) : ?>
48 <option value="<?php echo $profileuser->first_name ?>"><?php echo $profileuser->first_name ?></option>
50 <?php if ( !empty( $profileuser->last_name ) ) : ?>
51 <option value="<?php echo $profileuser->last_name ?>"><?php echo $profileuser->last_name ?></option>
53 <?php if ( !empty( $profileuser->first_name ) && !empty( $profileuser->last_name ) ) : ?>
54 <option value="<?php echo $profileuser->first_name." ".$profileuser->last_name ?>"><?php echo $profileuser->first_name." ".$profileuser->last_name ?></option>
55 <option value="<?php echo $profileuser->last_name." ".$profileuser->first_name ?>"><?php echo $profileuser->last_name." ".$profileuser->first_name ?></option>
61 <legend><?php _e('Contact Info'); ?></legend>
63 <p><label><?php _e('E-mail: (required)') ?><br />
64 <input type="text" name="email" value="<?php echo $profileuser->user_email ?>" /></label></p>
66 <p><label><?php _e('Website:') ?><br />
67 <input type="text" name="url" value="<?php echo $profileuser->user_url ?>" />
70 <p><label><?php _e('AIM:') ?><br />
71 <input type="text" name="aim" value="<?php echo $profileuser->aim ?>" />
74 <p><label><?php _e('Yahoo IM:') ?><br />
75 <input type="text" name="yim" value="<?php echo $profileuser->yim ?>" />
78 <p><label><?php _e('Jabber / Google Talk:') ?>
79 <input type="text" name="jabber" value="<?php echo $profileuser->jabber ?>" /></label>
84 <legend><?php _e('About yourself'); ?></legend>
85 <p class="desc"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></p>
86 <p><textarea name="description" rows="5" cols="30"><?php echo $profileuser->description ?></textarea></p>
90 $show_password_fields = apply_filters('show_password_fields', true);
91 if ( $show_password_fields ) :
94 <legend><?php _e('Update Your Password'); ?></legend>
95 <p class="desc"><?php _e('If you would like to change your password type a new one twice below. Otherwise leave this blank.'); ?></p>
96 <p><label><?php _e('New Password:'); ?><br />
97 <input type="password" name="pass1" size="16" value="" />
99 <p><label><?php _e('Type it one more time:'); ?><br />
100 <input type="password" name="pass2" size="16" value="" />
105 <?php do_action('show_user_profile'); ?>
109 <h3><?php _e('Personal Options'); ?></h3>
111 <p><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', get_user_option('rich_editing')); ?> />
112 <?php _e('Use the visual rich editor when writing') ?></label></p>
114 <?php do_action('profile_personal_options'); ?>
116 <table width="99%" border="0" cellspacing="2" cellpadding="3" class="editform">
118 if(count($profileuser->caps) > count($profileuser->roles)):
121 <th scope="row"><?php _e('Additional Capabilities:') ?></th>
124 foreach($profileuser->caps as $cap => $value) {
125 if(!$wp_roles->is_role($cap)) {
126 if($output != '') $output .= ', ';
127 $output .= $value ? $cap : "Denied: {$cap}";
138 <input type="submit" value="<?php _e('Update Profile »') ?>" name="submit" />
144 <?php include('admin-footer.php'); ?>