Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Do not delete these lines
- if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
- die ('Please do not load this page directly. Thanks!');
- if ( post_password_required() ) { ?>
- <p class="nocomments">This post is password protected. Enter the password to view comments.</p>
- <?php
- return;
- }
- ?>
- <!-- You can start editing here. -->
- <?php if ( have_comments() ) : ?>
- <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3>
- <ol class="commentlist">
- <?php wp_list_comments(); ?>
- </ol>
- <div class="breaker"></div>
- <?php else : // this is displayed if there are no comments so far ?>
- <?php if ( comments_open() ) : ?>
- <!-- If comments are open, but there are no comments. -->
- <?php else : // comments are closed ?>
- <!-- If comments are closed. -->
- <p class="nocomments">Comments are closed.</p>
- <?php endif; ?>
- <?php endif; ?>
- <?php if ( comments_open() ) : ?>
- <div id="respond">
- <?php comment_form(); ?>
- <?php endif; // If registration required and not logged in ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement