Make WordPress Core

Changeset 805


Ignore:
Timestamp:
01/28/2004 08:40:58 AM (21 years ago)
Author:
saxmatt
Message:

Comments link not shown if on comments page, link to comment form, number of comments in comment header, and slight font size tweak.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments.php

    r787 r805  
    2020<!-- You can start editing here. -->
    2121
    22 <h2 id="comments">Comments</h2>
    23 
    24 <p><?php comments_rss_link('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></p>
    25 
     22<h2 id="comments"><?php comments_number('Comments'); ?>
     23<?php if ('open' == $post->comment_status) { ?>
     24<a href="#postcomment" title="Leave a comment">&raquo;</a>
     25<?php } ?>
     26</h2>
    2627<?php if ('open' == $post->ping_status) { ?>
    2728<p>The <acronym title="Uniform Resource Identifier">URI</acronym> to TrackBack this entry is: <em><?php trackback_url() ?></em></p>
     
    4243    <p>No comments yet.</p>
    4344<?php } ?>
    44 
    45 <h2>Leave a Comment</h2>
     45<p><?php comments_rss_link('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></p>
     46<h2 id="postcomment">Leave a Comment</h2>
    4647<?php if ('open' == $post->comment_status) { ?>
    4748<p>Line and paragraph breaks automatic, website trumps email, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo allowed_tags(); ?></code></p>
     
    8687</form>
    8788<?php } else { // comments are closed ?>
    88 <p>Sorry, comments are closed at this time.</p>
     89<p>Sorry, the comment form is closed at this time.</p>
    8990<?php } ?>
    9091
  • trunk/wp-includes/template-functions-comment.php

    r801 r805  
    3333    global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post, $wpdb, $tablecomments, $HTTP_COOKIE_VARS, $cookiehash;
    3434    global $querystring_start, $querystring_equal, $querystring_separator, $siteurl;
    35     global $comment_count_cache;
     35    global $comment_count_cache, $single;
     36    if (!$single) {
    3637    if ('' == $comment_count_cache["$id"]) {
    3738        $number = $wpdb->get_var("SELECT COUNT(comment_ID) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1';");
     
    6667        echo '</a>';
    6768    }
     69    }
    6870}
    6971
  • trunk/wp-layout.css

    r798 r805  
    5555h2 {
    5656    border-bottom: 1px dotted #ccc;
    57     font: 80% "Times New Roman", Times, serif;
     57    font: 95% "Times New Roman", Times, serif;
    5858    letter-spacing: 0.2em;
    5959    margin: 15px 0 2px 0;
Note: See TracChangeset for help on using the changeset viewer.