<?php

// comments function
function wordpressapi_comments($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">
 <div class="comment-author vcard">
 	<?php echo get_avatar($comment,$size='70',$default='' ); ?>
 	<?php printf(__('%s', 'lioit'), get_comment_author_link()) ?>
 </div>
 

 
 <div class="comment-meta commentmetadata">
 <a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
 <span class="normal-link"><?php printf(__('%1$s at %2$s', 'lioit'), get_comment_date('M d , Y'),  get_comment_time()) ?></span>
 </a>
 <?php edit_comment_link(__('[ Edit ] ', 'lioit'),'  ','') ?>
 
 

 <?php if ($comment->comment_approved == '0') : ?>
 <div class="info-box"><span class="color"><?php _e('Your comment is awaiting moderation...', 'lioit') ?></span></div>

 <?php endif; ?>
 
  </div>
 <?php comment_text() ?>
 
 <div class="reply">
		<i class="icon-share-alt"></i><?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?></div>
 

 </div>
<?php
 }
 ?>