Updates for part 2
This commit is contained in:
parent
fb8eaa1fda
commit
8c83a49a7c
15 changed files with 243 additions and 47 deletions
27
comments.php
Normal file
27
comments.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php if ( post_password_required() ) {
|
||||
return;
|
||||
} ?>
|
||||
<div id="comments" class="comments-area">
|
||||
<?php if ( have_comments() ) : ?>
|
||||
<h3 class="comments-title">
|
||||
<?php
|
||||
printf( _nx( 'One comment on “%2$s”', '%1$s comments on “%2$s”', get_comments_number(), 'comments title'),
|
||||
number_format_i18n( get_comments_number() ), get_the_title() );
|
||||
?>
|
||||
</h3>
|
||||
<ul class="comment-list">
|
||||
<?php
|
||||
wp_list_comments( array(
|
||||
'short_ping' => true,
|
||||
'avatar_size' => 50,
|
||||
) );
|
||||
?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<?php if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
|
||||
<p class="no-comments">
|
||||
<?php _e( 'Comments are closed.' ); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php comment_form(); ?>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue