1
|
1 |
<?php |
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
// Do not delete these lines |
|
6 |
|
|
7 |
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) |
|
8 |
|
|
9 |
die ('Please do not load this page directly. Thanks!'); |
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
if ( post_password_required() ) { ?> |
|
14 |
|
|
15 |
<p class="nocomments">This post is password protected. Enter the password to view comments.</p> |
|
16 |
|
|
17 |
<?php |
|
18 |
|
|
19 |
return; |
|
20 |
|
|
21 |
} |
|
22 |
|
|
23 |
?> |
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
<!-- You can start editing here. --> |
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
<?php if ( have_comments() ) : ?> |
|
32 |
|
|
33 |
<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3> |
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
<div class="navigation"> |
|
38 |
|
|
39 |
<div class="alignleft"><?php previous_comments_link() ?></div> |
|
40 |
|
|
41 |
<div class="alignright"><?php next_comments_link() ?></div> |
|
42 |
|
|
43 |
</div> |
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
<ol class="commentlist"> |
|
48 |
|
|
49 |
<?php wp_list_comments('avatar_size=40'); ?> |
|
50 |
|
|
51 |
</ol> |
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
<div class="navigation"> |
|
56 |
|
|
57 |
<div class="alignleft"><?php previous_comments_link() ?></div> |
|
58 |
|
|
59 |
<div class="alignright"><?php next_comments_link() ?></div> |
|
60 |
|
|
61 |
</div> |
|
62 |
|
|
63 |
<?php else : // this is displayed if there are no comments so far ?> |
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
<?php if ( comments_open() ) : ?> |
|
68 |
|
|
69 |
<!-- If comments are open, but there are no comments. --> |
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
<?php else : // comments are closed ?> |
|
74 |
|
|
75 |
<!-- If comments are closed. --> |
|
76 |
|
|
77 |
<p class="nocomments">Comments are closed.</p> |
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
<?php endif; ?> |
|
82 |
|
|
83 |
<?php endif; ?> |
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
<?php if ( comments_open() ) : ?> |