Advertisement
prettysenshi

functions

Jun 15th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. function hateyour_comment($comment, $args, $depth) {
  2. $GLOBALS['comment'] = $comment;
  3. extract($args, EXTR_SKIP);
  4.  
  5. if ( 'div' == $args['style'] ) {
  6. $tag = '';
  7. $add_below = 'comment';
  8. } else {
  9. $tag = '';
  10. $add_below = 'div-comment';
  11. }
  12. ?>
  13. <blockquote>
  14.  
  15.  
  16. <?php printf( __( '<div class="header">%s says</div>' ), get_comment_author_link() ); ?>
  17.  
  18. <?php if ( $comment->comment_approved == '0' ) : ?>
  19. <?php _e( 'Your comment is awaiting moderation.' ); ?>
  20. <br />
  21. <?php endif; ?>
  22.  
  23. <a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ); ?>">
  24. <?php
  25. /* translators: 1: date, 2: time */
  26. printf( __('%1$s at %2$s'), get_comment_date(), get_comment_time() ); ?></a> > <?php comment_reply_link( array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?><?php comment_text(); ?>
  27.  
  28.  
  29. </blockquote>
  30.  
  31. <?php if ( 'div' != $args['style'] ) : ?>
  32.  
  33. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement