if (bp_get_total_group_count_for_user(bp_loggedin_user_id())) { ?> <li data-id="activity-groups" data-text="→"> <?php $this->component()->render_content('groups'); ?> </li> <?php } ?> <?php } ?> <?php if (bp_get_total_favorite_count_for_user(bp_loggedin_user_id())) { ?> <li data-id="activity-tour-favorites" data-text="→"> <?php $this->component()->render_content('favorites'); ?> </li> <?php } ?> <li data-id="activity-mentions" data-text="→"> <?php $this->component()->render_content('mentions'); ?> </li>
<?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_get_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 } ?> <?php do_action('bp_before_activity_type_tab_mentions'); ?> <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?> " title="<?php
* Fires before the listing of favorites activity type tab. * * @since 1.2.0 */ 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_get_activity_slug() . '/favorites/'; ?> "><?php printf(__('My Favorites %s', 'buddypress'), '<span>' . bp_get_total_favorite_count_for_user(bp_loggedin_user_id()) . '</span>'); ?> </a></li> <?php } ?> <?php if (bp_activity_do_mentions()) { ?> <?php /** * Fires before the listing of mentions activity type tab. *
<?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_get_activity_slug() . '/favorites/'; ?> " title="<?php _e("The activity I've marked as a favorite.", 'logicalboneshug'); ?> "><?php printf(__('My Favorites <span>%s</span>', 'logicalboneshug'), bp_get_total_favorite_count_for_user(bp_loggedin_user_id())); ?> </a></li> <?php } ?> <?php do_action('bp_before_activity_type_tab_mentions'); ?> <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?> " title="<?php
/** * Echoes the total mention count for a specified user * * @since 1.2.0 * * @param int $user_id Defaults to 0 * * @uses bp_get_total_favorite_count_for_user() */ function bp_total_mention_count_for_user($user_id = 0) { echo bp_get_total_favorite_count_for_user($user_id); }
<?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_get_activity_slug() . '/favorites/'; ?> " title="<?php _e("The activity I've marked as a favorite.", 'wplms_modern'); ?> "><?php printf(__('My Favorites <span>%s</span>', 'wplms_modern'), bp_get_total_favorite_count_for_user(bp_loggedin_user_id())); ?> </a></li> <?php } ?> <?php if (bp_activity_do_mentions()) { ?> <?php do_action('bp_before_activity_type_tab_mentions'); ?>
*/ 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_get_activity_slug() . '/favorites/'; ?> " title="<?php esc_attr_e("The activity I've marked as a favorite.", 'wonderflux'); ?> "><?php printf(__('My Favorites %s', 'wonderflux'), '<span>' . bp_get_total_favorite_count_for_user(bp_loggedin_user_id()) . '</span>'); ?> </a></li> <?php } ?> <?php if (bp_activity_do_mentions()) { ?> <?php /** * Fires before the listing of mentions activity type tab. *
<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 endif; ?> <?php do_action( 'bp_before_activity_type_tab_mentions' ) ?> <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/mentions/' ?>" title="<?php _e( 'Activity that I have been mentioned in.', 'buddypress' ) ?>"><?php printf( __( '@%s Mentions', 'buddypress' ), bp_get_loggedin_user_username() ) ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( '(%s new)', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) ?></strong><?php endif; ?></a></li> <?php endif; ?> <?php do_action( 'bp_activity_type_tabs' ) ?> </ul> </div><!-- .item-list-tabs --> <div class="item-list-tabs no-ajax" id="subnav"> <ul> <li class="feed"><a href="<?php bp_sitewide_activity_feed_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ) ?></a></li>
<?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_get_activity_slug() . '/favorites/'; ?> " title="<?php _e("The activity I've marked as a favorite.", 'buddypress'); ?> "><?php printf(__('%s <span>%s</span>', 'buddypress'), $fav_tab_text, bp_get_total_favorite_count_for_user(bp_loggedin_user_id())); ?> </a></li> <?php } ?> <?php do_action('bp_before_activity_type_tab_mentions'); ?> <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?> " title="<?php