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