12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- /*
- * If the current post is protected by a password and
- * the visitor has not yet entered the password we will
- * return early without loading the comments.
- */
- if ( post_password_required() )
- return;
- ?>
- <div id="comments" class="comments-area">
- <?php // You can start editing here -- including this comment! ?>
- <?php if ( have_comments() ) : ?>
- <h2 class="comments-title">
- <?php
- printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'foto' ),
- number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
- ?>
- </h2>
- <?php foto_comment_nav(); ?>
- <ol class="commentlist">
- <?php
- /* Loop through and list the comments. Tell wp_list_comments()
- * to use foto_comment() to format the comments.
- * If you want to overload this in a child theme then you can
- * define foto_comment() and that will be used instead.
- * See foto_comment() in library/includes/templates.php for more.
- */
- wp_list_comments( array( 'callback' => 'foto_comment' ) );
- ?>
- </ol>
- <?php foto_comment_nav(); ?>
- <?php endif; // have_comments() ?>
- <?php
- // If comments are closed and there are no comments, let's leave a little note, shall we?
- if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
- ?>
- <p class="nocomments"><?php _e( 'Comments are closed.', 'foto' ); ?></p>
- <?php endif; ?>
- <?php
- $args = array(
- 'label_submit' => __( 'Send your comment', 'foto' ),
- 'comment_notes_after' => ''
- );
-
- comment_form($args);
- ?>
- </div><!-- #comments .comments-area -->
|