Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Comments

By: STATEDLIGHT on Jan 21st, 2013  |  syntax: None  |  size: 1.37 KB  |  views: 4  |  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.  
  4. <p class="nocomments">
  5.   <?php _e('This post is password protected. Enter the password to view comments.', 'tiger'); ?>
  6. </p>
  7. <?php
  8.         return; }
  9.  
  10. if ( have_comments() ) : ?>
  11. <h3 id="comments">
  12.   <?php comments_number('No Responses', 'One Response', '% Responses');?>
  13.   <?php printf('to "%s"', the_title('', '', false)); ?></h3>
  14. <div class="navigation">
  15.   <div class="alignleft">
  16.     <?php previous_comments_link() ?>
  17.   </div>
  18.   <div class="alignright">
  19.     <?php next_comments_link() ?>
  20.   </div>
  21. </div>
  22. <ol class="commentlist">
  23.   <?php
  24.      wp_list_comments(array('type' => 'comment'));
  25.       ?>
  26. </ol>
  27. <?php if ( ! empty($comments_by_type['pings']) ): ?>
  28. <h3>Trackbacks</h3>
  29. <ol class="commentlist">
  30.   <?php
  31.      wp_list_comments(array('type' => 'pings'));
  32.       ?>
  33. </ol>
  34. <?php endif; ?>
  35. <div class="navigation">
  36.   <div class="alignleft">
  37.     <?php previous_comments_link() ?>
  38.   </div>
  39.   <div class="alignright">
  40.     <?php next_comments_link() ?>
  41.   </div>
  42. </div>
  43. <?php
  44. endif;
  45.  
  46. comment_form(array(
  47.  
  48.   'comment_field' => '<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4" aria-required="true"></textarea></p>',
  49.   'label_submit' => 'Submit Comment',
  50.   'comment_notes_after' => ''
  51.   ));
  52.  
  53. echo '<div class="comments_rss">';
  54. post_comments_feed_link('Comments RSS Feed');
  55. echo '</div>';
  56.  
  57. ?>