Make WordPress Core


Ignore:
Timestamp:
10/05/2004 07:13:51 AM (22 years ago)
Author:
saxmatt
Message:

Cosmetic tweaks.

File:
1 edited

Legend:

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

    r1622 r1744  
    135135    $file = basename(__FILE__);
    136136?>
    137     <p><?php _e('The following comments are in the moderation queue:') ?></p>
     137    <h2><?php _e('Moderation Queue') ?></h2>
    138138    <form name="approval" action="moderation.php" method="post">
    139139    <input type="hidden" name="action" value="update" />
    140     <ol id="comments">
     140    <ol id="comments" class="commentlist">
    141141<?php
     142$i = 0;
    142143    foreach($comments as $comment) {
     144        ++$i;
    143145        $comment_date = mysql2date(get_settings("date_format") . " @ " . get_settings("time_format"), $comment->comment_date);
    144146        $post_title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID='$comment->comment_post_ID'");
    145        
    146         echo "\n\t<li id='comment-$comment->comment_ID'>";
     147        if ($i % 2) $class = 'class="alternate"';
     148        else $class = '';
     149        echo "\n\t<li id='comment-$comment->comment_ID' $class>";
    147150        ?>
    148151                        <p><strong><?php _e('Name:') ?></strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('E-mail:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_email) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p>
Note: See TracChangeset for help on using the changeset viewer.