<?php 
/**
   * Custom Comment List Show File
   *
   * @package IS-Medify
   * 
   * @since 1.0.0
   *
**/ 
if ( ! function_exists( 'is_medify_comment_list_display' ) ) :
	function is_medify_comment_list_display( $comment, $args, $depth ){
		//get theme data
		global $comment_data;
		//translations
		$leave_reply = $comment_data['translation_reply_to_coment'] ? $comment_data['translation_reply_to_coment'] :__('Reply','is-medify'); ?>
		<div class="col-xs-12 border">
			<div class="col-xs-2 ">
				<?php $avatar_url = get_avatar_url( $comment, $args['avatar_size'] ); 
			    if($avatar_url ):?>
			        <div class="left-comment-box">
			            <?php if ($args['avatar_size'] != 0) echo wp_kses_post(get_avatar($comment, $args['avatar_size'])); ?>
			        </div>
			    <?php endif;?>
			</div>
			<div class="col-xs-11  col-xs-push-1">
				<h4><?php comment_author();?></h4>	
				<h5><?php if ( ('d M  y') == get_option( 'date_format' ) ) : ?>
				<?php comment_date('F j, Y');?>
				<?php else : ?>
				<?php comment_date(); ?>
				<?php endif; ?>
				<?php esc_attr_e('at','is-medify');?>&nbsp;<?php comment_time('g:i a'); ?></h5>
				<p><?php comment_text() ; ?></p>
				<?php comment_reply_link(array_merge( $args, array('reply_text' => $leave_reply,'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
				<?php if ( $comment->comment_approved == '0' ) : ?>
				<em class="comment-awaiting-moderation"><?php esc_html_e( 'Your comment is awaiting moderation.', 'is-medify' ); ?></em>
				<br/>
				<?php endif; ?>
			</div>
		</div>								
		<?php
	}
endif;
?>