"About", "type" => "title"), array( "type" => "open"), array( "name" => "Title", "desc" => "Enter a title to display for your about info.", "id" => $shortname."_about_title", "std" => "", "type" => "text"), array( "name" => "Message", "desc" => "Text to display as about info.", "id" => $shortname."_about_message", "type" => "textarea"), array( "name" => "Disable About Message?", "desc" => "Check this box if you would like to DISABLE the about info.", "id" => $shortname."_about_disable", "type" => "checkbox", "std" => "false"), array( "type" => "close") ); function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } header("Location: themes.php?page=functions.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); } header("Location: themes.php?page=functions.php&reset=true"); die; } } add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '

'.$themename.' settings saved.

'; if ( $_REQUEST['reset'] ) echo '

'.$themename.' settings reset.

'; ?>

settings


" />
 
 
 
 
 
 
/>