-
+ 9796C3C92EBED978DBEC680858003A109CAEB7FC46F4C091CE65E391397C469A10B7417702CD1497E8E8D2314AB10E85FE7CABEE8A35C9BDB56368718DD83F13
mp-wp/wp-content/themes/classic/comments.php
(0 . 0)(1 . 85)
65341 <?php
65342 /**
65343 * @package WordPress
65344 * @subpackage Classic_Theme
65345 */
65346
65347 if ( post_password_required() ) : ?>
65348 <p><?php _e('Enter your password to view comments.'); ?></p>
65349 <?php return; endif; ?>
65350
65351 <h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
65352 <?php if ( comments_open() ) : ?>
65353 <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a>
65354 <?php endif; ?>
65355 </h2>
65356
65357 <?php if ( $comments ) : ?>
65358 <ol id="commentlist">
65359
65360 <?php foreach ($comments as $comment) : ?>
65361 <li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
65362 <?php echo get_avatar( $comment, 32 ); ?>
65363 <?php comment_text() ?>
65364 <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>
65365 </li>
65366
65367 <?php endforeach; ?>
65368
65369 </ol>
65370
65371 <?php else : // If there are no comments yet ?>
65372 <p><?php _e('No comments yet.'); ?></p>
65373 <?php endif; ?>
65374
65375 <p><?php post_comments_feed_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?>
65376 <?php if ( pings_open() ) : ?>
65377 <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Universal Resource Locator">URL</abbr>'); ?></a>
65378 <?php endif; ?>
65379 </p>
65380
65381 <?php if ( comments_open() ) : ?>
65382 <h2 id="postcomment"><?php _e('Leave a comment'); ?></h2>
65383
65384 <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
65385 <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>
65386 <?php else : ?>
65387
65388 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
65389
65390 <?php if ( $user_ID ) : ?>
65391
65392 <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>
65393
65394 <?php else : ?>
65395
65396 <?php $suffix = substr(md5(date('Y-m-d').$_SERVER['REMOTE_ADDR']).$_SERVER['HTTP_USER_AGENT'],6,7); ?>
65397
65398 <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'"; ?> />
65399 <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
65400
65401 <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'"; ?> />
65402 <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
65403
65404 <p><input type="text" name="url<?php echo $suffix;?>" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
65405 <label for="url"><small>Website</small></label></p>
65406
65407 <?php endif; ?>
65408
65409 <!--<p><small><strong>XHTML:</strong> <?php printf(__('You can use these tags: %s'), allowed_tags()); ?></small></p>-->
65410
65411 <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
65412
65413 <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
65414 <input type="hidden" name="comment_post_time" value="<?php echo time(),"-",$_SERVER['REMOTE_ADDR']; ?>" />
65415 <?php comment_id_fields(); ?>
65416 </p>
65417 <?php do_action('comment_form', $post->ID); ?>
65418
65419 </form>
65420
65421 <?php endif; // If registration required and not logged in ?>
65422
65423 <?php else : // Comments are closed ?>
65424 <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
65425 <?php endif; ?>