"Custom RSS Feed Setting", "type" => "title"), array( "type" => "open"), array( "name" => "RSS Feed Title", "desc" => "Enter your RSS Feed title.", "id" => $shortname."_rss_title", "std" => "RSS Feed", "type" => "text"), array( "name" => "Custom RSS Feed", "desc" => "Enter your RSS Feed.", "id" => $shortname."_rss_feed", "std" => "", "type" => "text"), array( "type" => "close"), array( "name" => "Logo Setting", "type" => "title"), array( "type" => "open"), array( "name" => "Logo URL", "desc" => "Enter the URL of your Logo, suggest height < 80px, width < 100px.", "id" => $shortname."_logo_url", "std" => "", "type" => "text"), array( "name" => "Don't Show Blog Description?", "desc" => "Check this box if you don't want to show the blog description.", "id" => $shortname."_no_desc", "type" => "checkbox", "std" => "false"), array( "type" => "close") ); function blacknwhite_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__), 'blacknwhite_admin'); } function blacknwhite_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '

'.$themename.' settings saved.

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

'.$themename.' settings reset.

'; ?>

Settings


" />
 
 
/>