diff --git bp-core/bp-core-admin.php bp-core/bp-core-admin.php
index f6cfc3a..8b3fbb1 100644
|
|
|
class BP_Admin { |
| 104 | 104 | |
| 105 | 105 | // Main settings page |
| 106 | 106 | $this->settings_page = bp_core_do_network_admin() ? 'settings.php' : 'options-general.php'; |
| | 107 | |
| | 108 | // Main capability |
| | 109 | $this->capability = bp_core_do_network_admin() ? 'manage_network_options' : 'manage_options'; |
| 107 | 110 | } |
| 108 | 111 | |
| 109 | 112 | /** |
| … |
… |
class BP_Admin { |
| 204 | 207 | $hooks[] = add_menu_page( |
| 205 | 208 | __( 'BuddyPress', 'buddypress' ), |
| 206 | 209 | __( 'BuddyPress', 'buddypress' ), |
| 207 | | 'manage_options', |
| | 210 | $this->capability, |
| 208 | 211 | 'bp-general-settings', |
| 209 | 212 | 'bp_core_admin_backpat_menu', |
| 210 | 213 | 'div' |
| … |
… |
class BP_Admin { |
| 214 | 217 | 'bp-general-settings', |
| 215 | 218 | __( 'BuddyPress Help', 'buddypress' ), |
| 216 | 219 | __( 'Help', 'buddypress' ), |
| 217 | | 'manage_options', |
| | 220 | $this->capability, |
| 218 | 221 | 'bp-general-settings', |
| 219 | 222 | 'bp_core_admin_backpat_page' |
| 220 | 223 | ); |
| … |
… |
class BP_Admin { |
| 224 | 227 | $this->settings_page, |
| 225 | 228 | __( 'BuddyPress Components', 'buddypress' ), |
| 226 | 229 | __( 'BuddyPress', 'buddypress' ), |
| 227 | | 'manage_options', |
| | 230 | $this->capability, |
| 228 | 231 | 'bp-components', |
| 229 | 232 | 'bp_core_admin_components_settings' |
| 230 | 233 | ); |
| … |
… |
class BP_Admin { |
| 233 | 236 | $this->settings_page, |
| 234 | 237 | __( 'BuddyPress Pages', 'buddypress' ), |
| 235 | 238 | __( 'BuddyPress Pages', 'buddypress' ), |
| 236 | | 'manage_options', |
| | 239 | $this->capability, |
| 237 | 240 | 'bp-page-settings', |
| 238 | 241 | 'bp_core_admin_slugs_settings' |
| 239 | 242 | ); |
| … |
… |
class BP_Admin { |
| 242 | 245 | $this->settings_page, |
| 243 | 246 | __( 'BuddyPress Settings', 'buddypress' ), |
| 244 | 247 | __( 'BuddyPress Settings', 'buddypress' ), |
| 245 | | 'manage_options', |
| | 248 | $this->capability, |
| 246 | 249 | 'bp-settings', |
| 247 | 250 | 'bp_core_admin_settings' |
| 248 | 251 | ); |
| … |
… |
class BP_Admin { |
| 255 | 258 | $hooks[] = add_menu_page( |
| 256 | 259 | __( 'Tools', 'buddypress' ), |
| 257 | 260 | __( 'Tools', 'buddypress' ), |
| 258 | | 'manage_network_options', |
| | 261 | $this->capability, |
| 259 | 262 | $tools_parent, |
| 260 | 263 | 'bp_core_tools_top_level_item', |
| 261 | 264 | '', |
| … |
… |
class BP_Admin { |
| 266 | 269 | $tools_parent, |
| 267 | 270 | __( 'Available Tools', 'buddypress' ), |
| 268 | 271 | __( 'Available Tools', 'buddypress' ), |
| 269 | | 'manage_network_options', |
| | 272 | $this->capability, |
| 270 | 273 | 'available-tools', |
| 271 | 274 | 'bp_core_admin_available_tools_page' |
| 272 | 275 | ); |
| … |
… |
class BP_Admin { |
| 278 | 281 | $tools_parent, |
| 279 | 282 | __( 'BuddyPress Tools', 'buddypress' ), |
| 280 | 283 | __( 'BuddyPress', 'buddypress' ), |
| 281 | | 'manage_options', |
| | 284 | $this->capability, |
| 282 | 285 | 'bp-tools', |
| 283 | 286 | 'bp_core_admin_tools' |
| 284 | 287 | ); |
| … |
… |
class BP_Admin { |
| 516 | 519 | <div class="feature-section"> |
| 517 | 520 | <h4><?php _e( 'Your Default Setup', 'buddypress' ); ?></h4> |
| 518 | 521 | |
| 519 | | <?php if ( bp_is_active( 'members' ) && bp_is_active( 'activity' ) ) : ?> |
| | 522 | <?php if ( bp_is_active( 'members' ) && bp_is_active( 'activity' ) && current_user_can( $this->capability ) ) : ?> |
| 520 | 523 | <p><?php printf( |
| 521 | 524 | __( 'BuddyPress’s powerful features help your users connect and collaborate. To help get your community started, we’ve activated two of the most commonly used tools in BP: <strong>Extended Profiles</strong> and <strong>Activity Streams</strong>. See these components in action at the %1$s and %2$s directories, and be sure to spend a few minutes <a href="%3$s">configuring user profiles</a>. Want to explore more of BP’s features? Visit the <a href="%4$s">Components panel</a>.', 'buddypress' ), |
| 522 | 525 | $pretty_permalinks_enabled ? '<a href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ) . '">' . __( 'Members', 'buddypress' ) . '</a>' : __( 'Members', 'buddypress' ), |
| … |
… |
class BP_Admin { |
| 584 | 587 | </ul> |
| 585 | 588 | </div> |
| 586 | 589 | |
| 587 | | <div class="return-to-dashboard"> |
| 588 | | <a href="<?php echo esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), $this->settings_page ) ) ); ?>"><?php _e( 'Go to the BuddyPress Settings page', 'buddypress' ); ?></a> |
| 589 | | </div> |
| | 590 | <?php if ( current_user_can( $this->capability ) ) :?> |
| | 591 | <div class="return-to-dashboard"> |
| | 592 | <a href="<?php echo esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), $this->settings_page ) ) ); ?>"><?php _e( 'Go to the BuddyPress Settings page', 'buddypress' ); ?></a> |
| | 593 | </div> |
| | 594 | <?php endif ;?> |
| 590 | 595 | |
| 591 | 596 | </div> |
| 592 | 597 | |