Want more features on Pastebin? Sign Up, it's FREE!
Guest

functions.php get_avatar

By: a guest on Sep 12th, 2011  |  syntax: PHP  |  size: 1.31 KB  |  views: 69  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function myblogonline_comment($comment, $args, $depth) {
  2. $GLOBALS['comment'] = $comment;
  3. extract($args, EXTR_SKIP);
  4.  
  5. if ( 'div' == $args['style'] ) {
  6. $tag = 'div';
  7. $add_below = 'comment';
  8. } else {
  9. $tag = 'li';
  10. $add_below = 'div-comment';
  11. }
  12. ?>
  13. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  14. <tr>
  15. <td><?php if (function_exists('get_avatar')) { ?>
  16. <span class="ListGrav">
  17. <?php echo get_avatar( $comment, 80 ); ?>
  18. </span>
  19. <?php } ?></td>
  20. <td>
  21. <div class="comments"> 
  22. <?php if ( 'div' != $args['style'] ) : ?>
  23. <div id="div-comment-<?php comment_ID() ?>" class="comment-body">
  24. <?php endif; ?>
  25. <div class="comment-author vcard">
  26. <?php printf(__('Posted by <cite class="fn">%s</cite> on '), get_comment_author_link()) ?>
  27.  
  28. <?php if ($comment->comment_approved == '0') : ?>
  29. <em class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.') ?></em>
  30. <br />
  31. <?php endif; ?>
  32.  
  33. <?php
  34. /* translators: 1: date, 2: time */
  35. printf( __('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?><?php edit_comment_link(__('(Edit)'),'&nbsp;&nbsp;','' );
  36. ?>
  37. </div><hr style="border:0px; border-top:1px dashed #cccccc; margin-top:4px; height:1px;" />
  38.  
  39. <?php comment_text() ?>
  40.  
  41. <?php if ( 'div' != $args['style'] ) : ?>
  42. </div>
  43. <?php endif; ?></div>
  44. </td>
  45. </tr>
  46. </table>
  47. <?php
  48. }
clone this paste RAW Paste Data