web/wp-content/themes/twentyten/comments.php
changeset 204 09a1c134465b
parent 194 32102edaa81b
equal deleted inserted replaced
203:f507feede89a 204:09a1c134465b
    60 				<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div>
    60 				<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div>
    61 				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
    61 				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
    62 			</div><!-- .navigation -->
    62 			</div><!-- .navigation -->
    63 <?php endif; // check for comment navigation ?>
    63 <?php endif; // check for comment navigation ?>
    64 
    64 
    65 <?php else : // or, if we don't have comments:
    65 	<?php
    66 
    66 	/* If there are no comments and comments are closed, let's leave a little note, shall we?
    67 	/* If there are no comments and comments are closed,
    67 	 * But we only want the note on posts and pages that had comments in the first place.
    68 	 * let's leave a little note, shall we?
       
    69 	 */
    68 	 */
    70 	if ( ! comments_open() ) :
    69 	if ( ! comments_open() && get_comments_number() ) : ?>
    71 ?>
    70 		<p class="nocomments"><?php _e( 'Comments are closed.' , 'twentyten' ); ?></p>
    72 	<p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
    71 	<?php endif;  ?>
    73 <?php endif; // end ! comments_open() ?>
       
    74 
    72 
    75 <?php endif; // end have_comments() ?>
    73 <?php endif; // end have_comments() ?>
    76 
    74 
    77 <?php comment_form(); ?>
    75 <?php comment_form(); ?>
    78 
    76