<?php
if ( ! defined( 'ABSPATH' ) ) exit;
// Fist full of comments
if ( ! function_exists( 'tt_temptt_cust_cmnt' ) ) {
	function tt_temptt_cust_cmnt( $comment, $args, $depth ) {
	   $GLOBALS['comment'] = $comment; ?>



		<li <?php comment_class(); ?>>

	    	<a id="comment-<?php comment_ID() ?>-start"></a>

	      	<div id="li-comment-<?php comment_ID() ?>" class="single-comment comment_container">

				<?php if( get_comment_type() == 'comment' ) { ?>
		             <div class="avatar comment-img"><?php print get_avatar( $comment, apply_filters( 'tt_comment_avatar_size', $size = 70 ) ); ?></div>
	            <?php } ?>

					<div class="comment-text">
						<div class="inner">
						<h3><?php tt_temptt_commenter_link(); ?> -
							<span><?php print get_comment_date( get_option( 'date_format' ) ).' - '. get_comment_time( get_option( 'time_format' ) ); ?></span>
							<span class="perma"><a href="<?php print get_comment_link(); ?>-start" title="<?php esc_attr_e( 'Direct link to this comment', 'logiscargo' ); ?>">#</a></span>
							<span class="edit"><?php edit_comment_link(esc_html__( 'Edit', 'logiscargo' ), '', '' ); ?></span>
						</h3>
				        <div class="comment-entry" id="comment-<?php comment_ID(); ?>">
							<?php comment_text(); ?>
							<?php if ( $comment->comment_approved == '0' ) { ?>
				                <p class='unapproved'><?php esc_html_e( 'Your comment is awaiting moderation.', 'logiscargo' ); ?></p>
				            <?php } ?>
						</div><!-- /comment-entry -->

			            <?php $tt_reply_text = ''; $tt_reply_text = esc_html__( 'Reply', 'logiscargo' ); ?>
						<div class="reply">
							<?php comment_reply_link( array_merge( $args, array( 'reply_text' => $tt_reply_text,  'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
						</div><!-- /.reply -->
						</div><!-- /.inner -->
	                </div> <!-- /.comment-text -->

			</div><!-- /.comment-container -->

	<?php
	} // End tt_setupfolio_cust_cmnt()
}

// PINGBACK / TRACKBACK OUTPUT
if ( ! function_exists( 'tt_temptt_list_pings' ) ) {
	function tt_temptt_list_pings( $comment, $args, $depth ) {

		$GLOBALS['comment'] = $comment; ?>

		<li id="comment-<?php comment_ID(); ?>">
			<span class="author"><?php comment_author_link(); ?></span> -
			<span class="date"><?php print get_comment_date( get_option( 'date_format' ) ); ?></span>
			<span class="pingcontent"><?php comment_text(); ?></span>

	<?php
	} // End list_pings()
}

if ( ! function_exists( 'tt_temptt_commenter_link' ) ) {
	function tt_temptt_commenter_link() {
	    $commenter = get_comment_author_link();
	    print wp_kses_post($commenter);
	} // End tt_setupfolio_commenter_link()
}



?>