PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
buddypress
/
members
/
single
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <?php get_header(); ?> <?php $author_ID = bp_displayed_user_id(); ?> <div id="buddypress" class="register_wrap_type<?php echo bp_get_member_type($author_ID); ?>"> <?php include(rh_locate_template('buddypress/members/single/cover-image-header.php')); ?> <!-- CONTENT --> <div class="rh-container clearfix mb30"> <?php do_action( 'bp_after_member_header' ); do_action( 'template_notices' ); ?> <div class="rh-mini-sidebar floatleft tabletblockdisplay mb0"> <?php if(function_exists('mycred_display_users_total_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); } if(!empty($mycredpoint)){ echo '<div class="rh-bp-mycred-profile-points mb20 rehub-main-color-bg rehub-sec-smooth"><div>'; echo '<div class="rh-bp-mycred-title mb10">'.__('User Balance', 'rehub_framework').'<i class="fal fa-wallet floatright font150"></i></div>'; echo '<div class="rh-bp-mycred-points-pr"><span>'.$mycredpoint.'</span>'.esc_html($mycredlabel).'</div>'; echo '</div></div>'; } } ?> <?php $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; $is_vendor = ''; if( class_exists( 'WeDevs_Dokan' ) ) { $is_vendor = dokan_is_user_seller( $author_ID ); $shop_url = dokan_get_store_url( $author_ID ); $sold_by = get_user_meta( $author_ID, 'dokan_store_name', true ); } elseif(class_exists('WCMp')){ $is_vendor = is_user_wcmp_vendor( $author_ID ); if($is_vendor){ $vendorobj = get_wcmp_vendor($author_ID); $shop_url = $vendorobj->permalink; $sold_by = get_user_meta($author_ID, '_vendor_page_title', true); } } elseif(defined('wcv_plugin_dir')) { $is_vendor = WCV_Vendors::is_vendor( $author_ID ); $shop_url = WCV_Vendors::get_vendor_shop_page( $author_ID ); $sold_by = WCV_Vendors::get_vendor_sold_by( $author_ID ); } ?> <?php if( $is_vendor ) : ?> <div class="rh-cartbox user-profile-div text-center widget rehub-sec-smooth"> <div class="widget-inner-title rehub-main-font"><?php _e('Owner of shop', 'rehub_framework');?></div> <div class="mb20"><a href="<?php echo esc_url($shop_url); ?>"><img src="<?php echo rh_show_vendor_avatar($author_ID, 150, 150);?>" class="vendor_store_image_single" width=150 height=150 /></a> </div> <div class="profile-usertitle-name mb20"> <a href="<?php echo esc_url($shop_url);?>"> <?php echo ''.$sold_by; ?> </a> </div> <div class="profile-stats"> <div><i class="far fa-heartbeat"></i><?php _e( 'Product Votes', 'rehub_framework' ); echo ': ' . $count_p_votes; ?></div> <div><i class="far fa-briefcase"></i><?php _e( 'Total products', 'rehub_framework' ); echo ': ' . count_user_posts( $author_ID, $post_type = 'product' ); ?></div> </div> </div> <?php endif;?> </div> <div class="rh-mini-sidebar-content-area floatright tabletblockdisplay"> <article> <?php do_action( 'bp_before_member_home_content' ); ?> <div id="item-body" class="separate-item-bp-nav"> <?php do_action( 'bp_before_member_body' ); ?> <?php if ( bp_is_user_activity() || !bp_current_component() ) : bp_get_template_part( 'members/single/activity' ); elseif ( bp_is_user_blogs() ) : bp_get_template_part( 'members/single/blogs' ); elseif ( bp_is_user_friends() ) : bp_get_template_part( 'members/single/friends' ); elseif ( bp_is_user_groups() ) : bp_get_template_part( 'members/single/groups' ); elseif ( bp_is_user_messages() ) : bp_get_template_part( 'members/single/messages' ); elseif ( bp_is_user_profile() ) : bp_get_template_part( 'members/single/profile' ); elseif ( bp_is_user_notifications() ) : bp_get_template_part( 'members/single/notifications' ); elseif ( bp_is_user_settings() ) : bp_get_template_part( 'members/single/settings' ); else : bp_get_template_part( 'members/single/plugins' ); endif; ?> <?php do_action( 'bp_after_member_body' ); ?> </div><!-- #item-body --> <?php do_action( 'bp_after_member_home_content' ); ?> </article> </div> <div class="rh-mini-sidebar floatleft tabletblockdisplay clearboxleft"> <?php include(rh_locate_template('buddypress/members/single/profile-sidebar.php'));?> </div> </div> <!-- /CONTENT --> </div><!-- #buddypress --> <!-- FOOTER --> <?php get_footer(); ?>
[+]
..
[-] profile-sidebar.php
[edit]
[-] index.php
[edit]
[-] cover-image-header.php
[edit]