-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomments.php
More file actions
27 lines (25 loc) · 729 Bytes
/
comments.php
File metadata and controls
27 lines (25 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php if ( 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) ) return; ?>
<section class="comments">
<?php
if ( have_comments() ) :
global $comments_by_type;
$comments_by_type = &separate_comments( $comments );
if ( ! empty( $comments_by_type['comment'] ) ) :
?>
<section class="comments-list">
<h3 class="comments-title"><?php comments_number(); ?></h3>
<ul>
<?php wp_list_comments(); ?>
</ul>
<?php if ( get_comment_pages_count() > 1 ) : ?>
<nav class="comments-navigation" role="navigation">
<?php paginate_comments_links(); ?>
</nav>
<?php endif; ?>
</section>
<?php
endif;
endif;
if ( comments_open() ) comment_form();
?>
</section>