Make WordPress Core


Ignore:
Timestamp:
08/31/2005 02:39:17 AM (19 years ago)
Author:
ryan
Message:

On the fly list manipulation. Delete in style. Mad props to mdawaffe. Applies to #1634

File:
1 edited

Legend:

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

    r2756 r2832  
    7777            $start = '';
    7878
    79         echo "<ol class='commentlist' $start>";
     79        echo "<ol id='the-list' class='commentlist' $start>";
    8080        $i = 0;
    8181        foreach ($comments as $comment) {
     
    8787            if ($i % 2)
    8888                $class .= ' alternate';
    89             echo "<li class='$class'>";
     89            echo "<li id='comment-$comment->comment_ID' class='$class'>";
    9090?>     
    9191        <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_url && 'http://' != $comment->comment_author_url ) { ?> | <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>
     
    9898            }
    9999            if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
    100                 echo " | <a href=\"post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return confirm('" . sprintf(__("You are about to delete this comment by \'%s\'\\n  \'Cancel\' to stop, \'OK\' to delete."), $comment->comment_author) . "')\">" . __('Delete Comment') . "</a> &#8212; ";
     100                echo " | <a href=\"post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by &quot;%s&quot;.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete."), wp_specialchars( $comment->comment_author, 1 ))  . "' );\">" . __('Delete Comment') . "</a> &#8212; ";
    101101            } // end if any comments to show
    102102            // Get post title
     
    111111<?php } // end foreach ?>
    112112</ol>
     113
     114<div id="ajax-response"></div>
    113115
    114116<?php
Note: See TracChangeset for help on using the changeset viewer.