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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
<?php /** * The template for displaying Comments. * * @package nasatheme */
if (post_password_required()) : return; endif; ?>
<div id="comments" class="comments-area"> <?php if (have_comments()) : $pagination = get_comment_pages_count() > 1 && get_option('page_comments') ? true : false; ?> <h3 class="comments-title"> <?php echo esc_html__('Comments', 'elessi-theme') . ' (' . get_comments_number() . ')'; ?> </h3> <?php if ($pagination) : ?> <nav id="comment-nav-above" class="navigation-comment" role="navigation"> <div class="nav-previous"> <?php previous_comments_link(esc_html__('← Older Comments', 'elessi-theme')); ?> </div> <div class="nav-next"> <?php next_comments_link(esc_html__('Newer Comments →', 'elessi-theme')); ?> </div> </nav> <?php endif; ?> <ol class="comment-list"> <?php wp_list_comments(array('callback' => 'elessi_comment')); ?> </ol> <?php if ($pagination) : ?> <nav id="comment-nav-below" class="navigation-comment" role="navigation"> <h3 class="screen-reader-text"><?php esc_html_e('Comment navigation', 'elessi-theme'); ?></h3> <div class="nav-previous"> <?php previous_comments_link(esc_html__('← Older Comments', 'elessi-theme')); ?> </div> <div class="nav-next"> <?php next_comments_link(esc_html__('Newer Comments →', 'elessi-theme')); ?> </div> </nav> <?php endif; ?> <?php endif; ?> <?php if (!comments_open() && '0' != get_comments_number() && post_type_supports(get_post_type(), 'comments')) : ?> <p class="no-comments"><?php esc_html_e('Comments are closed.', 'elessi-theme'); ?></p> <?php endif; ?> <?php comment_form(); ?> </div>
|