Changeset 8139
- Timestamp:
- 03/17/2014 08:52:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.9/bp-core/bp-core-admin.php
r7676 r8139 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 … … 200 203 __( 'BuddyPress', 'buddypress' ), 201 204 __( 'BuddyPress', 'buddypress' ), 202 'manage_options',205 $this->capability, 203 206 'bp-general-settings', 204 207 'bp_core_admin_backpat_menu', … … 210 213 __( 'BuddyPress Help', 'buddypress' ), 211 214 __( 'Help', 'buddypress' ), 212 'manage_options',215 $this->capability, 213 216 'bp-general-settings', 214 217 'bp_core_admin_backpat_page' … … 220 223 __( 'BuddyPress Components', 'buddypress' ), 221 224 __( 'BuddyPress', 'buddypress' ), 222 'manage_options',225 $this->capability, 223 226 'bp-components', 224 227 'bp_core_admin_components_settings' … … 229 232 __( 'BuddyPress Pages', 'buddypress' ), 230 233 __( 'BuddyPress Pages', 'buddypress' ), 231 'manage_options',234 $this->capability, 232 235 'bp-page-settings', 233 236 'bp_core_admin_slugs_settings' … … 238 241 __( 'BuddyPress Settings', 'buddypress' ), 239 242 __( 'BuddyPress Settings', 'buddypress' ), 240 'manage_options',243 $this->capability, 241 244 'bp-settings', 242 245 'bp_core_admin_settings' … … 460 463 <h4><?php _e( 'Your Default Setup', 'buddypress' ); ?></h4> 461 464 462 <?php if ( bp_is_active( 'members' ) && bp_is_active( 'activity' ) ) : ?>465 <?php if ( bp_is_active( 'members' ) && bp_is_active( 'activity' ) && current_user_can( $this->capability ) ) : ?> 463 466 <p><?php printf( 464 467 __( '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' ), … … 528 531 </div> 529 532 530 <div class="return-to-dashboard"> 531 <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> 532 </div> 533 <?php if ( current_user_can( $this->capability ) ) :?> 534 <div class="return-to-dashboard"> 535 <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> 536 </div> 537 <?php endif ;?> 533 538 534 539 </div> … … 659 664 </p> 660 665 661 <div class="return-to-dashboard"> 662 <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> 663 </div> 666 <?php if ( current_user_can( $this->capability ) ) :?> 667 <div class="return-to-dashboard"> 668 <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> 669 </div> 670 <?php endif;?> 664 671 665 672 </div>
Note: See TracChangeset
for help on using the changeset viewer.