options_page = new BPXS_Options(); $bpxs->options_page->controller(); } /** * Load necessary scripts * @since 1.0 */ function load_scripts() { // no need to go on if it's not a plugin page if( ! isset( $_GET['page'] ) ) return; if( $_GET['page'] == BPXS_FOLDER ) { wp_enqueue_script( 'jquery-ui-tabs' ); } } /** * Load necessary styles * @since 1.0 */ function load_styles() { // no need to go on if it's not a plugin page if( ! isset( $_GET['page'] ) ) return; if( $_GET['page'] == BPXS_FOLDER ) { wp_enqueue_style( 'bpxstabs', BPXS_URLPATH .'admin/css/jquery.ui.tabs.css', false, '1.0', 'screen' ); wp_enqueue_style( 'bpxsadmin', BPXS_URLPATH .'admin/css/bpxs-admin.css', false, '1.0', 'screen' ); } } /** * Add some helpful links * @since 1.0 */ function show_help( $help, $screen_id ) { global $bpxs; if( $screen_id == 'buddypress_page_'. BPXS_FOLDER ) { $help = '
' . __( 'Get help for BP Xtra Signup', 'bpxs' ) . '
'; $help .= '
'; $help .= '' . __( 'Support Forums', 'bpxs' ) . '
'; $help .= '' . __( 'Donate', 'bpxs' ) . '
'; $help .= '
'; return $help; } } /** * Show a success message * @since 1.0 */ function show_message( $message ) { echo '

' . $message . '

' . "\n"; } /** * Show an error message * @since 1.0 */ function show_error( $error ) { echo '

' . $error . '

' . "\n"; } } ?>