Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
- die (_e('Please do not load this page directly. Thanks!'));
- if ( post_password_required() ) { ?>
- <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.')?></p>
- <?php
- return;
- }
- ?>
- <?php if ( have_comments() ) : ?>
- <h3 class="commentheading"><?php comments_number('Be the first to comment on', '1 Response to', '% Responses to' );?> "<?php the_title(); ?>"</h3>
- <ul id="comments" class="commentlist">
- <?php wp_list_comments('callback=tbf1_comment'); ?>
- </ul>
- <div class="navigation">
- <div class="alignleft"><?php previous_comments_link(__('Older Comments')) ?></div>
- <div class="alignright"><?php next_comments_link(__('Newer Comments')) ?></div>
- <div class="recover"></div>
- </div>
- <?php else : // this is displayed if there are no comments so far ?>
- <?php if ('open' == $post->comment_status) : ?>
- <!-- If comments are open, but there are no comments. -->
- <?php else : // comments are closed ?>
- <!-- If comments are closed. -->
- <?php echo (!is_page()) ? '<p class="nocomments">Comments are closed.</p>' : '' ?>
- <?php endif; ?>
- <?php endif; ?>
- <?php if ('open' == $post->comment_status) : ?>
- <div id="respond">
- <?php comment_form(); ?>
- </div>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment