function wind_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <div class="comment-body clearfix"> <div class="comment-author vcard clearfix"> <a href="javascript:" class="circle" data-email="<?php echo get_comment_author_email(); ?> " rel="popover"> <span class="edit">EDIT</span> <?php echo get_avatar($comment, $size = '48', $default = '<path_to_url>'); ?> </a> <b class="fn"><?php echo get_comment_author_link(); ?> </b> <i class="ua"><?php if (function_exists("CID_init")) { echo ' '; CID_print_comment_browser(); } ?> </i> <a class="comment-collapse" href="javascript:"></a> <div class="comment-share"> <ul class="share-list"> <li><a href="javascript:" title="分享到新浪微博" class="sina-weibo"><img src="<?php echo get_template_directory_uri(); ?> /img/sina-weibo-24.png" alt=""></a> <li><a href="javascript:" title="分享到騰訊微博" class="tencent-weibo"><img src="<?php echo get_template_directory_uri(); ?> /img/tencent-weibo-24.png" alt=""></a> <li><a href="javascript:" title="分享到豆瓣" class="douban"><img src="<?php echo get_template_directory_uri(); ?> /img/douban-24.png" alt=""></a> <li><a href="javascript:" title="分享到QQ空間" class="qq-space"><img src="<?php echo get_template_directory_uri(); ?> /img/qq-space-24.png" alt=""></a> </ul> </div> </div> <div class="comment-content"> <?php if ($comment->comment_approved == '0') { ?> <em class="wait-mod"><?php _e('Your comment is awaiting moderation. :)'); ?> </em> <br/> <?php } ?> <?php comment_text(); ?> </div> <div class="comment-metadata"><span>Posted on <span class="comment-date"><?php echo get_comment_date(); ?> </span> | <span class="comment-hour"><?php echo get_comment_time(); ?> </span></span></div> <div class="reply clearfix"> <?php echo comment_reply_link(array_merge($args, array('depth' => $depth, 'max-depth' => $args['max_depth']))); ?> </div> </div> <?php }
function hmjblog_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; global $commentcount, $page; if ((int) get_option('page_comments') === 1 && (int) get_option('thread_comments') === 1) { if (!$commentcount) { $page = !empty($in_comment_loop) ? get_query_var('cpage') : get_page_of_comment($comment->comment_ID, $args); $cpp = get_option('comments_per_page'); if (!$post_id) { $post_id = get_the_ID(); } if (get_option('comment_order') === 'desc') { $cnt = get_comments(array('status' => 'approve', 'parent' => '0', 'post_id' => $post_id, 'count' => true)); if (ceil($cnt / $cpp) == 1 || $page > 1 && $page == ceil($cnt / $cpp)) { $commentcount = $cnt + 1; } else { $commentcount = $cpp * $page + 1; } } else { $commentcount = $cpp * ($page - 1); } } if (!($parent_id = $comment->comment_parent)) { $commentcountText = ''; if (get_option('comment_order') === 'desc') { $commentcountText .= '#' . --$commentcount; } else { $commentcountText .= '#' . ++$commentcount; } } } switch ($comment->comment_type) { case 'pingback': case 'trackback': ?> <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?> "> <p><?php _e('Pingback:', 'hmjblog'); ?> <?php comment_author_link(); ?> <?php edit_comment_link(__('(编辑)', 'hmjblog'), '<span class="edit-link">', '</span>'); ?> </p> <?php break; default: global $post; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <article id="comment-<?php comment_ID(); ?> " class="comment"> <header class="comment-meta comment-author vcard"> <?php echo get_avatar($comment, 44); printf('<cite><b class="fn">%1$s</b> %2$s</cite>', get_comment_author_link(), $comment->user_id === $post->post_author ? '<span>' . __('管理员', 'hmjblog') . '</span>' : ''); CID_print_comment_browser(); printf('<time datetime="%2$s">%3$s</time>', esc_url(get_comment_link($comment->comment_ID)), get_comment_time('c'), sprintf(__('%1$s %2$s', 'hmjblog'), get_comment_date(), get_comment_time())); ?> <div class="louceng"><?php echo $commentcountText; ?> </div> </header> <?php if ('0' == $comment->comment_approved) { ?> <p class="comment-awaiting-moderation"><?php _e('你的评论正在等待审核...', 'hmjblog'); ?> </p> <?php } ?> <section class="comment-content comment"> <?php comment_text(); ?> <?php
function Gztro_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; global $commentcount; $page = !empty($in_comment_loop) ? get_query_var('cpage') : get_page_of_comment($comment->comment_ID, $args); $cpp = get_option('comments_per_page'); if (!$commentcount) { if ($page > 1) { $commentcount = $cpp * ($page - 1); } else { $commentcount = 0; } } ?> <li <?php comment_class(); ?> <?php if ($depth > 1) { echo ' style="margin-left:' . ceil(80 / $depth) . 'px;"'; } ?> id="li-comment-<?php comment_ID(); ?> " > <div id="comment-<?php comment_ID(); ?> " class="comment-body"> <div class="commentmeta"> <?php echo get_avatar($comment->comment_author_email, $size = '42', $default); ?> </div> <?php if ($comment->comment_approved == '0') { ?> <em><?php _e('Your comment is awaiting moderation.'); ?> </em><br /> <?php } ?> <div class="Floor"> <span><?php if (!($parent_id = $comment->comment_parent)) { printf('%1$sF', ++$commentcount); } if ($depth > 1) { printf('%1$sB', $depth - 1); } ?> </span></div> <div class="reply"><?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => __('@回复Ta')))); ?> </div> <div class="vcard"><span class="vcard-uid"><?php printf(__('%s'), get_comment_author_link()); ?> </span> <font style="color:#DDD;">于 <?php printf(__('%1$s - %2$s'), get_comment_date(), get_comment_time()); ?> 说:</font> <?php if (function_exists("CID_init")) { CID_print_comment_flag(); echo ' '; CID_print_comment_browser(); } ?> </div> <?php comment_text(); ?> </div> <?php }
echo get_comment_author_email(); ?> " rel="popover"> <span class="edit">EDIT</span> <?php echo get_avatar($comment, $size = '48', $default = '<path_to_url>'); ?> </a> <b class="fn"><?php echo get_comment_author_link(); ?> </b> <i class="ua"><?php if (function_exists("CID_init")) { echo ' '; CID_print_comment_browser(); } ?> </i> <a class="comment-collapse" href="javascript:"></a> <div class="comment-share"> <ul class="share-list"> <li><a href="javascript:" title="分享到新浪微博" class="sina-weibo"><img src="<?php echo get_template_directory_uri(); ?> /img/sina-weibo-24.png" alt=""></a> <li><a href="javascript:" title="分享到騰訊微博" class="tencent-weibo"><img src="<?php echo get_template_directory_uri(); ?> /img/tencent-weibo-24.png" alt=""></a> <li><a href="javascript:" title="分享到豆瓣" class="douban"><img src="<?php