evolved_comment

The Evolved evolved comment function.

Description

evolved_comment( $comment, $args, $depth ); 

Parameters (3)

0. $comment
The comment.
1. $args
The args.
2. $depth
The depth.

Usage

  1. if ( !function_exists( 'evolved_comment' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The comment. 
  5. $comment = null; 
  6.  
  7. // The args. 
  8. $args = null; 
  9.  
  10. // The depth. 
  11. $depth = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = evolved_comment($comment, $args, $depth); 
  15.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function evolved_comment( $comment, $args, $depth ) { 
  2. $GLOBALS['comment'] = $comment; 
  3. ?> 
  4. <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> 
  5. <article id="comment-<?php comment_ID(); ?>" class="the-comment"> 
  6.  
  7. <?php echo get_avatar( $comment, 60 ); ?> 
  8.  
  9. <?php if ( $comment->comment_approved == '0' ) : ?> 
  10. <em><?php _e( 'Your comment is awaiting moderation.', 'evolved' ); ?></em> 
  11. <br /> 
  12. <?php endif; ?> 
  13. <div class="comment-meta"> 
  14. <?php echo get_comment_author_link() ?> 
  15. <span class="comment-time"> 
  16. <small> 
  17. <?php comment_time( 'F j, Y g:i a' ); ?></small> <small> 
  18. <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> 
  19. </small> 
  20. </span> 
  21. <div class="comment-text"><p><?php comment_text(); ?></p></div> 
  22. </div>  
  23.  
  24. </article> 
  25.  
  26. <?php