Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jan 31st, 2011  |  syntax: PHP  |  size: 0.98 KB  |  hits: 512  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. if ( post_password_required() ) { ?>
  3.         <p>This post is password protected. Enter the password to view comments.</p>
  4. <?php
  5.         return;
  6. }
  7.  
  8. if( have_comments() ) : ?>
  9.                                        
  10.                                         <h5 class="cufon"><?php comments_number('No comment', 'Comment', '% Comments'); ?> for <?php the_title(); ?></h5><br/>
  11.  
  12.                                         <?php wp_list_comments( array('callback' => 'pp_comment', 'avatar_size' => '40') ); ?>
  13.                                        
  14.                                         <!-- End of thread -->  
  15.                                         <br class="clear"/><br/>
  16. <?php endif; ?>  
  17.  
  18.  
  19. <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
  20.                         <div class="pagination"><p><?php previous_comments_link(); ?> <?php next_comments_link(); ?></p></div><br class="clear"/><div class="line"></div><br/><br/>
  21. <?php endif; // check for comment navigation ?>
  22.  
  23.  
  24. <?php if ('open' == $post->comment_status) : ?>
  25.  
  26.                 <div id="respond">
  27.                         <?php include(TEMPLATEPATH . '/templates/comments-form.php'); ?>
  28.                 </div>
  29.                        
  30. <?php endif; ?>