Make WordPress Core

Changeset 549 for trunk/b2comments.php


Ignore:
Timestamp:
11/15/2003 08:58:18 AM (22 years ago)
Author:
saxmatt
Message:

Cleaning up comment moderation and the comment code in general. More to do tomorrow with regards to wp-moderation.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2comments.php

    r546 r549  
    2020<!-- You can start editing here. -->
    2121
    22 <h2>Comments</h2>
     22<h2 id="comments">Comments</h2>
    2323
    24 <p><a href="<?php echo $siteurl; ?>/wp-commentsrss2.php?p=<?php echo $id; ?>">RSS feed for comments on this post.</a></p>
     24<p><a href="<?php echo $siteurl; ?>/wp-commentsrss2.php?p=<?php echo $id; ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>
    2525
    2626<?php if ('open' == $post->ping_status) { ?>
     
    2828<?php } ?>
    2929
    30 <ol id="comments">
    31 <?php
    32 // this line is WordPress' motor, do not delete it.
    33 if ($comments) {
    34     foreach ($comments as $comment) {
    35 ?>
    36    
    37 <li id="comment-<?php comment_ID() ?>">
    38 <?php comment_text() ?>
    39 <p><cite><?php comment_type(); ?> by <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
    40 </li>
    4130
    42 <?php } // end for each comment
    43 } else { // this is displayed if there are no comments so far
    44 ?>
    45     <li>No comments yet.</li>
     31<?php if ($comments) { ?>
     32<ol id="commentlist">
     33<?php foreach ($comments as $comment) { ?>
     34    <li id="comment-<?php comment_ID() ?>">
     35    <?php comment_text() ?>
     36    <p><cite><?php comment_type(); ?> by <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
     37    </li>
     38
     39<?php } // end for each comment ?>
     40</ol>
     41<?php } else { // this is displayed if there are no comments so far ?>
     42    <p>No comments yet.</p>
    4643<?php } ?>
    47 </ol>
     44
    4845<h2>Leave a Comment</h2>
    4946<?php if ('open' == $post->comment_status) { ?>
     
    7875?>
    7976    <p>
    80     <strong>Please note:</strong><br />
    81     This blog uses comment moderation. In other words: your comment will need approval
    82     by the administrator before it will appear in the blog. Approval usually happens
    83     within the next 24 hours. Please send your comment only once. Thank you.
     77    <strong>Please note:</strong> Comment moderation is currently enabled so there may be a delay between when you post your comment and when it shows up. Patience is a virtue; there&#8217;s no need to resubmit your comment.
    8478    </p>
    8579<?php
Note: See TracChangeset for help on using the changeset viewer.