Function Reference: geodir_buddypress_comment

Summary

BuddyPress reviews Tab – comment HTML.

Package

GeoDirectory_BuddyPress_Integration

Parameters

$comment
(object) (required) Comment object.

Default: None
$args
(array) (required) Comment arguments.

Default: None
$depth
(int) (required) Comment depth.

Default: None

Change Log

Since: 1.0.0

Source File

geodir_buddypress_comment() is located in geodir_buddypress/includes/gdbuddypress_template_functions.php [Line: 320]

Source Code

function geodir_buddypress_comment( $comment, $args, $depth ) {
	$GLOBALS['comment'] = $comment;
	switch ( $comment->comment_type ) :
		case 'pingback' :
		case 'trackback' :
		// Display trackbacks differently than normal comments.
	?>
	
  • id="comment-">

    ', '' ); ?>

  • id="li-comment-">
    %1$s %2$s', get_comment_author_link(), // If current post author is also comment author, make it known visually. ( $comment->user_id === $comment->post_author ) ? '' . __( 'Post author', GDBUDDYPRESS_TEXTDOMAIN ) . '' : '' ); echo "$comment->post_title"; printf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', GDBUDDYPRESS_TEXTDOMAIN ), get_comment_date(), get_comment_time() ) ); ?>
    comment_approved ) : ?>

    ', '

    ' ); ?>
    __( 'Reply', GDBUDDYPRESS_TEXTDOMAIN ), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>