function custom_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; global $commentcount; if (!$commentcount) { $commentcount = 0; } ?> <li class="comment <?php if ($comment->comment_author_email == get_the_author_email()) { echo 'admincomment'; } else { echo 'regularcomment'; } ?> " id="comment-<?php comment_ID(); ?> "> <div class="author"> <div class="pic"> <?php if (function_exists('get_avatar') && get_option('show_avatars')) { echo get_avatar($comment, 32); } ?> </div> <div class="name"> <?php if (get_comment_author_url()) { ?> <a id="commentauthor-<?php comment_ID(); ?> " class="url" href="<?php comment_author_url(); ?> " rel="external nofollow"> <?php } else { ?> <span id="commentauthor-<?php comment_ID(); ?> "> <?php } ?> <?php comment_author(); ?> <?php if (get_comment_author_url()) { ?> </a> <?php } else { ?> </span> <?php } ?> </div> </div> <div class="info"> <div class="date"> <?php printf(__('%1$s at %2$s', 'inove'), get_comment_time(__('F jS, Y', 'inove')), get_comment_time(__('H:i', 'inove'))); ?> | <a href="#comment-<?php comment_ID(); ?> "><?php printf('#%1$s', ++$commentcount); ?> </a> </div> <div class="act"> <a href="javascript:void(0);" onclick="MGJS_CMT.reply('commentauthor-<?php comment_ID(); ?> ', 'comment-<?php comment_ID(); ?> ', 'comment');"><?php _e('Reply', 'inove'); ?> </a> | <a href="javascript:void(0);" onclick="MGJS_CMT.quote('commentauthor-<?php comment_ID(); ?> ', 'comment-<?php comment_ID(); ?> ', 'commentbody-<?php comment_ID(); ?> ', 'comment');"><?php _e('Quote', 'inove'); ?> </a> <?php if (function_exists("qc_comment_edit_link")) { qc_comment_edit_link('', ' | ', '', __('Edit', 'inove')); } edit_comment_link(__('Advanced edit', 'inove'), ' | ', ''); ?> </div> <div class="fixed"></div> <div class="content"> <?php if ($comment->comment_approved == '0') { ?> <p><small><?php _e('Your comment is awaiting moderation.', 'inove'); ?> </small></p> <?php } ?> <div id="commentbody-<?php comment_ID(); ?> "> <?php comment_text(); ?> </div> </div> </div> <div class="fixed"></div> </li> <?php }
function custom_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; global $commentcount; if (!$commentcount) { $commentcount = 0; } ?> <li <?php if ($comment->comment_author_email == get_the_author_email()) { $admincomment = 'admincomment'; } else { $admincomment = 'regularcomment'; } ?> <?php comment_class($admincomment); ?> id="comment-<?php comment_ID(); ?> "> <div class="author"> <div class="pic"> <?php if (function_exists('get_avatar') && get_option('show_avatars')) { echo get_avatar($comment, 32); } ?> </div> <div class="name"> <?php if (get_comment_author_url()) { ?> <a id="commentauthor-<?php comment_ID(); ?> " class="url" href="<?php comment_author_url(); ?> " rel="external nofollow"><?php } else { ?> <span id="commentauthor-<?php comment_ID(); ?> "><?php } comment_author(); if (get_comment_author_url()) { ?> </a> <?php } else { ?> </span> <?php } ?> </div> </div> <div class="info"> <div class="date"> <?php printf(__('%1$s', 'airsquare'), get_comment_time(__('Y.m.j', 'airsquare')), ''); ?> <span class="action"> <a class="reply" href="#comment-<?php comment_ID(); ?> " ><?php _e('Reply', 'airsquare'); ?> </a> | <a class="quote" href="#" ><?php _e('Quote', 'airsquare'); ?> </a> <?php if (function_exists("qc_comment_edit_link")) { qc_comment_edit_link('', ' | ', '', __('Edit', 'airsquare')); } edit_comment_link(__('Edit', 'airsquare'), ' | ', ''); ?> </span> </div> <div class="fixed"></div> <div class="content"> <?php if ($comment->comment_approved == '0') { ?> <p><small><?php _e('Your comment is awaiting moderation.', 'airsquare'); ?> </small></p> <?php } ?> <div id="commentbody-<?php comment_ID(); ?> "> <?php comment_text(); ?> </div> </div> </div> <div class="c"></div> <?php }