Changeset 516
- Timestamp:
- 11/08/2008 11:59:41 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
-
bp-core.php (modified) (2 diffs)
-
bp-core/bp-core-admin.php (added)
-
bp-core/bp-core-adminbar.php (modified) (1 diff)
-
bp-core/bp-core-cssjs.php (modified) (1 diff)
-
bp-core/bp-core-templatetags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r511 r516 47 47 /* Functions to handle and display the member and blog directory pages */ 48 48 require_once( 'bp-core/directories/bp-core-directory-members.php' ); 49 50 /* Functions to handle and display BuddyPress administration menus */ 51 require_once( 'bp-core/bp-core-admin.php' ); 49 52 50 53 … … 203 206 } 204 207 add_action( 'admin_menu', 'bp_core_check_installed' ); 208 209 210 function bp_core_add_admin_menu() { 211 global $wpdb, $bp; 212 213 if ( is_site_admin() ) { 214 /* Add the administration tab under the "Site Admin" tab for site administrators */ 215 add_submenu_page( 'wpmu-admin.php', __("BuddyPress", 'buddypress'), __("BuddyPress", 'buddypress'), 1, "bp_core_admin_settings", "bp_core_admin_settings" ); 216 } 217 } 218 add_action( 'admin_menu', 'bp_core_add_admin_menu' ); 219 205 220 206 221 /** -
trunk/bp-core/bp-core-adminbar.php
r508 r516 3 3 function bp_core_admin_bar() { 4 4 global $bp, $wpdb, $current_blog; 5 6 if ( !(int)get_site_option( 'show-loggedout-adminbar' ) && !is_user_logged_in() ) 7 return false; 5 8 6 9 echo '<div id="wp-admin-bar">'; -
trunk/bp-core/bp-core-cssjs.php
r508 r516 40 40 */ 41 41 function bp_core_add_css() { 42 wp_enqueue_style( 'bp-admin-bar', site_url() . '/wp-content/mu-plugins/bp-core/css/admin-bar.css' ); 42 if ( !(int)get_site_option( 'show-loggedout-adminbar' ) && is_user_logged_in() ) 43 wp_enqueue_style( 'bp-admin-bar', site_url() . '/wp-content/mu-plugins/bp-core/css/admin-bar.css' ); 43 44 44 45 /* If you want custom css styles, include a custom-styles.css file in /bp-core/css/custom-styles.css */ -
trunk/bp-core/bp-core-templatetags.php
r498 r516 54 54 55 55 /* Always add a log out list item to the end of the navigation */ 56 echo '<li><a id="wp-logout" href="' . site_url() . '/wp-login.php?action=logout&redirect_to=' . site_url() . '">Log Out</a><li>';56 echo '<li><a id="wp-logout" href="' . site_url() . '/wp-login.php?action=logout&redirect_to=' . site_url() . $_SERVER['REQUEST_URI'] . '">Log Out</a><li>'; 57 57 } 58 58
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)