| | 21 | |
|---|
| | 22 | <?php if ('open' == $post->comment_status) : ?> |
|---|
| | 23 | |
|---|
| | 24 | <h3 id="respond">Leave a Reply</h3> |
|---|
| | 25 | |
|---|
| | 26 | <?php if ( get_option('comment_registration') && !$user_ID ) : ?> |
|---|
| | 27 | <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p> |
|---|
| | 28 | <?php else : ?> |
|---|
| | 29 | |
|---|
| | 30 | <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> |
|---|
| | 31 | |
|---|
| | 32 | <?php if ( $user_ID ) : ?> |
|---|
| | 33 | |
|---|
| | 34 | <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="Log out of this account">Logout »</a></p> |
|---|
| | 35 | |
|---|
| | 36 | <?php else : ?> |
|---|
| | 37 | |
|---|
| | 38 | <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> |
|---|
| | 39 | <label for="author">Name (required)</label></p> |
|---|
| | 40 | |
|---|
| | 41 | <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> |
|---|
| | 42 | <label for="email">Mail (never for spam)</label></p> |
|---|
| | 43 | |
|---|
| | 44 | <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> |
|---|
| | 45 | <label for="url">Website (optional)</label></p> |
|---|
| | 46 | |
|---|
| | 47 | <?php endif; ?> |
|---|
| | 48 | |
|---|
| | 49 | <!--<p><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></p>--> |
|---|
| | 50 | |
|---|
| | 51 | <p><textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea></p> |
|---|
| | 52 | |
|---|
| | 53 | <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" class="button" /> |
|---|
| | 54 | <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> |
|---|
| | 55 | </p> |
|---|
| | 56 | <?php do_action('comment_form', $post->ID); ?> |
|---|
| | 57 | |
|---|
| | 58 | </form> |
|---|
| | 59 | |
|---|
| | 60 | <?php endif; // If registration required and not logged in ?> |
|---|
| | 61 | |
|---|
| 71 | | <h3 id="respond">Leave a Reply</h3> |
|---|
| 72 | | |
|---|
| 73 | | <?php if ( get_option('comment_registration') && !$user_ID ) : ?> |
|---|
| 74 | | <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p> |
|---|
| 75 | | <?php else : ?> |
|---|
| 76 | | |
|---|
| 77 | | <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> |
|---|
| 78 | | |
|---|
| 79 | | <?php if ( $user_ID ) : ?> |
|---|
| 80 | | |
|---|
| 81 | | <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="Log out of this account">Logout »</a></p> |
|---|
| 82 | | |
|---|
| 83 | | <?php else : ?> |
|---|
| 84 | | |
|---|
| 85 | | <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> |
|---|
| 86 | | <label for="author">Name (required)</label></p> |
|---|
| 87 | | |
|---|
| 88 | | <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> |
|---|
| 89 | | <label for="email">Mail (never for spam)</label></p> |
|---|
| 90 | | |
|---|
| 91 | | <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> |
|---|
| 92 | | <label for="url">Website (optional)</label></p> |
|---|
| 93 | | |
|---|
| 94 | | <?php endif; ?> |
|---|
| 95 | | |
|---|
| 96 | | <!--<p><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></p>--> |
|---|
| 97 | | |
|---|
| 98 | | <p><textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea></p> |
|---|
| 99 | | |
|---|
| 100 | | <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" class="button" /> |
|---|
| 101 | | <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> |
|---|
| 102 | | </p> |
|---|
| 103 | | <?php do_action('comment_form', $post->ID); ?> |
|---|
| 104 | | |
|---|
| 105 | | </form> |
|---|
| 106 | | |
|---|
| 107 | | <?php endif; // If registration required and not logged in ?> |
|---|