false, // dev mode, default to false 'option_key' => 'vpt_option', // options key in db, required 'page_slug' => 'vpt_option', // options page slug, required 'template' => $all_opt, // template file path or array, required 'menu_page' => 'themes.php', // parent menu slug or supply `array` (can contains 'icon_url' & 'position') for top level menu 'use_auto_group_naming' => true, // default to true 'use_util_menu' => true, // default to true, shows utility menu 'minimum_role' => 'edit_theme_options', // default to 'edit_theme_options' 'layout' => 'fixed', // fluid or fixed, default to fixed 'page_title' => __( 'Theme Options', 'brushed' ), // page title 'menu_label' => __( 'Theme Options', 'brushed' ), // menu label )); } // the safest hook to use, since Vafpress Framework may exists in Theme or Plugin add_action( 'after_setup_theme', 'my_init_options' ); $mb1 = new VP_Metabox($metabox1); $mb2 = new VP_Metabox($metabox2); function remove_menus () { global $menu; $restricted = array( __('Pages', 'brushed') , __('Comments', 'brushed'), __('Posts', 'brushed')); end ($menu); while (prev($menu)){ $value = explode(' ',$menu[key($menu)][0]); if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);} } } add_action('admin_menu', 'remove_menus'); // Enable support for Post Thumbnails, and declare two sizes. if (!function_exists('brushed_setup')) { function brushed_setup(){ // Add RSS feed links to for posts and comments. add_theme_support( 'automatic-feed-links' ); // Enable support for Post Thumbnails, and declare two sizes. add_theme_support( 'post-thumbnails' ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', ) ); } } add_action( 'after_setup_theme', 'brushed_setup' );