Changeset 8869 for trunk/wp-content/themes/default/comments.php
- Timestamp:
- 09/11/2008 07:25:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/default/comments.php
r8800 r8869 8 8 return; 9 9 } 10 11 /* This variable is for alternating comment background */12 $oddcomment = 'alt';13 10 ?> 14 11 15 12 <!-- You can start editing here. --> 16 13 17 <?php if ( $comments) : ?>14 <?php if ( have_comments() ) : ?> 18 15 <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3> 19 16 20 17 <ol class="commentlist"> 21 22 <?php foreach ($comments as $comment) : ?> 23 24 <li <?php comment_class($oddcomment) ?> id="comment-<?php comment_ID() ?>"> 25 <?php echo get_avatar( $comment, 32 ); ?> 26 <cite><?php comment_author_link() ?></cite> Says: 27 <?php if ($comment->comment_approved == '0') : ?> 28 <em>Your comment is awaiting moderation.</em> 29 <?php endif; ?> 30 <br /> 31 32 <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('edit',' ',''); ?></small> 33 34 <?php comment_text() ?> 35 36 </li> 37 38 <?php 39 /* Changes every other comment to a different class */ 40 $oddcomment = ( empty( $oddcomment ) ) ? 'alt' : ''; 41 ?> 42 43 <?php endforeach; /* end for each comment */ ?> 44 18 <?php wp_list_comments($comments); ?> 45 19 </ol> 46 20 … … 60 34 <?php if ('open' == $post->comment_status) : ?> 61 35 62 <h3 id="respond">Leave a Reply</h3> 36 <div id="respond"> 37 38 <h3>Leave a Reply</h3> 39 40 <div id="cancel-comment-reply" style="display: none;"> 41 <small><?php echo cancel_comment_reply_link() ?></small> 42 </div> 63 43 64 44 <?php if ( get_option('comment_registration') && !$user_ID ) : ?> … … 91 71 <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> 92 72 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 73 <input type="hidden" name="comment_parent" id="comment-parent" value="0" /> 93 74 </p> 94 75 <?php do_action('comment_form', $post->ID); ?> 95 76 96 77 </form> 78 </div> 97 79 98 80 <?php endif; // If registration required and not logged in ?>
Note: See TracChangeset
for help on using the changeset viewer.