Changeset 13024 for trunk/wp-content/themes/twentyten/comments.php
- Timestamp:
- 02/08/2010 05:59:08 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-content/themes/twentyten/comments.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/comments.php
r13012 r13024 21 21 22 22 <?php if ( have_comments() ) : ?> 23 <h3 id="comments-title"><?php comments_number( 'No Responses to', 'One Response to', '% Responses to');?> <em><?php the_title(); ?></em></h3>23 <h3 id="comments-title"><?php comments_number( __('No Responses to', 'twentyten'), __('One Response to', 'twentyten'), __('% Responses to', 'twentyten') );?> <em><?php the_title(); ?></em></h3> 24 24 25 25 <?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?> … … 28 28 <div class="nav-next"><?php next_comments_link( __('Newer Comments →', 'twentyten') ) ?></div> 29 29 </div> 30 <?php endif; // check for comment navigation ?> 30 <?php endif; // check for comment navigation ?> 31 31 32 32 <ol class="commentlist"> … … 39 39 <div class="nav-next"><?php next_comments_link( __('Newer Comments →', 'twentyten') ) ?></div> 40 40 </div> 41 <?php endif; // check for comment navigation ?> 42 41 <?php endif; // check for comment navigation ?> 42 43 43 <?php else : // this is displayed if there are no comments so far ?> 44 44 45 <?php if ( comments_open() ) : // If comments are open, but there are no comments ?> 45 <?php if ( comments_open() ) : // If comments are open, but there are no comments ?> 46 46 47 47 <?php else : // if comments are closed ?> 48 48 49 <p class="nocomments"> Comments are closed.</p>49 <p class="nocomments"><?php _e('Comments are closed.', 'twentyten'); ?></p> 50 50 51 51 <?php endif; ?> … … 55 55 56 56 <div id="respond"> 57 58 <h3 id="reply-title"><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?> <small><?php cancel_comment_reply_link('Cancel reply'); ?></small></h3>59 57 58 <h3 id="reply-title"><?php comment_form_title( __('Leave a Reply', 'twentyten'), __('Leave a Reply to %s', 'twentyten') ); ?> <small><?php cancel_comment_reply_link( __('Cancel reply', 'twentyten') ); ?></small></h3> 59 60 60 <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?> 61 <p> You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>62 63 <?php else : // here's the big comment form ?> 64 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">65 61 <p><?php printf( __('You must be <a href="%s">logged in</a> to post a comment.', 'twentyten'), wp_login_url( get_permalink() ) ); ?></p> 62 63 <?php else : // here's the big comment form ?> 64 <form action="<?php echo site_url('wp-comments-post.php'); ?>" method="post" id="commentform"> 65 66 66 <?php if ( $user_ID ) : ?> 67 67 <p id="login"><?php printf(__('<span class="loggedin">Logged in as <a href="%1$s" title="Logged in as %2$s">%2$s</a>.</span> <span class="logout"><a href="%3$s" title="Log out of this account">Log out?</a></span>', 'twentyten'), 68 get_option('siteurl') . '/wp-admin/profile.php',68 admin_url('profile.php'), 69 69 wp_specialchars($user_identity, true), 70 70 wp_logout_url(get_permalink()) ) ?></p> 71 71 72 72 <?php else : ?> 73 73 74 74 <p id="comment-notes"><?php _e('Your email is <em>never</em> published nor shared.', 'twentyten') ?> <?php if ($req) _e('Required fields are marked <span class="required">*</span>', 'twentyten') ?></p> 75 76 75 76 77 77 <div id="form-section-author" class="form-section"> 78 78 <div class="form-label"><label for="author"><?php _e('Name', 'twentyten') ?></label> <?php if ($req) _e('<span class="required">*</span>', 'twentyten') ?></div> 79 79 <div class="form-input"><input id="author" name="author" type="text" value="<?php echo $comment_author ?>" size="30" tabindex="3" /></div> 80 80 </div><!-- #form-section-author .form-section --> 81 81 82 82 <div id="form-section-email" class="form-section"> 83 83 <div class="form-label"><label for="email"><?php _e('Email', 'twentyten') ?></label> <?php if ($req) _e('<span class="required">*</span>', 'twentyten') ?></div> 84 84 <div class="form-input"><input id="email" name="email" type="text" value="<?php echo $comment_author_email ?>" size="30" tabindex="4" /></div> 85 85 </div><!-- #form-section-email .form-section --> 86 86 87 87 <div id="form-section-url" class="form-section"> 88 88 <div class="form-label"><label for="url"><?php _e('Website', 'twentyten') ?></label></div> 89 89 <div class="form-input"><input id="url" name="url" type="text" value="<?php echo $comment_author_url ?>" size="30" tabindex="5" /></div> 90 90 </div><!-- #form-section-url .form-section --> 91 91 92 92 <?php endif; // if ( $user_ID ) ?> 93 93 94 94 <div id="form-section-comment" class="form-section"> 95 95 <div class="form-label"><label for="comment"><?php _e('Comment', 'twentyten') ?></label></div> 96 96 <div class="form-textarea"><textarea id="comment" name="comment" cols="45" rows="8" tabindex="6"></textarea></div> 97 97 </div><!-- #form-section-comment .form-section --> 98 98 99 99 <div id="form-allowed-tags" class="form-section"> 100 100 <p><span><?php _e('You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:', 'twentyten') ?></span> <code><?php echo allowed_tags(); ?></code></p> 101 101 </div> 102 102 103 103 <?php do_action('comment_form', $post->ID); ?> 104 104 105 105 <div class="form-submit"><input id="submit" name="submit" type="submit" value="<?php _e('Post Comment', 'twentyten') ?>" tabindex="7" /><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></div> 106 106 107 <?php comment_id_fields(); ?> 107 <?php comment_id_fields(); ?> 108 108 109 109 110 110 </form> 111 111 112 112 <?php endif; // If registration required and not logged in ?> 113 113 </div> <!-- #respond -->
Note: See TracChangeset
for help on using the changeset viewer.