Changeset 5868
- Timestamp:
- 02/28/2012 10:05:51 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-loader.php
r5705 r5868 201 201 202 202 /** 203 * Set up the adminbar203 * Set up the Toolbar 204 204 * 205 205 * @since 1.5.0 -
trunk/bp-blogs/bp-blogs-loader.php
r5770 r5868 133 133 134 134 /** 135 * Set up the adminbar135 * Set up the Toolbar 136 136 * 137 137 * @global obj $bp -
trunk/bp-core/admin/bp-core-update.php
r5754 r5868 77 77 // New for BP 1.6 78 78 if ( bp_get_db_version_raw() < 5222 && !defined( 'BP_USE_WP_ADMIN_BAR' ) ) { 79 $steps[] = __( ' Admin Bar', 'buddypress' );79 $steps[] = __( 'Toolbar', 'buddypress' ); 80 80 } 81 81 … … 217 217 break; 218 218 219 case __( ' Admin Bar', 'buddypress' ) :219 case __( 'Toolbar', 'buddypress' ) : 220 220 $this->step_admin_bar(); 221 221 break; … … 655 655 656 656 /** 657 * When upgrading to BP 1.6, prompt the admin to switch to WordPress' adminbar.657 * When upgrading to BP 1.6, prompt the admin to switch to WordPress' Toolbar. 658 658 * 659 659 * @since 1.6 … … 662 662 ?> 663 663 664 <p><?php _e( "BuddyPress now uses WordPress' Admin Bar; this sits at the top of your site and contains various links to useful admin screens. We've turbo-charged the Admin Bar by adding social items to help your users explore your site, and manage their content.", 'buddypress' ); ?></p>664 <p><?php _e( "BuddyPress now uses WordPress' Toolbar; this sits at the top of your site and contains various links to useful admin screens. We've turbo-charged the Toolbar by adding social items to help your users explore your site, and manage their content.", 'buddypress' ); ?></p> 665 665 666 666 <p><?php _e( "We've noticed that your site uses the old bar from earlier versions of BuddyPress.", 'buddypress' ); ?></p> … … 669 669 <label> 670 670 <input type="checkbox" name="keep_buddybar" value="1" /> 671 <?php _e( "If you'd prefer to not switch to the WordPress Adminbar just yet, check this box. Don't worry, you can change your mind later.", 'buddypress' ); ?>671 <?php _e( "If you'd prefer to not switch to the WordPress Toolbar just yet, check this box. Don't worry, you can change your mind later.", 'buddypress' ); ?> 672 672 </label> 673 673 </p> … … 936 936 937 937 /** 938 * When upgrading to BP 1.6, the admin is prompted to switch to WordPress' adminbar.938 * When upgrading to BP 1.6, the admin is prompted to switch to WordPress' Toolbar. 939 939 * If they choose not to, record that preference in the options table. 940 940 * -
trunk/bp-core/bp-core-actions.php
r5848 r5868 135 135 136 136 /** 137 * Set up BuddyPress implementation of the WP adminbar137 * Set up BuddyPress implementation of the WP Toolbar 138 138 */ 139 139 function bp_setup_admin_bar() { -
trunk/bp-core/bp-core-admin.php
r5846 r5868 312 312 313 313 // Throttle setting 314 add_settings_field( '_bp_admin_bar', __( ' Admin Bar', 'buddypress' ), 'bp_admin_setting_callback_admin_bar', 'buddypress', 'bp_main' );314 add_settings_field( '_bp_admin_bar', __( 'Toolbar', 'buddypress' ), 'bp_admin_setting_callback_admin_bar', 'buddypress', 'bp_main' ); 315 315 register_setting ( 'buddypress', '_bp_admin_bar', 'intval' ); 316 316 -
trunk/bp-core/bp-core-adminbar.php
r5867 r5868 2 2 3 3 /** 4 * BuddyPress Core Admin Bar4 * BuddyPress Core Toolbar 5 5 * 6 * Handles the core functions related to the WordPress Admin Bar6 * Handles the core functions related to the WordPress Toolbar 7 7 * 8 8 * @package BuddyPress … … 45 45 46 46 /** 47 * Handle the Admin Bar CSS47 * Handle the Toolbar CSS 48 48 * 49 49 * @since BuddyPress 1.5 … … 54 54 return; 55 55 56 // Adminbar styles56 // Toolbar styles 57 57 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 58 58 $stylesheet = BP_PLUGIN_URL . 'bp-core/css/admin-bar.dev.css'; -
trunk/bp-core/bp-core-buddybar.php
r5758 r5868 429 429 } 430 430 431 // **** Default BuddyPress adminbar logo ********431 // **** Default BuddyPress Toolbar logo ******** 432 432 function bp_adminbar_logo() { 433 433 echo '<a href="' . bp_get_root_domain() . '" id="admin-bar-logo">' . get_blog_option( bp_get_root_blog_id(), 'blogname' ) . '</a>'; … … 552 552 553 553 /** 554 * Retrieve the adminbar display preference of a user based on context.554 * Retrieve the Toolbar display preference of a user based on context. 555 555 * 556 556 * This is a direct copy of WP's private _get_admin_bar_pref() … … 563 563 * @uses get_user_option() 564 564 * 565 * @return bool Whether the adminbar should be showing for this user.565 * @return bool Whether the Toolbar should be showing for this user. 566 566 */ 567 567 function bp_get_admin_bar_pref( $context, $user = 0 ) { … … 574 574 575 575 /** 576 * Handle the Admin Bar/BuddyBar business576 * Handle the Toolbar/BuddyBar business 577 577 * 578 578 * @since 1.2.0 … … 594 594 global $wp_version; 595 595 596 // Don't show if adminbar is disabled for non-logged in users596 // Don't show if Toolbar is disabled for non-logged in users 597 597 if ( (int) bp_get_option( 'hide-loggedout-adminbar' ) ) 598 598 return; 599 599 600 // Show the WordPress adminbar600 // Show the WordPress Toolbar 601 601 if ( bp_use_wp_admin_bar() && $wp_version >= 3.1 ) { 602 // Respect user's adminbar display preferences602 // Respect user's Toolbar display preferences 603 603 if ( is_user_logged_in() && ( bp_get_admin_bar_pref( 'front', bp_loggedin_user_id() ) || bp_get_admin_bar_pref( 'admin', bp_loggedin_user_id() ) ) ) 604 604 return; … … 606 606 show_admin_bar( true ); 607 607 608 // Hide the WordPress adminbar608 // Hide the WordPress Toolbar 609 609 } elseif ( !bp_use_wp_admin_bar() ) { 610 610 611 // Keep the WP adminbar from loading611 // Keep the WP Toolbar from loading 612 612 show_admin_bar( false ); 613 613 614 // Actions used to build the BP adminbar614 // Actions used to build the BP Toolbar 615 615 add_action( 'bp_adminbar_logo', 'bp_adminbar_logo' ); 616 616 add_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 ); … … 619 619 add_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu', 100 ); 620 620 621 // Actions used to append BP adminbar to footer621 // Actions used to append BP Toolbar to footer 622 622 add_action( 'wp_footer', 'bp_core_admin_bar', 8 ); 623 623 add_action( 'admin_footer', 'bp_core_admin_bar' ); -
trunk/bp-core/bp-core-component.php
r5472 r5868 61 61 62 62 /** 63 * @var array WordPress adminbar links63 * @var array WordPress Toolbar links 64 64 */ 65 65 var $admin_menu; … … 228 228 add_action( 'bp_setup_nav', array ( $this, 'setup_nav' ), 10 ); 229 229 230 // Setup WP Admin Bar menus230 // Setup WP Toolbar menus 231 231 add_action( 'bp_setup_admin_bar', array ( $this, 'setup_admin_bar' ), 10 ); 232 232 … … 275 275 276 276 /** 277 * Setup the adminbar277 * Setup the Toolbar 278 278 * 279 279 * @global obj $wp_admin_bar … … 290 290 return; 291 291 292 // Do we have adminbar menus to add?292 // Do we have Toolbar menus to add? 293 293 if ( !empty( $wp_admin_nav ) ) { 294 294 -
trunk/bp-core/bp-core-functions.php
r5827 r5868 931 931 932 932 /** 933 * Should we use the WP adminbar?934 * 935 * The WP Admin Bar, introduced in WP 3.1, is fully supported in BuddyPress as of BP 1.5.936 * For BP 1.6, the WP Admin Bar is the default.937 * 938 * @return bool False when WP Admin Bar support is disabled; true when enabled (default)933 * Should we use the WP Toolbar? 934 * 935 * The WP Toolbar, introduced in WP 3.1, is fully supported in BuddyPress as of BP 1.5. 936 * For BP 1.6, the WP Toolbar is the default. 937 * 938 * @return bool False when WP Toolbar support is disabled; true when enabled (default) 939 939 * @since 1.5 940 940 * @uses apply_filters() Filter 'bp_use_wp_admin_bar' to alter … … 943 943 $use_admin_bar = true; 944 944 945 // Has the WP Admin Bar constant been explicity set?945 // Has the WP Toolbar constant been explicity set? 946 946 if ( defined( 'BP_USE_WP_ADMIN_BAR' ) && ! BP_USE_WP_ADMIN_BAR ) 947 947 $use_admin_bar = false; -
trunk/bp-core/bp-core-options.php
r5754 r5868 54 54 'bp-disable-profile-sync' => false, 55 55 56 // Hide the adminbar for logged out users56 // Hide the Toolbar for logged out users 57 57 'hide-loggedout-adminbar' => false, 58 58 … … 382 382 383 383 /** 384 * Is the adminbar hidden for logged out users?384 * Is the Toolbar hidden for logged out users? 385 385 * 386 386 * @since BuddyPress (1.6) … … 388 388 * @param $default bool Optional.Default value true 389 389 * 390 * @uses bp_get_option() To get the logged out adminbar option391 * @return bool Is logged out adminbar enabled or not390 * @uses bp_get_option() To get the logged out Toolbar option 391 * @return bool Is logged out Toolbar enabled or not 392 392 */ 393 393 function bp_hide_loggedout_adminbar( $default = true ) { … … 453 453 454 454 /** 455 * Have we migrated to using the WordPress adminbar?455 * Have we migrated to using the WordPress Toolbar? 456 456 * 457 457 * @since BuddyPress (r3386) -
trunk/bp-forums/bp-forums-loader.php
r5705 r5868 168 168 169 169 /** 170 * Set up the adminbar170 * Set up the Toolbar 171 171 * 172 172 * @global obj $bp -
trunk/bp-friends/bp-friends-activity.php
r5729 r5868 66 66 67 67 /** 68 * Format the BuddyBar/ adminbar notifications for the Friends component68 * Format the BuddyBar/Toolbar notifications for the Friends component 69 69 * 70 70 * @package BuddyPress … … 74 74 * @param int $secondary_item_id The secondary item id 75 75 * @param int $total_items The total number of messaging-related notifications waiting for the user 76 * @param str $format 'string' for BuddyBar-compatible notifications; 'array' for WP Admin Bar76 * @param str $format 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar 77 77 */ 78 78 function friends_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { -
trunk/bp-friends/bp-friends-loader.php
r5705 r5868 130 130 131 131 /** 132 * Set up the adminbar132 * Set up the Toolbar 133 133 * 134 134 * @global obj $bp -
trunk/bp-groups/bp-groups-adminbar.php
r5689 r5868 2 2 3 3 /** 4 * BuddyPress Groups Admin Bar4 * BuddyPress Groups Toolbar 5 5 * 6 * Handles the groups functions related to the WordPress Admin Bar6 * Handles the groups functions related to the WordPress Toolbar 7 7 * 8 8 * @package BuddyPress -
trunk/bp-groups/bp-groups-loader.php
r5764 r5868 405 405 406 406 /** 407 * Set up the adminbar407 * Set up the Toolbar 408 408 * 409 409 * @global obj $bp -
trunk/bp-members/bp-members-adminbar.php
r5829 r5868 2 2 3 3 /** 4 * BuddyPress Members Admin Bar4 * BuddyPress Members Toolbar 5 5 * 6 * Handles the member functions related to the WordPress Admin Bar6 * Handles the member functions related to the WordPress Toolbar 7 7 * 8 8 * @package BuddyPress … … 17 17 * 18 18 * @since BuddyPress (r4151) 19 * @todo Deprecate WP 3.2 adminbar compatibility when we drop 3.2 support19 * @todo Deprecate WP 3.2 Toolbar compatibility when we drop 3.2 support 20 20 */ 21 21 function bp_members_admin_bar_my_account_menu() { -
trunk/bp-members/bp-members-buddybar.php
r5729 r5868 101 101 102 102 /** 103 * Adds an adminbar menu to any profile page providing site moderator actions103 * Adds an Toolbar menu to any profile page providing site moderator actions 104 104 * that allow capable users to clean up a users account. 105 105 * -
trunk/bp-messages/bp-messages-functions.php
r5729 r5868 217 217 218 218 /** 219 * Format the BuddyBar/ adminbar notifications for the Messages component219 * Format the BuddyBar/Toolbar notifications for the Messages component 220 220 * 221 221 * @package BuddyPress … … 225 225 * @param int $secondary_item_id The secondary item id 226 226 * @param int $total_items The total number of messaging-related notifications waiting for the user 227 * @param str $format 'string' for BuddyBar-compatible notifications; 'array' for WP Admin Bar227 * @param str $format 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar 228 228 */ 229 229 function messages_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { -
trunk/bp-messages/bp-messages-loader.php
r5705 r5868 157 157 158 158 /** 159 * Set up the adminbar159 * Set up the Toolbar 160 160 * 161 161 * @global obj $bp -
trunk/bp-settings/bp-settings-loader.php
r5829 r5868 146 146 147 147 /** 148 * Set up the adminbar148 * Set up the Toolbar 149 149 * 150 150 * @global obj $bp -
trunk/bp-themes/bp-default/_inc/css/default-rtl.css
r5822 r5868 28 28 5.1.1 - Activity Listing 29 29 5.1.2 - Activity Comments 30 5.2 - Admin Bar30 5.2 - Toolbar 31 31 5.3 - Ajax Loading 32 32 5.4 - Directories - Members, Groups, Blogs, Forums … … 553 553 554 554 /*-------------------------------------------------------------- 555 5.2 - Admin Bar555 5.2 - Toolbar 556 556 --------------------------------------------------------------*/ 557 557 /*-------------------------------------------------------------- -
trunk/bp-themes/bp-default/_inc/css/default.css
r5839 r5868 27 27 6.1.1 - Activity Listing 28 28 6.1.2 - Activity Comments 29 6.2 - Admin Bar29 6.2 - Toolbar 30 30 6.3 - Directories - Members, Groups, Blogs, Forums 31 31 6.4 - Error / Success Messages … … 1494 1494 1495 1495 /*-------------------------------------------------------------- 1496 6.2 - Admin Bar1496 6.2 - Toolbar 1497 1497 --------------------------------------------------------------*/ 1498 1498 #wp-admin-bar .padder { 1499 width: 95% !important; /* Line up the adminbar with the content body in this theme */1499 width: 95% !important; /* Line up the Toolbar with the content body in this theme */ 1500 1500 } 1501 1501 -
trunk/bp-themes/bp-default/_inc/global.js
r5822 r5868 1183 1183 }); 1184 1184 1185 /* Admin Bar & wp_list_pages Javascript IE6 hover class */1185 /* Toolbar & wp_list_pages Javascript IE6 hover class */ 1186 1186 jq("#wp-admin-bar ul.main-nav li, #nav li").mouseover( function() { 1187 1187 jq(this).addClass('sfhover'); -
trunk/bp-xprofile/bp-xprofile-loader.php
r5797 r5868 183 183 184 184 /** 185 * Set up the adminbar185 * Set up the Toolbar 186 186 * 187 187 * @global obj $bp
Note: See TracChangeset
for help on using the changeset viewer.