File: /home/mmickelson/theflexguy.com/wp-content/themes/carrington-blog/comments/comments-default.php
<?php
// This file is part of the Carrington Blog Theme for WordPress
// http://carringtontheme.com
//
// Copyright (c) 2008-2009 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// **********************************************************************
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
if (CFCT_DEBUG) { cfct_banner(__FILE__); }
global $post, $wp_query, $comments, $comment;
if (have_comments() || 'open' == $post->comment_status) {
if (empty($post->post_password) || $_COOKIE['wp-postpass_' . COOKIEHASH] == $post->post_password) {
$comments = $wp_query->comments;
$comment_count = count($comments);
$comment_count == 1 ? $comment_title = __('One Response', 'carrington-blog') : $comment_title = sprintf(__('%d Responses', 'carrington-blog'), $comment_count);
}
?>
<div class="rule-major"><hr /></div>
<h2 class="h1 comments-title"><?php echo $comment_title; ?></h2>
<p><?php printf(__('Stay in touch with the conversation, subscribe to the <a class="feed" rel="alternate" href="%s"><acronym title="Really Simple Syndication">RSS</acronym> feed for comments on this post</a>.', 'carrington-blog'), get_post_comments_feed_link($post->ID, '')); ?></p>
<?php
if ($comments) {
$comment_count = 0;
$ping_count = 0;
foreach ($comments as $comment) {
if (get_comment_type() == 'comment') {
$comment_count++;
}
else {
$ping_count++;
}
}
if ($comment_count) {
cfct_template_file('comments', 'comments-loop');
}
if ($ping_count) {
?>
<h3 class="pings"><?php _e('Continuing the Discussion', 'carrington-blog'); ?></h3>
<?php
cfct_template_file('comments', 'pings-loop');
}
}
cfct_form('comment');
}
?>