54 | | <div id="respond"> |
55 | | |
56 | | <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> |
57 | | |
58 | | <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?> |
59 | | <p><?php printf( __('You must be <a href="%s">logged in</a> to post a comment.', 'twentyten'), wp_login_url( get_permalink() ) ); ?></p> |
60 | | |
61 | | <?php else : // here's the big comment form ?> |
62 | | <form action="<?php echo site_url('wp-comments-post.php'); ?>" method="post" id="commentform"> |
63 | | |
64 | | <?php if ( $user_ID ) : ?> |
65 | | <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'), |
66 | | admin_url('profile.php'), |
67 | | wp_specialchars($user_identity, true), |
68 | | wp_logout_url(get_permalink()) ) ?></p> |
69 | | |
70 | | <?php else : ?> |
71 | | |
72 | | <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> |
73 | | |
74 | | |
75 | | <div id="form-section-author" class="form-section"> |
76 | | <div class="form-label"><label for="author"><?php _e('Name', 'twentyten') ?></label> <?php if ($req) _e('<span class="required">*</span>', 'twentyten') ?></div> |
77 | | <div class="form-input"><input id="author" name="author" type="text" value="<?php echo esc_attr($comment_author) ?>" size="30" tabindex="3" /></div> |
78 | | </div><!-- #form-section-author .form-section --> |
79 | | |
80 | | <div id="form-section-email" class="form-section"> |
81 | | <div class="form-label"><label for="email"><?php _e('Email', 'twentyten') ?></label> <?php if ($req) _e('<span class="required">*</span>', 'twentyten') ?></div> |
82 | | <div class="form-input"><input id="email" name="email" type="text" value="<?php echo esc_attr($comment_author_email) ?>" size="30" tabindex="4" /></div> |
83 | | </div><!-- #form-section-email .form-section --> |
84 | | |
85 | | <div id="form-section-url" class="form-section"> |
86 | | <div class="form-label"><label for="url"><?php _e('Website', 'twentyten') ?></label></div> |
87 | | <div class="form-input"><input id="url" name="url" type="text" value="<?php echo esc_attr($comment_author_url) ?>" size="30" tabindex="5" /></div> |
88 | | </div><!-- #form-section-url .form-section --> |
89 | | |
90 | | <?php endif; // if ( $user_ID ) ?> |
91 | | |
92 | | <div id="form-section-comment" class="form-section"> |
93 | | <div class="form-label"><label for="comment"><?php _e('Comment', 'twentyten') ?></label></div> |
94 | | <div class="form-textarea"><textarea id="comment" name="comment" cols="45" rows="8" tabindex="6"></textarea></div> |
95 | | </div><!-- #form-section-comment .form-section --> |
96 | | |
97 | | <div id="form-allowed-tags" class="form-section"> |
98 | | <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> |
99 | | </div> |
100 | | |
101 | | <?php do_action('comment_form', $post->ID); ?> |
102 | | |
103 | | <div class="form-submit"><input id="submit" name="submit" type="submit" value="<?php esc_attr_e('Post Comment', 'twentyten') ?>" tabindex="7" /><input type="hidden" name="comment_post_ID" value="<?php echo esc_attr($id); ?>" /></div> |
104 | | |
105 | | <?php comment_id_fields(); ?> |
106 | | |
107 | | |
108 | | </form> |
109 | | |
110 | | <?php endif; // If registration required and not logged in ?> |
111 | | </div> <!-- #respond --> |
112 | | |
113 | | <?php endif; // if you delete this the sky will fall on your head ?> |
114 | | </div><!-- #comments --> |
| 54 | </div><!-- #comments --> |
| 55 | No newline at end of file |