Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! function_exists( 'et_custom_comments_display' ) ) :
- function et_custom_comments_display($comment, $args, $depth) {
- $GLOBALS['comment'] = $comment;
- global $userpro; ?>
- <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
- <article id="comment-<?php comment_ID(); ?>" class="comment-body clearfix">
- <div class="comment_avatar">
- <?php echo get_avatar( $comment, $size = '80' ); ?>
- </div>
- <div class="comment_postinfo">
- <?php printf( '<cite class="fn">%s</cite>', '<a href="'.$userpro->permalink( $comment->user_id ).'">'.userpro_profile_data('display_name', $comment->user_id) . '</a>'); ?>
- <?php } else { ?>
- <?php printf( '<cite class="fn">%s</cite>', get_comment_author_link() ); ?>
- <?php } echo userpro_show_badges( $comment->user_id, $inline=true ); ?>
- <span class="comment_date">
- <?php
- /* translators: 1: date, 2: time */
- printf( __( 'on %1$s at %2$s', 'Divi' ), get_comment_date(), get_comment_time() );
- ?>
- </span>
- <?php edit_comment_link( esc_html__( '(Edit)', 'Divi' ), ' ' ); ?>
- <?php
- $et_comment_reply_link = get_comment_reply_link( array_merge( $args, array(
- 'reply_text' => esc_attr__( 'Reply', 'Divi' ),
- 'depth' => (int) $depth,
- 'max_depth' => (int) $args['max_depth'],
- ) ) );
- ?>
- </div> <!-- .comment_postinfo -->
- <div class="comment_area">
- <?php if ( '0' == $comment->comment_approved ) : ?>
- <em class="moderation"><?php esc_html_e('Your comment is awaiting moderation.','Divi') ?></em>
- <br />
- <?php endif; ?>
- <div class="comment-content clearfix">
- <?php
- comment_text();
- if ( $et_comment_reply_link ) echo '<span class="reply-container">' . $et_comment_reply_link . '</span>';
- ?>
- </div> <!-- end comment-content-->
- </div> <!-- end comment_area-->
- </article> <!-- .comment-body -->
- <?php }
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement