comment-small.php 1.3 KB

1234567891011121314151617181920212223242526272829
  1. <div id="comment-<?php comment_ID() ?>" <?php comment_class( 'cbp-item' . ( $args['has_children'] ? 'has-children' : '' ) ) ?>>
  2. <div class="comment-inner">
  3. <?php echo vamtam_get_icon_html( array( // xss ok
  4. 'name' => 'vamtam-theme-quote',
  5. ) ); ?>
  6. <header class="comment-header">
  7. <h3 class="comment-author-link"><?php comment_author_link(); ?></h3>
  8. <?php
  9. if ( ( ! isset( $args['reply_allowed'] ) || $args['reply_allowed'] ) && ( $args['type'] == 'all' || get_comment_type() == 'comment' ) ) :
  10. comment_reply_link( array_merge( $args, array(
  11. 'reply_text' => esc_html__( 'Reply', 'vamtam-consulting' ),
  12. 'login_text' => esc_html__( 'Log in to reply.', 'vamtam-consulting' ),
  13. 'depth' => $depth,
  14. 'before' => '<h6 class="comment-reply-link">',
  15. 'after' => '</h6>',
  16. ) ) );
  17. endif;
  18. ?>
  19. </header>
  20. <?php comment_text() ?>
  21. <footer class="comment-footer">
  22. <div title="<?php comment_time(); ?>" class="comment-time"><?php comment_date(); ?></div>
  23. <?php edit_comment_link( sprintf( '[%s]', esc_html__( 'Edit', 'vamtam-consulting' ) ) ) ?>
  24. <?php if ( $comment->comment_approved == '0' ) : ?>
  25. <span class='unapproved'><?php esc_html_e( 'Your comment is awaiting moderation.', 'vamtam-consulting' ); ?></span>
  26. <?php endif ?>
  27. </footer>
  28. </div>