Changeset 540 for trunk/bp-core/bp-core-templatetags.php
- Timestamp:
- 11/13/2008 11:20:15 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-templatetags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r516 r540 30 30 foreach( (array) $bp['bp_nav'] as $nav_item ) { 31 31 /* If the current component matches the nav item id, then add a highlight CSS class. */ 32 if ( $bp['current_component'] == $nav_item['css_id'] && bp_is_home()) {32 if ( $bp['current_component'] == $nav_item['css_id'] ) { 33 33 $selected = ' class="current"'; 34 34 } else { … … 37 37 38 38 /* If we are viewing another person (current_userid does not equal loggedin_userid) 39 then check to see if the two users are friends. if they are, add a highligh CSS class39 then check to see if the two users are friends. if they are, add a highlight CSS class 40 40 to the friends nav item if it exists. */ 41 if ( !bp_is_home() ) {42 if ( function_exists('friends_ check_friendship') ) {41 if ( !bp_is_home() && $bp['current_userid'] ) { 42 if ( function_exists('friends_install') ) { 43 43 if ( friends_check_friendship( $bp['loggedin_userid'], $bp['current_userid'] ) && $nav_item['css_id'] == $bp['friends']['slug'] ) { 44 44 $selected = ' class="current"'; 45 } else { 45 } else { 46 46 $selected = ''; 47 47 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)