From e693af2799f65bcef142feb7ce5e5b782cd5a200 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Sat, 30 Oct 2010 17:10:12 -0700 Subject: [PATCH] commenting out the usage of the upload page (for now) Signed-off-by: Philip M. Hofer (Frumph) --- ceo-core.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ceo-core.php b/ceo-core.php index 0e8ecf1..5a167f2 100644 --- a/ceo-core.php +++ b/ceo-core.php @@ -14,14 +14,14 @@ function ceo_add_menu_pages() { $chapter_title = __('Chapter Manager', 'comiceasel'); $config_title = __('Config', 'comiceasel'); $debug_title = __('Debug', 'comiceasel'); - $upload_title = __('Upload', 'comiceasel'); +// $upload_title = __('Upload', 'comiceasel'); // the ceo_pluginfo used here actually initiates it. $image_manager_hook = add_submenu_page($menu_location, $plugin_title . ' - ' . $image_title, $image_title, 'edit_theme_options', 'comiceasel-image-manager', 'ceo_image_manager'); $chapter_manager_hook = add_submenu_page($menu_location, $plugin_title . ' - ' . $chapter_title, $chapter_title, 'edit_theme_options', 'comiceasel-chapter-manager', 'ceo_chapter_manager'); $config_hook = add_submenu_page($menu_location, $plugin_title . ' - ' . $config_title, $config_title, 'edit_theme_options', 'comiceasel-config', 'ceo_manager_config'); $debug_hook = add_submenu_page($menu_location, $plugin_title . ' - ' . $debug_title, $debug_title, 'edit_theme_options', 'comiceasel-debug', 'ceo_debug'); - $upload_hook = add_submenu_page($menu_location, $plugin_title . ' - ' . $upload_title, $upload_title, 'edit_theme_options', 'comiceasel-upload', 'ceo_upload'); +// $upload_hook = add_submenu_page($menu_location, $plugin_title . ' - ' . $upload_title, $upload_title, 'edit_theme_options', 'comiceasel-upload', 'ceo_upload'); // Scripts for the chapter manager page. // Notice how its checking the _GET['page'], do this for the other areas @@ -35,12 +35,12 @@ function ceo_add_menu_pages() { add_action('admin_print_scripts-' . $image_manager_hook, 'ceo_load_scripts_image_manager'); add_action('admin_print_styles-' . $image_manager_hook, 'ceo_load_styles_image_manager'); break; - case 'comiceasel-upload': +/* case 'comiceasel-upload': add_action('admin_print_styles-' . $upload_hook, 'ceo_load_styles_upload'); add_action('admin_print_styles-' . $upload_hook, 'ceo_load_scripts_upload'); add_thickbox(); wp_admin_css(); - wp_tiny_mce(); + wp_tiny_mce(); */ } } } @@ -59,6 +59,7 @@ function ceo_load_styles_image_manager() { wp_enqueue_style('comiceasel-fileuploader-style', ceo_pluginfo('plugin_url') .'/css/fileuploader.css'); } +/* function ceo_load_scripts_upload() { wp_enqueue_script('common'); wp_enqueue_script('jquery-color'); @@ -70,6 +71,7 @@ function ceo_load_scripts_upload() { wp_enqueue_script('comiceasel-upload-calendar-en', ceo_pluginfo('plugin_url') . '/js/jscalendar-1.0/lang/calendar-en.js'); wp_enqueue_script('comiceasel-upload-calendar-setup', ceo_pluginfo('plugin_url') . '/js/jscalendar-1.0/calendar-setup.js'); } +*/ function ceo_load_styles_upload() { wp_enqueue_style('comiceasel_css', ceo_pluginfo('plugin_url') . '/css/comiceasel.css'); @@ -93,9 +95,11 @@ function ceo_debug() { require_once('ceo-debug.php'); } +/* function ceo_upload() { require_once('ceo-upload.php'); } +*/ /** * This set of functions is for displaying the dashboard feed widget.