芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/critterchoice.com/wp-content/themes/rehub-theme/author.php
ID; $author_name = $curauth->display_name; $count_comments = get_comments( array( 'user_id' => $author_ID, 'count' => true ) ); $count_likes = ( get_user_meta( $author_ID, 'overall_post_likes', true) ) ? get_user_meta( $author_ID, 'overall_post_likes', true) : 0; $count_wishes = ( get_user_meta( $author_ID, 'overall_post_wishes', true) ) ? get_user_meta( $author_ID, 'overall_post_wishes', true) : 0; $count_p_votes = (int)$count_likes + (int)$count_wishes; $user_post_types = apply_filters( 'rh_user_page_posttypes', array('post', 'product', 'blog', 'comments') ); $totalsubmitted = 0; foreach( $user_post_types as $post_type ){ $totaldeals = count_user_posts( $author_ID, $post_type ); $totalsubmitted += $totaldeals; } if(function_exists('mycred_get_users_rank')){ if(rehub_option('rh_mycred_custom_points')){ $custompoint = rehub_option('rh_mycred_custom_points'); $mycredrank = mycred_get_users_rank($author_ID, $custompoint ); } else{ $mycredrank = mycred_get_users_rank($author_ID); } } if(function_exists('mycred_display_users_total_balance') && function_exists('mycred_render_shortcode_my_balance')){ if(rehub_option('rh_mycred_custom_points')){ $custompoint = rehub_option('rh_mycred_custom_points'); $mycredpoint = mycred_render_shortcode_my_balance(array('type'=>$custompoint, 'user_id'=>$author_ID, 'wrapper'=>'', 'balance_el' => '') ); $mycredlabel = mycred_get_point_type_name($custompoint, false); } else{ $mycredpoint = mycred_render_shortcode_my_balance(array('user_id'=>$author_ID, 'wrapper'=>'', 'balance_el' => '') ); $mycredlabel = mycred_get_point_type_name('', false); } } ?>
:
:
'cpt','post_type'=>'blog', 'user_id'=>$author_ID, 'enable_pagination'=>'3'));?> 'blog', 'author' => $author_ID ); ?> have_posts() ) : ?>
:
$author_ID, 'enable_pagination'=>'3'));?> 'product', 'author' => $author_ID ); ?> have_posts() ) : ?>
:
$author_ID, 'status' => 'approve', 'orderby' => 'comment_date', 'order' => 'DESC', )); if (!empty($comments_v)){ wp_list_comments( array( 'avatar_size' => 50, 'max_depth' => 4, 'style' => 'ul', 'callback' => 'rehub_framework_comments', 'reverse_top_level' => ( get_option( 'comment_order' ) === 'asc' ? 1 : 0 ), ), $comments_v); } unset( $comments_v ); ?>
'«', 'next_text' => '»' ) ); ?>