Changeset 3847 for trunk/wp-admin/moderation.php
- Timestamp:
- 06/06/2006 04:14:04 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/moderation.php
r3788 r3847 4 4 $title = __('Moderate comments'); 5 5 $parent_file = 'edit.php'; 6 wp_enqueue_script( ' listman' );6 wp_enqueue_script( 'admin-comments' ); 7 7 8 8 $wpvarstoreset = array('action', 'item_ignored', 'item_deleted', 'item_approved', 'item_spam', 'feelinglucky'); … … 135 135 <?php wp_nonce_field('moderate-comments') ?> 136 136 <input type="hidden" name="action" value="update" /> 137 <ol id="the- list" class="commentlist">137 <ol id="the-comment-list" class="commentlist"> 138 138 <?php 139 139 $i = 0; … … 142 142 $comment_date = mysql2date(get_settings("date_format") . " @ " . get_settings("time_format"), $comment->comment_date); 143 143 $post_title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID='$comment->comment_post_ID'"); 144 if ($i % 2) $class = ' class="alternate"';145 else $class = ' ';146 echo "\n\t<li id='comment-$comment->comment_ID' $class>";144 if ($i % 2) $class = 'js-unapproved alternate'; 145 else $class = 'js-unapproved'; 146 echo "\n\t<li id='comment-$comment->comment_ID' class='$class'>"; 147 147 ?> 148 148 <p><strong><?php comment_author() ?></strong> <?php if ($comment->comment_author_email) { ?>| <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url && 'http://' != $comment->comment_author_url) { ?> | <?php comment_author_url_link() ?> <?php } ?>| <?php _e('IP:') ?> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p> … … 150 150 <p><?php comment_date('M j, g:i A'); ?> — [ <?php 151 151 echo '<a href="comment.php?action=editcomment&comment='.$comment->comment_ID.'">' . __('Edit') . '</a> | '; 152 echo " <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), js_escape($comment->comment_author)) . "' );\">" . __('Delete ') . "</a> | "; ?>152 echo " <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), js_escape($comment->comment_author)) . "', theCommentList );\">" . __('Delete ') . "</a> | "; ?> 153 153 <?php 154 154 $post = get_post($comment->comment_post_ID);
Note: See TracChangeset
for help on using the changeset viewer.