equal
deleted
inserted
replaced
39 <?php } ?> |
39 <?php } ?> |
40 |
40 |
41 <?php |
41 <?php |
42 // this line is WordPress' motor, do not delete it. |
42 // this line is WordPress' motor, do not delete it. |
43 $commenter = wp_get_current_commenter(); |
43 $commenter = wp_get_current_commenter(); |
44 extract($commenter); |
|
45 $comments = get_approved_comments($id); |
44 $comments = get_approved_comments($id); |
46 $post = get_post($id); |
45 $post = get_post($id); |
47 if ( post_password_required($post) ) { // and it doesn't match the cookie |
46 if ( post_password_required($post) ) { // and it doesn't match the cookie |
48 echo(get_the_password_form()); |
47 echo(get_the_password_form()); |
49 } else { ?> |
48 } else { ?> |
69 <form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform"> |
68 <form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform"> |
70 <?php if ( $user_ID ) : ?> |
69 <?php if ( $user_ID ) : ?> |
71 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out »</a>'), get_edit_user_link(), $user_identity, wp_logout_url(get_permalink())); ?></p> |
70 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out »</a>'), get_edit_user_link(), $user_identity, wp_logout_url(get_permalink())); ?></p> |
72 <?php else : ?> |
71 <?php else : ?> |
73 <p> |
72 <p> |
74 <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr($comment_author); ?>" size="28" tabindex="1" /> |
73 <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr( $commenter['comment_author'] ); ?>" size="28" tabindex="1" /> |
75 <label for="author"><?php _e('Name'); ?></label> |
74 <label for="author"><?php _e('Name'); ?></label> |
76 </p> |
75 </p> |
77 |
76 |
78 <p> |
77 <p> |
79 <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" /> |
78 <input type="text" name="email" id="email" value="<?php echo esc_attr( $commenter['comment_author_email'] ); ?>" size="28" tabindex="2" /> |
80 <label for="email"><?php _e('E-mail'); ?></label> |
79 <label for="email"><?php _e('E-mail'); ?></label> |
81 </p> |
80 </p> |
82 |
81 |
83 <p> |
82 <p> |
84 <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" /> |
83 <input type="text" name="url" id="url" value="<?php echo esc_attr( $commenter['comment_author_url'] ); ?>" size="28" tabindex="3" /> |
85 <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>'); ?></label> |
84 <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>'); ?></label> |
86 </p> |
85 </p> |
87 <?php endif; ?> |
86 <?php endif; ?> |
88 |
87 |
89 <p> |
88 <p> |
95 <p> |
94 <p> |
96 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> |
95 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> |
97 <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" /> |
96 <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" /> |
98 <input name="submit" type="submit" tabindex="5" value="<?php esc_attr_e('Say It!' ); ?>" /> |
97 <input name="submit" type="submit" tabindex="5" value="<?php esc_attr_e('Say It!' ); ?>" /> |
99 </p> |
98 </p> |
100 <?php do_action('comment_form', $post->ID); ?> |
99 <?php |
|
100 /** This filter is documented in wp-includes/comment-template.php */ |
|
101 do_action( 'comment_form', $post->ID ); |
|
102 ?> |
101 </form> |
103 </form> |
102 <?php } else { // comments are closed ?> |
104 <?php } else { // comments are closed ?> |
103 <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p> |
105 <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p> |
104 <?php } |
106 <?php } |
105 } // end password check |
107 } // end password check |
113 ?> |
115 ?> |
114 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> |
116 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> |
115 <?php endif; ?> |
117 <?php endif; ?> |
116 <!-- // this is just the end of the motor - don't touch that line either :) --> |
118 <!-- // this is just the end of the motor - don't touch that line either :) --> |
117 <?php //} ?> |
119 <?php //} ?> |
118 <p class="credit"><?php timer_stop(1); ?> <cite><?php printf(__('Powered by <a href="%s" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a>'), 'http://wordpress.org/'); ?></cite></p> |
120 <p class="credit"><?php timer_stop(1); ?> <cite><?php printf(__('Powered by <a href="%s" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a>'), 'https://wordpress.org/'); ?></cite></p> |
119 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> |
121 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> |
120 <script type="text/javascript"> |
122 <script type="text/javascript"> |
121 <!-- |
123 <!-- |
122 document.onkeypress = function esc(e) { |
124 document.onkeypress = function esc(e) { |
123 if(typeof(e) == "undefined") { e=event; } |
125 if(typeof(e) == "undefined") { e=event; } |