Changeset 150 for trunk/wp-content/themes/xpress_default/comments.php
- Timestamp:
- Apr 2, 2009, 6:37:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/xpress_default/comments.php
r147 r150 13 13 14 14 <?php if ( have_comments() ) : ?> 15 <?php if ( ! empty($comments_by_type['comment']) ) : ?> 16 <h2 id="xpress_comments"><?php comments_number(__('No Responses', 'xpress'), __('One Response', 'xpress'), __('% Responses', 'xpress'));?> <?php printf(__('to “%s”', 'xpress'), the_title('', '', false)); ?></h2> 15 <?php if ( ! empty($comments_by_type['comment']) ) : ?> 16 <h3 id="xpress_comments"><?php comments_number(__('No Responses', 'xpress'), __('One Response', 'xpress'), __('% Responses', 'xpress'));?> <?php printf(__('to “%s”', 'xpress'), the_title('', '', false)); ?></h3> 17 <div id="xpress_commentlist"> 18 <?php wp_list_comments('type=comment&style=div'); ?> 19 </div> 20 <?php endif; ?> 21 22 <div class="navigation"> 23 <div class="alignleft"><?php previous_comments_link() ?></div> 24 <div class="alignright"><?php next_comments_link() ?></div> 25 </div> 26 <?php else : // this is displayed if there are no comments so far ?> 17 27 18 <div id="xpress_commentlist"> 19 <?php wp_list_comments('type=comment&style=div'); ?> 20 </div> 21 <?php endif; ?> 22 23 24 <div class="navigation"> 25 <div class="alignleft"><?php previous_comments_link() ?></div> 26 <div class="alignright"><?php next_comments_link() ?></div> 27 </div> 28 <?php else : // this is displayed if there are no comments so far ?> 29 30 <?php if ('open' == $post->comment_status) : ?> 31 <!-- If comments are open, but there are no comments. --> 32 33 <?php else : // comments are closed ?> 34 <!-- If comments are closed. --> 35 <p class="nocomments">Comments are closed.</p> 36 37 <?php endif; ?> 28 <?php if ('open' == $post->comment_status) : ?> 29 <!-- If comments are open, but there are no comments. --> 30 <?php else : // comments are closed ?> 31 <!-- If comments are closed. --> 32 <p class="nocomments">Comments are closed.</p> 33 <?php endif; ?> 38 34 <?php endif; ?> 39 35 36 <?php if ('open' == $post->comment_status) : ?> 37 <div id="xpress-respond"> 40 38 41 <?php if ('open' == $post->comment_status) : ?> 39 <h3><?php comment_form_title( __('Leave a Reply', 'xpress'), __('Leave a Reply for %s' , 'xpress') ); ?></h3> 40 </div> 41 42 <div id="cancel-comment-reply"> 43 <small><?php cancel_comment_reply_link() ?></small> 44 </div> 45 46 <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 47 <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'xpress'), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink())); ?></p> 48 <?php else : ?> 49 <div id="xpress-comment-user"> 50 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 51 <?php if ( $user_ID ) : ?> 52 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'xpress'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'xpress'); ?>"><?php _e('Log out »', 'xpress'); ?></a></p> 53 <?php else : ?> 54 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> 55 <label for="author"><small><?php _e('Name', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 42 56 43 <div id="xpress-respond"> 57 <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> 58 <label for="email"><small><?php _e('Mail (will not be published)', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 44 59 45 <h2><?php comment_form_title( __('Leave a Reply', 'xpress'), __('Leave a Reply for %s' , 'xpress') ); ?></h3> 60 <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> 61 <label for="url"><small><?php _e('Website', 'xpress'); ?></small></label></p> 62 <?php endif; ?> 63 </div> 46 64 47 <div id="cancel-comment-reply"> 48 <small><?php cancel_comment_reply_link() ?></small> 49 </div> 50 51 <div id="xpress-comment-user"> 52 <?php if ( get_option('comment_registration') && !$user_ID ) : ?> 53 <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'xpress'), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink())); ?></p> 54 <?php else : ?> 65 <div id="xpress-comment-form"> 66 <!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', 'xpress'), allowed_tags()); ?></small></p>--> 55 67 56 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> 57 58 <?php if ( $user_ID ) : ?> 59 60 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'xpress'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'xpress'); ?>"><?php _e('Log out »', 'xpress'); ?></a></p> 61 62 <?php else : ?> 63 64 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> 65 <label for="author"><small><?php _e('Name', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 66 67 <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> 68 <label for="email"><small><?php _e('Mail (will not be published)', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> 69 70 <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> 71 <label for="url"><small><?php _e('Website', 'xpress'); ?></small></label></p> 72 73 <?php endif; ?> 74 </div> 75 76 <div id="xpress-comment-form"> 77 <!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', 'xpress'), allowed_tags()); ?></small></p>--> 78 79 <textarea name="comment" id="comment" cols="100" rows="5" tabindex="4" style="width:100%"></textarea> 80 <div class ="xpress-comment-submit"> 81 <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'xpress'); ?>" /> 68 <textarea name="comment" id="comment" cols="100" rows="5" tabindex="4" style="width:100%"></textarea> 69 <div class ="xpress-comment-submit"> 70 <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'xpress'); ?>" /> 71 </div> 72 <?php comment_id_fields(); ?> 73 <?php do_action('comment_form', $post->ID); ?> 74 </form> 75 </div> 76 <?php endif; // If registration required and not logged in ?> 82 77 </div> 83 <?php comment_id_fields(); ?>84 <?php do_action('comment_form', $post->ID); ?>85 </form>86 <div>87 <?php endif; // If registration required and not logged in ?>88 </div>89 78 90 79 <?php endif; // if you delete this the sky will fall on your head ?>
Note: See TracChangeset
for help on using the changeset viewer.