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

git-svn-id: http://svn.automattic.com/wordpress/trunk@805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-01-28 08:40:58 +00:00
parent e3bcbb488d
commit a5c49531fd
3 changed files with 12 additions and 9 deletions

View File

@ -19,10 +19,11 @@
<!-- You can start editing here. -->
<h2 id="comments">Comments</h2>
<p><?php comments_rss_link('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></p>
<h2 id="comments"><?php comments_number('Comments'); ?>
<?php if ('open' == $post->comment_status) { ?>
<a href="#postcomment" title="Leave a comment">&raquo;</a>
<?php } ?>
</h2>
<?php if ('open' == $post->ping_status) { ?>
<p>The <acronym title="Uniform Resource Identifier">URI</acronym> to TrackBack this entry is: <em><?php trackback_url() ?></em></p>
<?php } ?>
@ -41,8 +42,8 @@
<?php } else { // this is displayed if there are no comments so far ?>
<p>No comments yet.</p>
<?php } ?>
<h2>Leave a Comment</h2>
<p><?php comments_rss_link('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></p>
<h2 id="postcomment">Leave a Comment</h2>
<?php if ('open' == $post->comment_status) { ?>
<p>Line and paragraph breaks automatic, website trumps email, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo allowed_tags(); ?></code></p>
@ -85,7 +86,7 @@ if ('none' != get_settings("comment_moderation")) {
</p>
</form>
<?php } else { // comments are closed ?>
<p>Sorry, comments are closed at this time.</p>
<p>Sorry, the comment form is closed at this time.</p>
<?php } ?>
<?php // if you delete this the sky will fall on your head

View File

@ -32,7 +32,8 @@ function comments_popup_script($width=400, $height=400, $file='wp-comments-popup
function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Comments', $CSSclass='', $none='Comments Off') {
global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post, $wpdb, $tablecomments, $HTTP_COOKIE_VARS, $cookiehash;
global $querystring_start, $querystring_equal, $querystring_separator, $siteurl;
global $comment_count_cache;
global $comment_count_cache, $single;
if (!$single) {
if ('' == $comment_count_cache["$id"]) {
$number = $wpdb->get_var("SELECT COUNT(comment_ID) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1';");
} else {
@ -65,6 +66,7 @@ function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Com
comments_number($zero, $one, $more, $number);
echo '</a>';
}
}
}
function comment_ID() {

View File

@ -54,7 +54,7 @@ cite {
h2 {
border-bottom: 1px dotted #ccc;
font: 80% "Times New Roman", Times, serif;
font: 95% "Times New Roman", Times, serif;
letter-spacing: 0.2em;
margin: 15px 0 2px 0;
padding-bottom: 2px;