$oval) /* fetch saved my theme and change values */ { $val = ttw_getmyopt($key); /* get the saved value */ if ($val !== false) { ttw_setopt( $key, $val); /* and set value really used */ } } } else { /* picked a pre-defined sub-theme */ if (!($def = st_get_theme($use_subtheme))) { if (!($def = apply_filters('ttwx_themes_gettheme',$def,$use_subtheme))) // might be plugin theme $def = st_get_theme(TTW_DEFAULT_THEME); } foreach ($def as $key => $val) { if ($val !== false) { ttw_setopt( $key, $val ); } } } ttw_setopt('ttw_subtheme', $use_subtheme); ttw_saveopts(); } function ttw_savemytheme() { /* saves current settings into My Saved Theme */ global $ttw_optionsList; /* save current value into mysaved theme database */ foreach ($ttw_optionsList as $key => $oval) { $val = ttw_getopt($key); /* get the current value */ ttw_setmyopt( $key, $val ); /* and save into 'my_' db */ } ttw_setopt('ttw_subtheme', 'My Saved Theme'); ttw_saveopts(); } function ttw_themes_admin() { /* The opening default admin panel - used to pick a predefined theme. Put it first because it is less intimidating than the Main Options tab. */ global $theme_options, $ttw_fullThemeList; ?>

Predefined Themes

Welcome to Twenty Ten Weaver

Twenty Ten Weaver allows you to tweak many of the setting for your Wordpress blog using the different admin panels here. This page lets you get a quick start by picking one of our many predefined sub-themes. Once you've picked a starter theme, use the Main and Advanced Options panels to tweak the theme to be whatever you like. After you have a theme you're happy with, you can save it - both in the site data base, and as a download. The Snippets tab has some hints for additional fine tuning, and the Help tab has much more useful information.

Get started by trying one of the predefined sub-themes!

\n"); $themeimgs = get_bloginfo('stylesheet_directory') . '/images/subthemes/'; /* first, show the default theme */ if (!ttw_getadminopt('ttw_hide_theme_thumbs')) { echo ("

Sub-theme thumbnails

\n"); echo (''); $col=0; /* have default, so start at 1 */ foreach ($ttw_fullThemeList as $theme) { $name = $theme['name']; if ($name == 'My Saved Theme') { $img = ''; $desc = ''; } else if ($name == '') { $img = 'custom.png'; $desc = "Description not available"; } else { $img = $ttw_fullThemeList[$name]['img']; $desc = $ttw_fullThemeList[$name]['desc']; } if ($img == '') continue; // don't show my saved theme... if ($col == 0) {echo '\n"; ++$col; /* track # of cols output */ if ($col > 3) { echo ''; /* end of row? */ $col = 0; } else echo ''; echo "
';} echo("$name
"); /* info about the theme */ echo "
"; echo "$desc"; echo "
'; } if ($col != 0) echo '
\n"; /* all done with table */ } // end don't hide thumbs ?>

Get even more sub-themes.

More sub-themes are available for easy download at Twenty Ten Weaver Sub-Themes. "WP Weaver", "def" => array ( "ttw_menubar_color" => '#994D15', "ttw_menubar_hoverbg_color" => '#733A10', "ttw_menubar_text_color" => '#FFFFCD', "ttw_menubar_hover_color" => '#EDEDBE', 'ttw_menubar_curpage_color' => '#FFFF66', "ttw_bold_menu" => 'checked', "ttw_hide_menu" => false, "ttw_large_tagline" => 'checked', "ttw_hide_site_title" => 'checked', "ttw_header_image_height" => '140', "ttw_after_header" => '10', "ttw_sidebars" => SB_1l, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_small_content_font' => 'checked', 'ttw_title_font' => 'Palatino (serif)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => '1', 'ttw_rounded_corners' => 'checked', 'ttw_useborders' => 'checked', 'ttw_footer_border_color' => '#7A3D11', 'ttw_hr_color' => '#7A3D11', "ttw_title_color" => '#7A3D11', "ttw_text_color" => '#7A3D11', "ttw_content_color" => '#000000', "ttw_widget_title_color" => '#7A3D11', "ttw_widget_color" => '#000000', "ttw_link_color" => '#E32019', "ttw_link_visited_color" => '#BD1A15', "ttw_link_hover_color" => '#E37120', "ttw_wlink_color" => '#E32019', "ttw_wlink_visited_color" => '#BD1A15', "ttw_wlink_hover_color" => '#E37120', "ttw_plink_color" => '#7A3D11', "ttw_plink_visited_color" => '#7A3D11', "ttw_plink_hover_color" => '#E37120', "ttw_info_color" => '#7A3D11', "ttw_ilink_color" => '#AB5518', "ttw_ilink_visited_color" => '#AB5518', "ttw_ilink_hover_color" => '#E37120', "ttw_page_bgcolor" => '#FFFFCD', "ttw_main_bgcolor" => 'transparent', "ttw_content_bgcolor" => 'transparent', "ttw_side1_bgcolor" => '#F0EBA8', "ttw_side2_bgcolor" => '#FCE6C9', "ttw_topbottom_bgcolor" => '#FCE6C9', "ttw_footer_bgcolor" => '#FFFAB3', 'ttw_body_bgcolor' => '#F5F5DC', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => true, 'ttw_themename' => "WP Weaver", 'ttw_themedir' => 'wpweaver', 'ttw_theme_description' => "An Ivory tone theme - used by WPWeaver.info. Use WP Weaver header to see full design.", 'ttw_theme_image' => 'wpweaver.png', "ttw_theme_head_opts" => false) ) , array ( "name" => "IndieAve", "def" => array ( "ttw_menubar_color" => '#3F9718', "ttw_menubar_hoverbg_color" => '#1A7A0B', "ttw_menubar_text_color" => '#D9D9D9', "ttw_menubar_hover_color" => '#FFFFFF', 'ttw_menubar_curpage_color' => '#FFFFFF', "ttw_bold_menu" => 'checked', "ttw_hide_menu" => false, "ttw_large_tagline" => false, "ttw_hide_site_title" => 'checked', "ttw_header_image_height" => '180', "ttw_after_header" => '10', "ttw_sidebars" => false, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Verdana (sans-serif)', 'ttw_small_content_font' => 'checked', 'ttw_title_font' => 'Verdana (sans-serif)', 'ttw_rounded_corners' => 'checked', 'ttw_useborders' => false, 'ttw_footer_border_color' => '#FAFAFA', 'ttw_hr_color' => '#3F9718', "ttw_title_color" => '#000000', "ttw_text_color" => '#000000', "ttw_content_color" => '#000000', "ttw_widget_title_color" => '#222222', "ttw_widget_color" => '#737373', "ttw_link_color" => '#007700', "ttw_link_visited_color" => '#005500', "ttw_link_hover_color" => '#003300', "ttw_wlink_color" => false, "ttw_wlink_visited_color" => false, "ttw_wlink_hover_color" => false, "ttw_plink_color" => '#000000', "ttw_plink_visited_color" => '#000000', "ttw_plink_hover_color" => '#007700', "ttw_info_color" => '#737373', "ttw_ilink_color" => '#007700', "ttw_ilink_visited_color" => '#005500', "ttw_ilink_hover_color" => '#003300', "ttw_page_bgcolor" => '#FFFFFE', "ttw_main_bgcolor" => '#FFFFFE', "ttw_container_bgcolor" => '#F4F4F4', "ttw_content_bgcolor" => 'trasparent', "ttw_side1_bgcolor" => '#D4F7D8', "ttw_side2_bgcolor" => '#D4F7D8', "ttw_topbottom_bgcolor" => '#D4F7D8', "ttw_footer_bgcolor" => '#FFFFFE', 'ttw_body_bgcolor' => '#00AA00', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => false, 'ttw_themename' => "IndieAve", 'ttw_themedir' => 'indieave', 'ttw_theme_description' => "A Green oriented theme based on IndieAve.com. Use Indie Ave header to see full design.", 'ttw_theme_image' => 'indieave.png', "ttw_theme_head_opts" => false) //'') ) , array ( "name" => "Ivory Drive","def" => array ( "ttw_menubar_color" => '#000000', "ttw_menubar_hoverbg_color" => '#CC0000', "ttw_menubar_text_color" => '#FFFFFF', "ttw_menubar_hover_color" => '#FFFFFF', 'ttw_menubar_curpage_color' => '#B8B8B8', "ttw_bold_menu" => 'checked', "ttw_hide_menu" => false, "ttw_move_menu" => 'checked', "ttw_large_tagline" => false, "ttw_hide_site_title" => 'checked', "ttw_header_image_height" => '167', "ttw_after_header" => '0', "ttw_sidebars" => SB_1l, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Verdana (sans-serif)', 'ttw_small_content_font' => 'checked', 'ttw_title_font' => 'Verdana (sans-serif)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => '2', 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => false, 'ttw_hr_color' => false, "ttw_title_color" => '#FFFFFF', "ttw_text_color" => '#000000', "ttw_content_color" => '#000000', "ttw_widget_title_color" => '#CC0000', "ttw_widget_color" => '#FFFFFF', "ttw_link_color" => '#8B0000', "ttw_link_visited_color" => '#5E0000', "ttw_link_hover_color" => '#4B0082', "ttw_wlink_color" => '#FFFFFF', "ttw_wlink_visited_color" => '#F0F0F0', "ttw_wlink_hover_color" => '#CC0000', "ttw_plink_color" => '#8B0000', "ttw_plink_visited_color" => '#8B0000', "ttw_plink_hover_color" => '#4B0082', "ttw_info_color" => '#737373', "ttw_ilink_color" => '#595959', "ttw_ilink_visited_color" => '#737373', "ttw_ilink_hover_color" => '#4B0082', "ttw_page_bgcolor" => '#000000', "ttw_main_bgcolor" => '#262626', 'ttw_container_bgcolor' => '#FFFFFF', "ttw_content_bgcolor" => '#FFFFFF', "ttw_side1_bgcolor" => '#262626', "ttw_side2_bgcolor" => '#262626', "ttw_topbottom_bgcolor" => '#666666', "ttw_footer_bgcolor" => '#525252', 'ttw_body_bgcolor' => '#000000', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => false, 'ttw_themename' => "Ivory Drive", 'ttw_themedir' => 'ivorydrive', 'ttw_theme_description' => "Modelled after IvoryDrive.com website. Use the Ivory Drive header to see full design.", 'ttw_theme_image' => 'ivorydrive.png', "ttw_theme_head_opts" => '') ) , array ( "name" => "Black and White", "def" => array ( "ttw_menubar_color" => '#000000', "ttw_menubar_hoverbg_color" => '$333333', "ttw_menubar_text_color" => '#EEEEEE', "ttw_menubar_hover_color" => '#FFFFFF', 'ttw_menubar_curpage_color' => '#BABABA', "ttw_bold_menu" => 'checked', "ttw_hide_menu" => false, "ttw_large_tagline" => false, "ttw_hide_site_title" => false, "ttw_header_image_height" => false, "ttw_after_header" => '0', "ttw_sidebars" => false, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Arial (sans-serif)', 'ttw_small_content_font' => false, 'ttw_title_font' => 'Arial (sans-serif)', 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => false, 'ttw_hr_color' => false, "ttw_title_color" => '#FFFFFF', "ttw_text_color" => '#FFFFFF', "ttw_content_color" => '#FFFFFF', "ttw_widget_title_color" => '#FFFFFF', "ttw_widget_color" => '#FFFFFF', "ttw_link_color" => '#DDDDDD', "ttw_link_visited_color" => '#EEEEEE', "ttw_link_hover_color" => '#AAAAAA', "ttw_wlink_color" => '#DDDDDD', "ttw_wlink_visited_color" => '#EEEEEE', "ttw_wlink_hover_color" => '#AAAAAA', "ttw_plink_color" => '#FFFFFF', "ttw_plink_visited_color" => '#FFFFFF', "ttw_plink_hover_color" => '#AAAAAA', "ttw_info_color" => '#BBBBBB', "ttw_ilink_color" => '#DDDDDD', "ttw_ilink_visited_color" => '#EEEEEE', "ttw_ilink_hover_color" => '#AAAAAA', "ttw_page_bgcolor" => '#000000', "ttw_main_bgcolor" => '#000000', "ttw_content_bgcolor" => '#000000', "ttw_side1_bgcolor" => '#000000', "ttw_side2_bgcolor" => '#000000', "ttw_topbottom_bgcolor" => '#000000', "ttw_footer_bgcolor" => '#000000', 'ttw_body_bgcolor' => '#000000', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => false, 'ttw_themename' => "Black and White", 'ttw_themedir' => 'blackandwhite', 'ttw_theme_description' => "Black and White - no color here.", 'ttw_theme_image' => 'blackandwhite.png', "ttw_theme_head_opts" => '') ) , array ( "name" => "Dark - 2 Left Sidebars", "def" => array ( "ttw_menubar_color" => '#110B0C', "ttw_menubar_hoverbg_color" => '#734E4F', "ttw_menubar_text_color" => '#B8B8B8', "ttw_menubar_hover_color" => '#FFFFFF', 'ttw_menubar_curpage_color' => '#FFFFFF', "ttw_bold_menu" => false, "ttw_hide_menu" => false, "ttw_move_menu" => false, "ttw_large_tagline" => false, "ttw_hide_site_title" => false, "ttw_header_image_height" => false, "ttw_after_header" => '0', "ttw_sidebars" => SB_2l, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Tahoma (sans-serif)', 'ttw_small_content_font' => "checked", 'ttw_title_font' => 'Georgia (serif)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => '1', 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => false, 'ttw_hr_color' => false, "ttw_title_color" => '#110B0C', "ttw_text_color" => '#000055', "ttw_content_color" => '#0D0D0D', "ttw_widget_title_color" => '#000055', "ttw_widget_color" => '#0D0D0D', "ttw_link_color" => '#2753C2', "ttw_link_visited_color" => '#2045A1', "ttw_link_hover_color" => '#1C2BFF', "ttw_wlink_color" => '#2753C2', "ttw_wlink_visited_color" => '#2045A1', "ttw_wlink_hover_color" => '#1C2BFF', "ttw_plink_color" => '#000055', "ttw_plink_visited_color" => '#000055', "ttw_plink_hover_color" => '#1C2BFF', "ttw_info_color" => '#888888', "ttw_ilink_color" => '#2753C2', "ttw_ilink_visited_color" => '#2045A1', "ttw_ilink_hover_color" => '#1C2BFF', "ttw_page_bgcolor" => '#734E4F', "ttw_main_bgcolor" => '#F5F5F4', "ttw_content_bgcolor" => '#F5F5F4', "ttw_side1_bgcolor" => '#F5F5F4', "ttw_side2_bgcolor" => '#F5F5F4', "ttw_topbottom_bgcolor" => '#F5F5F4', "ttw_footer_bgcolor" => '#F5F5F4', 'ttw_body_bgcolor' => '#734E4F', 'ttw_fadebody_bg' => true, 'ttw_wrap_shadow' => true, 'ttw_themename' => "Dark - 2 Left Sidebars", 'ttw_themedir' => 'dark', 'ttw_theme_description' => "A Dark Theme with 2 sidebars on the left.", 'ttw_theme_image' => 'dark2.png', "ttw_theme_head_opts" => '') ) , array ( "name" => "Blue", "def" => array ( "ttw_menubar_color" => '#A8B4FF', "ttw_menubar_hoverbg_color" => '#97A2E6', "ttw_menubar_text_color" => '#EBEBEB', "ttw_menubar_hover_color" => '#FFFFFE', 'ttw_menubar_curpage_color' => '#FFFFFF', "ttw_bold_menu" => 'checked', "ttw_hide_menu" => false, "ttw_move_menu" => false, "ttw_large_tagline" => false, "ttw_hide_site_title" => false, "ttw_header_image_height" => false, "ttw_after_header" => '0', "ttw_sidebars" => false, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Arial (sans-serif)', 'ttw_small_content_font' => 'checked', 'ttw_title_font' => 'Arial (sans-serif)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => false, 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => '#A8B4FF', 'ttw_hr_color' => '#A8B4FF', "ttw_title_color" => '#2A2A7D', "ttw_text_color" => '#000000', "ttw_content_color" => '#000000', "ttw_widget_title_color" => '#222222', "ttw_widget_color" => '#141414', "ttw_link_color" => '#3C3CB3', "ttw_link_visited_color" => '#2A2A7D', "ttw_link_hover_color" => '#F54831', "ttw_wlink_color" => '#0066CC', "ttw_wlink_visited_color" => '#004487', "ttw_wlink_hover_color" => '#F54831', "ttw_plink_color" => '#000000', "ttw_plink_visited_color" => '#000000', "ttw_plink_hover_color" => '#0066CC', "ttw_info_color" => '#888888', "ttw_ilink_color" => '#0066CC', "ttw_ilink_visited_color" => '#2A2A7D', "ttw_ilink_hover_color" => '#F54831', "ttw_page_bgcolor" => '#A8B4FF', "ttw_main_bgcolor" => '#FCFCFC', "ttw_content_bgcolor" => '#FCFCFC', "ttw_side1_bgcolor" => '#F0F0F0', "ttw_side2_bgcolor" => '#F0F0F0', "ttw_topbottom_bgcolor" => '#F0F0F0', "ttw_footer_bgcolor" => '#F0F0F0', 'ttw_body_bgcolor' => '#C2CEFF', 'ttw_fadebody_bg' => true, 'ttw_wrap_shadow' => false, 'ttw_themename' => "Blue", 'ttw_themedir' => 'blue', 'ttw_theme_description' => "A simple theme, based on blue.", 'ttw_theme_image' => 'blue.png', "ttw_theme_head_opts" => '') ) , array ( "name" => "Dark with Green", "def" => array ( "ttw_menubar_color" => '#1F1F1F', "ttw_menubar_hoverbg_color" => '#4D4D4D', "ttw_menubar_text_color" => '#EEEEEE', "ttw_menubar_hover_color" => '#FFFFFF', 'ttw_menubar_curpage_color' => '#B8B8B8', "ttw_bold_menu" => 'checked', "ttw_hide_menu" => false, "ttw_move_menu" => false, "ttw_large_tagline" => 'checked', "ttw_hide_site_title" => false, "ttw_header_image_height" => '0', "ttw_after_header" => '0', "ttw_sidebars" => false, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Arial (sans-serif)', 'ttw_small_content_font' => 'checked', 'ttw_title_font' => 'Georgia (serif)', 'ttw_header_underline' => '1', 'ttw_widget_header_underline' => false, 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => '#1F1F1F', 'ttw_hr_color' => '#00FF00', "ttw_title_color" => '#00FF00', "ttw_text_color" => '#00FF00', "ttw_content_color" => '#FFFFFF', "ttw_widget_title_color" => '#FFFFFF', "ttw_widget_color" => '#BABABA', "ttw_link_color" => '#00FF00', "ttw_link_visited_color" => '#00C700', "ttw_link_hover_color" => '#FFFF00', "ttw_wlink_color" => '#00FF00', "ttw_wlink_visited_color" => '#00C700', "ttw_wlink_hover_color" => '#FFFF00', "ttw_plink_color" => '#00FF00', "ttw_plink_visited_color" => '#00FF00', "ttw_plink_hover_color" => '#FFFF00', "ttw_info_color" => '#FFFFFF', "ttw_ilink_color" => '#00FF00', "ttw_ilink_visited_color" => '#00C700', "ttw_ilink_hover_color" => '#FFFF00', "ttw_page_bgcolor" => '#262626', "ttw_main_bgcolor" => '#1F1F1F', "ttw_content_bgcolor" => '#1F1F1F', "ttw_side1_bgcolor" => '#1F1F1F', "ttw_side2_bgcolor" => '#1F1F1F', "ttw_topbottom_bgcolor" => '#1F1F1F', "ttw_footer_bgcolor" => '#262626c', 'ttw_body_bgcolor' => '#1F1F1F', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => false, 'ttw_themename' => "Dark with Green", 'ttw_themedir' => 'darkwithgreen', 'ttw_theme_description' => "Almost Black, with Green titles", 'ttw_theme_image' => 'darkgreen.png', "ttw_theme_head_opts" => '') ) , array ( "name" => "Browns", "def" => array ( "ttw_menubar_color" => '#2B1915', "ttw_menubar_hoverbg_color" => '#522D25', "ttw_menubar_text_color" => '#C59C87', "ttw_menubar_hover_color" => '#FFCAAF', 'ttw_menubar_curpage_color' => '#FFFFFF', "ttw_bold_menu" => 'checked', "ttw_hide_menu" => false, "ttw_move_menu" => 'checked', "ttw_large_tagline" => false, "ttw_hide_site_title" => false, "ttw_header_image_height" => false, "ttw_after_header" => '5', "ttw_sidebars" => false, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Verdana (sans-serif)', 'ttw_small_content_font' => false, 'ttw_title_font' => 'Garamond (serif)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => '1', 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => '#2B1915', 'ttw_hr_color' => '#2B1915', "ttw_title_color" => '#C7A7A0', "ttw_text_color" => '#D1A68F', "ttw_content_color" => '#D1A68F', "ttw_widget_title_color" => '#C7A7A0', "ttw_widget_color" => '#E3B49B', "ttw_link_color" => '#A57862', "ttw_link_visited_color" => '#A57862', "ttw_link_hover_color" => '#E8A98A', "ttw_wlink_color" => '#A57862', "ttw_wlink_visited_color" => '#A57862', "ttw_wlink_hover_color" => '#E8A98A', "ttw_plink_color" => '#D1A68F', "ttw_plink_visited_color" => '#D1A68F', "ttw_plink_hover_color" => '#A57862', "ttw_info_color" => '#D1A68F', "ttw_ilink_color" => '#C59C87', "ttw_ilink_visited_color" => '#C59C87', "ttw_ilink_hover_color" => '#E8A98A', "ttw_page_bgcolor" => '#3A221C', "ttw_main_bgcolor" => '#522D25', "ttw_content_bgcolor" => '#522D25', "ttw_side1_bgcolor" => '#522D25', "ttw_side2_bgcolor" => '#2E1914', "ttw_topbottom_bgcolor" => '#522D25', "ttw_footer_bgcolor" => '#2E1914', 'ttw_body_bgcolor' => '#522D25', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => false, 'ttw_themename' => "Browns", 'ttw_themedir' => 'browns', 'ttw_theme_description' => "Brown theme - almost a camo look.", 'ttw_theme_image' => 'browns.png', "ttw_theme_head_opts" => '') ) , array ( "name" => "Reds", "def" => array ( "ttw_menubar_color" => '#660000', "ttw_menubar_hoverbg_color" => '#AA0000', "ttw_menubar_text_color" => '#D8D8D8', "ttw_menubar_hover_color" => '#FFFFFF', 'ttw_menubar_curpage_color' => '#FFFFFF', "ttw_bold_menu" => 'checked', "ttw_move_menu" => false, "ttw_large_tagline" => false, "ttw_hide_site_title" => false, "ttw_header_image_height" => false, "ttw_after_header" => '10', "ttw_sidebars" => false, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Verdana (sans-serif)', 'ttw_small_content_font' => 'checked', 'ttw_title_font' => 'Garamond (serif)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => '1', 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => '#660000', 'ttw_hr_color' => '#ED0000', "ttw_title_color" => '#FFFFCC', "ttw_text_color" => '#FFFFCC', "ttw_content_color" => '#FFFFFE', "ttw_widget_title_color" => '#FFFFFE', "ttw_widget_color" => '#FFFFFE', "ttw_link_color" => '#FFFFCC', "ttw_link_visited_color" => '#FFFFCC', "ttw_link_hover_color" => '#FFFFFE', "ttw_wlink_color" => '#FFFFCC', "ttw_wlink_visited_color" => '#FFFFCC', "ttw_wlink_hover_color" => '#FFFFFE', "ttw_plink_color" => '#FFFFCC', "ttw_plink_visited_color" => '#FFFFCC', "ttw_plink_hover_color" => '#FFFFFE', "ttw_info_color" => '#F0F0F0', "ttw_ilink_color" => '#FFFFCC', "ttw_ilink_visited_color" => '#FFFFCC', "ttw_ilink_hover_color" => '#FFFFFE', "ttw_page_bgcolor" => '#FFFFFE', "ttw_main_bgcolor" => '#990000', "ttw_content_bgcolor" => '#990000', "ttw_side1_bgcolor" => '#990000', "ttw_side2_bgcolor" => '#990000', "ttw_topbottom_bgcolor" => '#990000', "ttw_footer_bgcolor" => '#990000', 'ttw_body_bgcolor' => '#660000', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => false, 'ttw_themename' => "Reds", 'ttw_themedir' => 'reds', 'ttw_theme_description' => "Red based theme - good example of some custom CSS entries.", 'ttw_theme_image' => 'reds.png', "ttw_theme_head_opts" => '') ) , array ( "name" => "Tan and Gray", "def" => array ( "ttw_menubar_color" => '#9D8851', "ttw_menubar_hoverbg_color" => '#BAA160', "ttw_menubar_text_color" => '#303030', "ttw_menubar_hover_color" => '#000000', 'ttw_menubar_curpage_color' => '#FFFFFF', "ttw_bold_menu" => false, "ttw_hide_menu" => false, "ttw_move_menu" => false, "ttw_large_tagline" => 'checked', "ttw_hide_site_title" => false, "ttw_header_image_height" => false, "ttw_after_header" => '0', "ttw_sidebars" => false, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Helvetica Neue (sans-serif)', 'ttw_small_content_font' => false, 'ttw_title_font' => 'Helvetica Neue (sans-serif)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => false, 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => '#9D8851', 'ttw_hr_color' => '#9D8851', "ttw_title_color" => '#FFFFFF', "ttw_text_color" => '#333333', "ttw_content_color" => '#333333', "ttw_widget_title_color" => '#282828', "ttw_widget_color" => '#282828', "ttw_link_color" => '#000000', "ttw_link_visited_color" => '#202020', "ttw_link_hover_color" => '#170D75', "ttw_wlink_color" => '#000000', "ttw_wlink_visited_color" => '#202020', "ttw_wlink_hover_color" => '#170D75', "ttw_plink_color" => '#333333', "ttw_plink_visited_color" => '#333333', "ttw_plink_hover_color" => '#170D75', "ttw_info_color" => '#6E6E6E', "ttw_ilink_color" => '#000000', "ttw_ilink_visited_color" => '#202020', "ttw_ilink_hover_color" => '#170D75', "ttw_page_bgcolor" => '#FFFFFF', "ttw_main_bgcolor" => '#FFFFFF', "ttw_content_bgcolor" => '#FFFFFF', "ttw_side1_bgcolor" => '#999999', "ttw_side2_bgcolor" => '#999999', "ttw_topbottom_bgcolor" => '#999999', "ttw_footer_bgcolor" => '#9D8851', 'ttw_body_bgcolor' => '#999999', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => false, 'ttw_themename' => "Tan and Gray", 'ttw_themedir' => 'tanandgray', 'ttw_theme_description' => "A very clean tan, gray, and white theme.", 'ttw_theme_image' => 'tanandgray.png', "ttw_theme_head_opts" => '') ) , array ( "name" => "Orange", "def" => array ( "ttw_menubar_color" => '#EA7521', "ttw_menubar_hoverbg_color" => '#FF8024', "ttw_menubar_text_color" => '#E8E8E8', "ttw_menubar_hover_color" => '#FFFFFF', 'ttw_menubar_curpage_color' => '#FFFFFF', "ttw_bold_menu" => false, "ttw_hide_menu" => false, "ttw_move_menu" => false, "ttw_large_tagline" => false, "ttw_hide_site_title" => false, "ttw_header_image_height" => false, "ttw_after_header" => '20', "ttw_sidebars" => false, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Arial (sans-serif)', 'ttw_small_content_font' => 'checked', 'ttw_title_font' => 'Arial (sans-serif)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => false, 'ttw_rounded_corners' => 'checked', 'ttw_useborders' => false, 'ttw_footer_border_color' => '#EA7521', 'ttw_hr_color' => '#EA7521', "ttw_title_color" => false, "ttw_text_color" => '#EA7521', "ttw_content_color" => '#444444', "ttw_widget_title_color" => '#222222', "ttw_widget_color" => '#404040', "ttw_link_color" => '#000000', "ttw_link_visited_color" => '#000000', "ttw_link_hover_color" => '#EA7521', "ttw_wlink_color" => '#000000', "ttw_wlink_visited_color" => '#000000', "ttw_wlink_hover_color" => '#EA7521', "ttw_plink_color" => '#000000', "ttw_plink_visited_color" => '#000000', "ttw_plink_hover_color" => '#EA7521', "ttw_info_color" => '#888888', "ttw_ilink_color" => '#AE927D', "ttw_ilink_visited_color" => '#AE927D', "ttw_ilink_hover_color" => '#EA7521', "ttw_page_bgcolor" => '#FFFFFF', "ttw_main_bgcolor" => '#FFFFFF', "ttw_content_bgcolor" => '#FFFFFF', "ttw_side1_bgcolor" => '#EBEBEB', "ttw_side2_bgcolor" => '#FFFFFF', "ttw_topbottom_bgcolor" => '#FFFFFF', "ttw_footer_bgcolor" => '#FFFFFF', 'ttw_body_bgcolor' => '#C9651C', 'ttw_fadebody_bg' => true, 'ttw_wrap_shadow' => true, 'ttw_themename' => "Orange", 'ttw_themedir' => 'orange', 'ttw_theme_description' => "Simple Orange headers", 'ttw_theme_image' => 'orange.png', "ttw_theme_head_opts" => '' ) ) , array ( "name" => "Simple Silver", "def" => array ( "ttw_menubar_color" => '#707070', "ttw_menubar_hoverbg_color" => '#545454', "ttw_menubar_text_color" => '#D1CDCD', "ttw_menubar_hover_color" => '#28ACF0', 'ttw_menubar_curpage_color' => '#FFFFFF', "ttw_bold_menu" => 'checked', "ttw_hide_menu" => false, "ttw_move_menu" => false, "ttw_large_tagline" => 'checked', "ttw_hide_site_title" => false, "ttw_header_image_height" => '0', "ttw_after_header" => '20', "ttw_sidebars" => false, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Verdana (sans-serif)', 'ttw_small_content_font' => 'checked', 'ttw_title_font' => 'Georgia (serif)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => '2', 'ttw_rounded_corners' => 'checked', 'ttw_useborders' => 'checked', 'ttw_footer_border_color' => false, 'ttw_hr_color' => false, "ttw_title_color" => '#000000', "ttw_text_color" => '#000000', "ttw_content_color" => '#000000', "ttw_widget_title_color" => '#000000', "ttw_widget_color" => '#000000', "ttw_link_color" => '#9E1FCC', "ttw_link_visited_color" => '#743399', "ttw_link_hover_color" => '#28ACF0', "ttw_wlink_color" => '#9E1FCC', "ttw_wlink_visited_color" => '#743399', "ttw_wlink_hover_color" => '#28ACF0', "ttw_plink_color" => '#000000', "ttw_plink_visited_color" => '#000000', "ttw_plink_hover_color" => '#28ACF0', "ttw_info_color" => '#000000', "ttw_ilink_color" => '#0000FF', "ttw_ilink_visited_color" => '#000088', "ttw_ilink_hover_color" => '#28ACF0', "ttw_page_bgcolor" => '#E1E0E0', "ttw_main_bgcolor" => '#E1E0E0', "ttw_content_bgcolor" => '#E1E0E0', "ttw_side1_bgcolor" => '#C0C0C0', "ttw_side2_bgcolor" => '#C0C0C0', "ttw_topbottom_bgcolor" => '#C0C0C0', "ttw_footer_bgcolor" => '#C0C0C0', 'ttw_body_bgcolor' => '#C0C0C0', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => true, 'ttw_themename' => "Simple Silver", 'ttw_themedir' => 'simplesilver', 'ttw_theme_description' => "A simple silver theme.", 'ttw_theme_image' => 'simplesilver.png', "ttw_theme_head_opts" => '') ) , array ( "name" => 'White', "def" => array ( "ttw_menubar_color" => '#FCFCFC', "ttw_menubar_hoverbg_color" => '#DDDDDD', "ttw_menubar_text_color" => '#000000', "ttw_menubar_hover_color" => '#444444', 'ttw_menubar_curpage_color' => '#00008F', "ttw_bold_menu" => 'checked', "ttw_hide_menu" => false, "ttw_move_menu" => false, "ttw_large_tagline" => 'checked', "ttw_hide_site_title" => false, "ttw_header_image_height" => false, "ttw_after_header" => '4', "ttw_sidebars" => SB_1rw, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Verdana (sans-serif)', 'ttw_small_content_font' => false, 'ttw_title_font' => 'Verdana (sans-serif)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => false, 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => false, 'ttw_hr_color' => false, "ttw_title_color" => '#3366BB', "ttw_text_color" => '#3366BB', "ttw_content_color" => false, "ttw_widget_title_color" => false, "ttw_widget_color" => false, "ttw_link_color" => false, "ttw_link_visited_color" => false, "ttw_link_hover_color" => false, "ttw_wlink_color" => false, "ttw_wlink_visited_color" => false, "ttw_wlink_hover_color" => false, "ttw_plink_color" => '#3366BB', "ttw_plink_visited_color" => '#3366BB', "ttw_plink_hover_color" => '#FF4B32', "ttw_info_color" => false, "ttw_ilink_color" => false, "ttw_ilink_visited_color" => false, "ttw_ilink_hover_color" => false, "ttw_page_bgcolor" => '#FCFCFC', "ttw_main_bgcolor" => '#FCFCFC', "ttw_content_bgcolor" => '#FCFCFC', "ttw_side1_bgcolor" => '#FCFCFC', "ttw_side2_bgcolor" => '#FCFCFC', "ttw_topbottom_bgcolor" => '#FCFCFC', "ttw_footer_bgcolor" => '#FCFCFC', 'ttw_body_bgcolor' => '#FCFCFC', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => false, 'ttw_themename' => "White", 'ttw_themedir' => 'white', 'ttw_theme_description' => "Very White Theme with wide right sidebar.", 'ttw_theme_image' => 'white.png', "ttw_theme_head_opts" => '') ) , array ( "name" => 'Shadows', "def" => array ( "ttw_menubar_color" => '#444444', "ttw_menubar_hoverbg_color" => '#222222', "ttw_menubar_text_color" => '#D0D0D0', "ttw_menubar_hover_color" => '#888888', 'ttw_menubar_curpage_color' => '#FFFFFE', "ttw_bold_menu" => 'checked', "ttw_hide_menu" => false, "ttw_move_menu" => false, "ttw_large_tagline" => 'checked', "ttw_hide_site_title" => false, "ttw_header_image_height" => false, "ttw_after_header" => '15', "ttw_sidebars" => SB_1rw, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Arial (sans-serif)', 'ttw_small_content_font' => 'checked', 'ttw_title_font' => 'Times New Roman (serif)', 'ttw_header_underline' => '1', 'ttw_widget_header_underline' => '1', 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => '#444444', 'ttw_hr_color' => '#444444', "ttw_title_color" => '#000000', "ttw_text_color" => '#445566', "ttw_content_color" => '#333333', "ttw_widget_title_color" => '#445566', "ttw_widget_color" => '#333333', "ttw_link_color" => '#666666', "ttw_link_visited_color" => '#555555', "ttw_link_hover_color" => '#4448BD', "ttw_wlink_color" => '#666666', "ttw_wlink_visited_color" => '#555555', "ttw_wlink_hover_color" => '#4448BD', "ttw_plink_color" => '#445566', "ttw_plink_visited_color" => '#445566', "ttw_plink_hover_color" => '#4448BD', "ttw_info_color" => '#888888', "ttw_ilink_color" => '#666666', "ttw_ilink_visited_color" => '#555555', "ttw_ilink_hover_color" => '#4448BD', "ttw_page_bgcolor" => '#F7F7F7', "ttw_main_bgcolor" => '#F7F7F7', "ttw_content_bgcolor" => '#F7F7F7', "ttw_side1_bgcolor" => '#F2F2F2', "ttw_side2_bgcolor" => '#F2F2F2', "ttw_topbottom_bgcolor" => '#F2F2F2', "ttw_footer_bgcolor" => '#F7F7F7', 'ttw_body_bgcolor' => '#F7F7F7', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => true, 'ttw_themename' => "Shadows", 'ttw_themedir' => 'shadows', 'ttw_theme_description' => "Gray with Shadows", 'ttw_theme_image' => 'shadows.png', "ttw_theme_head_opts" => '') ) , array ( "name" => 'Sopris', "def" => array ( "ttw_menubar_color" => '#8EBAD7', "ttw_menubar_hoverbg_color" => '#53A13F', "ttw_menubar_text_color" => '#22421A', "ttw_menubar_hover_color" => '#79EB5C', 'ttw_menubar_curpage_color' => '#366929', "ttw_bold_menu" => 'checked', "ttw_hide_menu" => false, "ttw_move_menu" => false, "ttw_large_tagline" => false, "ttw_hide_site_title" => false, "ttw_header_image_height" => '198', "ttw_after_header" => '0', "ttw_sidebars" => SB_1rw, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Arial (sans-serif)', 'ttw_small_content_font' => 'checked', 'ttw_title_font' => 'Arial (sans-serif)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => false, 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => '#53A13F', 'ttw_hr_color' => '#326126', "ttw_title_color" => '#22421A', "ttw_text_color" => '#22421A', "ttw_content_color" => '#333333', "ttw_widget_title_color" => '#22421A', "ttw_widget_color" => '#444444', "ttw_link_color" => '#16569E', "ttw_link_visited_color" => '#0F3A6B', "ttw_link_hover_color" => '#79EB5C', "ttw_wlink_color" => '#16569E', "ttw_wlink_visited_color" => '#0F3A6B', "ttw_wlink_hover_color" => '#79EB5C', "ttw_plink_color" => '#22421A', "ttw_plink_visited_color" => '#22421A', "ttw_plink_hover_color" => '#79EB5C', "ttw_info_color" => '#444444', "ttw_ilink_color" => '#16569E', "ttw_ilink_visited_color" => '#0F3A6B', "ttw_ilink_hover_color" => '#79EB5C', "ttw_page_bgcolor" => '#8EBAD7', "ttw_main_bgcolor" => '#FFFFFE', "ttw_content_bgcolor" => '#FFFFFE', "ttw_side1_bgcolor" => '#D9ECFF', "ttw_side2_bgcolor" => '#CBFFAD', "ttw_topbottom_bgcolor" => '#CBFFAD', "ttw_footer_bgcolor" => '#CBFFAD', 'ttw_body_bgcolor' => '#4592C4', 'ttw_fadebody_bg' => true, 'ttw_wrap_shadow' => false, 'ttw_themename' => "Sopris", 'ttw_themedir' => 'sopris', 'ttw_theme_description' => "Mountain Blues and Greens", 'ttw_theme_image' => 'sopris.png', "ttw_theme_head_opts" => '') ) , array ( "name" => TTW_DEFAULT_THEME, "def" => array ( "ttw_menubar_color" => '#000000', "ttw_menubar_hoverbg_color" => '#333333', "ttw_menubar_text_color" => '#AAAAAA', "ttw_menubar_hover_color" => '#FFFFFF', 'ttw_menubar_curpage_color' => '#FFFFFF', "ttw_bold_menu" => false, "ttw_hide_menu" => false, "ttw_move_menu" => false, "ttw_large_tagline" => false, "ttw_hide_site_title" => false, "ttw_header_image_height" => '198', "ttw_after_header" => '40', "ttw_sidebars" => SB_default, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => 'Bitstream Charter (default,serif)', 'ttw_small_content_font' => false, 'ttw_title_font' => 'Helvetica Neue (default, sans)', 'ttw_header_underline' => false, 'ttw_widget_header_underline' => false, 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => '#000000', 'ttw_hr_color' => '#000000', "ttw_title_color" => '#000000', "ttw_text_color" => '#000000', "ttw_content_color" => '#444444', "ttw_widget_title_color" => '#222222', "ttw_widget_color" => '#666666', "ttw_link_color" => '#0066CC', "ttw_link_visited_color" => '#743399', "ttw_link_hover_color" => '#FF4B33', "ttw_wlink_color" => '#0066CC', "ttw_wlink_visited_color" => '#743399', "ttw_wlink_hover_color" => '#FF4B33', "ttw_plink_color" => '#000000', "ttw_plink_visited_color" => '#000000', "ttw_plink_hover_color" => '#FF4B33', "ttw_info_color" => '#888888', "ttw_ilink_color" => '#888888', "ttw_ilink_visited_color" => '#888888', "ttw_ilink_hover_color" => '#FF4B33', "ttw_page_bgcolor" => '#FFFFFF', "ttw_main_bgcolor" => 'transparent', "ttw_content_bgcolor" => 'transparent', "ttw_side1_bgcolor" => 'transparent', "ttw_side2_bgcolor" => 'transparent', "ttw_topbottom_bgcolor" => 'transparent', "ttw_footer_bgcolor" => 'transparent', 'ttw_body_bgcolor' => '#F1F1F1', 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => false, 'ttw_themename' => TTW_DEFAULT_THEME, 'ttw_themedir' => 'twentyten', 'ttw_theme_description' => "Twenty Ten Theme (with Weaver modifications)", 'ttw_theme_image' => 'twentyten.png', "ttw_theme_head_opts" => '') ) , array ( "name" => 'BLANK TEMPLATE', "def" => array ( "ttw_menubar_color" => false, "ttw_menubar_hoverbg_color" => false, "ttw_menubar_text_color" => false, "ttw_menubar_hover_color" => false, 'ttw_menubar_curpage_color' => false, "ttw_bold_menu" => false, "ttw_hide_menu" => false, "ttw_move_menu" => false, "ttw_large_tagline" => false, "ttw_hide_site_title" => false, "ttw_header_image_height" => false, "ttw_after_header" => false, "ttw_sidebars" => false, 'ttw_hide_widg_pages' => false, 'ttw_hide_widg_posts' => false, 'ttw_content_font' => false, 'ttw_small_content_font' => false, 'ttw_title_font' => false, 'ttw_header_underline' => false, 'ttw_widget_header_underline' => false, 'ttw_rounded_corners' => false, 'ttw_useborders' => false, 'ttw_footer_border_color' => false, 'ttw_hr_color' => false, "ttw_title_color" => false, "ttw_text_color" => false, "ttw_content_color" => false, "ttw_widget_title_color" => false, "ttw_widget_color" => false, "ttw_link_color" => false, "ttw_link_visited_color" => false, "ttw_link_hover_color" => false, "ttw_wlink_color" => false, "ttw_wlink_visited_color" => false, "ttw_wlink_hover_color" => false, "ttw_plink_color" => false, "ttw_plink_visited_color" => false, "ttw_plink_hover_color" => false, "ttw_info_color" => false, "ttw_ilink_color" => false, "ttw_ilink_visited_color" => false, "ttw_ilink_hover_color" => false, "ttw_page_bgcolor" => false, "ttw_main_bgcolor" => false, "ttw_content_bgcolor" => false, "ttw_side1_bgcolor" => false, "ttw_side2_bgcolor" => false, "ttw_topbottom_bgcolor" => false, "ttw_footer_bgcolor" => false, 'ttw_body_bgcolor' => false, 'ttw_fadebody_bg' => false, 'ttw_wrap_shadow' => false, 'ttw_themename' => "", 'ttw_themedir' => '', 'ttw_theme_description' => "", 'ttw_theme_image' => false, "ttw_theme_head_opts" => false) ) ); } /* end of block for my folding editor */ $lim = count($ttw_themes); for ( $i = 0; $i < $lim; $i++ ) { $needle = $ttw_themes[$i]; $ttw_id = $needle['name']; if ( $ttw_id == $theme) { return $needle['def']; } } return false; } function st_build_theme_list() { // called when ttw-subthemes is loaded, it will build the list of themes once per session global $ttw_themeList, $ttw_fullThemeList; // the default list and the master list $ttw_fullThemeList = array(); // start with empty list // first, build the list from built in themes foreach ($ttw_themeList as $name) { // this is the default list, sorted the way we want if ($name == 'My Saved Theme') { $img = 'custom.png'; $desc = "Custom theme"; } else { $curTheme = st_get_theme($name); if ($curTheme == '') { $img = 'custom.png'; $desc = "Description not available"; } else { $img = $curTheme['ttw_theme_image']; $desc = $curTheme['ttw_theme_description']; } } ttw_add_theme_to_list($name, $desc, get_bloginfo('stylesheet_directory') . '/images/subthemes/' . $img); } do_action('ttwx_themes_add_to_list'); // let plugin themes add themeselves to end of the list } function ttw_add_theme_to_list($name, $description, $image) { // add a theme to the end of the theme list global $ttw_fullThemeList; $ttw_fullThemeList[$name]['name'] = $name; $ttw_fullThemeList[$name]['desc'] = $description; $ttw_fullThemeList[$name]['img'] = $image; } function st_pick_theme($altID) { // display a picker for the list of themes. global $ttw_fullThemeList; // the master list /* define control items for theme picker */ $curTheme = ttw_getopt('ttw_subtheme'); $showImg = $ttw_fullThemeList[$curTheme]['img']; $selectID = 'ttw_subtheme'.$altID; // allows more than one form on the same admin page $subName = 'setsubtheme'.$altID; ?>

Select a theme:   Select a predefined sub-theme from the list. Current theme: $curTheme"); echo ("  "); ?>
  type='submit' value='Set to Selected Sub-Theme'/> Please note: Changing sub-theme will replace all your current "Main Options" settings. You can save them first with the "Save in My Saved Theme" button below.
  Save all currently saved options as My Saved Theme. You will be able to restore these later by selecting My Saved Theme. Please note: be sure to click Save Current Settings on the Main Options panel first to save any changes you might have made.
Please note: Changing sub-theme will replace all current "Main Options" settings, plus "Advanced Options" Special Theme <HEAD> Section Overrides settings. Other "Advanced Options" settings are not changed. (You can save all current settings from the Save/Restore tab).
  Save all currently saved options (both Main and Advanced) as My Saved Theme. You will be able to restore these later by selecting My Saved Theme.
Theme name:  " />  This name is used only here, but is preserved when you "Save" a theme using this admin tab.

Save/Restore Themes

You can save all the settings from the current theme by:

  1. "Save in My Saved Theme" - Saves a copy in server's database. Survives Weaver Theme updates. -or-
  2. Download current theme settings to a file on your own computer. -or-
  3. Save settings to a file on your Site's file system (in .

You can restore a saved theme by:

  1. Picking "My Saved Theme" from the standard themes list. -or-
  2. Restoring a theme that you saved in a file on your site (to "My Saved Theme"). -or-
  3. Uploading a theme from a file saved on your own computer (to "My Saved Theme"). -or-
  4. Uploading a theme from a web based URL (to "My Saved Theme").

Use "My Saved Theme"


Save Current Theme to File or Download to your computer

Save all currently saved options (both Main and Advanced) either by downloading to your computer or saving a file on your Wordpress Site's directory. You will be able to restore this theme later using the Restore Theme button. Please note: be sure to click Save Current Settings first to save any changes you might have made.

Save as file on this website's server

Please provide a name for your file, then click the "Save File" button. Warning: Duplicate names will automatically overwrite existing file without notification.

Name for saved theme:  (Please use a meaningful name - do not provide file extension. Name might be altered to standard form.)
   Save Theme in File - Theme will be saved in directory on your site server.

Download to your computer

Please right-click ">[* here *] to download the saved theme to your computer.


Restore Saved Theme from file or URL

You can restore a previously saved theme file, directly from your Wordpress Site's directory, from a file saved on your computer, or by providing an "http" URL address of the file (this might be from another site with Weaver themes). Note: after you restore a saved theme, it will be loaded into "My Saved Theme". If you've uploaded the theme from your computer or a URL, you might want to also then save a local copy on your website server.

Restore from file saved on this website's server
Select theme file name:  (Restores to "My Saved Theme")
   Restore a theme you've previously uploaded to your site's directory. Will become current "My Saved Theme".
 
" method="POST">
Upload file saved on your computer
Select theme file to upload:  (Restores to "My Saved Theme")
 Upload and Restore a theme from file on your computer. Will become current "My Saved Theme".
 
Restore from a URL
Enter theme file URL:  (Restores to "My Saved Theme")
Upload and Restore a theme from a web URL address. Will become current "My Saved Theme".

Sub-theme Maintenance

Warning!This action can't be undone, so be sure you mean to delete a file!

'; echo 'It looks like '.$save_dir.' does not exist.

You will need to create this writeable directory in order to save sub-themes on your site.

Maybe This Article from WordPress will help.'; echo '


'; } else if (!is_writable($save_dir)) { if(!is_writable($save_dir)){ echo '

'; echo 'It looks like '.$save_dir.' is not writable.

You will need to directory writable in order to save sub-themes on your site.

Maybe This Article from WordPress will help.'; echo '


'; $ttw_theme_dir_writable = false; } } if (!$ttw_theme_dir_writable) return ''; $filename = $save_dir . '/'. $usename; // we will add txt if ( !($handle = fopen($filename, 'w')) ) { ?>

Sorry, something went wrong.

We were unable to create the temporary file to save the theme on the server. It is likely some kind of server file permission problem.

$val) { $curVal = ttw_getopt($key); $ttw_optionsList[$key] = $curVal; } /* ok, write that sucker out! */ $tosave = serialize($ttw_optionsList); fwrite($handle, $tosave); fclose($handle); return $save_url . '/' . $usename; } function ttw_upload_theme($filename) { $handle = fopen($filename,'r'); if (!$handle) return ttw_file_fail("Can't open $filename"); /* can't open */ $contents = null; while ( !feof($handle) ) { $contents .= fread($handle, 1024); } fclose($handle); return ttw_save_serialized_theme($contents); } function ttw_save_serialized_theme($contents) { global $ttw_optionsList; if (substr($contents,0,10) != "TTW-V01.10") return ttw_file_fail("Wrong theme file version"); /* simple check for one of ours */ $restore = array(); $restore = unserialize(substr($contents,10)); if (!$restore) return ttw_file_fail("Unserialize failed"); foreach ($ttw_optionsList as $key => $val) { /* first, clear EVERYTHING in both current and mysaved */ ttw_deleteopt( $key ); ttw_deletemyopt( $key ); } st_set_to_defaults(); /* now restore defaults - saved will override changes */ /* now can set the new values from $restore */ foreach ($restore as $rkey => $rval) { if ($rval != '') { ttw_setopt( $rkey, $rval ); /* and set both sets of values */ ttw_setmyopt($rkey, $rval); } } ttw_setopt('ttw_subtheme', "My Saved Theme"); ttw_saveopts(); /* and write them to db! */ return true; } function ttw_file_fail($msg) { // might someday do something with this ttw_debug($msg); return false; } ?>