Changeset 9889
- Timestamp:
- 05/21/2015 08:54:25 PM (10 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 1 added
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-admin.php
r9857 r9889 17 17 * @package BuddyPress 18 18 * @subpackage CoreAdministration 19 * @todo Break this apart into each applicable Component 19 20 * 20 21 * @since BuddyPress (1.6.0) … … 159 160 160 161 // Add a description of new BuddyPress tools in the available tools page 161 add_action( 'tool_box', 'bp_core_admin_available_tools_intro' );162 add_action( 'tool_box', 'bp_core_admin_available_tools_intro' ); 162 163 add_action( 'bp_network_tool_box', 'bp_core_admin_available_tools_intro' ); 163 164 … … 315 316 316 317 // Add the main section 317 add_settings_section( 'bp_main', __( 'Main Settings', 'buddypress' ), 'bp_admin_setting_callback_main_section', 'buddypress');318 add_settings_section( 'bp_main', __( 'Main Settings', 'buddypress' ), 'bp_admin_setting_callback_main_section', 'buddypress' ); 318 319 319 320 // Hide toolbar for logged out users setting 320 add_settings_field( 'hide-loggedout-adminbar', __( 'Toolbar', 'buddypress' ), 'bp_admin_setting_callback_admin_bar','buddypress', 'bp_main' );321 register_setting ( 'buddypress', 'hide-loggedout-adminbar', 'intval');321 add_settings_field( 'hide-loggedout-adminbar', __( 'Toolbar', 'buddypress' ), 'bp_admin_setting_callback_admin_bar', 'buddypress', 'bp_main' ); 322 register_setting( 'buddypress', 'hide-loggedout-adminbar', 'intval' ); 322 323 323 324 // Only show 'switch to Toolbar' option if the user chose to retain the BuddyBar during the 1.6 upgrade … … 329 330 // Allow account deletion 330 331 add_settings_field( 'bp-disable-account-deletion', __( 'Account Deletion', 'buddypress' ), 'bp_admin_setting_callback_account_deletion', 'buddypress', 'bp_main' ); 331 register_setting ( 'buddypress', 'bp-disable-account-deletion', 'intval');332 register_setting( 'buddypress', 'bp-disable-account-deletion', 'intval' ); 332 333 333 334 /** XProfile Section **************************************************/ … … 342 343 343 344 // Profile sync setting 344 add_settings_field( 'bp-disable-profile-sync', __( 'Profile Syncing', 'buddypress' ), 'bp_admin_setting_callback_profile_sync', 345 register_setting ( 'buddypress', 'bp-disable-profile-sync', 'intval');345 add_settings_field( 'bp-disable-profile-sync', __( 'Profile Syncing', 'buddypress' ), 'bp_admin_setting_callback_profile_sync', 'buddypress', 'bp_xprofile' ); 346 register_setting ( 'buddypress', 'bp-disable-profile-sync', 'intval' ); 346 347 } 347 348 … … 351 352 352 353 // Add the main section 353 add_settings_section( 'bp_groups', __( 'Groups Settings', 'buddypress' ), 'bp_admin_setting_callback_groups_section', 'buddypress');354 add_settings_section( 'bp_groups', __( 'Groups Settings', 'buddypress' ), 'bp_admin_setting_callback_groups_section', 'buddypress' ); 354 355 355 356 // Allow subscriptions setting 356 add_settings_field( 'bp_restrict_group_creation', __( 'Group Creation', 357 register_setting ( 'buddypress', 'bp_restrict_group_creation', 'intval');357 add_settings_field( 'bp_restrict_group_creation', __( 'Group Creation', 'buddypress' ), 'bp_admin_setting_callback_group_creation', 'buddypress', 'bp_groups' ); 358 register_setting( 'buddypress', 'bp_restrict_group_creation', 'intval' ); 358 359 359 360 // Allow group avatars. … … 367 368 368 369 // Add the main section 369 add_settings_section( 'bp_forums', __( 'Legacy Group Forums', 'buddypress' ), 'bp_admin_setting_callback_bbpress_section', 'buddypress');370 add_settings_section( 'bp_forums', __( 'Legacy Group Forums', 'buddypress' ), 'bp_admin_setting_callback_bbpress_section', 'buddypress' ); 370 371 371 372 // Allow subscriptions setting 372 373 add_settings_field( 'bb-config-location', __( 'bbPress Configuration', 'buddypress' ), 'bp_admin_setting_callback_bbpress_configuration', 'buddypress', 'bp_forums' ); 373 register_setting ( 'buddypress', 'bb-config-location', '');374 register_setting( 'buddypress', 'bb-config-location', '' ); 374 375 } 375 376 … … 379 380 380 381 // Add the main section 381 add_settings_section( 'bp_activity', __( 'Activity Settings', 'buddypress' ), 'bp_admin_setting_callback_activity_section', 'buddypress');382 add_settings_section( 'bp_activity', __( 'Activity Settings', 'buddypress' ), 'bp_admin_setting_callback_activity_section', 'buddypress' ); 382 383 383 384 // Activity commenting on blog and forum posts … … 391 392 // Allow activity akismet 392 393 if ( is_plugin_active( 'akismet/akismet.php' ) && defined( 'AKISMET_VERSION' ) ) { 393 add_settings_field( '_bp_enable_akismet', __( 'Akismet', 394 register_setting ( 'buddypress', '_bp_enable_akismet', 'intval');394 add_settings_field( '_bp_enable_akismet', __( 'Akismet', 'buddypress' ), 'bp_admin_setting_callback_activity_akismet', 'buddypress', 'bp_activity' ); 395 register_setting( 'buddypress', '_bp_enable_akismet', 'intval' ); 395 396 } 396 397 } … … 546 547 </div> 547 548 548 <hr />549 550 549 <?php endif; ?> 551 550 552 <div class="changelog headline-feature"> 553 <h2><?php esc_html_e( 'Member Types', 'buddypress' ); ?></h2> 551 <div class="headline-feature"> 552 <h3><?php esc_html_e( 'Upload Avatars with a Drag and a Drop', 'buddypress' ); ?></h3> 553 554 554 <div class="featured-image"> 555 <img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/admin/images/ member-types.png' ); ?>" alt="<?php esc_attr_e( 'Member types metabox', 'buddypress' ); ?>">555 <img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/admin/images/avatar-ui.gif' ); ?>" alt="<?php esc_attr_e( 'Revamped Avatar Upload UI', 'buddypress' ); ?>"> 556 556 </div> 557 557 558 558 <div class="feature-section"> 559 <h3><?php esc_html_e( 'Native APIs for crafting great new member experiences.', 'buddypress' ); ?></h3> 560 <p><?php esc_html_e( 'Registering member types finally enables a strict separation of different and explicit types of community members.', 'buddypress' ); ?></p> 561 <p><?php esc_html_e( 'This amazing new feature is available to plugin developers starting with BuddyPress 2.2', 'buddypress' ); ?></p> 562 <p><a href="https://codex.buddypress.org/developer/member-types/"><?php esc_html_e( 'Learn more →', 'buddypress' ); ?></a></p> 559 <h3><?php esc_html_e( 'Built with the Attachments API, the new foundation for BuddyPress media management.', 'buddypress' ); ?></h3> 560 <p><?php esc_html_e( 'You can drag and drop any image you choose to upload as your profile photo. The interface is mobile-ready and now includes integration with phone or laptop cameras. This is an example of what can be developed using the new Attachments API, the long-awaited foundation for media-related BuddyPress components and features.', 'buddypress' ); ?> <a href="https://codex.buddypress.org/plugindev/bp_attachment/"><?php esc_html_e( 'Learn more →', 'buddypress' ); ?></a></p> 563 561 </div> 564 562 … … 566 564 </div> 567 565 568 <hr /> 569 570 <div class="changelog feature-list finer-points"> 566 <div class="feature-list finer-points"> 571 567 <h2><?php esc_html_e( 'The Finer Points', 'buddypress' ); ?></h2> 572 568 573 569 <div class="feature-section col two-col"> 574 570 <div> 575 <span class=" dashicons dashicons-admin- post"></span>576 <h4><?php esc_html_e( ' Post Types Activities', 'buddypress' ); ?></h4>577 <p><?php esc_html_e( ' Register custom post types so they appear as activity stream items, complete with custom verbiage.', 'buddypress' ); ?></p>571 <span class=" dashicons dashicons-admin-users"></span> 572 <h4><?php esc_html_e( 'Member Type Directories', 'buddypress' ); ?></h4> 573 <p><?php esc_html_e( 'Create directories of member types in your site using the Member Type API.', 'buddypress' ); ?></p> 578 574 </div> 579 575 580 576 <div class="template-pack last-feature"> 581 577 <span class=" dashicons dashicons-admin-appearance"></span> 582 <h4><?php esc_html_e( ' Template Pack', 'buddypress' ); ?></h4>583 <p><?php esc_html_e( ' The Legacy template pack is now more responsive and accommodating to more WordPress themes.', 'buddypress' ); ?></p>578 <h4><?php esc_html_e( 'Core Theme Companion Styling', 'buddypress' ); ?></h4> 579 <p><?php esc_html_e( 'Improved integration of components in WordPress core themes Twenty Fifteen and Twenty Fourteen.', 'buddypress' ); ?></p> 584 580 </div> 585 581 586 582 <div class="group-invites"> 587 <span class=" dashicons dashicons- editor-code"></span>588 <h4><?php esc_html_e( ' Message Meta', 'buddypress' ); ?></h4>589 <p><?php esc_html_e( ' Private message conversations made infinitely more flexible with an additional metadata table.', 'buddypress' ); ?></p>583 <span class=" dashicons dashicons-admin-post"></span> 584 <h4><?php esc_html_e( 'Blog Post Activity', 'buddypress' ); ?></h4> 585 <p><?php esc_html_e( 'Generate better excerpts in the activity streams for posts containing images or other embedded media content.', 'buddypress' ); ?></p> 590 586 </div> 591 587 592 588 <div class="last-feature"> 593 <span class=" dashicons dashicons- heart"></span>594 <h4><?php esc_html_e( ' WordPress 3.6 - 4.1', 'buddypress' ); ?></h4>595 <p><?php esc_html_e( ' We support a wide range of WordPress versions, even though you should always stay up-to-date.', 'buddypress' ); ?></p>589 <span class=" dashicons dashicons-star-filled"></span> 590 <h4><?php esc_html_e( 'Star Private Messages ', 'buddypress' ); ?></h4> 591 <p><?php esc_html_e( 'Mark important messages in your inbox from your friends with a star.', 'buddypress' ); ?></p> 596 592 </div> 597 593 </div> 598 594 </div> 599 595 600 <hr /> 601 602 <div class="changelog feature-list"> 596 <div class="feature-list"> 603 597 <h2><?php esc_html_e( 'Under the Hood', 'buddypress' ); ?></h2> 604 598 605 599 <div class="feature-section col two-col"> 606 600 <div> 607 <h4><?php esc_html_e( 'Comp lex Activity Queries', 'buddypress' ); ?></h4>608 <p><?php esc_html_e( ' Metadata, multiple scopes, actions, post types, and more are now easily queried using core APIs and functionality.', 'buddypress' ); ?></p>601 <h4><?php esc_html_e( 'Components can register new features', 'buddypress' ); ?></h4> 602 <p><?php esc_html_e( 'Plugin developers can register new features or check if a component feature is registered using the `BP_Component` class.', 'buddypress' ); ?></p> 609 603 610 604 <h4><?php esc_html_e( 'Cache Improvements', 'buddypress' ); ?></h4> 611 <p><?php esc_html_e( ' We now properly group and cache several different types of queries and objects, with an emphasis on multi-network environments.', 'buddypress' ); ?></p>605 <p><?php esc_html_e( 'Improved cacheing for the following components: Messages, Profiles, Members & Member Types, and Friends.', 'buddypress' ); ?></p> 612 606 </div> 613 607 <div class="last-feature"> … … 615 609 <p><?php esc_html_e( 'Continued improvements to inline code documentation make it easier for developers to understand how BuddyPress works.', 'buddypress' ); ?></p> 616 610 617 <h4><?php esc_html_e( ' And so Much More', 'buddypress' ); ?></h4>618 <p><?php esc_html_e( ' With over 130 bugs squashed and constant attention to improving unit-test coverage, we think this version is just the bee’s knees.', 'buddypress' ); ?></p>611 <h4><?php esc_html_e( 'User Documentation', 'buddypress' ); ?></h4> 612 <p><?php esc_html_e( 'The BuddyPress Codex is maintained and updated regularly with new articles and tutorials.', 'buddypress' ); ?></p> 619 613 </div> 620 614 </div> 621 615 </div> 616 617 <p><?php esc_html_e( 'Official:', 'buddypress' ); ?> <a href="https://buddypress.org/blog/"><?php esc_html_e( 'News', 'buddypress' ); ?></a> • <a href="https://buddypress.org/suppport/"><?php esc_html_e( 'Support', 'buddypress' ); ?></a> • <a href="https://codex.buddypress.org/"><?php esc_html_e( 'Documentation', 'buddypress' ); ?></a> • <a href="https://bpdevel.wordpress.com/"><?php esc_html_e( 'Development Blog', 'buddypress' ); ?></a></p> 618 <p><?php esc_html_e( 'Twitter:', 'buddypress' ); ?> <a href="https://twitter.com/buddypress/"><?php esc_html_e( 'BuddyPress', 'buddypress' ); ?></a> • <a href="https://twitter.com/bptrac/"><?php esc_html_e( 'BuddyPress Trac', 'buddypress' ); ?></a> • <a href="https://twitter.com/buddypressdev/"><?php esc_html_e( 'BuddyPress Dev', 'buddypress' ); ?></a></p> 622 619 623 620 <?php
Note: See TracChangeset
for help on using the changeset viewer.