<?php
/**
* Comments custom functions
*
* @package Katerio
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! function_exists( 'th90_comment' ) ) {
function th90_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
?>
<li <?php comment_class( empty( $args['has_children'] ) ? '' : 'parent' ) ?> id="li-comment-<?php comment_ID(); ?>">
<div id="comment-<?php comment_ID(); ?>" class="comment-body">
<div class="comment-avatar vcard">
<?php
if ( 0 !== $args['avatar_size'] ) {
echo get_avatar( $comment, $args['avatar_size'] );
}
?>
<?php printf( '<cite class="screen-reader-text fn">%s</cite>', get_comment_author_link() ); ?>
</div>
<div class="comment-text">
<?php printf( sprintf( '<h6 class="comment-author">%s</h6>', get_comment_author_link() ) ); ?>
<div class="comment-info">
<span class="comment-date">
<?php printf( esc_html__( '%1$s at %2$s', 'katerio' ), get_comment_date(), get_comment_time() ); ?>
</span>
<?php edit_comment_link( esc_html__( 'Edit', 'katerio' ), '' );?>
</div>
<div class="entry-content comment-content">
<?php if ( '0' === $comment->comment_approved ) : ?>
<span class="comment-awaiting-moderation"><em><?php esc_html_e( 'Your comment is awaiting moderation', 'katerio' ); ?></em></span>
<?php endif; ?>
<?php comment_text(); ?>
</div>
<?php comment_reply_link( array_merge( $args, array(
'depth' => $depth,
'max_depth' => $args['max_depth'] ,
'reply_text' => '<span>' . esc_html( 'Reply', 'katerio' ) . '</span>',
) ) ); ?>
</div>
</div>
<?php
}
}