megaresponsive_lite_comment

Custom Comments list.

Description

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

Parameters (3)

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

Usage

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

Defined (1)

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

/inc/template-tags.php  
  1. function megaresponsive_lite_comment($comment, $args, $depth) { 
  2. $GLOBALS['comment'] = $comment; ?> 
  3. <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> 
  4.  
  5. <div id="comment-<?php comment_ID(); ?>" class="comment_body"> 
  6. <div class="comment-author vcard"> 
  7. <?php echo get_avatar($comment, $size='48', $default=get_template_directory_uri().'/images/avatar.png' ); ?> 
  8.  
  9. <?php printf(__('<cite class="fn">%s</cite> / ', 'megaresponsive-lite'), get_comment_author_link()) ?> 
  10. <a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s', 'megaresponsive-lite'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)', 'megaresponsive-lite'), ' ', '') ?> 
  11. </div> 
  12. <?php if ($comment->comment_approved == '0') : ?> 
  13. <em><?php _e('Your comment is awaiting moderation.', 'megaresponsive-lite'); ?></em> 
  14. <br /> 
  15. <?php endif; ?> 
  16.  
  17. <div class="comment-meta commentmetadata"></div> 
  18.  
  19. <?php comment_text() ?> 
  20.  
  21. <div class="reply"> 
  22. <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> 
  23. </div> 
  24. </div> 
  25. <?php