Make WordPress Core

Changeset 1454


Ignore:
Timestamp:
07/06/2004 06:14:42 PM (22 years ago)
Author:
saxmatt
Message:

http://mosquito.wordpress.org/bug_view_page.php?bug_id=0000145 and a few other hardcoded styles.

Location:
trunk/wp-admin
Files:
3 edited

Legend:

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

    r1448 r1454  
    118118                $pad = str_repeat('— ', $level);
    119119
    120                 $bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
    121                 echo "<tr style='background-color: $bgcolor'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td>
     120                $class = ('alternate' == $class) ? '' : 'alternate';
     121                echo "<tr class='$class'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td>
    122122                <td>$category->category_description</td>
    123123                <td>$count</td>
  • trunk/wp-admin/edit-comments.php

    r1429 r1454  
    121121        foreach ($comments as $comment) {
    122122        $authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID"));
    123         $bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
     123        $class = ('alternate' == $class) ? '' : 'alternate';
    124124?>
    125   <tr style='background-color: <?php echo $bgcolor; ?>'>
     125  <tr class='<?php echo $class; ?>'>
    126126    <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td>
    127127    <td><?php comment_author_link() ?></td>
  • trunk/wp-admin/edit.php

    r1429 r1454  
    9595$bgcolor = '';
    9696foreach ($posts as $post) { start_wp();
    97 $bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
     97$class = ('alternate' == $class) ? '' : 'alternate';
    9898?>
    99   <tr style='background-color: <?php echo $bgcolor; ?>'>
     99  <tr class='<?php echo $class; ?>'>
    100100    <th scope="row"><?php echo $id ?></th>
    101101    <td><?php the_time('Y-m-d \<\b\r \/\> g:i:s a'); ?></td>
Note: See TracChangeset for help on using the changeset viewer.