'.__('Theme Options','victorian-xmas').''."\n";
global $wpdb,$radios,$txts,$ints,$theme_options;
if( isset( $_POST['theme_options_submit'] ) && check_admin_referer($action ='update_options', $query_arg = 'theme_options_form') ) {
if( $_POST['theme_options_delete'] == 1 ) {
delete_theme_options('vx_options');
$theme_options = array();
}
else {
foreach( $radios as $key ) {
$theme_options[$key] = $_POST[$key];
}
foreach( $txts as $key ) {
$theme_options[$key] = $_POST[$key];
}
foreach( $ints as $key ) {
$theme_options[$key] = absint( intval($_POST[$key]) );
}
$theme_options = theme_stripslashes_array($theme_options);
$theme_options = theme_sanitise_array($theme_options);
update_theme_options($theme_options);
}
}
?>