source: trunk/www.guidonia.net/wp/wp-content/plugins/wordpress-mobile-edition/carrington-mobile-1.0.2/comments/comments-default.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 1.5 KB
Line 
1<?php
2
3// This file is part of the Carrington Mobile Theme for WordPress
4// http://carringtontheme.com
5//
6// Copyright (c) 2008-2009 Crowd Favorite, Ltd. All rights reserved.
7// http://crowdfavorite.com
8//
9// Released under the GPL license
10// http://www.opensource.org/licenses/gpl-license.php
11//
12// **********************************************************************
13// This program is distributed in the hope that it will be useful, but
14// WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16// **********************************************************************
17
18if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
19if (CFCT_DEBUG) { cfct_banner(__FILE__); }
20
21global $post, $wp_query, $comments, $comment;
22
23if ($comments || 'open' == $post->comment_status) {
24 if (empty($post->post_password) || $_COOKIE['wp-postpass_' . COOKIEHASH] == $post->post_password) {
25 $comments = $wp_query->comments;
26 $comment_count = count($comments);
27 $comment_count == 1 ? $comment_title = __('One Response', 'carrington-mobile') : $comment_title = sprintf(__('%d Responses', 'carrington-mobile'), $comment_count);
28 }
29
30?>
31
32<h2 id="comments" class="title-divider"><span><?php echo $comment_title; ?></span></h2>
33
34<?php
35
36 if ($comments) {
37?>
38 <ol class="commentlist">
39<?php
40 foreach ($comments as $comment) {
41?>
42 <li id="comment-<?php comment_ID() ?>">
43<?php
44 cfct_comment();
45?>
46 </li>
47<?php
48 }
49?>
50 </ol>
51<?php
52 }
53 cfct_form('comment');
54}
55?>
Note: See TracBrowser for help on using the repository browser.