Defaults);
die('1');
//options reset
}
die();
}
// -- Function Name : nusantara_head
// -- Params :
// -- Purpose :
function nusantara_head() {
do_action( 'nusantara_head' );
}
// -- Function Name : nusantara_option_setup
// -- Params :
// -- Purpose :
function nusantara_option_setup(){
global $nusantara_options, $options_machine;
$options_machine = new Options_Machine($nusantara_options);
if (!get_option(OPTIONS)){
update_option(OPTIONS,$options_machine->Defaults);
}
}
// -- Function Name : nusantara_get_header_classes_array
// -- Params :
// -- Purpose :
function nusantara_get_header_classes_array() {
global $nusantara_options;
foreach ($nusantara_options as $value) {
if ($value['type'] == 'heading')$hooks[] = str_replace(' ','',strtolower($value['name']));
}
return $hooks;
}
$nusantara_options = get_option(OPTIONS);
// -- Required action filters
// -- uses add_action()
add_action('admin_head','nusantara_option_setup');
add_action('admin_init','nusantara_admin_init');
add_action('admin_menu', 'nusantara_add_admin');
add_action( 'init', 'nusantara_mlu_init');
// -- AJAX Saving Options
add_action('wp_ajax_nusantara_ajax_post_action', 'nusantara_ajax_callback');