' . get_avatar( get_the_author_meta( 'ID', $post->post_author ), 80, null, get_the_author_meta( 'display_name', $post->post_author ) ) . '
' : '';
$trending = ( vp_metabox( 'jnews_single_post.trending_post', null, $post->ID ) ) ? '';
$output .= $trending;
$output .= get_theme_mod( 'jnews_show_block_meta_rating', true ) ? $rating : '';
$output .= get_theme_mod( 'jnews_show_block_meta_author', true ) ? ( jnews_check_coauthor_plus() ? '
' . jnews_get_author_coauthor( $post->ID, false, 'by', 1 ) . '
' : '
" ) : '';
/* Start Custom */
$share_class = JNews_Share_Bar::getInstance();
remove_all_filters( 'jnews_top_share_output' );
$output .= $share_class->top_share_output();
/* End Custom */
$output .= '
';
} else {
$output .= '';
$output .= $trending;
$output .= get_theme_mod( 'jnews_show_block_meta_author', true ) ? ( jnews_check_coauthor_plus() ? '
' . jnews_get_author_coauthor( $post->ID, $avatar, 'by', 1 ) . '
' : '
" ) : '';
$output .= get_theme_mod( 'jnews_show_block_meta_date', true ) ? '
' : '';
$output .= get_theme_mod( 'jnews_show_block_meta_comment', true ) && ! $feed ? '" : '';
$output .= get_theme_mod( 'jnews_show_block_meta_views', false ) && ! $feed ? '
" : '';
/* Start Custom */
$share_class = JNews_Share_Bar::getInstance();
remove_all_filters( 'jnews_top_share_output' );
$output .= $share_class->top_share_output();
/* End Custom */
$output .= '
';
}
}
return $output;
}
add_filter( 'jnews_module_post_meta_1', 'add_share_button_to_meta_block', null, 3 );