<?php 
global $current_user;
$user_ID = $current_user->ID;
$comment_author = @$_COOKIE["comment_author_" . COOKIEHASH];
$comment_author_email = @$_COOKIE["comment_author_email_" . COOKIEHASH];
$comment_author_url = @$_COOKIE["comment_author_url_" . COOKIEHASH];
$avatar_size = '50';
$type = get_query_var('msg_action') ? get_query_var('msg_action') : 'moment';

?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="t_commentform" class="b-top" com-type="<?php echo $type ?>">

<div id="ava-content" class="commentput">
						<?php if ( ! $user_ID ): ?>
						<div class="visitor-title">
							<div class="left">你好，<span><?php echo $comment_author ? $comment_author : '朋友'; ?></span></div>
							<a class="edit-visitor-info">修改资料</a>
						</div>
						<div id="comment-author-info-wrap" class="card">	
							<div id="comment-author-info">	
								<div class="com-author">
									<input type="text" name="author" id="author"  value="<?php echo $comment_author; ?>"  size="22" tabindex="1" placeholder="昵称(必填)" />
								</div>				
								<div class="com-email">
									<input type="text" name="email" id="email"  value="<?php echo $comment_author_email; ?>"  size="22" placeholder="邮箱(必填)" tabindex="2" />
								</div>				
								<div class="com-url">
									<input type="text" name="url" id="url"  value="<?php echo $comment_author_url; ?>" size="22" placeholder="http://"  tabindex="3" />
								</div>		
							</div>					
						</div>
						<?php endif; ?>
					</div>


					<div class="clear"></div>

					<div class="content_comments">
						<div class="edit_comment_info"><?php echo comment_visitor( $user_ID, $comment_author, $comment_author_email); ?></div>
						<div class="comarea">
							<textarea name="comment" id="comment" class="mo-com-textarea" placeholder="说点什么？" tabindex="4" cols="50" rows="5"></textarea>
						</div>
					</div>
    <div class="topic_comments_foobar">
        <div class="left">
			<div class="comment-tools"><?php if($type == 'moment') { echo comment_tool_btn();} ?></div>
        </div>
        <div class="right">

       
        <div class="com_push">		
			<div class="cancel-comment-reply" data="<?php echo $type ?>">
				<?php if($type == 'reply'){
						echo '<a href="javascript:void(0);" class="cancel-msg-reply-link">取消</a>';
					} else {
						cancel_comment_reply_link('取消'); 
					}?>
			</div>	
            <input class="push_comment protect" name="push_comment" type="submit" id="push_comment" tabindex="5" value="发送"/>
            <input type="hidden" name="comment_post_ID" value="0" id="comment_post_ID">
            <input type="hidden" name="comment_parent" id="comment_parent" value="0">
        </div>	
        </div>
    </div>
</form>