diff --git src/bp-core/admin/bp-core-admin-functions.php src/bp-core/admin/bp-core-admin-functions.php
index e47889d2b..ff073f61e 100644
|
|
|
function bp_core_add_contextual_help( $screen = '' ) { |
| 693 | 693 | ); |
| 694 | 694 | break; |
| 695 | 695 | |
| | 696 | // Component page. |
| | 697 | case 'settings_page_bp-rewrites': |
| | 698 | // Help tabs. |
| | 699 | $screen->add_help_tab( |
| | 700 | array( |
| | 701 | 'id' => 'bp-rewrites-overview', |
| | 702 | 'title' => __( 'Overview', 'buddypress' ), |
| | 703 | 'content' => bp_core_add_contextual_help_content( 'bp-rewrites-overview' ), |
| | 704 | ) |
| | 705 | ); |
| | 706 | |
| | 707 | // Help panel - sidebar links. |
| | 708 | $screen->set_help_sidebar( |
| | 709 | '<p><strong>' . __( 'For more information:', 'buddypress' ) . '</strong></p>' . |
| | 710 | '<p>' . __( '<a href="https://codex.buddypress.org/getting-started/configure-components/">Managing Components</a>', 'buddypress' ) . '</p>' . |
| | 711 | '<p>' . __( '<a href="https://buddypress.org/support/">Support Forums</a>', 'buddypress' ) . '</p>' |
| | 712 | ); |
| | 713 | break; |
| | 714 | |
| 696 | 715 | // Settings page. |
| 697 | 716 | case 'settings_page_bp-settings': |
| 698 | 717 | // Help tabs. |
| … |
… |
function bp_core_add_contextual_help( $screen = '' ) { |
| 735 | 754 | } |
| 736 | 755 | } |
| 737 | 756 | add_action( 'load-settings_page_bp-components', 'bp_core_add_contextual_help' ); |
| | 757 | add_action( 'load-settings_page_bp-rewrites', 'bp_core_add_contextual_help' ); |
| 738 | 758 | add_action( 'load-settings_page_bp-settings', 'bp_core_add_contextual_help' ); |
| 739 | 759 | add_action( 'load-users_page_bp-profile-setup', 'bp_core_add_contextual_help' ); |
| 740 | 760 | |
| … |
… |
function bp_core_add_contextual_help_content( $tab = '' ) { |
| 761 | 781 | $retval = __( 'Your users will distinguish themselves through their profile page. Create relevant profile fields that will show on each users profile.', 'buddypress' ) . '<br /><br />' . __( 'Note: Drag fields from other groups and drop them on the "Signup Fields" tab to include them into your registration form.', 'buddypress' ); |
| 762 | 782 | break; |
| 763 | 783 | |
| | 784 | case 'bp-rewrites-overview': |
| | 785 | $retval = __( 'Customize the page titles and URL slugs for the BuddyPress screens on your site.', 'buddypress' ) . '<br /><br />' . __( 'The <strong>title</strong> is the page title displayed above the BuddyPress content. For example, the page title "Members" is shown above the members directory.', 'buddypress' ) . '<br />' . __( 'A <strong>slug</strong> is a portion of the URL itself. For instance, "members" is the members directory slug in the following example URL: <code>https://mysite.org/members</code>. Slugs should only include lowercase letters, numbers, and hyphens.', 'buddypress' ); |
| | 786 | break; |
| | 787 | |
| 764 | 788 | default: |
| 765 | 789 | $retval = false; |
| 766 | 790 | break; |