File: /home/frenchy/refonte2023/wordpress/wp-content/themes/gimont/template-parts/parts/comment.php
<?php
if ( 'div' === $args['style'] ) {
$tag = 'div';
$add_below = 'comment';
} else {
$tag = 'li';
$add_below = 'div-comment';
}
?>
<<?php echo esc_attr( $tag ) . ' '; ?><?php comment_class( empty( $args['has_children'] ) ? '' : 'parent' ); ?> id="comment-<?php comment_ID(); ?>">
<div class="comment-body">
<div class="comment-meta">
<div class="comment-author">
<?php echo get_avatar( $comment, 128 ); ?>
<?php printf( '<cite class="fn">%s</cite>', get_comment_author_link() ); ?>
</div>
<?php if ( '0' === $comment->comment_approved ) : ?>
<em class="comment-awaiting-moderation">
<?php esc_attr_e( 'Your comment is awaiting moderation.', 'gimont' ); ?>
</em>
<br/>
<?php endif; ?>
<a href="<?php echo esc_url( htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ); ?>"
class="comment-date">
<?php echo '<time datetime="' . get_comment_date( 'c' ) . '">' . get_comment_date() . '</time>'; ?>
</a>
</div>
<div id="div-comment-<?php comment_ID(); ?>" class="comment-content">
<div class="comment-text">
<?php comment_text(); ?>
</div>
<div class="reply">
<?php
comment_reply_link(
array_merge(
$args, array(
'add_below' => $add_below,
'depth' => $depth,
'max_depth' => $args['max_depth'],
)
)
);
?>
<?php edit_comment_link( esc_html__( 'Edit', 'gimont' ), ' ', '' ); ?>
</div>
</div>
</div>