Skip to:
Content

BuddyPress.org

Changeset 11997


Ignore:
Timestamp:
04/27/2018 02:00:20 PM (8 years ago)
Author:
djpaul
Message:

Admin: Move "credits" screen into Settings > BuddyPress.

Initial commit for 3.0's new-look about/welcome/update screen.

See #7741

Location:
trunk/src/bp-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-functions.php

    r11892 r11997  
    422422            'name' => __( 'Components', 'buddypress' )
    423423        ),
     424        '2' => array(
     425            'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-settings' ), 'admin.php' ) ),
     426            'name' => __( 'Options', 'buddypress' )
     427        ),
    424428        '1' => array(
    425429            'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) ),
    426430            'name' => __( 'Pages', 'buddypress' )
    427431        ),
    428         '2' => array(
    429             'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-settings' ), 'admin.php' ) ),
    430             'name' => __( 'Options', 'buddypress' )
     432        '3' => array(
     433            'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-credits' ), 'admin.php' ) ),
     434            'name' => __( 'Credits', 'buddypress' )
    431435        ),
    432436    );
  • trunk/src/bp-core/classes/class-bp-admin.php

    r11957 r11997  
    263263            'bp-settings',
    264264            'bp_core_admin_settings'
     265        );
     266
     267        // Credits.
     268        $hooks[] = add_submenu_page(
     269            $this->settings_page,
     270            __( 'BuddyPress Credits', 'buddypress' ),
     271            __( 'BuddyPress Credits', 'buddypress' ),
     272            $this->capability,
     273            'bp-credits',
     274            array( $this, 'credits_screen' )
    265275        );
    266276
     
    515525        remove_submenu_page( $this->settings_page, 'bp-page-settings' );
    516526        remove_submenu_page( $this->settings_page, 'bp-settings'      );
     527        remove_submenu_page( $this->settings_page, 'bp-credits'       );
    517528
    518529        // Network Admin Tools.
     
    697708    ?>
    698709
    699         <div class="wrap about-wrap">
    700 
    701             <?php self::welcome_text(); ?>
    702 
    703             <?php self::tab_navigation( __METHOD__ ); ?>
     710        <div class="wrap bp-about-wrap">
     711
     712        <h1><?php _e( 'BuddyPress Settings', 'buddypress' ); ?> </h1>
     713
     714        <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( __( 'Credits', 'buddypress' ) ); ?></h2>
    704715
    705716            <p class="about-description"><?php _e( 'BuddyPress is created by a worldwide network of friendly folks like these.', 'buddypress' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.