Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

midnighttrain

By: a guest on Feb 1st, 2011  |  syntax: None  |  size: 1.64 KB  |  hits: 320  |  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.  * Template for comments and pingbacks.
  2.  *
  3.  * To override this walker in a child theme without modifying the comments template
  4.  * simply create your own pilcrow_comment(), and that function will be used instead.
  5.  *
  6.  * Used as a callback by wp_list_comments() for displaying the comments.
  7.  *
  8.  * @since Pilcrow 1.0
  9.  */
  10. function pilcrow_comment( $comment, $args, $depth ) {
  11.         $GLOBALS['comment'] = $comment;
  12.         switch ( $comment->comment_type ) :
  13.                 case '' :
  14.         ?>
  15.         <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
  16.                 <div id="comment-<?php comment_ID(); ?>" class="comment-container">
  17.                         <div class="comment-author vcard">
  18.                                 <?php echo get_avatar( $comment, 48 ); ?>
  19.                                 <?php printf( __( '%s', 'pilcrow' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
  20.                         </div><!-- .comment-author .vcard -->
  21.  
  22.                         <?php if ( $comment->comment_approved == '0' ) : ?>
  23.                                 <em><?php _e( 'Your comment is awaiting moderation.', 'pilcrow' ); ?></em>
  24.                                 <br />
  25.                         <?php endif; ?>
  26.  
  27.                         <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
  28.                                 <?php
  29.                                         /* translators: 1: date, 2: time */
  30.                                         printf( __( '%1$s at %2$s', 'pilcrow' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'pilcrow' ), ' ' );
  31.                                 ?>
  32.                         </div><!-- .comment-meta .commentmetadata -->
  33.  
  34.                         <div class="comment-body"><?php comment_text(); ?></div>
  35.  
  36.                         <div class="reply">
  37.                                 <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  38.                         </div><!-- .reply -->
  39.                 </div><!-- #comment-##  -->