wp/wp-includes/theme-compat/comments.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
    21 ?>
    21 ?>
    22 
    22 
    23 <!-- You can start editing here. -->
    23 <!-- You can start editing here. -->
    24 
    24 
    25 <?php if ( have_comments() ) : ?>
    25 <?php if ( have_comments() ) : ?>
    26 	<h3 id="comments"><?php	printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number() ),
    26 	<h3 id="comments">
    27 									number_format_i18n( get_comments_number() ), '&#8220;' . get_the_title() . '&#8221;' ); ?></h3>
    27 		<?php
       
    28 			if ( 1 == get_comments_number() ) {
       
    29 				/* translators: %s: post title */
       
    30 				printf( __( 'One Response to %s' ),  '&#8220;' . get_the_title() . '&#8221;' );
       
    31 			} else {
       
    32 				/* translators: 1: number of comments, 2: post title */
       
    33 				printf( _n( '%1$s Response to %2$s', '%1$s Responses to %2$s', get_comments_number() ),
       
    34 					number_format_i18n( get_comments_number() ),  '&#8220;' . get_the_title() . '&#8221;' );
       
    35 			}
       
    36 		?>
       
    37 	</h3>
    28 
    38 
    29 	<div class="navigation">
    39 	<div class="navigation">
    30 		<div class="alignleft"><?php previous_comments_link() ?></div>
    40 		<div class="alignleft"><?php previous_comments_link() ?></div>
    31 		<div class="alignright"><?php next_comments_link() ?></div>
    41 		<div class="alignright"><?php next_comments_link() ?></div>
    32 	</div>
    42 	</div>
    89 <p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
    99 <p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
    90 
   100 
    91 <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" />
   101 <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" />
    92 <?php comment_id_fields(); ?>
   102 <?php comment_id_fields(); ?>
    93 </p>
   103 </p>
    94 <?php do_action('comment_form', $post->ID); ?>
   104 <?php
       
   105 /** This filter is documented in wp-includes/comment-template.php */
       
   106 do_action( 'comment_form', $post->ID );
       
   107 ?>
    95 
   108 
    96 </form>
   109 </form>
    97 
   110 
    98 <?php endif; // If registration required and not logged in ?>
   111 <?php endif; // If registration required and not logged in ?>
    99 </div>
   112 </div>