web_dor_comment

The Business Responsive web dor comment function.

Description

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

Parameters (3)

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

Usage

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

Defined (1)

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

/functions.php  
  1. function web_dor_comment($comment, $args, $depth) { 
  2.  
  3. $GLOBALS['comment'] = $comment; 
  4.  
  5. switch ($comment->comment_type) { 
  6. case '' : 
  7. ?> 
  8. <div <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>"> 
  9. <div class="comment-avatar"><?php echo get_avatar($comment, $size = '54'); ?></div> 
  10. <div class="comment-body"> 
  11. <p class="comment-meta"><span 
  12. class="comment-author"><?php comment_author_link(); ?></span><?php _e(' on ', 'sp_webBusiness'); ?><?php comment_date() ?><?php _e(' at ', 'sp_webBusiness'); ?><?php comment_time() ?> 
  13. .</p> 
  14. <?php if ($comment->comment_approved == '0') { ?> 
  15. <p><strong><?php _e('Your comment is awaiting moderation.', 'sp_webBusiness'); ?></strong></p> 
  16. <?php } ?> 
  17.  
  18. <?php comment_text(); ?> 
  19.  
  20. <p class="comment-reply-meta"><?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?></p> 
  21. </div> 
  22. <?php 
  23. break; 
  24.  
  25. case 'pingback' : 
  26. case 'trackback' : 
  27. ?> 
  28. <div <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>" class="post pingback"> 
  29. <p><?php _e('Pingback:', 'sp_webBusiness'); ?> <?php comment_author_link(); ?><?php edit_comment_link(__('Edit', 'sp_webBusiness'), ' '); ?></p> 
  30. <?php 
  31. break; 
  32.