Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

BuddyPress 1.2.6. Default Theme activity/index.php lines 18-56

By: a guest on Oct 27th, 2010  |  syntax: PHP  |  size: 2.78 KB  |  views: 65  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <div class="item-list-tabs activity-type-tabs">
  2.         <ul>
  3.                 <?php do_action( 'bp_before_activity_type_tab_all' ) ?>
  4.  
  5.                 <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>
  6.  
  7.                 <?php if ( is_user_logged_in() ) : ?>
  8.  
  9.                         <?php do_action( 'bp_before_activity_type_tab_friends' ) ?>
  10.  
  11.                         <?php if ( function_exists( 'bp_get_total_friend_count' ) ) : ?>
  12.                                 <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
  13.                                         <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>
  14.                                 <?php endif; ?>
  15.                         <?php endif; ?>
  16.  
  17.                         <?php do_action( 'bp_before_activity_type_tab_groups' ) ?>
  18.  
  19.                         <?php if ( function_exists( 'bp_get_total_group_count_for_user' ) ) : ?>
  20.                                 <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
  21.                                         <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>
  22.                                 <?php endif; ?>
  23.                         <?php endif; ?>
  24.  
  25.                         <?php do_action( 'bp_before_activity_type_tab_favorites' ) ?>
  26.  
  27.                         <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
  28.                                 <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>
  29.                         <?php endif; ?>
  30.  
  31.                         <?php do_action( 'bp_before_activity_type_tab_mentions' ) ?>
  32.  
  33.                         <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>
  34.  
  35.                 <?php endif; ?>
  36.  
  37.                 <?php do_action( 'bp_activity_type_tabs' ) ?>
  38.         </ul>
  39. </div><!-- .item-list-tabs -->