Changeset 1982
- Timestamp:
- 09/28/2009 10:49:53 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
bp-core.php (modified) (3 diffs)
-
bp-core/deprecated/bp-core-deprecated.php (modified) (1 diff)
-
bp-groups.php (modified) (2 diffs)
-
bp-themes/bp-sn-parent/_inc/ajax.php (modified) (1 diff)
-
bp-themes/bp-sn-parent/profile/profile-menu.php (modified) (1 diff)
-
bp-themes/bp-sn-parent/userbar.php (modified) (1 diff)
-
bp-themes/deprecated/bpmember/activity/just-me.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r1980 r1982 572 572 */ 573 573 function bp_core_get_displayed_userid( $user_login ) { 574 return apply_filters( 'bp_core_get_displayed_userid', bp_core_get_userid _from_user_login( $user_login ) );574 return apply_filters( 'bp_core_get_displayed_userid', bp_core_get_userid( $user_login ) ); 575 575 } 576 576 … … 584 584 */ 585 585 function bp_core_new_nav_item( $args = '' ) { 586 global $bp, $temp_nav; 587 588 $temp_nav[] = $args; 589 586 global $bp; 587 590 588 $defaults = array( 591 589 'name' => false, // Display name for the nav item … … 639 637 } 640 638 639 /** 640 * bp_core_new_nav_default() 641 * 642 * Modify the default subnav item to load when a top level nav item is clicked. 643 * 644 * @package BuddyPress Core 645 * @global $bp The global BuddyPress settings variable created in bp_core_setup_globals() 646 */ 647 function bp_core_new_nav_default( $args = '' ) { 648 global $bp; 649 650 $defaults = array( 651 'parent_slug' => false, // Slug of the parent 652 'screen_function' => false, // The name of the function to run when clicked 653 'subnav_slug' => false // The slug of the subnav item to select when clicked 654 ); 655 656 $r = wp_parse_args( $args, $defaults ); 657 extract( $r, EXTR_SKIP ); 658 659 if ( $bp->current_component == $parent_slug && !$bp->current_action ) { 660 if ( !is_object( $screen_function[0] ) ) 661 add_action( 'wp', $screen_function, 3 ); 662 else 663 add_action( 'wp', array( &$screen_function[0], $screen_function[1] ), 3 ); 664 665 if ( $subnav_slug ) 666 $bp->current_action = $subnav_slug; 667 } 668 } 641 669 642 670 /** -
trunk/bp-core/deprecated/bp-core-deprecated.php
r1981 r1982 940 940 } 941 941 942 /* DEPRECATED - use the param 'default_subnav_slug' in bp_core_new_nav_item() */942 /* DEPRECATED - use the param 'default_subnav_slug' in bp_core_new_nav_item() OR bp_core_new_nav_default() */ 943 943 function bp_core_add_nav_default( $parent_id, $function, $slug = false, $user_has_access = true, $admin_only = false ) { 944 944 global $bp; -
trunk/bp-groups.php
r1976 r1982 261 261 262 262 /* Add a new default subnav item for when the groups nav is selected. */ 263 bp_core_ add_nav_default( $bp->groups->slug, 'groups_screen_group_home', 'home');263 bp_core_new_nav_default( array( 'parent_slug' => $bp->groups->slug, 'screen_function' => 'groups_screen_group_home', 'subnav_slug' => 'home' ) ); 264 264 265 265 /* Add the "Home" subnav item, as this will always be present */ … … 299 299 global $bp; 300 300 301 if ( $bp->current_component == $bp->groups->slug && empty( $bp->current_action ) ) {301 if ( $bp->current_component == $bp->groups->slug && empty( $bp->current_action ) && empty( $bp->current_item ) ) { 302 302 $bp->is_directory = true; 303 303 -
trunk/bp-themes/bp-sn-parent/_inc/ajax.php
r1942 r1982 304 304 $ud = get_userdata($user_id); 305 305 $username = $ud->user_login; 306 echo bp_core_ get_avatar( $user_id, 1, 15, 15) . ' ' . bp_core_get_user_displayname( $user_id ) . ' (' . $username . ')306 echo bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'thumb', 'width' => 15, 'height' => 15 ) ) . ' ' . bp_core_get_user_displayname( $user_id ) . ' (' . $username . ') 307 307 '; 308 308 } -
trunk/bp-themes/bp-sn-parent/profile/profile-menu.php
r1905 r1982 1 1 <?php do_action( 'bp_before_profile_menu' ) ?> 2 2 3 <?php bp_ the_avatar() ?>3 <?php bp_displayed_user_avatar( 'type=full' ) ?> 4 4 5 5 <div class="button-block"> -
trunk/bp-themes/bp-sn-parent/userbar.php
r1938 r1982 9 9 10 10 <p class="avatar"> 11 <?php bp_loggedin user_avatar_thumbnail() ?>11 <?php bp_loggedin_user_avatar( 'type=thumb' ) ?> 12 12 </p> 13 13 -
trunk/bp-themes/deprecated/bpmember/activity/just-me.php
r1905 r1982 9 9 10 10 <div class="left-menu"> 11 <?php bp_ the_avatar() ?>11 <?php bp_displayed_user_avatar() ?> 12 12 13 13 <div class="button-block">
Note: See TracChangeset
for help on using the changeset viewer.