///////////////////////////////////////// // ************* Theme Options Page *********** // add_action('admin_menu', 'mkt_add_product'); //Add new menu block to admin side function mkt_add_product(){ if(function_exists(add_object_page)) { @add_object_page (__('Automobile'), __('Automobile'), 8,'product_menu.php', 'admin_settings', get_bloginfo('template_url').'/images/favicon.ico'); } else { @add_menu_page (__('Automobile'), __('Automobile'), 8,'product_menu.php', 'admin_settings', get_bloginfo('template_url').'/images/favicon.ico'); } add_submenu_page('product_menu.php', __("Design Settings"), __("Design Settings"), 8, 'product_menu.php', 'theme_settings'); add_submenu_page('product_menu.php', __("Bulk Upload"), __("Bulk Upload"), 8, 'bulk', 'bulk_upload'); add_submenu_page('product_menu.php', __("Manage Post Custom Fields"), __("Manage Custom Fields"), 8, 'custom', 'manage_custom'); } function bulk_upload() { include_once(TEMPLATEPATH . '/admin/admin_bulk_upload.php'); } function theme_settings() { mytheme_add_admin(); } function manage_custom() { include_once(TEMPLATEPATH . '/admin/admin_manage_custom_fields.php'); } ?>