mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * @package WordPress
mp-wp_genesis 4 * @subpackage Classic_Theme
mp-wp_genesis 5 */
mp-wp_genesis 6
mp-wp_genesis 7 if ( post_password_required() ) : ?>
mp-wp_genesis 8 <p><?php _e('Enter your password to view comments.'); ?></p>
mp-wp_genesis 9 <?php return; endif; ?>
mp-wp_genesis 10
mp-wp_genesis 11 <h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
mp-wp_genesis 12 <?php if ( comments_open() ) : ?>
mp-wp_genesis 13 <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a>
mp-wp_genesis 14 <?php endif; ?>
mp-wp_genesis 15 </h2>
mp-wp_genesis 16
mp-wp_genesis 17 <?php if ( $comments ) : ?>
mp-wp_genesis 18 <ol id="commentlist">
mp-wp_genesis 19
mp-wp_genesis 20 <?php foreach ($comments as $comment) : ?>
mp-wp_genesis 21 <li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
mp-wp_genesis 22 <?php echo get_avatar( $comment, 32 ); ?>
mp-wp_genesis 23 <?php comment_text() ?>
mp-wp_genesis 24 <p><cite><?php comment_type(_c('Comment|noun'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>
mp-wp_genesis 25 </li>
mp-wp_genesis 26
mp-wp_genesis 27 <?php endforeach; ?>
mp-wp_genesis 28
mp-wp_genesis 29 </ol>
mp-wp_genesis 30
mp-wp_genesis 31 <?php else : // If there are no comments yet ?>
mp-wp_genesis 32 <p><?php _e('No comments yet.'); ?></p>
mp-wp_genesis 33 <?php endif; ?>
mp-wp_genesis 34
mp-wp_genesis 35 <p><?php post_comments_feed_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?>
mp-wp_genesis 36 <?php if ( pings_open() ) : ?>
mp-wp_genesis 37 <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Universal Resource Locator">URL</abbr>'); ?></a>
mp-wp_genesis 38 <?php endif; ?>
mp-wp_genesis 39 </p>
mp-wp_genesis 40
mp-wp_genesis 41 <?php if ( comments_open() ) : ?>
mp-wp_genesis 42 <h2 id="postcomment"><?php _e('Leave a comment'); ?></h2>
mp-wp_genesis 43
mp-wp_genesis 44 <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
mp-wp_genesis 45 <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p>
mp-wp_genesis 46 <?php else : ?>
mp-wp_genesis 47
mp-wp_genesis 48 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
mp-wp_genesis 49
mp-wp_genesis 50 <?php if ( $user_ID ) : ?>
mp-wp_genesis 51
mp-wp_genesis 52 <p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account') ?>"><?php _e('Log out »'); ?></a></p>
mp-wp_genesis 53
mp-wp_genesis 54 <?php else : ?>
mp-wp_genesis 55
mp-wp_genesis 56 <?php $suffix = substr(md5(date('Y-m-d').$_SERVER['REMOTE_ADDR']).$_SERVER['HTTP_USER_AGENT'],6,7); ?>
mp-wp_genesis 57
mp-wp_genesis 58 <p><input type="text" name="author<?php echo $suffix;?>" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
mp-wp_genesis 59 <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
mp-wp_genesis 60
mp-wp_genesis 61 <p><input type="text" name="email<?php echo $suffix;?>" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
mp-wp_genesis 62 <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
mp-wp_genesis 63
mp-wp_genesis 64 <p><input type="text" name="url<?php echo $suffix;?>" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
mp-wp_genesis 65 <label for="url"><small>Website</small></label></p>
mp-wp_genesis 66
mp-wp_genesis 67 <?php endif; ?>
mp-wp_genesis 68
mp-wp_genesis 69 <!--<p><small><strong>XHTML:</strong> <?php printf(__('You can use these tags: %s'), allowed_tags()); ?></small></p>-->
mp-wp_genesis 70
mp-wp_genesis 71 <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
mp-wp_genesis 72
mp-wp_genesis 73 <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
mp-wp_genesis 74 <input type="hidden" name="comment_post_time" value="<?php echo time(),"-",$_SERVER['REMOTE_ADDR']; ?>" />
mp-wp_genesis 75 <?php comment_id_fields(); ?>
mp-wp_genesis 76 </p>
mp-wp_genesis 77 <?php do_action('comment_form', $post->ID); ?>
mp-wp_genesis 78
mp-wp_genesis 79 </form>
mp-wp_genesis 80
mp-wp_genesis 81 <?php endif; // If registration required and not logged in ?>
mp-wp_genesis 82
mp-wp_genesis 83 <?php else : // Comments are closed ?>
mp-wp_genesis 84 <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
mp-wp_genesis 85 <?php endif; ?>