Advertisement
Abubakar1309

comment

Dec 7th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. function custom_comment33_w( $comment, $args, $depth ) {
  2. $GLOBALS['comment'] = $comment; $user_id = get_comment(get_comment_ID())->user_id; $user_info = get_userdata($user_id );
  3. ?>
  4. <li id="comment-<?php comment_ID(); ?>" <?php comment_class('comment-wrap'); ?>>
  5. <div id="div-comment-<?php comment_ID(); ?>" class="comment-body">
  6. <div class="comment-author vcard">
  7. <?php echo get_avatar( $comment, 32 ); ?>
  8. <?php echo '<a href="'.get_author_posts_url($user_id).'"><cite class="fn">'.$user_info->display_name.'</cite></a>'; ?>
  9. </div>
  10.  
  11. <div class="comment-meta commentmetadata">
  12. <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
  13. <?php echo get_comment_date().' at '.get_comment_time(); ?>
  14. </a>
  15. <?php edit_comment_link('&nbsp;(Edit)', ''); ?>
  16. </div>
  17.  
  18. <?php comment_text(); ?>
  19.  
  20. <div class="reply"><?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?></div>
  21. </div>
  22. </li>
  23. <?php
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement