diff --git src/bp-groups/bp-groups-admin.php src/bp-groups/bp-groups-admin.php
index e41abf20a..aa07545eb 100644
|
|
function bp_groups_admin_edit() { |
582 | 582 | do_action_ref_array( 'bp_groups_admin_edit', array( &$group ) ); ?> |
583 | 583 | |
584 | 584 | <div class="wrap"> |
585 | | <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> |
586 | | |
587 | | <h1 class="wp-heading-inline"><?php _e( 'Edit Group', 'buddypress' ); ?></h1> |
588 | | |
589 | | <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> |
590 | | <a class="page-title-action" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> |
591 | | <?php endif; ?> |
592 | | |
593 | | <hr class="wp-header-end"> |
594 | | |
595 | | <?php else : ?> |
596 | | |
597 | | <h1><?php _e( 'Edit Group', 'buddypress' ); ?> |
598 | | |
599 | | <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> |
600 | | <a class="add-new-h2" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> |
601 | | <?php endif; ?> |
602 | | |
603 | | </h1> |
| 585 | <h1 class="wp-heading-inline"><?php _e( 'Edit Group', 'buddypress' ); ?></h1> |
604 | 586 | |
| 587 | <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> |
| 588 | <a class="page-title-action" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> |
605 | 589 | <?php endif; ?> |
606 | 590 | |
| 591 | <hr class="wp-header-end"> |
| 592 | |
607 | 593 | <?php // If the user has just made a change to an group, display the status messages. ?> |
608 | 594 | <?php if ( !empty( $messages ) ) : ?> |
609 | 595 | <div id="moderated" class="<?php echo ( $is_error ) ? 'error' : 'updated'; ?> notice is-dismissible"><p><?php echo implode( "</p><p>", $messages ); ?></p></div> |
… |
… |
function bp_groups_admin_index() { |
769 | 755 | do_action( 'bp_groups_admin_index', $messages ); ?> |
770 | 756 | |
771 | 757 | <div class="wrap"> |
772 | | <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> |
773 | 758 | |
774 | | <h1 class="wp-heading-inline"><?php _e( 'Groups', 'buddypress' ); ?></h1> |
| 759 | <h1 class="wp-heading-inline"><?php _e( 'Groups', 'buddypress' ); ?></h1> |
775 | 760 | |
776 | | <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> |
777 | | <a class="page-title-action" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> |
778 | | <?php endif; ?> |
779 | | |
780 | | <?php if ( !empty( $_REQUEST['s'] ) ) : ?> |
781 | | <span class="subtitle"><?php printf( __( 'Search results for “%s”', 'buddypress' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ); ?></span> |
782 | | <?php endif; ?> |
783 | | |
784 | | <hr class="wp-header-end"> |
785 | | |
786 | | <?php else : ?> |
787 | | |
788 | | <h1> |
789 | | <?php _e( 'Groups', 'buddypress' ); ?> |
790 | | |
791 | | <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> |
792 | | <a class="add-new-h2" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> |
793 | | <?php endif; ?> |
794 | | |
795 | | <?php if ( !empty( $_REQUEST['s'] ) ) : ?> |
796 | | <span class="subtitle"><?php printf( __( 'Search results for “%s”', 'buddypress' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ); ?></span> |
797 | | <?php endif; ?> |
798 | | </h1> |
| 761 | <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> |
| 762 | <a class="page-title-action" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php _e( 'Add New', 'buddypress' ); ?></a> |
| 763 | <?php endif; ?> |
799 | 764 | |
| 765 | <?php if ( !empty( $_REQUEST['s'] ) ) : ?> |
| 766 | <span class="subtitle"><?php printf( __( 'Search results for “%s”', 'buddypress' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ); ?></span> |
800 | 767 | <?php endif; ?> |
801 | 768 | |
| 769 | <hr class="wp-header-end"> |
| 770 | |
802 | 771 | <?php // If the user has just made a change to an group, display the status messages. ?> |
803 | 772 | <?php if ( !empty( $messages ) ) : ?> |
804 | 773 | <div id="moderated" class="<?php echo ( ! empty( $_REQUEST['error'] ) ) ? 'error' : 'updated'; ?> notice is-dismissible"><p><?php echo implode( "<br/>\n", $messages ); ?></p></div> |
diff --git src/bp-members/classes/class-bp-members-admin.php src/bp-members/classes/class-bp-members-admin.php
index 4846b8837..3d8658217 100644
|
|
class BP_Members_Admin { |
998 | 998 | <?php endif; ?> |
999 | 999 | |
1000 | 1000 | <div class="wrap" id="community-profile-page"> |
1001 | | <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> |
| 1001 | <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1> |
1002 | 1002 | |
1003 | | <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1> |
| 1003 | <?php if ( empty( $this->is_self_profile ) ) : ?> |
1004 | 1004 | |
1005 | | <?php if ( empty( $this->is_self_profile ) ) : ?> |
1006 | | |
1007 | | <?php if ( current_user_can( 'create_users' ) ) : ?> |
1008 | | |
1009 | | <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> |
| 1005 | <?php if ( current_user_can( 'create_users' ) ) : ?> |
1010 | 1006 | |
1011 | | <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> |
| 1007 | <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> |
1012 | 1008 | |
1013 | | <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> |
| 1009 | <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> |
1014 | 1010 | |
1015 | | <?php endif; ?> |
| 1011 | <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> |
1016 | 1012 | |
1017 | 1013 | <?php endif; ?> |
1018 | 1014 | |
1019 | | <hr class="wp-header-end"> |
1020 | | |
1021 | | <?php else : ?> |
1022 | | |
1023 | | <h1><?php echo esc_html( $title ); ?> |
1024 | | |
1025 | | <?php if ( empty( $this->is_self_profile ) ) : ?> |
1026 | | |
1027 | | <?php if ( current_user_can( 'create_users' ) ) : ?> |
1028 | | |
1029 | | <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> |
1030 | | |
1031 | | <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> |
1032 | | |
1033 | | <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> |
1034 | | |
1035 | | <?php endif; ?> |
1036 | | |
1037 | | <?php endif; ?> |
1038 | | </h1> |
1039 | | |
1040 | 1015 | <?php endif; ?> |
1041 | 1016 | |
| 1017 | <hr class="wp-header-end"> |
| 1018 | |
1042 | 1019 | <?php if ( ! empty( $user ) ) : |
1043 | 1020 | |
1044 | 1021 | $this->profile_nav( $user, 'BuddyPress' ); ?> |
… |
… |
class BP_Members_Admin { |
2076 | 2053 | ?> |
2077 | 2054 | |
2078 | 2055 | <div class="wrap"> |
2079 | | <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> |
| 2056 | <h1 class="wp-heading-inline"><?php _e( 'Users', 'buddypress' ); ?></h1> |
2080 | 2057 | |
2081 | | <h1 class="wp-heading-inline"><?php _e( 'Users', 'buddypress' ); ?></h1> |
| 2058 | <?php if ( current_user_can( 'create_users' ) ) : ?> |
2082 | 2059 | |
2083 | | <?php if ( current_user_can( 'create_users' ) ) : ?> |
| 2060 | <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> |
2084 | 2061 | |
2085 | | <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> |
| 2062 | <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> |
2086 | 2063 | |
2087 | | <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> |
2088 | | |
2089 | | <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> |
2090 | | |
2091 | | <?php endif; |
2092 | | |
2093 | | if ( $usersearch ) { |
2094 | | printf( '<span class="subtitle">' . __( 'Search results for “%s”', 'buddypress' ) . '</span>', esc_html( $usersearch ) ); |
2095 | | } |
2096 | | ?> |
2097 | | |
2098 | | <hr class="wp-header-end"> |
2099 | | |
2100 | | <?php else : ?> |
2101 | | |
2102 | | <h1><?php _e( 'Users', 'buddypress' ); ?> |
| 2064 | <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> |
2103 | 2065 | |
2104 | | <?php if ( current_user_can( 'create_users' ) ) : ?> |
2105 | | |
2106 | | <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a> |
2107 | | |
2108 | | <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> |
2109 | | |
2110 | | <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a> |
2111 | | |
2112 | | <?php endif; |
2113 | | |
2114 | | if ( $usersearch ) { |
2115 | | printf( '<span class="subtitle">' . __( 'Search results for “%s”', 'buddypress' ) . '</span>', esc_html( $usersearch ) ); |
2116 | | } |
| 2066 | <?php endif; |
2117 | 2067 | |
2118 | | ?> |
2119 | | </h1> |
| 2068 | if ( $usersearch ) { |
| 2069 | printf( '<span class="subtitle">' . __( 'Search results for “%s”', 'buddypress' ) . '</span>', esc_html( $usersearch ) ); |
| 2070 | } |
| 2071 | ?> |
2120 | 2072 | |
2121 | | <?php endif; ?> |
| 2073 | <hr class="wp-header-end"> |
2122 | 2074 | |
2123 | 2075 | <?php // Display each signups on its own row. ?> |
2124 | 2076 | <?php $bp_members_signup_list_table->views(); ?> |
diff --git src/bp-messages/classes/class-bp-messages-notices-admin.php src/bp-messages/classes/class-bp-messages-notices-admin.php
index 0b41dea60..2314a8570 100644
|
|
class BP_Messages_Notices_Admin { |
183 | 183 | $this->list_table->prepare_items(); |
184 | 184 | ?> |
185 | 185 | <div class="wrap"> |
186 | | <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> |
187 | | |
188 | | <h1 class="wp-heading-inline"><?php echo esc_html_x( 'Site Notices', 'Notices admin page title', 'buddypress' ); ?></h1> |
189 | | <hr class="wp-header-end"> |
190 | | |
191 | | <?php else : ?> |
192 | | |
193 | | <h1><?php echo esc_html_x( 'Site Notices', 'Notices admin page title', 'buddypress' ); ?></h1> |
194 | | |
195 | | <?php endif; ?> |
| 186 | <h1 class="wp-heading-inline"><?php echo esc_html_x( 'Site Notices', 'Notices admin page title', 'buddypress' ); ?></h1> |
| 187 | <hr class="wp-header-end"> |
196 | 188 | |
197 | 189 | <p class="bp-notice-about"><?php esc_html_e( 'Manage notices shown at front end of your site to all logged-in users.', 'buddypress' ); ?></p> |
198 | 190 | |
diff --git src/bp-xprofile/bp-xprofile-admin.php src/bp-xprofile/bp-xprofile-admin.php
index 7171e4856..c8e3fb01a 100644
|
|
function xprofile_admin_screen( $message = '', $type = 'error' ) { |
145 | 145 | ) ); ?> |
146 | 146 | |
147 | 147 | <div class="wrap"> |
148 | | <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?> |
| 148 | <h1 class="wp-heading-inline"><?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?></h1> |
149 | 149 | |
150 | | <h1 class="wp-heading-inline"><?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?></h1> |
| 150 | <a id="add_group" class="page-title-action" href="<?php echo esc_url( $add_group_url ); ?>"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a> |
151 | 151 | |
152 | | <a id="add_group" class="page-title-action" href="<?php echo esc_url( $add_group_url ); ?>"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a> |
153 | | |
154 | | <hr class="wp-header-end"> |
155 | | |
156 | | <?php else : ?> |
157 | | |
158 | | <h1> |
159 | | <?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?> |
160 | | <a id="add_group" class="add-new-h2" href="<?php echo esc_url( $add_group_url ); ?>"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a> |
161 | | </h1> |
162 | | |
163 | | <?php endif; ?> |
| 152 | <hr class="wp-header-end"> |
164 | 153 | |
165 | 154 | <form action="" id="profile-field-form" method="post"> |
166 | 155 | |