Updated comments.php
This commit is contained in:
		
							parent
							
								
									88918f050c
								
							
						
					
					
						commit
						402a9c33a1
					
				
							
								
								
									
										22
									
								
								comments.php
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								comments.php
									
									
									
									
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
<div id="comments">
 | 
			
		||||
	<?php if ( have_comments() ) : ?>
 | 
			
		||||
	<?php do_action( 'atticus_finch_before_comments' ); ?>
 | 
			
		||||
	<?php do_action( 'portage_before_comments' ); ?>
 | 
			
		||||
 | 
			
		||||
<?php
 | 
			
		||||
	if ( post_password_required() ) {
 | 
			
		||||
@ -13,7 +13,7 @@
 | 
			
		||||
		<h3 class="comments-title">
 | 
			
		||||
			<?php
 | 
			
		||||
				$post_comments = count( get_comments(array('type' => 'comment','post_id' => $post->ID)) );
 | 
			
		||||
				printf( _nx( 'One comment on “%2$s”', '%1$s comments on “%2$s”', $post_comments, 'comments title', 'atticus-finch' ),
 | 
			
		||||
				printf( _nx( 'One comment on “%2$s”', '%1$s comments on “%2$s”', $post_comments, 'comments title', 'portage' ),
 | 
			
		||||
					number_format_i18n( $post_comments ), '<span>' . get_the_title() . '</span>' );
 | 
			
		||||
			?>
 | 
			
		||||
		</h3>
 | 
			
		||||
@ -34,7 +34,7 @@
 | 
			
		||||
			<?php
 | 
			
		||||
				$post_pings = count( get_comments(array( 'type' => 'pings', 'post_id' => $post->ID )) );
 | 
			
		||||
				if ( $post_pings > 0 ) {
 | 
			
		||||
				printf( _nx( 'One pingback/trackback on “%2$s”', '%1$s pingbacks/trackbacks on “%2$s”', $post_pings, 'pingbacks title', 'atticus-finch' ),
 | 
			
		||||
				printf( _nx( 'One pingback/trackback on “%2$s”', '%1$s pingbacks/trackbacks on “%2$s”', $post_pings, 'pingbacks title', 'portage' ),
 | 
			
		||||
					number_format_i18n( $post_pings ), '<span>' . get_the_title() . '</span>' );
 | 
			
		||||
				}
 | 
			
		||||
			?>
 | 
			
		||||
@ -56,20 +56,20 @@
 | 
			
		||||
			if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
 | 
			
		||||
		?>
 | 
			
		||||
		<nav class="navigation comment-navigation" role="navigation">
 | 
			
		||||
			<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'atticus-finch' ); ?></h1>
 | 
			
		||||
			<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'atticus-finch' ) ); ?></div>
 | 
			
		||||
			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'atticus-finch' ) ); ?></div>
 | 
			
		||||
			<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'portage' ); ?></h1>
 | 
			
		||||
			<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'portage' ) ); ?></div>
 | 
			
		||||
			<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'portage' ) ); ?></div>
 | 
			
		||||
		</nav><!-- .comment-navigation -->
 | 
			
		||||
		<?php endif; // Check for comment navigation ?>
 | 
			
		||||
 | 
			
		||||
		<?php if ( ! comments_open() && get_comments_number() ) : ?>
 | 
			
		||||
		<p class="no-comments"><?php _e( 'Sorry, but comments are closed.' , 'atticus-finch' ); ?></p>
 | 
			
		||||
		<p class="no-comments"><?php _e( 'Sorry, but comments are closed.' , 'portage' ); ?></p>
 | 
			
		||||
		<?php endif; ?>
 | 
			
		||||
 | 
			
		||||
	<?php do_action( 'atticus_finch_after_comments' ); ?>
 | 
			
		||||
	<?php do_action( 'portage_after_comments' ); ?>
 | 
			
		||||
	<?php endif; // have_comments() ?>
 | 
			
		||||
 | 
			
		||||
	<?php do_action( 'atticus_finch_before_comment_form' ) ?>
 | 
			
		||||
	<?php do_action( 'portage_before_comment_form' ) ?>
 | 
			
		||||
	<?php comment_form(); ?>
 | 
			
		||||
	<?php do_action( 'atticus_finch_after_comment_form' ) ?>
 | 
			
		||||
</div>
 | 
			
		||||
	<?php do_action( 'portage_after_comment_form' ) ?>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user