// custom comments function list_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; global $commentcount; if(!$commentcount) { $commentcount = 0; } ?> <!-- comment entry --> <li <?php if (function_exists('get_avatar') && get_option('show_avatars')) echo comment_class('with-avatars'); else comment_class(); ?> id="comment-<?php comment_ID() ?>"> <div class="wrap<?php if(comments_open()) { ?> tiptrigger<?php } ?>"> <?php if (function_exists('get_avatar') && get_option('show_avatars')) { ?> <div class="avatar"> <a class="gravatar"><?php echo get_avatar($comment, 64); ?></a> </div> <?php } ?> <div class="details <?php if($comment->comment_author_email == get_the_author_email()) echo 'admincomment'; else echo 'regularcomment'; ?>"> <p class="head"><span class="info"><a href="#comment-<?php comment_ID() ?>"><?php printf('#%1$s', ++$commentcount); ?></a> <?php _e('by','fusion'); ?> <?php if (get_comment_author_url()) : ?> <a id="commentauthor-<?php comment_ID() ?>" href="<?php comment_author_url() ?>"> <?php comment_author(); ?></a><?php else : ?><b id="commentauthor-<?php comment_ID() ?>"><?php comment_author(); ?></b><?php endif; ?> - <?php printf( __('%1$s at %2$s', 'fusion'), get_comment_time('l, d/m/y'), get_comment_time(__('H:i', 'fusion'))); ?></span></p> <!-- comment contents --> <div class="text"> <?php if ($comment->comment_approved == '0') : ?> <p class="error"><small><?php _e('Your comment is awaiting moderation.','fusion'); ?></small></p> <?php endif; ?> <div id="commentbody-<?php comment_ID() ?>"> <?php comment_text(); ?> </div> </div> <!-- /comment contents --> </div> <?php if(comments_open()) { ?> <div class="act tip"> <span class="button reply"><?php comment_reply_link(array_merge( $args, array('add_below' => 'commentbody', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => '<span><span>'.__('Reply','fusion').'</span></span>'.$my_comment_count))) ?></span> <span class="button quote"><a title="<?php _e('Quote','fusion'); ?>" href="javascript:void(0);" onclick="MGJS_CMT.quote('commentauthor-<?php comment_ID() ?>', 'comment-<?php comment_ID() ?>', 'commentbody-<?php comment_ID() ?>', 'comment');"><span><span><?php _e('Quote','fusion'); ?></span></span></a></span> </div> <?php } ?> <span class="editlink"><?php edit_comment_link(''); ?></span> </div> <?php }