Make WordPress Core


Ignore:
Timestamp:
04/19/2006 09:26:56 AM (21 years ago)
Author:
matt
Message:

Cleaner category count display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/categories.php

    r3684 r3728  
    7070          <table class="editform" width="100%" cellspacing="2" cellpadding="5">
    7171                <tr>
    72                   <th width="33%" scope="row"><?php _e('Category name:') ?></th>
    73                   <td width="67%"><input name="cat_name" type="text" value="<?php echo wp_specialchars($category->cat_name); ?>" size="40" /> <input type="hidden" name="action" value="editedcat" />
     72                  <th width="33%" scope="row" valign="top"><label for="cat_name"><?php _e('Category name:') ?></label></th>
     73                  <td width="67%"><input name="cat_name" id="cat_name" type="text" value="<?php echo wp_specialchars($category->cat_name); ?>" size="40" /> <input type="hidden" name="action" value="editedcat" />
    7474<input type="hidden" name="cat_ID" value="<?php echo $category->cat_ID ?>" /></td>
    7575                </tr>
    7676                <tr>
    77                         <th scope="row"><?php _e('Category slug:') ?></th>
    78                         <td><input name="category_nicename" type="text" value="<?php echo wp_specialchars($category->category_nicename); ?>" size="40" /></td>
     77                        <th scope="row" valign="top"><label for="category_nicename"><?php _e('Category slug:') ?></label></th>
     78                        <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo wp_specialchars($category->category_nicename); ?>" size="40" /></td>
    7979                </tr>
    8080                <tr>
    81                         <th scope="row"><?php _e('Category parent:') ?></th>
     81                        <th scope="row" valign="top"><label for="category_parent"><?php _e('Category parent:') ?></label></th>
    8282                        <td>       
    83                         <select name='category_parent'>
     83                        <select name='category_parent' id='category_parent'>
    8484          <option value='0' <?php if (!$category->category_parent) echo " selected='selected'"; ?>><?php _e('None') ?></option>
    8585          <?php wp_dropdown_cats($category->cat_ID, $category->category_parent); ?>
    … …  
    8787                </tr>
    8888                <tr>
    89                         <th scope="row"><?php _e('Description:') ?></th>
    90                         <td><textarea name="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->category_description, 1); ?></textarea></td>
     89                        <th scope="row" valign="top"><label for="category_description"><?php _e('Description:') ?></label></th>
     90                        <td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo wp_specialchars($category->category_description, 1); ?></textarea></td>
    9191                </tr>
    9292                </table>
    … …  
    136136        <th scope="col"><?php _e('Name') ?></th>
    137137        <th scope="col"><?php _e('Description') ?></th>
    138         <th scope="col"><?php _e('# Posts') ?></th>
    139         <th scope="col"><?php _e('# Bookmarks') ?></th>
     138        <th scope="col" width="90"><?php _e('Posts') ?></th>
     139        <th scope="col" width="90"><?php _e('Bookmarks') ?></th>
    140140        <th colspan="2"><?php _e('Action') ?></th>
    141141        </tr>
    … …  
    180180
    181181include('admin-footer.php');
     182
    182183?>
Note: See TracChangeset for help on using the changeset viewer.