Guest User

Comments.php for Spam Free Wordpress for miholmes

a guest
Jan 18th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. global $options;
  3. foreach ($options as $value) { if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option(
  4.  
  5. $value['id'] ); } } ?>
  6.  
  7.  
  8. <?php
  9. // Do not delete these lines
  10. if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
  11. die ('Please do not load this page directly. Thanks!');
  12. if ( post_password_required() ) { ?>
  13. <p class="nocomments">  <?php _e('Sorry, you must be logged in to post a comment.','altop'); ?></p>
  14. <?php
  15. return; }
  16. ?>
  17.  
  18. <!-- You can start editing here. -->   
  19.  
  20. <?php if ( have_comments() ) : ?>
  21.    
  22.     <h3 id="comments"><?php comments_number(__('No Responses', 'altop'), __('One Response', 'altop'), __('% Responses', 'altop'));?> <?php echo
  23.  
  24. _e('to', 'altop'); ?> <?php the_title('&quot;','&quot;'); ?></h3>
  25.        
  26.     <?php if ( !empty($comments_by_type['comment']) ) : ?>
  27.     <ul class="commentlist">
  28.     <?php wp_list_comments('type=comment&callback=list_comments'); ?>
  29.     </ul>
  30.    
  31.     <div id="comment-navigation">
  32.     <div class="alignleft"><?php previous_comments_link( '&laquo; More comments' ); ?></div>
  33.     <div class="alignright"><?php next_comments_link( 'More comments &raquo;', 0 ); ?></div>
  34.     </div>
  35.     <?php endif; ?>
  36.  
  37.     <?php if ( !empty($comments_by_type['pings']) ) : ?>
  38.     <h3 id="pings">Ping- & Trackbacks</h3>
  39.  
  40.     <ol class="pinglist">
  41.     <?php wp_list_comments('type=pings&callback=list_tracks'); ?>
  42.     </ol>
  43.    
  44.     <div id="ping-navigation">
  45.     <div class="alignleft"><?php previous_comments_link( '&laquo; Older pings' ); ?></div>
  46.     <div class="alignright"><?php next_comments_link( 'Newer pings &raquo;', 0 ); ?></div>
  47.     </div>
  48.     <?php endif; //End for pings ?>
  49.        
  50.         <?php else : // this is displayed if there are no comments so far ?>
  51.         <?php if ( comments_open() ) : ?>
  52.         <!-- If comments are open, but there are no comments. -->
  53.         <p class="nocomments"><?php echo _e('No Comments (yet)', 'altop'); ?></p>
  54.        
  55.         <?php else : // comments are closed ?>
  56.         <!-- If comments are closed. -->
  57.         <p class="nocomments"><?php echo _e('Sorry, Comments are closed.', 'altop'); ?></p>
  58.        
  59.     <?php endif; ?>
  60.     <?php endif; //Close for if have_comments ?>
  61.  
  62.     <?php if (comments_open() ) : ?>
  63.         <div id="respond">
  64.             <?php comment_form(); ?>
  65.     <?php endif; ?>
  66.         </div>
  67.  
  68. <?php endif; ?>
Add Comment
Please, Sign In to add comment