"Header Text", "id" => $shortname."_headertext", "std" => "\"TAKTEEK01 Theme\" -Eric Crooks", "type" => "textarea" ), array( "name" => "Toggle Header Text", "id" => $shortname."_headertext_toggle", "type" => "radio", "std" => "Toggle On", "options" => array("Toggle On", "Toggle Off") ), array( "name" => "Header Image", "description" => "URL", "id" => $shortname."_headerimage", "type" => "text" ), array( "name" => "Header Image Width", "description" => "Width", "id" => $shortname."_headerimage_width", "type" => "text" ), array( "name" => "Header Image Height", "description" => "Height", "id" => $shortname."_headerimage_height", "type" => "text" ), array( "name" => "Header Image Alt", "description" => "Alt", "id" => $shortname."_headerimage_alt", "type" => "text" ), array( "name" => "Header Image Title", "description" => "Title", "id" => $shortname."_headerimage_title", "type" => "text" ), array( "name" => "Toggle Header Image", "id" => $shortname."_headerimage_toggle", "type" => "radio", "std" => "Toggle Off", "options" => array("Toggle On", "Toggle Off") ) ); //functions 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=controlpanel.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); update_option( $value['id'], $value['std'] );} header("Location: themes.php?page=controlpanel.php&reset=true"); die; } } add_theme_page($themename." Options", "Theme 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.

'; ?>

Options

/>

You should fill in all the fields for an SEO friendly banner image.

" size="40" />
" size="40" />
" size="40" />
" size="40" />
" size="40" />
/>

Preview (updated when options are saved)