Content of comments.php from minimalissimplistic.zip

without / with line numbers
  1. <?php // Do not delete these lines
  2.     if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
  3.         die ('Please do not load this page directly. Thanks!');

  4.         if (!empty($post->post_password)) { // if there's a password
  5.             if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
  6.                 ?>
  7.                 
  8.                 <p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments."); ?><p>
  9.                 
  10.                 <?php
  11.                 return;
  12.             }
  13.         }
  14. ?>

  15. <!-- You can start editing here. -->

  16. <?php if ($comments) : ?>
  17.     <h3 id="comments"><?php comments_number('No comment''One comment''% comments' );?> to &#8220;<?php the_title(); ?>&#8221;</h3> 

  18.     <ol class="commentlist">

  19.     <?php foreach ($comments as $comment) : ?>

  20.         <li class="<?php echo $oddcomment?>" id="comment-<?php comment_ID() ?>">
  21.             <small class="commentmetadata">On <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y'?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?>,<br/></small>

  22.             <cite><?php comment_author_link() ?></cite> <?php mytheme_says() ?>:
  23.             <?php if ($comment->comment_approved == '0') : ?>
  24.             <strong>Your comment is awaiting moderation.</strong>
  25.             <?php endif; ?>
  26.             <br />

  27.             <?php comment_text() ?>

  28.         </li>

  29.     <?php endforeach; /* end for each comment */ ?>

  30.     </ol>

  31.  <?php else : // this is displayed if there are no comments so far ?>

  32.   <?php if ('open' == $post-> comment_status) : ?> 
  33.         <!-- If comments are open, but there are no comments. -->
  34.         
  35.      <?php else : // comments are closed ?>
  36.         <!-- If comments are closed. -->
  37.         <p class="nocomments">Comments are closed.</p>
  38.         
  39.     <?php endif; ?>
  40. <?php endif; ?>


  41. <?php if ('open' == $post-> comment_status) : ?>

  42. <h3 id="respond">Leave a Reply</h3>

  43. <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
  44. <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
  45. <?php else : ?>

  46. <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

  47. <?php if ( $user_ID ) : ?>

  48. <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account'?>">Logout &raquo;</a></p>

  49. <?php else : ?>

  50. <p><input type="text" name="author" id="author" value="<?php echo $comment_author?>" size="22" tabindex="1" />
  51. <label for="author"><small>Name <?php if ($req_e('(required)'); ?></small></label></p>

  52. <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email?>" size="22" tabindex="2" />
  53. <label for="email"><small>Mail (will not be published) <?php if ($req_e('(required)'); ?></small></label></p>

  54. <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url?>" size="22" tabindex="3" />
  55. <label for="url"><small>Website</small></label></p>

  56. <?php endif; ?>

  57. <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>

  58. <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
  59. <input type="hidden" name="comment_post_ID" value="<?php echo $id?>" />
  60. </p>
  61. <?php do_action('comment_form'$post->ID); ?>

  62. </form>

  63. <?php endif; // If registration required and not logged in ?>

  64. <?php endif; // if you delete this the sky will fall on your head ?>
  65.  

Return to listing of minimalissimplistic.zip