Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // add UserPro support for comments
- function schmoovies_comments($comment, $args, $depth) {
- global $userpro;
- $GLOBALS['comment'] = $comment; ?>
- <li id="li-comment-<?php comment_ID() ?>">
- <div class="comment <?php echo get_comment_type(); ?>" id="comment-<?php comment_ID() ?>">
- <?php echo get_avatar( $comment, 60 ); ?>
- <h5><?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 } ?>
- </h5>
- <span class="date"><?php comment_date(); ?></span>
- <?php if ($comment->comment_approved == '0') : ?>
- <p><span class="message"><?php _e('Your comment is awaiting moderation.', 'themetrust'); ?></span></p>
- <?php endif; ?>
- <?php comment_text() ?>
- <?php
- if(get_comment_type() != "trackback")
- comment_reply_link(array_merge( $args, array('add_below' => 'comment','reply_text' => '<span>'. __('Reply', 'themetrust') .'</span>', 'login_text' => '<span>'. __('Log in to reply', 'themetrust') .'</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'])))
- ?>
- </div><!-- end comment -->
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement