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

Untitled

By: a guest on Feb 1st, 2013  |  syntax: None  |  size: 2.80 KB  |  views: 55  |  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 if ( have_comments() ) : ?>
  2.         <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
  3.  
  4.         <div class="navigation">
  5.                 <div class="alignleft"><?php previous_comments_link() ?></div>
  6.                 <div class="alignright"><?php next_comments_link() ?></div>
  7.         </div>
  8.  
  9.         <ol class="commentlist">
  10.         <?php wp_list_comments(); ?>
  11.         </ol>
  12.  
  13.         <div class="navigation">
  14.                 <div class="alignleft"><?php previous_comments_link() ?></div>
  15.                 <div class="alignright"><?php next_comments_link() ?></div>
  16.         </div>
  17.  <?php else : // this is displayed if there are no comments so far ?>
  18.  
  19.         <?php if ( comments_open() ) : ?>
  20.                 <!-- If comments are open, but there are no comments. -->
  21.  
  22.          
  23.  
  24.         <?php endif; ?>
  25. <?php endif; ?>
  26.  
  27.  
  28. <?php if ( comments_open() ) : ?>
  29.  
  30. <div id="respond">
  31.  
  32. <h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3>
  33.  
  34. <div class="cancel-comment-reply">
  35.         <small><?php cancel_comment_reply_link(); ?></small>
  36. </div>
  37.  
  38. <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
  39. <p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>
  40. <?php else : ?>
  41.  
  42. <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  43.  
  44. <?php if ( is_user_logged_in() ) : ?>
  45.  
  46. <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
  47.  
  48. <?php else : ?>
  49.  
  50. <p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
  51. <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
  52.  
  53. <p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
  54. <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
  55.  
  56. <p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
  57. <label for="url"><small>Website</small></label></p>
  58.  
  59. <?php endif; ?>
  60.  
  61. <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
  62.  
  63. <p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
  64.  
  65. <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
  66. <?php comment_id_fields(); ?>
  67. </p>
  68. <?php do_action('comment_form', $post->ID); ?>
  69.  
  70. </form>
  71.  
  72. <?php endif; // If registration required and not logged in ?>
  73. </div>