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"><?php _e('This post is password protected. Enter the password to view comments.', 'woothemes') ?></p>
- <?php return; } ?>
- <?php $comments_by_type = &separate_comments($comments); ?>
- <!-- You can start editing here. -->
- <div id="comments">
- <?php if ( have_comments() ) : ?>
- <?php if ( ! empty($comments_by_type['comment']) ) : ?>
- <h3><?php comments_number(__('No Responses', 'woothemes'), __('One Response', 'woothemes'), __('% Responses', 'woothemes') );?> <?php _e('to', 'woothemes') ?> “<?php the_title(); ?>”</h3>
- <ol class="commentlist">
- <?php wp_list_comments('avatar_size=40&callback=custom_comment&type=comment'); ?>
- </ol>
- <div class="navigation">
- <div class="fl"><?php previous_comments_link() ?></div>
- <div class="fr"><?php next_comments_link() ?></div>
- <div class="fix"></div>
- </div><!-- /.navigation -->
- <?php endif; ?>
- <?php if ( ! empty($comments_by_type['pings']) ) : ?>
- <h3 id="pings"><?php _e('Trackbacks/Pingbacks', 'woothemes') ?></h3>
- <ol class="pinglist">
- <?php wp_list_comments('type=pings&callback=list_pings'); ?>
- </ol>
- <?php endif; ?>
- <?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. -->
- <p class="nocomments"><?php _e('No comments yet.', 'woothemes') ?></p>
- <?php else : // comments are closed ?>
- <!-- If comments are closed. -->
- <p class="nocomments"><?php _e('Comments are closed.', 'woothemes') ?></p>
- <?php endif; ?>
- <?php endif; ?>
- </div> <!-- /#comments_wrap -->
- <?php if ('open' == $post->comment_status) : ?>
- <div id="respond">
- <?php comment_form(); ?>
- <div class="fix"></div>
- </div><!-- /#respond -->
- <?php endif; // if you delete this the sky will fall on your head ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement