Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function custom_comments( $comment, $args, $depth ) {
- global $userpro;
- $GLOBALS['comment'] = $comment ;
- ?>
- <li id="comment-<?php comment_ID(); ?>">
- <div <?php comment_class('comment-wrap'); ?> >
- <div class="comment-avatar"><?php echo get_avatar( $comment, 60); ?></div>
- <div class="comment-date">
- <div><?php printf( __( '%1$s at %2$s', 'tie' ), get_comment_date(), get_comment_time() ); ?></a> </div>
- <div class="comment-edit">
- <?php edit_comment_link( __( '(Edit)', 'tie' ), ' ' ); ?>
- </div>
- </div>
- <div class="author-comment">
- <?php if ($comment->user_id) { ?>
- <?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 } ?><?php echo userpro_show_badges( $comment->user_id, $inline=true ); ?>
- </div>
- <div class="clear"></div>
- <div class="comment-content">
- <?php if ( $comment->comment_approved == '0' ) : ?>
- <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'tie' ); ?></em>
- <br />
- <?php endif; ?>
- <?php comment_text(); ?>
- </div>
- <div class="reply"><?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?></div><!-- .reply -->
- </div><!-- #comment-## -->
- <?php
- }
- function custom_pings($comment, $args, $depth) {
- $GLOBALS['comment'] = $comment; ?>
- <li class="comment pingback">
- <p><?php _e( 'Pingback:', 'tie' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'tie' ), ' ' ); ?></p>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement