Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (44 sloc) 2.921 kb
48473b9 @tw2113 First Commit
authored
1 <?php
d90f789 @tw2113 Bunch of cleanup and indent rearranging
authored
2 if ( post_password_required() ) : ?>
3 <p>This post is password protected. Enter the password to view any comments.</p>
48473b9 @tw2113 First Commit
authored
4 <?php
d90f789 @tw2113 Bunch of cleanup and indent rearranging
authored
5 /* Stop the rest of comments.php from being processed, but don't kill the script entirely -- we still have to fully load the template. */
6 return;
7 endif;
48473b9 @tw2113 First Commit
authored
8 ?>
9
d90f789 @tw2113 Bunch of cleanup and indent rearranging
authored
10 <?php // You can start editing here -- including this comment! ?>
11
48473b9 @tw2113 First Commit
authored
12 <?php if ( have_comments() ) : ?>
d90f789 @tw2113 Bunch of cleanup and indent rearranging
authored
13 <!-- STARKERS NOTE: The following h3 id is left intact so that comments can be referenced on the page -->
14 <h3 id="comments-title">
15 <?php printf( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), number_format_i18n( get_comments_number() ), '' . get_the_title() . '' ); ?>
16 </h3>
48473b9 @tw2113 First Commit
authored
17
18 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
d90f789 @tw2113 Bunch of cleanup and indent rearranging
authored
19 <?php previous_comments_link( '&larr; Older Comments' ); ?>
20 <?php next_comments_link( 'Newer Comments &rarr;' ); ?>
48473b9 @tw2113 First Commit
authored
21 <?php endif; // check for comment navigation ?>
d90f789 @tw2113 Bunch of cleanup and indent rearranging
authored
22 <ol>
e73f5c0 @tw2113 fixed callback issue
authored
23 <?php wp_list_comments( array( 'callback' => 'wpst_comment' ) ); ?>
d90f789 @tw2113 Bunch of cleanup and indent rearranging
authored
24 </ol>
48473b9 @tw2113 First Commit
authored
25
26 <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
d90f789 @tw2113 Bunch of cleanup and indent rearranging
authored
27 <?php previous_comments_link( '&larr; Older Comments' ); ?>
28 <?php next_comments_link( 'Newer Comments &rarr;' ); ?>
48473b9 @tw2113 First Commit
authored
29 <?php endif; // check for comment navigation ?>
30
31 <?php else : // or, if we don't have comments:
d90f789 @tw2113 Bunch of cleanup and indent rearranging
authored
32 /* If there are no comments and comments are closed, let's leave a little note, shall we? */
48473b9 @tw2113 First Commit
authored
33 if ( ! comments_open() ) :
34 ?>
d90f789 @tw2113 Bunch of cleanup and indent rearranging
authored
35 <p>Comments are closed.</p>
48473b9 @tw2113 First Commit
authored
36 <?php endif; // end ! comments_open() ?>
37
38 <?php endif; // end have_comments() ?>
39
40 <?php comment_form(
41 array(
42 'comment_notes_after' => '',
43 'fields' => array(
44 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<br/><input id="author" name="author" type="text" placeholder="Your name please" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" required /></p>',
45 'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<br/><input id="email" name="email" type="email" placeholder="Your email please" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" required /></p>',
46 'url' => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label>' . '<br/><input id="url" name="url" type="url" placeholder="Do you have a website you\' like to include?" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',
47 ),
48 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label><br/><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" placeholder="What would you like to say?"></textarea></p>'
49 )
d90f789 @tw2113 Bunch of cleanup and indent rearranging
authored
50 );
51
526a01c @tw2113 added get_template_directory_uri() instead of bloginfo, when applicable
authored
52 ?>
Something went wrong with that request. Please try again.