| [147] | 1 | <?php // Do not delete these lines | 
|---|
 | 2 |         if (isset($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) | 
|---|
 | 3 |                 die ('Please do not load this page directly. Thanks!'); | 
|---|
 | 4 |          | 
|---|
 | 5 |         if ( post_password_required() ) { ?> | 
|---|
 | 6 |                 <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'xpress'); ?></p>  | 
|---|
 | 7 |         <?php | 
|---|
 | 8 |                 return; | 
|---|
 | 9 |         } | 
|---|
 | 10 | ?> | 
|---|
 | 11 |  | 
|---|
 | 12 | <!-- You can start editing here. --> | 
|---|
 | 13 |  | 
|---|
 | 14 | <?php if ( have_comments() ) : ?> | 
|---|
| [150] | 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 ?> | 
|---|
| [147] | 27 |  | 
|---|
| [150] | 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. --> | 
|---|
| [176] | 32 |                 <p class="nocomments"><?php _e('Comments are closed.' , 'xpress'); ?></p> | 
|---|
| [150] | 33 |         <?php endif; ?> | 
|---|
| [147] | 34 | <?php endif; ?> | 
|---|
 | 35 |  | 
|---|
 | 36 | <?php if ('open' == $post->comment_status) : ?> | 
|---|
| [150] | 37 |         <div id="xpress-respond"> | 
|---|
 | 38 |                 <h3><?php comment_form_title( __('Leave a Reply', 'xpress'), __('Leave a Reply for %s' , 'xpress') ); ?></h3> | 
|---|
 | 39 |         </div> | 
|---|
 | 40 |                          | 
|---|
 | 41 |         <div id="cancel-comment-reply">  | 
|---|
 | 42 |                 <small><?php cancel_comment_reply_link() ?></small> | 
|---|
| [168] | 43 |         </div>  | 
|---|
| [147] | 44 |          | 
|---|
| [168] | 45 |         <?php if ( get_option('comment_registration') && !$user_ID ) : ?> | 
|---|
 | 46 |                 <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> | 
|---|
 | 47 |         <?php else : ?> | 
|---|
 | 48 |                 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> | 
|---|
| [150] | 49 |                         <div id="xpress-comment-user"> | 
|---|
 | 50 |                                 <?php if ( $user_ID ) : ?> | 
|---|
 | 51 |                                         <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> | 
|---|
 | 52 |                                 <?php else : ?> | 
|---|
 | 53 |                                         <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> | 
|---|
 | 54 |                                         <label for="author"><small><?php _e('Name', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> | 
|---|
| [147] | 55 |  | 
|---|
| [150] | 56 |                                         <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'"; ?> /> | 
|---|
 | 57 |                                         <label for="email"><small><?php _e('Mail (will not be published)', 'xpress'); ?> <?php if ($req) _e("(required)", "xpress"); ?></small></label></p> | 
|---|
| [147] | 58 |  | 
|---|
| [150] | 59 |                                         <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> | 
|---|
 | 60 |                                         <label for="url"><small><?php _e('Website', 'xpress'); ?></small></label></p> | 
|---|
 | 61 |                                 <?php endif; ?> | 
|---|
 | 62 |                         </div> | 
|---|
| [147] | 63 |  | 
|---|
| [150] | 64 |                         <div id="xpress-comment-form"> | 
|---|
 | 65 |                                 <!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', 'xpress'), allowed_tags()); ?></small></p>--> | 
|---|
| [147] | 66 |  | 
|---|
| [150] | 67 |                                 <textarea name="comment" id="comment" cols="100" rows="5" tabindex="4" style="width:100%"></textarea> | 
|---|
 | 68 |                                 <div class ="xpress-comment-submit"> | 
|---|
 | 69 |                                         <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment', 'xpress'); ?>" /> | 
|---|
 | 70 |                                 </div> | 
|---|
 | 71 |                                 <?php comment_id_fields(); ?>    | 
|---|
 | 72 |                                 <?php do_action('comment_form', $post->ID); ?> | 
|---|
 | 73 |                         </div> | 
|---|
| [168] | 74 |                 </form> | 
|---|
 | 75 |         <?php endif; // If registration required and not logged in ?> | 
|---|
| [147] | 76 |  | 
|---|
 | 77 | <?php endif; // if you delete this the sky will fall on your head ?> | 
|---|