comment.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. $comment_class = array( 'clearfix' );
  3. if ( $args['has_children'] ) {
  4. $comment_class[] = 'has-children';
  5. }
  6. if ( 'pings' === $args['type'] ) {
  7. $comment_class[] = 'comment';
  8. }
  9. ?>
  10. <div id="comment-<?php comment_ID() ?>" <?php comment_class( implode( ' ', $comment_class ) ) ?>>
  11. <div class="single-comment-wrapper">
  12. <?php if ( $comment->comment_type === 'comment' ) : ?>
  13. <div class="comment-author">
  14. <?php echo get_avatar( get_comment_author_email(), 73 ); ?>
  15. </div>
  16. <?php endif ?>
  17. <div class="comment-content">
  18. <div class="comment-meta">
  19. <div class="comment-meta-inner comment-meta-left">
  20. <div class="comment-author-link"><?php comment_author_link(); ?></div>
  21. <div title="<?php comment_time(); ?>" class="comment-time"><?php comment_date(); ?></div>
  22. </div>
  23. <div class="comment-meta-inner comment-meta-right">
  24. <?php edit_comment_link( sprintf( '[%s]', esc_html__( 'Edit', 'vamtam-consulting' ) ) ) ?>
  25. <?php
  26. if ( $args['type'] == 'all' || get_comment_type() == 'comment' ) :
  27. comment_reply_link( array_merge( $args, array(
  28. 'reply_text' => esc_html__( 'Reply', 'vamtam-consulting' ),
  29. 'login_text' => esc_html__( 'Log in to reply.', 'vamtam-consulting' ),
  30. 'depth' => $depth,
  31. 'before' => '<h6 class="comment-reply-link">',
  32. 'after' => '</h6>',
  33. ) ) );
  34. endif;
  35. ?>
  36. </div>
  37. </div>
  38. <?php if ( $comment->comment_approved == '0' ) : ?>
  39. <span class='unapproved'><?php esc_html_e( 'Your comment is awaiting moderation.', 'vamtam-consulting' ); ?></span>
  40. <?php endif ?>
  41. <?php comment_text() ?>
  42. </div>
  43. </div>