SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) | |
| 3 | die (_e('Please do not load this page directly. Thanks!'));
| |
| 4 | ||
| 5 | if ( post_password_required() ) { ?>
| |
| 6 | <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.')?></p>
| |
| 7 | <?php | |
| 8 | return; | |
| 9 | } | |
| 10 | ?> | |
| 11 | ||
| 12 | <?php if ( have_comments() ) : ?> | |
| 13 | <h3 class="commentheading"><?php comments_number('Be the first to comment on', '1 Response to', '% Responses to' );?> "<?php the_title(); ?>"</h3>
| |
| 14 | ||
| 15 | <ul id="comments" class="commentlist"> | |
| 16 | <?php wp_list_comments('callback=tbf1_comment'); ?>
| |
| 17 | </ul> | |
| 18 | ||
| 19 | <div class="navigation"> | |
| 20 | <div class="alignleft"><?php previous_comments_link(__('Older Comments')) ?></div>
| |
| 21 | <div class="alignright"><?php next_comments_link(__('Newer Comments')) ?></div>
| |
| 22 | <div class="recover"></div> | |
| 23 | </div> | |
| 24 | <?php else : // this is displayed if there are no comments so far ?> | |
| 25 | ||
| 26 | <?php if ('open' == $post->comment_status) : ?>
| |
| 27 | <!-- If comments are open, but there are no comments. --> | |
| 28 | ||
| 29 | <?php else : // comments are closed ?> | |
| 30 | <!-- If comments are closed. --> | |
| 31 | <?php echo (!is_page()) ? '<p class="nocomments">Comments are closed.</p>' : '' ?> | |
| 32 | ||
| 33 | <?php endif; ?> | |
| 34 | <?php endif; ?> | |
| 35 | ||
| 36 | ||
| 37 | <?php if ('open' == $post->comment_status) : ?>
| |
| 38 | <div id="respond"> | |
| 39 | - | <h5><?php comment_form_title( 'Leave a Comment', 'Leave a Comment to %s' ); ?></h5> |
| 39 | + | |
| 40 | - | <div class="cancel-comment-reply"> |
| 40 | + | <?php comment_form(); ?> |
| 41 | - | <?php cancel_comment_reply_link(); ?> |
| 41 | + | |
| 42 | - | </div> |
| 42 | + | |
| 43 | <?php endif; ?> | |
| 44 | - | <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
|
| 44 | + |