BATa='.$bwapi_trace_test.'=aBAT
'; /* All of the oik plugins and many of the common functions include calls to bw_trace so we need to include it */ require_once( 'bwtrace.inc' ); require_once( "bobbfunc.inc" ); require_once( "bobblink.inc" ); require_once( "bobbcomp.inc" ); require_once( "bwlink.inc" ); require_once( "bobbgoog.inc" ); function oik_version() { return bw_oik_version(); } $bobb_prefix = NULL; $bw_echo = NULL; $theme = "bobbingwide"; $art_theme = NULL; $bobb_theme = NULL; require_once( "oik-shortc-shortcodes.php" ); require_once( "oik-add-shortcodes.php" ); add_filter('widget_text', 'do_shortcode'); add_filter('the_title', 'do_shortcode' ); //add_filter('wpbody-content', 'do_shortcode' ); add_filter('wp_footer', 'do_shortcode' ); add_filter('get_the_excerpt', 'do_shortcode' ); add_filter('the_excerpt', 'do_shortcode' ); add_filter('the_content', 'do_shortcode' ); //add_filter('get_pages', 'do_shortcode' ); // In which sequence should these go? // trying api, bobbingwide then bwlink $bw_options = get_option( 'bw_options' ); wp_enqueue_style( 'oikCSS', WP_PLUGIN_URL . '/oik/oik.css' ); wp_enqueue_style( 'bwlinkCSS', WP_PLUGIN_URL . '/oik/bwlink.css' ); $customCSS = bw_get_company( 'customCSS' ); if ( !empty( $customCSS) ) wp_enqueue_style( 'customCSS', get_theme_root_uri() . $customCSS); add_action('admin_init', 'oik_options_init' ); add_action('admin_menu', 'oik_options_add_page'); // Init plugin options function oik_options_init() { register_setting( 'oik_options_options', 'bw_options', 'oik_options_validate' ); } // Add the options page function oik_options_add_page() { add_options_page('[oik] Options', 'oik options', 'manage_options', 'bw_options', 'oik_options_do_page'); } // Draw the oik options page function oik_options_do_page() { require_once( "bobbforms.inc" ); sdiv( "column span-15 wrap" ); h2( bw_oik(). " shortcode options" ); e( '