Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!empty($_SERVER['SCRIPT_FILENAME']) && basename($_SERVER['SCRIPT_FILENAME'] == 'comments.php'))
- die('Why, hello thar! What are you doing here?');
- if ( post_password_required() ) { ?>
- <p class="nocomments"><?php _e('This post is password protected. Please enter the password to view the comments.', 'headway') ?></p>
- <?php
- return;
- }
- if ( have_comments() ) : ?>
- <span id="comments" class="heading"><?php comments_number(__('No Responses', 'headway'), __('One Response', 'headway'), __('% Responses', 'headway') );?> <?php _e('to', 'headway') ?> <?php the_title(); ?></span>
- <ol class="commentlist">
- <?php wp_list_comments('callback='.apply_filters('headway_comments_callback', false)); ?>
- </ol>
- <div class="comments-navigation">
- <div class="alignleft"><?php paginate_comments_links() ?></div>
- </div>
- <?php else : ?>
- <?php if ('open' == $post->comment_status) : ?>
- <p class="nocomments"><?php echo apply_filters('headway_no_comments', __('There are no comments yet. Be the first and leave a response!', 'headway')); ?></p>
- <?php else : ?>
- <?php if(is_single()){ ?>
- <p class="nocomments"><?php echo apply_filters('headway_comments_closed', __('Sorry, comments are closed for this post.', 'headway')); ?></p>
- <?php } ?>
- <?php endif; ?>
- <?php endif; ?>
- <?php comment_form(); ?>
Add Comment
Please, Sign In to add comment