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

Untitled

By: a guest on Dec 12th, 2012  |  syntax: None  |  size: 1.17 KB  |  views: 45  |  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. /*-----------------------------------------------------------------------------------*/
  2. /*      Custom Comments template
  3. /*-----------------------------------------------------------------------------------*/
  4. function mytheme_comment($comment, $args, $depth) {
  5.    $GLOBALS['comment'] = $comment; ?>
  6.    <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
  7.      <div id="comment-<?php comment_ID(); ?>">
  8.       <div class="comment-author vcard">
  9.          <?php echo get_avatar( $comment->comment_author_email, 75 ); ?>
  10.  
  11.          <?php printf(__('<span class="fn">%s</span>'), get_comment_author_link()) ?>
  12.           <time><?php the_time('F j, Y'); ?></time>
  13.       </div>
  14.       <?php if ($comment->comment_approved == '0') : ?>
  15.          <em><?php _e('Your comment is awaiting moderation.') ?></em>
  16.          <br />
  17.       <?php endif; ?>
  18.  
  19.       <div class="comment-meta commentmetadata">
  20.          
  21.           <?php edit_comment_link(__('(Edit)'),'  ','') ?></div>
  22.  
  23.       <?php comment_text() ?>
  24.  
  25.       <div class="reply">
  26.          <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
  27.       </div>
  28.      </div>
  29. <?php
  30.         }
clone this paste RAW Paste Data