"Link to Author Page", "desc" => "Display a link to author page. The default is no link, for SEO purposes, but it's useful to enable on multi-author blogs.", "id" => $shortname."_authorlink", "std" => "false", "type" => "checkbox"), array( "name" => "Index Insert Position", "desc" => "The widgetized Index Insert will follow after this post number.", "id" => $shortname."_insert_position", "std" => "2", "type" => "text"), array( "name" => "Info on Author Page", "desc" => "Display a microformatted vCard—with the author's avatar, bio and email—on the author page.", "id" => $shortname."_authorinfo", "std" => "false", "type" => "checkbox"), array( "name" => "Text in Footer", "desc" => "Enter the HTML text that will appear in the bottom of your footer. Feel free to remove or change any links. Hint: how to write a link.", "id" => $shortname."_footertext", "std" => "Powered by WordPressBuilt on the Thematic Theme Framework.", "type" => "textarea", "options" => array( "rows" => "5", "cols" => "94") ), ); 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=theme-options.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); } header("Location: themes.php?page=theme-options.php&reset=true"); die; } } add_theme_page($themename." Options", "Thematic Options", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '
'.$themename.' settings saved.
'.$themename.' settings reset.
visit ThemeShaper. If you have any questions, contact the author.', 'thematic'); ?>