Make WordPress Core


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

Make checkbox column narrow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.