tabs[$this->general_settings_key] = __('Settings'); register_setting( $this->general_settings_key, 'archivesCalendar', 'archivesCalendar_options_validate' ); add_settings_section( 'section_general', '', 'archivesCalendar_options', $this->general_settings_key ); } function register_advanced_settings() { $this->tabs[$this->advanced_settings_key] = __('Customize'); register_setting( $this->advanced_settings_key, 'archivesCalendarThemer', 'archivesCalendar_themer_validate' ); add_settings_section( 'section_themer', '', 'archivesCalendar_themer', $this->advanced_settings_key ); } function add_admin_menus() { global $archivesCalendar_options; $arcw_page = add_options_page('Archives Calendar Settings', 'Archives Calendar', 'manage_options', $this->plugin_options_key, array( &$this, 'archives_calendar_options_page' )); remove_submenu_page( 'options-general.php', 'archives_calendar_editor' ); if($archivesCalendar_options['show_settings'] == 0) remove_submenu_page( 'options-general.php', 'archives_calendar' ); add_action('admin_print_scripts-'.$arcw_page, 'arcw_admin_scripts'); } function archives_calendar_options_page() { $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : $this->general_settings_key; ?>