PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <?php get_header(); ?> <?php $curauth = ( get_query_var( 'author_name' ) ) ? get_user_by( 'slug', get_query_var( 'author_name' ) ) : get_userdata( get_query_var( 'author' ) ); $author_ID = $curauth->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')){ 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); } } ?> <!-- CONTENT --> <div class="rh-container user-profile-div"> <div class="rh-content-wrap clearfix"> <!-- Sidebar --> <aside class="sidebar authorsidebar"> <div class="author_widget clearfix"> <div class="profile-avatar text-center"> <?php echo get_avatar( $curauth->user_email, '128' ); ?> </div> <div class="profile-usertitle text-center mt20"> <div class="profile-usertitle-name"> <?php echo esc_attr($author_name); ?> <?php if (!empty($mycredrank) && is_object( $mycredrank)) :?><span class="rh-user-rank-mc rh-user-rank-<?php echo (int)$mycredrank->post_id; ?>"><?php echo esc_html($mycredrank->title) ;?></span><?php endif;?> <?php if (function_exists('bp_get_member_type')){ $membertype = bp_get_member_type($author_ID); $membertype_object = bp_get_member_type_object($membertype); $membertype_label = (!empty($membertype_object) && is_object($membertype_object)) ? $membertype_object->labels['singular_name'] : ''; if($membertype_label){ echo '<span class="rh-user-rank-mc rh-user-rank-'.$membertype.'">'.$membertype_label.'</span>'; } } ?> </div> </div> <div class="profile-stats"> <div><i class="far fa-user"></i> <?php _e( 'Registration', 'rehub_framework' ); echo ': ' .date( get_option( "date_format" ), strtotime( $curauth->user_registered )); ?></div> <div><i class="far fa-comment"></i><?php _e( 'Comments', 'rehub_framework' ); echo ': ' . $count_comments; ?></div> <div><i class="fas fa-heartbeat"></i><?php _e( 'Votes', 'rehub_framework' ); echo ': ' . $count_p_votes; ?></div> <div><i class="far fa-briefcase"></i><?php _e( 'Total submitted', 'rehub_framework' ); echo ': ' . $totalsubmitted; ?></div> <?php if (!empty($mycredpoint)) :?><div class="rh_mycred_point_bal"><i class="far fa-bar-chart"></i><?php echo esc_html($mycredlabel);?>: <?php echo ''.$mycredpoint;?></div><?php endif;?> </div> <div class="profile-socbutton"> <div class="social_icon small_i"> <?php if(!empty($curauth->user_url)) : ?><a href="<?php echo esc_url($curauth->user_url) ?>" class="author-social hm" rel="nofollow"><i class="far fa-home"></i></a><?php endif; ?> <?php if(get_the_author_meta('facebook', $author_ID)) : ?><a href="<?php echo the_author_meta('facebook', $author_ID); ?>" class="author-social fb" rel="nofollow"><i class="fab fa-facebook"></i></a><?php endif; ?> <?php if(get_the_author_meta('twitter', $author_ID)) : ?><a href="<?php echo the_author_meta('twitter', $author_ID); ?>" class="author-social tw" rel="nofollow"><i class="fab fa-twitter"></i></a><?php endif; ?> <?php if(get_the_author_meta('google', $author_ID)) : ?><a href="<?php echo the_author_meta('google', $author_ID); ?>?rel=author" class="author-social gp" rel="nofollow"><i class="fab fa-google-plus"></i></a><?php endif; ?> <?php if(get_the_author_meta('tumblr', $author_ID)) : ?><a href="<?php echo the_author_meta('tumblr', $author_ID); ?>" class="author-social tm" rel="nofollow"><i class="fab fa-tumblr"></i></a><?php endif; ?> <?php if(get_the_author_meta('instagram', $author_ID)) : ?><a href="<?php echo the_author_meta('instagram', $author_ID); ?>" class="author-social ins" rel="nofollow"><i class="fab fa-instagram"></i></a><?php endif; ?> <?php if(get_the_author_meta('vkontakte', $author_ID)) : ?><a href="<?php echo the_author_meta('vkontakte', $author_ID); ?>" class="author-social vk" rel="nofollow"><i class="fab fa-vk"></i></a><?php endif; ?> <?php if(get_the_author_meta('youtube', $author_ID)) : ?><a href="<?php echo the_author_meta( 'youtube', $author_ID ); ?>" class="author-social yt" rel="nofollow"><i class="fab fa-youtube"></i></a><?php endif; ?> </div> </div> <?php if ( !empty( $curauth->description ) ) : ?> <div class="profile-description"> <div> <span><?php _e( 'About author', 'rehub_framework' ); ?></span> <p><?php echo wp_kses_post($curauth->description); ?></p> </div> </div> <?php endif; ?> <?php if ( function_exists( 'mycred_get_users_badges' ) ) : ?> <div class="profile-achievements mb15 text-center"> <div><?php rh_mycred_display_users_badges( $author_ID ) ?></div> </div> <?php endif; ?> <div class="profile-usermenu mt20"> <ul class="user-menu-tab" role="tablist"> <?php do_action( 'rh_user_page_menutab_before', $author_ID ); ?> <?php if( in_array('post', $user_post_types) ) : ?> <li role="presentation" class="active"> <a href="#user-posts" aria-controls="user-posts" role="tab" data-toggle="tab" aria-expanded="true"><i class="far fa-edit"></i><?php _e( 'User Posts', 'rehub_framework' ); ?></a> </li> <?php endif; ?> <?php if( rehub_option('enable_blog_posttype') == '1' && in_array('blog', $user_post_types) ) : ?> <li role="presentation"> <a href="#user-articles" aria-controls="user-articles" role="tab" data-toggle="tab" aria-expanded="true"><i class="far fa-newspaper"></i><?php _e( 'User Articles', 'rehub_framework' ); ?></a> </li> <?php endif; ?> <?php if ( class_exists('Woocommerce') && in_array('product', $user_post_types) ) : ?> <li role="presentation"> <a href="#user-deals" aria-controls="user-deals" role="tab" data-toggle="tab" aria-expanded="true"><i class="far fa-tags"></i><?php _e( 'User Deals', 'rehub_framework' ); ?></a> </li> <?php endif; ?> <?php if( in_array('comments', $user_post_types) ) : ?> <li role="presentation"> <a href="#user-comments" aria-controls="user-comments" role="tab" data-toggle="tab" aria-expanded="false"><i class="far fa-comment"></i><?php _e( 'Comments', 'rehub_framework' ); ?></a> </li> <?php endif; ?> <?php do_action( 'rh_user_page_menutab_after', $author_ID ); ?> <?php if ( function_exists('bp_core_get_user_domain') ) : ?> <li> <a href="<?php echo bp_core_get_user_domain( $author_ID ); ?>"><i class="far fa-folder-open"></i><?php _e( 'Show full profile', 'rehub_framework' ); ?></a> </li> <?php endif; ?> </ul> </div> </div> </aside> <!-- /Sidebar --> <!-- Main Side --> <div class="main-side clearfix authorcontent tab-content"> <?php do_action( 'rh_user_page_tabpanel_before', $author_ID ); ?> <?php if( in_array('post', $user_post_types) ) : ?> <div role="tabpanel" class="tab-pane active" id="user-posts"> <div class="wpsm-title middle-size-title wpsm-cat-title"> <h5><span><?php _e( 'User Posts', 'rehub_framework' ); ?>:</span> <?php echo esc_html($author_name); ?></h5> </div> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php include(rh_locate_template('inc/parts/query_type1.php')); ?> <?php endwhile; ?> <?php rehub_pagination(); ?> <?php else : ?> <div class="no-posts"><?php _e( 'Sorry. Author have no posts yet', 'rehub_framework' ); ?></div> <?php endif; ?> <div class="clearfix"></div> </div> <?php endif; ?> <?php if( rehub_option('enable_blog_posttype') == '1' && in_array('blog', $user_post_types) ) : ?> <div role="tabpanel" class="tab-pane" id="user-articles"> <div class="wpsm-title middle-size-title wpsm-cat-title"> <h5><span><?php _e( 'User Articles', 'rehub_framework' ); ?>:</span> <?php echo esc_html($author_name); ?></h5> </div> <?php $args_articles = array( 'post_type' => 'blog', 'author' => $author_ID ); ?> <?php $articles = new WP_Query( $args_articles ); ?> <?php if ( $articles->have_posts() ) : ?> <?php while ( $articles->have_posts() ) : $articles->the_post(); ?> <?php include(rh_locate_template('inc/parts/query_type1.php')); ?> <?php endwhile; ?> <?php rehub_pagination(); ?> <?php else : ?> <div class="no-posts"><?php _e( 'Sorry. Author have no articles yet', 'rehub_framework' ); ?></div> <?php endif; wp_reset_postdata(); ?> <div class="clearfix"></div> </div> <?php endif; ?> <?php if ( class_exists('Woocommerce') && in_array('product', $user_post_types) ) : ?> <div role="tabpanel" class="tab-pane" id="user-deals"> <div class="wpsm-title middle-size-title wpsm-cat-title"> <h5><span><?php _e( 'User Deals', 'rehub_framework' ); ?>:</span> <?php echo esc_html($author_name); ?></h5> </div> <?php $args_products = array( 'post_type' => 'product', 'author' => $author_ID ); ?> <?php $deals = new WP_Query( $args_products ); ?> <?php if ( $deals->have_posts() ) : ?> <div class="woo_offer_list"> <?php while ( $deals->have_posts() ) : $deals->the_post(); ?> <?php include(rh_locate_template('inc/parts/woolistpart.php')); ?> <?php endwhile; ?> </div> <?php rehub_pagination(); ?> <?php else : ?> <div class="no-posts"><?php _e( 'Sorry. Author have no deals yet', 'rehub_framework' ); ?></div> <?php endif; wp_reset_postdata(); ?> <div class="clearfix"></div> </div> <?php endif; ?> <?php if( in_array('comments', $user_post_types) ) : ?> <div role="tabpanel" class="tab-pane" id="user-comments"> <div class="wpsm-title middle-size-title wpsm-cat-title"> <h5><span><?php _e('Browsing All Comments By', 'rehub_framework'); ?>:</span> <?php echo esc_html($author_name); ?></h5> </div> <ol class="commentlist"> <?php $comments_v = get_comments( array( 'user_id' => $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 ); ?> </ol> <div id='comments_pagination'> <?php paginate_comments_links( array( 'prev_text' => '«', 'next_text' => '»' ) ); ?> </div> <div class="clearfix"></div> </div> <?php endif; ?> <?php do_action( 'rh_user_page_tabpanel_after', $author_ID ); ?> </div> <!-- /Main Side --> </div> </div> <!-- /CONTENT --> <!-- FOOTER --> <?php get_footer(); ?>
[+]
..
[-] taxonomy-download_tag.php
[edit]
[+]
woocommerce
[-] comments.php
[edit]
[+]
jsonids
[-] header.php
[edit]
[-] taxonomy-blog_category.php
[edit]
[-] archive.php
[edit]
[-] page.php
[edit]
[-] taxonomy-dealstore.php
[edit]
[-] archive-blog.php
[edit]
[-] content-multi_category.php
[edit]
[+]
edd_templates
[-] index.php
[edit]
[-] sidebar.php
[edit]
[+]
wc-vendors
[+]
geo-my-wp
[-] template-timeline.php
[edit]
[+]
buddypress
[-] single.php
[edit]
[-] sidebar-shopinner.php
[edit]
[+]
functions
[-] wpml-config.xml
[edit]
[-] template-flipchart.php
[edit]
[+]
wcmp-vendor-membership
[+]
dokan
[-] catalogue_constructor.php
[edit]
[+]
js
[-] search.php
[edit]
[+]
bpge
[-] buddypress.php
[edit]
[-] style.css
[edit]
[-] functions.php
[edit]
[+]
rtmedia
[-] category.php
[edit]
[-] visual_builder.php
[edit]
[-] single-download.php
[edit]
[+]
images
[-] taxonomy-download_category.php
[edit]
[-] template-toprating.php
[edit]
[+]
inc
[+]
plugins
[-] archive-download.php
[edit]
[+]
mdf_templates
[+]
vafpress-framework
[+]
dc-product-vendor
[-] sidebar-shop.php
[edit]
[+]
admin
[-] template-topcharts.php
[edit]
[+]
lang
[+]
content-egg-templates
[+]
icons
[-] template-toptable.php
[edit]
[+]
css
[-] author.php
[edit]
[-] searchform.php
[edit]
[-] class-tgm-plugin-activation.php
[edit]
[-] screenshot.png
[edit]
[+]
shortcodes
[-] 404.php
[edit]
[-] template-fullwidth.php
[edit]
[-] ce-product-search.php
[edit]
[+]
amp
[-] template-meta-data-filter.php
[edit]
[-] template-mdtfoutput.php
[edit]
[-] taxonomy-blog_tag.php
[edit]
[-] footer.php
[edit]
[-] favorites_list.php
[edit]
[+]
affegg-templates
[-] rtl.css
[edit]