WordPress.org

Make WordPress Core

Ticket #7730: user-edit-classes.diff

File user-edit-classes.diff, 5.1 KB (added by simonwheatley, 10 years ago)

Patch to add classes to the user edit screen

  • Users/simon/Projects/WordPress/site/wordpress/wp-admin/user-edit.php

     
    166166
    167167<h3><?php _e('Personal Options'); ?></h3>
    168168
    169 <table class="form-table">
     169<table class="form-table personal-options">
    170170<?php if ( rich_edit_exists() ) : // don't bother showing the option if the editor has been removed ?>
    171         <tr>
     171        <tr class="visual-editor">
    172172                <th scope="row"><?php _e('Visual Editor')?></th>
    173173                <td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', $profileuser->rich_editing); ?> /> <?php _e('Use the visual editor when writing'); ?></label></td>
    174174        </tr>
    175175<?php endif; ?>
    176 <tr>
     176<tr class="admin-colour-scheme">
    177177<th scope="row"><?php _e('Admin Color Scheme')?></th>
    178178<td><fieldset><legend class="hidden"><?php _e('Admin Color Scheme')?></legend>
    179179<?php
     
    207207<h3><?php _e('Name') ?></h3>
    208208
    209209<table class="form-table">
    210         <tr>
     210        <tr class="username">
    211211                <th><label for="user_login"><?php _e('Username'); ?></label></th>
    212212                <td><input type="text" name="user_login" id="user_login" value="<?php echo $profileuser->user_login; ?>" disabled="disabled" /> <?php _e('Your username cannot be changed'); ?></td>
    213213        </tr>
    214214
    215215<?php if ( !$is_profile_page ): ?>
    216 <tr><th><label for="role"><?php _e('Role:') ?></label></th>
     216<tr class="role"><th><label for="role"><?php _e('Role:') ?></label></th>
    217217<?php
    218218// print_r($profileuser);
    219219echo '<td><select name="role" id="role">';
     
    237237?>
    238238<?php endif; ?>
    239239
    240 <tr>
     240<tr class="first-name">
    241241        <th><label for="first_name"><?php _e('First name') ?></label></th>
    242242        <td><input type="text" name="first_name" id="first_name" value="<?php echo $profileuser->first_name ?>" /></td>
    243243</tr>
    244244
    245 <tr>
     245<tr class="last-name">
    246246        <th><label for="last_name"><?php _e('Last name') ?></label></th>
    247247        <td><input type="text" name="last_name" id="last_name" value="<?php echo $profileuser->last_name ?>" /></td>
    248248</tr>
    249249
    250 <tr>
     250<tr class="nickname">
    251251        <th><label for="nickname"><?php _e('Nickname') ?></label></th>
    252252        <td><input type="text" name="nickname" id="nickname" value="<?php echo $profileuser->nickname ?>" /></td>
    253253</tr>
    254254
    255 <tr>
     255<tr class="display-name">
    256256        <th><label for="display_name"><?php _e('Display name publicly&nbsp;as') ?></label></th>
    257257        <td>
    258258                <select name="display_name" id="display_name">
     
    278278
    279279<h3><?php _e('Contact Info') ?></h3>
    280280
    281 <table class="form-table">
    282 <tr>
     281<table class="form-table contact-info">
     282<tr class="email">
    283283        <th><label for="email"><?php _e('E-mail') ?></label></th>
    284284        <td><input type="text" name="email" id="email" value="<?php echo $profileuser->user_email ?>" /> <?php _e('Required'); ?></td>
    285285</tr>
    286286
    287 <tr>
     287<tr class="website">
    288288        <th><label for="url"><?php _e('Website') ?></label></th>
    289289        <td><input type="text" name="url" id="url" value="<?php echo $profileuser->user_url ?>" /></td>
    290290</tr>
    291291
    292 <tr>
     292<tr class="aim">
    293293        <th><label for="aim"><?php _e('AIM') ?></label></th>
    294294        <td><input type="text" name="aim" id="aim" value="<?php echo $profileuser->aim ?>" /></td>
    295295</tr>
    296296
    297 <tr>
     297<tr class="yahoo-im">
    298298        <th><label for="yim"><?php _e('Yahoo IM') ?></label></th>
    299299        <td><input type="text" name="yim" id="yim" value="<?php echo $profileuser->yim ?>" /></td>
    300300</tr>
    301301
    302 <tr>
     302<tr class="jabber-google-talk">
    303303        <th><label for="jabber"><?php _e('Jabber / Google Talk') ?></label></th>
    304304        <td><input type="text" name="jabber" id="jabber" value="<?php echo $profileuser->jabber ?>" /></td>
    305305</tr>
     
    307307
    308308<h3><?php $is_profile_page? _e('About Yourself') : _e('About the user'); ?></h3>
    309309
    310 <table class="form-table">
    311 <tr>
     310<table class="form-table about-yourself">
     311<tr class="biographical-info">
    312312        <th><label for="description"><?php _e('Biographical Info'); ?></label></th>
    313313        <td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description ?></textarea><br /><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></td>
    314314</tr>
     
    317317$show_password_fields = apply_filters('show_password_fields', true);
    318318if ( $show_password_fields ) :
    319319?>
    320 <tr>
     320<tr class="password">
    321321        <th><label for="pass1"><?php _e('New Password'); ?></label></th>
    322322        <td><input type="password" name="pass1" id="pass1" size="16" value="" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br />
    323323                <input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again."); ?><br />
     
    340340
    341341<?php if (count($profileuser->caps) > count($profileuser->roles)): ?>
    342342<br class="clear" />
    343         <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">
     343        <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform additional-capabilities">
    344344                <tr>
    345345                        <th scope="row"><?php _e('Additional Capabilities') ?></th>
    346346                        <td><?php