mh_comments

The MH Corporate lite mh comments function.

Description

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

Parameters (3)

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

Usage

  1. if ( !function_exists( 'mh_comments' ) ) { 
  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 = mh_comments($comment, $args, $depth); 
  15.  

Defined (1)

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

/functions.php  
  1. function mh_comments($comment, $args, $depth) { 
  2. $GLOBALS['comment'] = $comment; ?> 
  3. <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> 
  4. <div id="comment-<?php comment_ID(); ?>"> 
  5. <div class="vcard meta"> 
  6. <?php echo get_avatar($comment->comment_author_email, 30); ?> 
  7. <?php echo get_comment_author_link() ?> // 
  8. <a href="<?php echo esc_url(get_comment_link($comment->comment_ID)) ?>"><?php printf(__('%1$s at %2$s', 'mhc'), get_comment_date(), get_comment_time()) ?></a> // 
  9. <?php if (comments_open() && $args['max_depth']!=$depth) { ?> 
  10. <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> 
  11. <?php } ?> 
  12. <?php edit_comment_link(__('(Edit)', 'mhc'), ' ', '') ?> 
  13. </div> 
  14. <?php if ($comment->comment_approved == '0') : ?> 
  15. <div class="comment-info"><?php _e('Your comment is awaiting moderation.', 'mhc') ?></div> 
  16. <?php endif; ?> 
  17. <div class="comment-text"> 
  18. <?php comment_text() ?> 
  19. </div> 
  20. </div><?php