<?php if ( ! function_exists( 'teo_comment' ) ) :
function teo_comment($comment, $args, $depth) {
   $GLOBALS['comment'] = $comment;
   global $comment_count;
   ?>

   <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
        <div class="comment" id="comment-<?php comment_ID(); ?>">
	        <figure>
	            <?php echo get_avatar($comment, 52); ?>
	        </figure>
	        <div class="comment-text">
	            <span class="counter">
	            	<?php 
	            	if($comment_count < 10) 
	            		echo '0' . $comment_count; 
	            	else 
	            		echo $comment_count;
	            	$comment_count++;
	            	?>
	            </span>
	            <h3><?php comment_author_link();?></h3>
	            <div class="time"><?php echo __('Added on', 'Aruma') . ' ' . (get_comment_date('F jS, Y G:i')) ?></div>
	            <hr/>
	            <div class="message">
	                 <p><?php comment_text(); ?></p>
	                 <?php if ($comment->comment_approved == '0') : ?>
	                    <p>
	                        <em class="moderation"><?php esc_html_e('Your comment is awaiting moderation.','Teo') ?></em>
	                    </p>
	                    <br />
	                <?php endif; ?>
	            </div>
	            <div class="controls-box">
	            	<?php 
		                $reply_link = get_comment_reply_link( array_merge( $args, array('reply_text' => '<i class="icon-replay"></i>','depth' => $depth, 'max_depth' => $args['max_depth'])) );
	                	if($reply_link) { 
	                        echo $reply_link;
	                    } 
	                ?>
	            </div>
	        </div>
	    </div>
<?php }
endif; ?>