Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 74 lines (64 sloc) 2.667 kB
38be4fc @Facens First commit
authored
1 <?php
2 /**
3 * The template for displaying Comments.
4 *
5 * The area of the page that contains both current comments
6 * and the comment form. The actual display of comments is
7 * handled by a callback to twentyten_comment which is
8 * located in the functions.php file.
9 *
10 * @package WordPress
0f8a024 @Facens Disable Credits and other tweaks
authored
11 * @subpackage wpbootstrap
12 * @since wpbootstrap 0.1
38be4fc @Facens First commit
authored
13 */
14 ?>
15
16 <?php if ( post_password_required() ) : ?>
17 <p><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p>
18 <?php
19 /* Stop the rest of comments.php from being processed,
20 * but don't kill the script entirely -- we still have
21 * to fully load the template.
22 */
23 return;
24 endif;
25 ?>
26
27 <?php
28 // You can start editing here -- including this comment!
29 ?>
30
31 <?php if ( have_comments() ) : ?>
32 <!-- STARKERS NOTE: The following h3 id is left intact so that comments can be referenced on the page -->
33 <h3 id="comments-title"><?php
34 printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
35 number_format_i18n( get_comments_number() ), '' . get_the_title() . '' );
36 ?></h3>
37
38 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
39 <?php previous_comments_link( __( '&larr; Older Comments', 'twentyten' ) ); ?>
40 <?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyten' ) ); ?>
41 <?php endif; // check for comment navigation ?>
42
43 <ol>
44 <?php
45 /* Loop through and list the comments. Tell wp_list_comments()
46 * to use twentyten_comment() to format the comments.
47 * If you want to overload this in a child theme then you can
48 * define twentyten_comment() and that will be used instead.
49 * See twentyten_comment() in twentyten/functions.php for more.
50 */
51 wp_list_comments( array( 'callback' => 'twentyten_comment' ) );
52 ?>
53 </ol>
54
55 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
56 <?php previous_comments_link( __( '&larr; Older Comments', 'twentyten' ) ); ?>
57 <?php next_comments_link( __( 'Newer Comments &rarr;', 'twentyten' ) ); ?>
58 <?php endif; // check for comment navigation ?>
59
60 <?php else : // or, if we don't have comments:
61
62 /* If there are no comments and comments are closed,
63 * let's leave a little note, shall we?
64 */
65 if ( ! comments_open() ) :
66 ?>
67 <?php endif; // end ! comments_open() ?>
68
69 <?php endif; // end have_comments() ?>
70
71 <?php comment_form(
72 array('comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" aria-required="true"></textarea></p>', )
73 );
74 ?>
Something went wrong with that request. Please try again.