onetone_comment

The Onetone onetone comment function.

Description

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

Parameters (3)

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

Usage

  1. if ( !function_exists( 'onetone_comment' ) ) { 
  2. require_once '/includes/theme-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 = onetone_comment($comment, $args, $depth); 
  15.  

Defined (1)

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

/includes/theme-functions.php  
  1. function onetone_comment($comment, $args, $depth) { 
  2.  
  3. $GLOBALS['comment'] = $comment;  
  4.  
  5. ?> 
  6.  
  7. <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ;?>"> 
  8. <div id="comment-<?php comment_ID(); ?>"> 
  9.  
  10. <div class="comment media-comment media"> 
  11. <div class="media-avatar media-left"> 
  12. <?php echo get_avatar($comment, '52', '' ); ?> 
  13. </div> 
  14. <div class="media-body"> 
  15. <div class="media-inner"> 
  16. <h4 class="media-heading clearfix"> 
  17. <?php echo get_comment_author_link();?> - <a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ;?>"> 
  18. <?php printf(__('%1$s at %2$s', 'onetone'), get_comment_date(), get_comment_time()) ;?></a> 
  19. <?php edit_comment_link(__('(Edit)', 'onetone'), ' ', '') ;?> 
  20. <?php comment_reply_link(array_merge( $args, array('reply_text' => '<i class="fa fa-reply"></i> '. __('Reply', 'onetone'), 'depth' => $depth, 'max_depth' => $args['max_depth']))) ;?> 
  21. </h4> 
  22.  
  23. <?php if ($comment->comment_approved == '0') : ?> 
  24. <em><?php _e('Your comment is awaiting moderation.', 'onetone') ;?></em> 
  25. <br /> 
  26. <?php endif; ?> 
  27. <?php comment_text() ;?> 
  28. </div> 
  29. </div> 
  30. </div> 
  31. <div class="clear"></div> 
  32. </div> 
  33. <?php