restore_options(); wp_redirect(admin_url('themes.php?page=functions&restored=true')); }else{ $pagepress->update_option('custom_header'); $pagepress->update_option('rsslink'); $pagepress->update_option('facebooklink'); $pagepress->update_option('twitterlink'); $pagepress->update_option('twittername'); $pagepress->update_option('linkedinlink'); $pagepress->update_option('customcss'); $pagepress->update_option('headerscripts'); $pagepress->update_option('footerscripts'); // color $pagepress->update_option('colorscheme'); $pagepress->update_option('backgroundcolor'); $pagepress->update_option('headercolor'); $pagepress->update_option('linkcolor'); $pagepress->update_option('metacolor'); $pagepress->update_option('metacolortext'); $pagepress->update_option('metacolorlink'); $pagepress->update_option('headerbg'); $pagepress->update_option('blogbg'); $pagepress->update_option('thecolors'); // layout $pagepress->update_option('grandnav'); $pagepress->update_option('pagetitles'); $pagepress->update_option('hidesearch'); // sidebar $pagepress->update_option('showads'); $pagepress->update_option('adslink'); //posts $pagepress->update_option('authorinfo'); $pagepress->update_option('excerpts'); $pagepress->update_option('excerptshide'); $pagepress->update_option('excerptshidesingle'); // footer $pagepress->update_option('bottom_sidebars'); $pagepress->update_option('footnav'); $pagepress->update_option('terms'); $pagepress->update_option('favicon'); $pagepress->update_option('touchicon'); $pagepress->update_option('greeting'); $pagepress->update_option('welcomemessage'); $pagepress->update_option('welcomeall'); $pagepress->update_option('debug'); $pagepress->save_options(); wp_redirect(admin_url('themes.php?page=functions&updated=true')); } } function add_option_interface() { add_theme_page(THEMENAMESHORT.' Options', THEMENAMESHORT.' Options', '8', 'functions', 'editoptions'); } function editoptions() { ?>