mirror of https://github.com/IoTcat/sakura2.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
666 B
24 lines
666 B
<div id="comments" class="comments"> |
|
<?php if ( post_password_required() ) : ?> |
|
<p><?php esc_html_e( 'Post is password protected. Enter the password to view any comments.', 'html5blank' ); ?></p> |
|
</div> |
|
|
|
<?php return; endif; ?> |
|
|
|
<?php if ( have_comments() ) : ?> |
|
|
|
<h2><?php comments_number(); ?></h2> |
|
|
|
<ul> |
|
<?php wp_list_comments( 'type=comment&callback=html5blankcomments' ); // Custom callback in functions.php. ?> |
|
</ul> |
|
|
|
<?php elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) : ?> |
|
|
|
<p><?php esc_html_e( 'Comments are closed here.', 'html5blank' ); ?></p> |
|
|
|
<?php endif; ?> |
|
|
|
<?php comment_form(); ?> |
|
|
|
</div>
|
|
|