Ticket #216: adminbar.patch
File adminbar.patch, 5.5 KB (added by , 16 years ago) |
---|
-
bp-friends.php
94 94 $friends_link = $bp['loggedin_domain'] . $bp['friends']['slug'] . '/'; 95 95 96 96 /* Add the subnav items to the friends nav item */ 97 bp_core_add_subnav_item( $bp['friends']['slug'], ' my-friends', __('My Friends', 'buddypress'), $friends_link, 'friends_screen_my_friends' );97 bp_core_add_subnav_item( $bp['friends']['slug'], 'friends-my-friends', __('My Friends', 'buddypress'), $friends_link, 'friends_screen_my_friends' ); 98 98 bp_core_add_subnav_item( $bp['friends']['slug'], 'requests', __('Requests', 'buddypress'), $friends_link, 'friends_screen_requests', false, bp_is_home() ); 99 99 //bp_core_add_subnav_item( $bp['friends']['slug'], 'invite-friend', __('Invite Friends', 'buddypress'), $friends_link, 'friends_screen_invite_friends' ); 100 100 … … 567 567 add_action( 'delete_user', 'bp_core_remove_data', 1 ); 568 568 569 569 570 ?> 571 No newline at end of file 570 ?> -
bp-activity.php
169 169 170 170 /* Add the subnav items to the activity nav item */ 171 171 bp_core_add_subnav_item( $bp['activity']['slug'], 'just-me', __('Just Me', 'buddypress'), $activity_link, 'bp_activity_screen_my_activity' ); 172 bp_core_add_subnav_item( $bp['activity']['slug'], ' my-friends', __('My Friends', 'buddypress'), $activity_link, 'bp_activity_screen_friends_activity', false, bp_is_home() );172 bp_core_add_subnav_item( $bp['activity']['slug'], 'activity-my-friends', __('My Friends', 'buddypress'), $activity_link, 'bp_activity_screen_friends_activity', false, bp_is_home() ); 173 173 174 174 if ( $bp['current_component'] == $bp['activity']['slug'] ) { 175 175 if ( bp_is_home() ) { … … 281 281 } 282 282 283 283 284 ?> 285 No newline at end of file 284 ?> -
bp-core/css/admin-bar.css
210 210 height: 55px !important; 211 211 } 212 212 213 #wp-admin-bar ul li# notifications_menu a span {213 #wp-admin-bar ul li#bp-admin-notifications_menu a span { 214 214 background: #fff !important; 215 215 padding: 0 6px !important; 216 216 color: #555 !important; … … 220 220 -khtml-border-radius: 2px !important; 221 221 -webkit-border-radius: 2px !important; 222 222 margin-left: 2px !important; 223 } 224 No newline at end of file 223 } -
bp-core/bp-core-adminbar.php
55 55 $alt = ( $counter % 2 == 0 ) ? ' class="alt"' : ''; 56 56 57 57 echo '<li' . $alt . '>'; 58 echo '<a id="' . $nav_item['css_id'] . '" href="' . $nav_item['link'] . '">' . $nav_item['name'] . '</a>';58 echo '<a id="' . 'bp-admin-'.$nav_item['css_id'] . '" href="' . $nav_item['link'] . '">' . $nav_item['name'] . '</a>'; 59 59 60 60 if ( is_array( $bp['bp_options_nav'][$nav_item['css_id']] ) ) { 61 61 echo '<ul>'; 62 62 $sub_counter = 0; 63 63 foreach( $bp['bp_options_nav'][$nav_item['css_id']] as $subnav_item ) { 64 64 $alt = ( $sub_counter % 2 == 0 ) ? ' class="alt"' : ''; 65 echo '<li' . $alt . '><a id="' . $subnav_item['css_id'] . '" href="' . $subnav_item['link'] . '">' . $subnav_item['name'] . '</a></li>';65 echo '<li' . $alt . '><a id="' . 'bp-admin-'. $subnav_item['css_id'] . '" href="' . $subnav_item['link'] . '">' . $subnav_item['name'] . '</a></li>'; 66 66 $sub_counter++; 67 67 } 68 68 echo '</ul>'; … … 75 75 76 76 $alt = ( $counter % 2 == 0 ) ? ' class="alt"' : ''; 77 77 78 echo '<li' . $alt . '><a id=" logout" href="' . site_url() . '/wp-login.php?action=logout">' . __('Log Out', 'buddypress') . '</a></li>';78 echo '<li' . $alt . '><a id="bp-admin-logout" href="' . site_url() . '/wp-login.php?action=logout">' . __('Log Out', 'buddypress') . '</a></li>'; 79 79 echo '</ul>'; 80 80 echo '</li>'; 81 81 } … … 158 158 if ( is_user_logged_in() ) { 159 159 global $bp; 160 160 161 echo '<li id=" notifications_menu"><a href="' . $bp['loggedin_domain'] . '">';161 echo '<li id="bp-admin-notifications_menu"><a href="' . $bp['loggedin_domain'] . '">'; 162 162 _e( 'Notifications', 'buddypress' ); 163 163 164 164 if ( $notifications = bp_core_get_notifications_for_user( $bp['loggedin_userid']) ) { ?> … … 232 232 233 233 <?php if ( function_exists('bp_blogs_install') ) : ?> 234 234 <li><a href="<?php echo $bp['root_domain'] . '/' . $bp['blogs']['slug'] . '/?random-blog' ?>"><?php _e( 'Random Blog', 'buddypress' ) ?></a></li> 235 236 235 <?php endif; ?> 237 236 </ul> 238 237 </li> 239 238 <?php 240 239 241 echo '</ul>';242 echo '</div>';240 // echo '</ul>'; 241 // echo '</div>'; 243 242 244 243 $doing_admin_bar = false; 245 244 } … … 254 253 255 254 add_action( 'wp_footer', 'bp_core_admin_bar' ); 256 255 257 ?> 258 No newline at end of file 256 ?> -
bp-core/bp-core-templatetags.php
49 49 } 50 50 51 51 /* echo out the final list item */ 52 echo '<li' . $selected . '><a id="' . $nav_item['css_id'] . '" href="' . $nav_item['link'] . '">' . $nav_item['name'] . '</a></li>';52 echo '<li' . $selected . '><a id="' . 'user-' . $nav_item['css_id'] . '" href="' . $nav_item['link'] . '">' . $nav_item['name'] . '</a></li>'; 53 53 } 54 54 55 55 /* Always add a log out list item to the end of the navigation */