Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/31/2011 02:24:17 AM (13 years ago)
Author:
johnjamesjacoby
Message:

API for admin settings tabs. Removes duplication and centralizes tab behavior. Fixes #3531.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-admin.php

    r5002 r5073  
    2424        <?php screen_icon( 'buddypress' ); ?>
    2525
    26         <h2 class="nav-tab-wrapper">
    27             <a href="<?php bp_admin_url( add_query_arg( array( 'page' => 'bp-general-settings'                 ), 'admin.php' ) ); ?>" class="nav-tab"><?php _e( 'Components', 'buddypress' ); ?></a>
    28             <a href="<?php bp_admin_url( add_query_arg( array( 'page' => 'bp-page-settings'                    ), 'admin.php' ) ); ?>" class="nav-tab"><?php _e( 'Pages', 'buddypress' ); ?></a>
    29             <a href="<?php bp_admin_url( add_query_arg( array( 'page' => 'bp-settings'                         ), 'admin.php' ) ); ?>" class="nav-tab"><?php _e( 'Settings', 'buddypress' ); ?></a>
    30             <a href="<?php bp_admin_url( add_query_arg( array( 'page' => 'bb-forums-setup'                     ), 'admin.php' ) ); ?>" class="nav-tab nav-tab-active"><?php _e( 'Forum Setup', 'buddypress' ); ?></a>
    31 
    32             <?php do_action( 'bp_admin_tabs' ); ?>
    33         </h2>
     26        <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( __( 'Forums', 'buddypress' ) ); ?></h2>
    3427
    3528        <?php if ( isset( $_POST['submit'] ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.