Repository navigation
Expand file tree
/
Copy pathcomments.php
More file actions
63 lines (43 loc) · 1.98 KB
/
Copy pathcomments.php
File metadata and controls
63 lines (43 loc) · 1.98 KB
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
60
61
62
63
<?php
/**
* Comments Template
*
* Lists comments and calls the comment form. Individual comments have their own templates. The
* hierarchy for these templates is $comment_type.php, comment.php.
*
* @package Shell
* @subpackage Template
*/
/* If a post password is required or no comments are given and comments/pings are closed, return. */
if ( post_password_required() || ( !have_comments() && !comments_open() && !pings_open() ) )
return;
?>
<section id="comments-template">
<div class="comments-wrap">
<div id="comments">
<?php if ( have_comments() ) : ?>
<h3 id="comments-number" class="comments-header"><?php comments_number( __( 'No Responses', 'shell' ), __( 'One Response', 'shell' ), __( '% Responses', 'shell' ) ); ?></h3>
<?php do_atomic( 'before_comment_list' );// shell_before_comment_list ?>
<ol class="comment-list">
<?php wp_list_comments( shell_list_comments_args() /* shell_list_comments_args */ ); ?>
</ol><!-- .comment-list -->
<?php do_atomic( 'after_comment_list' ); // shell_after_comment_list ?>
<?php if ( get_option( 'page_comments' ) ) : ?>
<div class="comment-navigation comment-pagination">
<?php paginate_comments_links(); ?>
</div><!-- .comment-navigation -->
<?php endif; ?>
<?php endif; ?>
<?php if ( pings_open() && !comments_open() ) : ?>
<p class="comments-closed pings-open">
<?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'shell' ), get_trackback_url() ); ?>
</p><!-- .comments-closed .pings-open -->
<?php elseif ( !comments_open() ) : ?>
<p class="comments-closed">
<?php _e( 'Comments are closed.', 'shell' ); ?>
</p><!-- .comments-closed -->
<?php endif; ?>
</div><!-- #comments -->
<?php comment_form(); // Loads the comment form. ?>
</div><!-- .comments-wrap -->
</section><!-- #comments-template -->