Advertisement
Guest User

Untitled

a guest
May 27th, 2014
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. <?php if ( ! function_exists( 'et_custom_comments_display' ) ) :
  2. function et_custom_comments_display($comment, $args, $depth) {
  3. $GLOBALS['comment'] = $comment; ?>
  4. <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
  5. <article id="comment-<?php comment_ID(); ?>" class="comment-body clearfix">
  6. <div class="comment_avatar">
  7. <?php echo get_avatar( $comment, $size = '80' ); ?>
  8. </div>
  9.  
  10. <div class="comment_postinfo">
  11. <?php printf( '<span class="fn">%s</span>', get_comment_author_link() ); ?>
  12. <span class="comment_date">
  13. <?php
  14. /* translators: 1: date, 2: time */
  15. printf( __( 'on %1$s at %2$s', 'Divi' ), get_comment_date(), get_comment_time() );
  16. ?>
  17. </span>
  18. <?php edit_comment_link( esc_html__( '(Edit)', 'Divi' ), ' ' ); ?>
  19. <?php
  20. $et_comment_reply_link = get_comment_reply_link( array_merge( $args, array(
  21. 'reply_text' => esc_attr__( 'Reply', 'Divi' ),
  22. 'depth' => (int) $depth,
  23. 'max_depth' => (int) $args['max_depth'],
  24. ) ) );
  25. ?>
  26. </div> <!-- .comment_postinfo -->
  27.  
  28. <div class="comment_area">
  29. <?php if ( '0' == $comment->comment_approved ) : ?>
  30. <em class="moderation"><?php esc_html_e('Your comment is awaiting moderation.','Divi') ?></em>
  31. <br />
  32. <?php endif; ?>
  33.  
  34. <div class="comment-content clearfix">
  35. <?php
  36. comment_text();
  37. if ( $et_comment_reply_link ) echo '<span class="reply-container">' . $et_comment_reply_link . '</span>';
  38. ?>
  39. </div> <!-- end comment-content-->
  40. </div> <!-- end comment_area-->
  41. </article> <!-- .comment-body -->
  42. <?php }
  43. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement