
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php

// if ( ! function_exists( 'presso_the_comment_link' ) ) {
// 	function presso_the_comment_link() {
// 		echo '<a href="#comments">';
// 		echo '<i class="vw-icon icon-entypo-comment"></i> ';
// 		comments_number( esc_html__( 'No Comment', 'presso' ), esc_html__('1 Comment', 'presso'), esc_html__( '% Comments', 'presso' ) );
// 		echo '</a>';
// 	}
// }

if ( ! function_exists( 'presso_list_comments' ) ) {
	function presso_list_comments( $comment, $args, $depth ) {
		$GLOBALS['comment'] = $comment; ?>

		<li <?php comment_class(); ?> id="li-comment-<?php echo esc_attr( get_comment_ID() ); ?>">
			<div id="comment-<?php echo esc_attr( get_comment_ID() ); ?>" class="vw-comment clearfix"> 

				<div class="vw-comment__meta">
					<?php echo get_avatar($comment, $args[ 'avatar_size' ]); ?>

					<div class="vw-comment__author"><?php comment_author_link(); ?></div>

					<div class="vw-comment__date">
						<span title="<?php printf( esc_html__( '%1$s at %2$s', 'presso' ), get_comment_date(),  get_comment_time() ) ?>"><?php comment_date(); ?></span>
						<?php edit_comment_link( esc_html__( '(Edit)', 'presso'),'  ','' ) ?>
					</div>
					
					<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>

				</div>

				<div class="vw-comment__content">
					<?php if ( $comment->comment_approved == '0' ) : ?>
					<div class="vw-comment__not-approved"><?php esc_html_e( '(Your comment is awaiting moderation.)', 'presso' ) ?></div>
					<?php endif; ?>

					<?php comment_text(); ?>
				</div>

			</div>
		<?php
	}
}