Changeset 8140
- Timestamp:
- 03/17/2014 08:58:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-admin.php
r8117 r8140 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 … … 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', … … 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' … … 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' … … 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' … … 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' … … 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', … … 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' … … 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' … … 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' ), … … 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> … … 716 721 </p> 717 722 718 <div class="return-to-dashboard"> 719 <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> 720 </div> 723 <?php if ( current_user_can( $this->capability ) ) :?> 724 <div class="return-to-dashboard"> 725 <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> 726 </div> 727 <?php endif;?> 721 728 722 729 </div>
Note: See TracChangeset
for help on using the changeset viewer.