weblizar_comment

The Enigma weblizar comment function.

Description

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

Parameters (3)

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

Usage

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

Defined (1)

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

/core/comment-function.php  
  1. function weblizar_comment( $comment, $args, $depth )  
  2. $GLOBALS['comment'] = $comment; 
  3. //get theme data 
  4. global $comment_data; 
  5. //translations 
  6. $leave_reply = $comment_data['translation_reply_to_coment'] ? $comment_data['translation_reply_to_coment'] :  
  7. __('Reply', 'enigma'); ?> 
  8. <div class="media enigma_comment_box"> 
  9. <a class="pull_left_comment"> 
  10. <?php echo get_avatar($comment, $size = '60'); ?> 
  11. </a> 
  12. <div class="media-body"> 
  13. <div class="enigma_comment_detail"> 
  14. <h4 class="enigma_comment_detail_title"><?php comment_author();?></h4> 
  15.  
  16. <span class="enigma_comment_date"> 
  17. <?php if ( ('d M y') == get_option( 'date_format' ) ) : ?>  
  18. <?php comment_date('F j, Y');?> 
  19. <?php else : ?> 
  20. <?php comment_date(); ?> 
  21. <?php endif; ?> 
  22. <?php _e('at', 'enigma');?> <?php comment_time('g:i a'); ?></span> 
  23. <?php comment_text() ; ?>  
  24. <div class="reply"> 
  25. <a href=""><i class="fa fa-mail-reply"></i><?php comment_reply_link(array_merge( $args, array('reply_text' => $leave_reply, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?> 
  26. </a> 
  27. </div> 
  28.  
  29. <?php if ( $comment->comment_approved == '0' ) : ?> 
  30. <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'enigma' ); ?></em> 
  31. <br/> 
  32. <?php endif; ?> 
  33. </div> 
  34. </div>  
  35. </div>  
  36. <?php