shortcodes as &$shortcode ) { if ( isset( $options[ 'chk_default_options_' . $shortcode ] ) ) { array_push( $buttons, 'bs_' . $shortcode ); } } return $buttons; } function regplugins( $plgs) { foreach ( $this->shortcodes as &$shortcode ) { $plgs[ 'bs_' . $shortcode ] = plugins_url( 'js/plugins/' . $shortcode . '.js', __FILE__ ); } return $plgs; } function register_settings_page() { add_options_page( __( 'BS Shortcodes', 'bsshortcodes' ), __( 'BS Shortcodes', 'bsshortcodes' ), 'manage_options', __FILE__, array( &$this, 'dw_render_form') ); } function add_options_defaults() { $arr = array( 'chk_default_options_css' => '1', 'chk_default_options_js' => '1', 'chk_default_options_grid' => '1', 'chk_default_options_tabs' => '1', 'chk_default_options_collapse' => '1', 'chk_default_options_alerts' => '1', 'chk_default_options_wells' => '1', 'chk_default_options_buttons' => '1', 'chk_default_options_labels' => '1', 'chk_default_options_icons' => '1', 'chk_default_options_lead' => '1', 'chk_default_options_tooltip' => '1' ); update_option( 'bs_options', $arr ); } function register_settings() { register_setting( 'bs_plugin_options', 'bs_options' ); } function dw_render_form() { ?>