WordPress.org

Make WordPress Core

Changeset 7307


Ignore:
Timestamp:
03/15/2008 06:14:03 AM (10 years ago)
Author:
ryan
Message:

Reduce dependency on inline style. Props mdawaffe. fixes #6228

Location:
trunk/wp-admin
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-attachment-rows.php

    r7304 r7307  
    55
    66<?php $posts_columns = wp_manage_media_columns(); ?>
    7 <?php foreach($posts_columns as $column_display_name) { ?>
    8     <th scope="col"><?php echo $column_display_name; ?></th>
     7<?php foreach($posts_columns as $post_column_key => $column_display_name) {
     8    if ( 'cb' === $post_column_key )
     9        $class = ' class="check-column"';
     10    elseif ( 'comments' === $post_column_key )
     11        $class = ' class="num"';
     12    else
     13        $class = '';
     14?>
     15    <th scope="col"<?php echo $class; ?>><?php echo $column_display_name; ?></th>
    916<?php } ?>
    1017
  • trunk/wp-admin/edit-link-categories.php

    r7304 r7307  
    9898        <th scope="col"><?php _e('Name') ?></th>
    9999        <th scope="col"><?php _e('Description') ?></th>
    100         <th scope="col" style="width: 90px; text-align: center"><?php _e('Links') ?></th>
     100        <th scope="col" class="num" style="width: 90px;"><?php _e('Links') ?></th>
    101101    </tr>
    102102    </thead>
  • trunk/wp-admin/edit-link-form.php

    r7304 r7307  
    5353
    5454<p class="submit">
    55 <input type="submit" class="button" name="save" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" />
     55<input type="submit" class="button button-highlighted" name="save" value="<?php _e('Save'); ?>" tabindex="4" />
    5656<?php
    5757if ( ( 'edit' == $action) && current_user_can('manage_links') )
  • trunk/wp-admin/edit-page-form.php

    r7304 r7307  
    112112
    113113<p class="submit">
    114 <input type="submit" name="save" class="button" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" />
     114<input type="submit" name="save" class="button button-highlighted" value="<?php _e('Save'); ?>" tabindex="4" />
    115115<?php
    116116if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
  • trunk/wp-admin/edit-pages.php

    r7304 r7307  
    138138  <tr>
    139139<?php $posts_columns = wp_manage_pages_columns(); ?>
    140 <?php foreach($posts_columns as $column_display_name) { ?>
    141     <th scope="col"><?php echo $column_display_name; ?></th>
     140<?php foreach($posts_columns as $post_column_key => $column_display_name) {
     141    if ( 'cb' === $post_column_key )
     142        $class = ' class="check-column"';
     143    elseif ( 'comments' === $post_column_key )
     144        $class = ' class="num"';
     145    else
     146        $class = '';
     147?>
     148    <th scope="col"<?php echo $class; ?>><?php echo $column_display_name; ?></th>
    142149<?php } ?>
    143150  </tr>
  • trunk/wp-admin/edit-post-rows.php

    r7304 r7307  
    55
    66<?php $posts_columns = wp_manage_posts_columns(); ?>
    7 <?php foreach($posts_columns as $column_display_name) { ?>
    8     <th scope="col"><?php echo $column_display_name; ?></th>
     7<?php foreach($posts_columns as $post_column_key => $column_display_name) {
     8    if ( 'cb' === $post_column_key )
     9        $class = ' class="check-column"';
     10    elseif ( 'comments' === $post_column_key )
     11        $class = ' class="num"';
     12    else
     13        $class = '';
     14?>
     15    <th scope="col"<?php echo $class; ?>><?php echo $column_display_name; ?></th>
    916<?php } ?>
    1017
  • trunk/wp-admin/edit-tags.php

    r7304 r7307  
    158158    <thead>
    159159    <tr>
    160         <th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
     160    <th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
    161161        <th scope="col"><?php _e('Name') ?></th>
    162         <th scope="col" style="width: 90px"><?php _e('Posts') ?></th>
     162        <th scope="col" class="num" style="width: 90px"><?php _e('Posts') ?></th>
    163163    </tr>
    164164    </thead>
  • trunk/wp-admin/includes/template.php

    r7304 r7307  
    239239            apply_filters( 'term_name', $tag->name ) . '</a></td>';
    240240
    241         $out .= "<td>$count</td>";
     241        $out .= "<td class='num'>$count</td>";
    242242        $out .= '</tr>';
    243243
     
    546546        <td><a href='mailto:$email' title='" . sprintf( __('e-mail: %s' ), $email ) . "'>$email</a></td>
    547547        <td>$role_name</td>";
    548     $r .= "\n\t\t<td>";
     548    $r .= "\n\t\t<td class='num'>";
    549549    if ( $numposts > 0 ) {
    550550        $r .= "<a href='edit.php?author=$user_object->ID' title='" . __( 'View posts by this author' ) . "' class='edit'>";
  • trunk/wp-admin/users.php

    r7304 r7307  
    336336    <th><?php _e('E-mail') ?></th>
    337337    <th><?php _e('Role') ?></th>
    338     <th><?php _e('Posts') ?></th>
     338    <th class="num"><?php _e('Posts') ?></th>
    339339</tr>
    340340</thead>
Note: See TracChangeset for help on using the changeset viewer.