\n"; echo ''."\n"; echo ''."\n"; echo "\n\n"; } add_action('wp_head', 'asfp_headstuff'); // DO SHORTCODES AT SIDEBARS add_filter('widget_text', 'do_shortcode'); // AUTOMATIC RSS FEED add_theme_support( 'automatic-feed-links' ); // IMAGES SUPPORT add_theme_support( 'post-thumbnails' ); /* * INCLUDE AND ADD EXPLANATORY/HELP PAGE TO MENU * * * * * * * * * * * * * * * * * * */ function print_howto_page() { global $filepath; include($filepath.'readme.php'); } // adds our new option page to the admin menu function modify_menu_for_asfp() { add_submenu_page( 'options-general.php', "April's Super Functions Pack", // Page "April's SFP Help", // Menu title 7, // What level of user __FILE__, //File to open 'print_howto_page' //Function to call ); } add_action('admin_menu','modify_menu_for_asfp'); /* * CREATE AND SAVE COLUMN WIDTH OPTIONS * * * * * * * * * * * * * * * * * * * * * * */ function asfp_init(){ if(function_exists('register_setting')){ register_setting('asfp-options', 'asfp_pagewidth'); } } add_action('admin_init', 'asfp_init'); // Set the default options when the plugin is activated function asfp_activate(){ add_option('asfp_pagewidth', '845'); } register_activation_hook( __FILE__, 'asfp_activate'); ?>