} ?> <?php /* Group creation step 4: Invite friends to group */ ?> <?php if (bp_is_group_creation_step('group-invites')) { ?> <?php do_action('bp_before_group_invites_creation_step'); ?> <?php if (bp_is_active('friends') && bp_get_total_friend_count(bp_loggedin_user_id())) { ?> <div class="left-menu"> <div id="invite-list"> <ul> <?php bp_new_group_invite_friend_list(); ?> </ul> <?php wp_nonce_field('groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user'); ?> </div>
/** * Output the total friend count for a given user. * * @param int $user_id See {@link friends_get_total_friend_count()}. */ function bp_total_friend_count($user_id = 0) { echo bp_get_total_friend_count($user_id); }
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_members_root_slug()); ?> "><?php printf(__('All Members <span>%s</span>', 'firmasite'), bp_get_total_member_count()); ?> </a></li> <?php if (is_user_logged_in() && bp_is_active('friends') && bp_get_total_friend_count(bp_loggedin_user_id())) { ?> <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/'; ?> "><?php printf(__('My Friends <span>%s</span>', 'firmasite'), bp_get_total_friend_count(bp_loggedin_user_id())); ?> </a></li> <?php } ?> <?php do_action('bp_members_directory_member_types'); ?> </ul> </div><!-- .item-list-tabs --> <div class="item-list-tabs" id="subnav" role="navigation">
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_members_root_slug()); ?> "><?php printf(__('All %1s <span>%2s</span>', 'buddypress'), ucfirst(buatp_get_dir_name()), bp_get_total_member_count()); ?> </a></li> <?php if (is_user_logged_in() && bp_is_active('friends') && bp_get_total_friend_count(bp_loggedin_user_id())) { ?> <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/'; ?> "><?php printf(__('My Friends <span>%s</span>', 'buddypress'), bp_get_total_friend_count(bp_loggedin_user_id())); ?> </a></li> <?php } ?> <?php do_action('bp_members_directory_member_types'); ?> </ul> </div><!-- .item-list-tabs --> <div class="item-list-tabs" id="subnav" role="navigation">
} ?> <?php /* Group creation step 4: Invite friends to group */ ?> <?php if (bp_is_group_creation_step('group-invites')) { ?> <?php do_action('bp_before_group_invites_creation_step'); ?> <?php if (function_exists('bp_get_total_friend_count') && bp_get_total_friend_count(bp_loggedin_user_id())) { ?> <div class="left-menu"> <div id="invite-list"> <ul> <?php bp_new_group_invite_friend_list(); ?> </ul> <?php wp_nonce_field('groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user'); ?> </div>
<?php do_action('bp_before_group_send_invites_content'); ?> <?php if (bp_get_total_friend_count(bp_loggedin_user_id())) { ?> <form action="<?php bp_group_send_invite_form_action(); ?> " method="post" id="send-invite-form" class="standard-form" role="main"> <div class="left-menu"> <div id="invite-list"> <ul> <?php bp_new_group_invite_friend_list(); ?> </ul> <?php nxt_nonce_field('groups_invite_uninvite_user', '_nxtnonce_invite_uninvite_user'); ?> </div> </div><!-- .left-menu --> <div class="main-column">
<li class="selected" id="members-all"><a href="<?php bp_root_domain(); ?> "><?php printf(__('All Members (%s)', 'buddypress'), bp_get_total_member_count()); ?> </a></li> <?php if (is_user_logged_in() && function_exists('bp_get_total_friend_count') && bp_get_total_friend_count(bp_loggedin_user_id())) { ?> <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_FRIENDS_SLUG . '/my-friends/'; ?> "><?php printf(__('My Friends (%s)', 'buddypress'), bp_get_total_friend_count(bp_loggedin_user_id())); ?> </a></li> <?php } ?> <?php do_action('bp_members_directory_member_types'); ?> <li id="members-order-select" class="last filter"> <?php _e('Order By:', 'buddypress'); ?>
<?php if (bp_is_active('friends')) { ?> <?php if (bp_get_total_friend_count(bp_loggedin_user_id())) { ?> <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?> " title="<?php _e('The activity of my friends only.', 'logicalboneshug'); ?> "><?php printf(__('My Friends <span>%s</span>', 'logicalboneshug'), bp_get_total_friend_count(bp_loggedin_user_id())); ?> </a></li> <?php } ?> <?php } ?> <?php do_action('bp_before_activity_type_tab_groups'); ?>
jQuery('#cblogin').click(function() { jQuery('.cbawardholder').hide(); jQuery('#Loggingin').fadeIn("slow"); return false; }) jQuery('#cbpoints').click(function() { jQuery('.cbawardholder').hide(); jQuery('#PointLevels').fadeIn("slow"); return false; }) jQuery('#cbspf').click(function() { jQuery('.cbawardholder').hide(); jQuery('#SPFForum').fadeIn("slow"); return false; }) }); </script> <div id="cpbpawards"> <?php global $wpdb, $bp; define('BBCPDB', $wpdb->prefix . 'bp_activity'); define('BBCPPOSTS', $wpdb->prefix . 'posts'); define('CUBEPTS3', $wpdb->prefix . 'cp'); $bp_cp_xgroups_created = $wpdb->get_var("SELECT COUNT(*) FROM " . BBCPDB . " WHERE type='created_group' AND user_id = " . $bp->displayed_user->id); if (function_exists('bp_get_total_friend_count')) { $bp_cp_total_friends = bp_get_total_friend_count(bp_displayed_user_id()); } else { $bp_cp_total_friends = 0; } $cp_bp_buddypress_update_results = $wpdb->get_var("SELECT COUNT(*) FROM " . BBCPDB . " WHERE type='activity_update' AND user_id = " . $bp->displayed_user->id); $cp_bp_buddypress_updatereply_results = $wpdb->get_var("SELECT COUNT(*) FROM " . BBCPDB . " WHERE type='activity_comment' AND user_id = " . $bp->displayed_user->id); $cp_bp_buddypress_forumtopic_results = $wpdb->get_var("SELECT COUNT(*) FROM " . BBCPDB . " WHERE type='new_forum_topic' AND user_id = " . $bp->displayed_user->id); $cp_bp_buddypress_forumreply_results = $wpdb->get_var("SELECT COUNT(*) FROM " . BBCPDB . " WHERE type='new_forum_post' AND user_id = " . $bp->displayed_user->id); $cp_bp_buddypress_blogposts_results = (int) $wpdb->get_var('SELECT COUNT(*) FROM `' . $wpdb->prefix . 'posts` where `post_type`=\'post\' and `post_status`=\'publish\' and `post_author`=' . $bp->displayed_user->id); $bp_award_bloggercatselector_cp_bp = get_option('bp_award_bloggercatselector_cp_bp'); $bp_award_bloggercatselector2_cp_bp = get_option('bp_award_bloggercatselector2_cp_bp'); $bp_award_bloggercatselector3_cp_bp = get_option('bp_award_bloggercatselector3_cp_bp'); $bp_award_bloggercatselector4_cp_bp = get_option('bp_award_bloggercatselector4_cp_bp'); $bp_award_bloggercatselector5_cp_bp = get_option('bp_award_bloggercatselector5_cp_bp'); $cp_bp_buddypress_blogpostscat1_results = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->posts} LEFT JOIN {$wpdb->term_relationships} ON({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id) LEFT JOIN {$wpdb->term_taxonomy} ON({$wpdb->term_relationships}.term_taxonomy_id = {$wpdb->term_taxonomy}.term_taxonomy_id) WHERE {$wpdb->term_taxonomy}.term_id = '" . $bp_award_bloggercatselector_cp_bp . "' AND {$wpdb->term_taxonomy}.taxonomy = 'category' AND {$wpdb->posts}.post_status = 'publish' AND post_author = '" . $bp->displayed_user->id . "'"); $cp_bp_buddypress_blogpostscat2_results = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->posts} LEFT JOIN {$wpdb->term_relationships} ON({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id) LEFT JOIN {$wpdb->term_taxonomy} ON({$wpdb->term_relationships}.term_taxonomy_id = {$wpdb->term_taxonomy}.term_taxonomy_id) WHERE {$wpdb->term_taxonomy}.term_id = '" . $bp_award_bloggercatselector2_cp_bp . "' AND {$wpdb->term_taxonomy}.taxonomy = 'category' AND {$wpdb->posts}.post_status = 'publish' AND post_author = '" . $bp->displayed_user->id . "'");
do_action('bp_before_activity_type_tab_friends'); ?> <?php if (bp_is_active('friends')) { ?> <?php if (bp_get_total_friend_count(bp_loggedin_user_id())) { ?> <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?> "><?php printf(__('My Friends %s', 'buddypress'), '<span>' . bp_get_total_friend_count(bp_loggedin_user_id()) . '</span>'); ?> </a></li> <?php } ?> <?php } ?> <?php /** * Fires before the listing of groups activity type tab. *
<ul id="directory-actions" class="directory-tabs"> <li class="selected" id="members-all"><a href="<?php echo trailingslashit(SITEURL . '/' . bp_get_members_root_slug()); ?> ">All Members<span><?php echo bp_get_total_member_count(); ?> </span></a></li> <?php if (is_user_logged_in()) { ?> <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/'; ?> ">My Friends<span><?php echo bp_get_total_friend_count(); ?> </span></a></li> <?php } ?> </ul> </nav><!-- #directory-nav --> <?php do_action('template_notices'); ?> <header class="reply-header" id="subnav" role="navigation"> <div class="directory-member">Member</div>
<li class="selected" id="members-all"><a href="<?php bp_members_directory_permalink(); ?> "><?php printf(__('All Members %s', 'wonderflux'), '<span>' . bp_get_total_member_count() . '</span>'); ?> </a></li> <?php if (is_user_logged_in() && bp_is_active('friends') && bp_get_total_friend_count(bp_loggedin_user_id())) { ?> <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/'; ?> "><?php printf(__('My Friends %s', 'wonderflux'), '<span>' . bp_get_total_friend_count(bp_loggedin_user_id()) . '</span>'); ?> </a></li> <?php } ?> <?php /** * Fires inside the members directory member types. * * @since 1.2.0 */ do_action('bp_members_directory_member_types'); ?>
<?php if (bp_is_active('friends')) { ?> <?php if (bp_get_total_friend_count(bp_loggedin_user_id())) { ?> <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?> " title="<?php _e('The activity of my friends only.', 'wplms_modern'); ?> "><?php printf(__('My Friends <span>%s</span>', 'wplms_modern'), bp_get_total_friend_count(bp_loggedin_user_id())); ?> </a></li> <?php } ?> <?php } ?> <?php do_action('bp_before_activity_type_tab_groups'); ?>
<?php do_action( 'template_notices' ) ?> <div class="item-list-tabs activity-type-tabs"> <ul> <?php do_action( 'bp_before_activity_type_tab_all' ) ?> <li class="selected" id="activity-all"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' ?>" title="<?php _e( 'The public activity for everyone on this site.', 'buddypress' ) ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_site_member_count() ) ?></a></li> <?php if ( is_user_logged_in() ) : ?> <?php do_action( 'bp_before_activity_type_tab_friends' ) ?> <?php if ( function_exists( 'bp_get_total_friend_count' ) ) : ?> <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_FRIENDS_SLUG . '/' ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ) ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li> <?php endif; ?> <?php endif; ?> <?php do_action( 'bp_before_activity_type_tab_groups' ) ?> <?php if ( function_exists( 'bp_get_total_group_count_for_user' ) ) : ?> <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_GROUPS_SLUG . '/' ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?>"><?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> <?php endif; ?> <?php endif; ?> <?php do_action( 'bp_before_activity_type_tab_favorites' ) ?> <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?> <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/favorites/' ?>" title="<?php _e( "The activity I've marked as a favorite.", 'buddypress' ) ?>"><?php printf( __( 'My Favorites (<span>%s</span>)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?></a></li>
<?php if (bp_is_active('friends')) { ?> <?php if (bp_get_total_friend_count(bp_loggedin_user_id())) { ?> <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?> " title="<?php _e('The activity of my friends only.', 'T20'); ?> "><?php printf(__('My Friends <span>%s</span>', 'T20'), number_format_i18n(bp_get_total_friend_count(bp_loggedin_user_id()))); ?> </a></li> <?php } ?> <?php } ?> <?php do_action('bp_before_activity_type_tab_groups'); ?>