bp_friends_header_tabs

Displays Friends header tabs.

Description

bp_friends_header_tabs(); 

Usage

  1. if ( !function_exists( 'bp_friends_header_tabs' ) ) { 
  2. require_once '/bp-core/deprecated/1.6.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_friends_header_tabs(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/deprecated/1.6.php  
  1. function bp_friends_header_tabs() { 
  2. _deprecated_function( __FUNCTION__, '1.6', 'Since BuddyPress 1.2, BP has not supported ordering of friend lists by URL parameters.' ); 
  3. ?> 
  4.  
  5. <li<?php if ( !bp_action_variable( 0 ) || bp_is_action_variable( 'recently-active', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_friends_slug() . '/my-friends/recently-active' ) ?>"><?php _e( 'Recently Active', 'buddypress' ) ?></a></li> 
  6. <li<?php if ( bp_is_action_variable( 'newest', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_friends_slug() . '/my-friends/newest' ) ?>"><?php _e( 'Newest', 'buddypress' ) ?></a></li> 
  7. <li<?php if ( bp_is_action_variable( 'alphabetically', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_friends_slug() . '/my-friends/alphabetically' ) ?>"><?php _e( 'Alphabetically', 'buddypress' ) ?></a></li> 
  8.  
  9. <?php 
  10. do_action( 'friends_header_tabs' );