$shortname."_layout", "name" => "Layout", "type" => "radio", "std" => "three-column_side-both.css", "options" => array( "three-column_side-both.css", "three-column_side-left.css", "three-column_side-right.css", "two-column_side-left.css", "two-column_side-right.css", "one-column.css" ) ), array( "id" => $shortname."_body_font_size", "name" => "Base Font Size", "std" => "75%", "type" => "text" ), array( "id" => $shortname."_body_font_family", "name" => "Base Font Family", "std" => "Verdana, Geneva, sans serif", "type" => "select", "options" => array( "Arial, Helvetica, sans-serif", "'Courier New', Courier, monospace", "Georgia, Times, serif", "'Lucida Console', Monaco, monospace", "'Lucida Sans Unicode', 'Lucida Grande', sans-serif", "Tahoma, Geneva, sans-serif", "'Times New Roman', Times, serif", "'Trebuchet MS', Helvetica, sans-serif", "Verdana, Geneva, sans serif" ) ), array( "id" => $shortname."_heading_font_family", "name" => "Heading Font Family", "std" => "Verdana, Geneva, sans serif", "type" => "select", "options" => array( "Arial, Helvetica, sans-serif", "'Courier New', Courier, monospace", "Georgia, Times, serif", "'Lucida Console', Monaco, monospace", "'Lucida Sans Unicode', 'Lucida Grande', sans-serif", "Tahoma, Geneva, sans-serif", "'Times New Roman', Times, serif", "'Trebuchet MS', Helvetica, sans-serif", "Verdana, Geneva, sans serif" ) ), array( "id" => $shortname."_body_background", "name" => "Body Background Color", "std" => "#fff", "type" => "text" ), array( "id" => $shortname."_body_color", "name" => "Body Text Color", "std" => "#000", "type" => "text" ) ); /* CREATES THE OPTIONS TAB WITHIN THE PRESENTATION MENU */ 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_action('admin_head', 'mytheme_admin_head'); } add_theme_page($themename." Options", "Current Theme Options", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin_head() /* PUTS STUFF IN THE head OF THE ADMIN THEME OPTIONS PAGE */ { ?>
'.$themename.' settings saved.
'; if ( $_REQUEST['reset'] ) echo ''.$themename.' settings reset.
You can change certain aspects of this theme from within this menu. The actual theme files are not altered by these settings. You must click on Save Changes to store any changes. You can also reset any changes by clicking on Reset.
You may discard any changes to all these options by clicking on Reset. All changes to these options will be lost and cannot be restored. This theme will continue to be the current theme until another is selected. The default settings will be loaded after a reset.
The theme version is currently installed. It was designed by .