SHOW:
|
|
- or go back to the newest paste.
1 | - | <?php if (function_exists('wp_list_comments')) : ?> |
1 | + | |
2 | /** | |
3 | * @package WordPress | |
4 | * @subpackage Default_Theme | |
5 | */ | |
6 | ||
7 | // Do not delete these lines | |
8 | if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) | |
9 | die ('Please do not load this page directly. Thanks!'); | |
10 | ||
11 | if ( post_password_required() ) { ?> | |
12 | <p class="nocomments">This post is password protected. Enter the password to view comments.</p> | |
13 | <?php | |
14 | return; | |
15 | } | |
16 | ?> | |
17 | ||
18 | <!-- You can start editing here. --> | |
19 | ||
20 | <?php if ( have_comments() ) : ?> | |
21 | <h2>Comments<?php comments_number('', ' (1)', ' (%)' );?></h2> | |
22 | <p> </p> | |
23 | ||
24 | <ol class="commentlist"> | |
25 | <?php wp_list_comments(); ?> | |
26 | </ol> | |
27 | ||
28 | <div class="navigation"> | |
29 | <div class="alignleft"><?php previous_comments_link() ?></div> | |
30 | <div class="alignright"><?php next_comments_link() ?></div> | |
31 | </div> | |
32 | <?php else : // this is displayed if there are no comments so far ?> | |
33 | ||
34 | <?php if ('open' == $post->comment_status) : ?> | |
35 | <!-- If comments are open, but there are no comments. --> | |
36 | ||
37 | <?php else : // comments are closed ?> | |
38 | <!-- If comments are closed. --> | |
39 | <p class="nocomments">Comments are closed.</p> | |
40 | ||
41 | <?php endif; ?> | |
42 | <?php endif; ?> | |
43 | ||
44 | ||
45 | <?php if ('open' == $post->comment_status) : ?> | |
46 | ||
47 | <div id="respond"> | |
48 | ||
49 | <?php comment_form(); ?> | |
50 | ||
51 | - | <h2><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h2> |
51 | + | |
52 | ||
53 | - | <div class="cancel-comment-reply"> |
53 | + | <?php endif; // if you delete this the sky will fall on your head ?> |