<?php
/**
 * Setup the output of your WordPress Comments
 * @package Ultra WordPress Theme
 * @since 1.0
 * @author AJ Clarke : http://wpexplorer.com
 * @copyright Copyright (c) 2012, AJ Clarke
 * @link http://wpexplorer.com
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 */
 
function wpex_comments_output($comment, $args, $depth) {
	$GLOBALS['comment'] = $comment; ?>
	<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
		<div id="comment-<?php comment_ID(); ?>" class="comment-body <?php if ($comment->comment_approved == '0') echo 'pending-comment'; ?> clearfix">
                <div class="comment-details clearfix">
                    <div class="comment-avatar">
                        <?php echo get_avatar($comment, $size = '50'); ?>
                    </div><!-- /comment-avatar -->
                    <div class="comment-meta">
                    	<section class="comment-author vcard">
                    		<?php printf(__('<cite class="author">%s</cite>'), get_comment_author_link()) ?>
                    	</section><!-- /comment-meta -->
                    	<span class="comment-date"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php echo get_comment_date('l j F Y, g:i a'); ?></a></span>
                    </div>
                    <section class="comment-content">
    	                <div class="comment-text">
    	                    <?php comment_text() ?>
    	                </div><!-- /comment-text -->
                    </section><!-- /comment-content -->
                    <div class="reply"><?php comment_reply_link(array_merge( $args, array('reply_text' => __('Reply To Comment','wpex') .'&rarr;' ,'depth' => $depth, 'max_depth' => $args['max_depth']))) ?></div>
				</div><!-- /comment-details -->
		</div><!-- /comment -->
<?php }