Make WordPress Core

Changeset 6936


Ignore:
Timestamp:
02/20/2008 09:29:27 AM (19 years ago)
Author:
ryan
Message:

Make checkbox column narrow

Location:
trunk/wp-admin
Files:
8 edited

Legend:

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

    r6918 r6936  
    147147        <thead>
    148148        <tr>
    149                 <th scope="col"><div style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></div></th>
     149                <th scope="col" class="check-column"><div style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></div></th>
    150150        <th scope="col"><?php _e('Name') ?></th>
    151151        <th scope="col"><?php _e('Description') ?></th>
  • trunk/wp-admin/css/global.css

    r6778 r6936  
    7474}
    7575
     76.widefat .check-column {
     77        text-align: center;
     78        width: 3%;
     79}
     80
    7681.widefat thead, .thead { background: #464646; color: #d7d7d7; }
    7782
  • trunk/wp-admin/edit-link-categories.php

    r6918 r6936  
    9595        <thead>
    9696        <tr>
    97         <th scope="col" style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
     97        <th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
    9898        <th scope="col"><?php _e('Name') ?></th>
    9999        <th scope="col"><?php _e('Description') ?></th>
  • trunk/wp-admin/edit-post-rows.php

    r6864 r6936  
    3434        case 'cb':
    3535                ?>
    36                 <th scope="row" style="text-align: center"><input type="checkbox" name="delete[]" value="<?php the_ID(); ?>" /></th>
     36                <th scope="row" class="check-column"><input type="checkbox" name="delete[]" value="<?php the_ID(); ?>" /></th>
    3737                <?php
    3838                break;
  • trunk/wp-admin/edit-tags.php

    r6918 r6936  
    157157        <thead>
    158158        <tr>
    159                 <th scope="col" style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
     159                <th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
    160160        <th scope="col"><?php _e('Name') ?></th>
    161161        <th scope="col" width="90" style="text-align: center"><?php _e('Posts') ?></th>
  • trunk/wp-admin/includes/template.php

    r6933 r6936  
    5454        $posts_count = ( $category->count > 0 ) ? "<a href='edit.php?cat=$category->term_id'>$category->count</a>" : $category->count;
    5555        $output = "<tr id='cat-$category->term_id'$class>
    56                 <th scope='row' style='text-align: center'><input type='checkbox' name='delete[]' value='$category->term_id' /></th>
     56                <th scope='row' class='check-column'><input type='checkbox' name='delete[]' value='$category->term_id' /></th>
    5757                <td>$edit</td>
    5858                <td>$category->description</td>
    … …  
    8282        $count = ( $category->count > 0 ) ? "<a href='link-manager.php?cat_id=$category->term_id'>$category->count</a>" : $category->count;
    8383        $output = "<tr id='link-cat-$category->term_id'$class>" .
    84                 '<td style="text-align: center"> <input type="checkbox" name="delete[]" value="' . $category->term_id . '" /></td>' .
     84                '<th scope="row" class="check-column"> <input type="checkbox" name="delete[]" value="' . $category->term_id . '" /></th>' .
    8585                "<td>$edit</td>
    8686                <td>$category->description</td>
    … …  
    235235                $out = '';
    236236                $out .= '<tr id="tag-' . $tag->term_id . '"' . $class . '>';
    237                 $out .= '<td style="text-align: center"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></td>';
     237                $out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></th>';
    238238                $out .= '<td><a href="edit-tags.php?action=edit&amp;tag_ID=' . $tag->term_id . '">' .
    239239                        apply_filters( 'term_name', $tag->name ) . '</td>';
    … …  
    369369        case 'cb':
    370370                ?>
    371                 <th scope="row" style="text-align: center"><input type="checkbox" name="delete[]" value="<?php the_ID(); ?>" /></th>
     371                <th scope="row" class="check-column"><input type="checkbox" name="delete[]" value="<?php the_ID(); ?>" /></th>
    372372                <?php
    373373                break;
    … …  
    551551        $role_name = translate_with_context($wp_roles->role_names[$role]);
    552552        $r = "<tr id='user-$user_object->ID'$style>
    553                 <td><input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' /></td>
     553                <th scope='row' class='check-column'><input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' /></th>
    554554                <td><strong>$edit</strong></td>
    555555                <td>$user_object->first_name $user_object->last_name</td>
  • trunk/wp-admin/link-manager.php

    r6918 r6936  
    144144        <thead>
    145145        <tr>
    146         <th style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
     146        <th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
    147147<?php foreach($link_columns as $column_display_name) {
    148148        echo $column_display_name;
    … …  
    167167                $style = ($i % 2) ? '' : ' class="alternate"';
    168168                ?><tr id="link-<?php echo $link->link_id; ?>" valign="middle" <?php echo $style; ?>><?php
    169                 echo '<td align="center"><input type="checkbox" name="linkcheck[]" value="'.$link->link_id.'" /></td>';
     169                echo '<th scope="row" class="check-column"><input type="checkbox" name="linkcheck[]" value="'.$link->link_id.'" /></th>';
    170170                foreach($link_columns as $column_name=>$column_display_name) {
    171171                        switch($column_name) {
  • trunk/wp-admin/users.php

    r6931 r6936  
    326326<tbody>
    327327<tr class="thead">
    328         <th><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /> </th>
     328        <th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /> </th>
    329329        <th><?php _e('Username') ?></th>
    330330        <th><?php _e('Name') ?></th>
Note: See TracChangeset for help on using the changeset viewer.