array( 'value' => 'silver', 'label' => __( 'Silver (default)', 'absolum' ) ), '1' => array( 'value' => 'grey', 'label' => __( 'Grey', 'absolum' ) ), '2' => array( 'value' => 'black', 'label' => __( 'Black', 'absolum' ) ), '3' => array( 'value' => 'purple', 'label' => __( 'Purple', 'absolum' ) ), '4' => array( 'value' => 'orange', 'label' => __( 'Orange', 'absolum' ) ), '5' => array( 'value' => 'red', 'label' => __( 'Red', 'absolum' ) ), '6' => array( 'value' => 'green', 'label' => __( 'Green', 'absolum' ) ), '7' => array( 'value' => 'blue', 'label' => __( 'Blue', 'absolum' ) ) ); $absselect_content_font = array( '0' => array( 'value' => 'georgia', 'label' => __( 'Trebuchet MS (default)', 'absolum' ) ), '1' => array( 'value' => 'segoe', 'label' => __( 'Segoe UI', 'absolum' ) ), '2' => array( 'value' => 'arial', 'label' => __( 'Arial', 'absolum' ) ), '3' => array( 'value' => 'times', 'label' => __( 'Times', 'absolum' ) ), '4' => array( 'value' => 'courier', 'label' => __( 'Courier New', 'absolum' ) ), '5' => array( 'value' => 'calibri', 'label' => __( 'Calibri', 'absolum' ) ) ); $absselect_slider = array( '0' => array( 'value' => 'disable', 'label' => __( 'Disable (default)', 'absolum' ) ), '1' => array( 'value' => 'one', 'label' => __( 'Last post - static', 'absolum' ) ), '2' => array( 'value' => 'slow', 'label' => __( 'Slow slideshow', 'absolum' ) ), '3' => array( 'value' => 'normal', 'label' => __( 'Normal slideshow', 'absolum' ) ), '4' => array( 'value' => 'fast', 'label' => __( 'Fast slideshow', 'absolum' ) ) ); $absselect_title = array( '0' => array( 'value' => 'black', 'label' => __( 'Black (default)', 'absolum' ) ), '1' => array( 'value' => 'blue', 'label' => __( 'Blue', 'absolum' ) ), '2' => array( 'value' => 'silver', 'label' => __( 'Silver', 'absolum' ) ), '3' => array( 'value' => 'brown', 'label' => __( 'Brown', 'absolum' ) ), '4' => array( 'value' => 'red', 'label' => __( 'Red', 'absolum' ) ), '5' => array( 'value' => 'green', 'label' => __( 'Green', 'absolum' ) ) ); $absselect_background = array( '0' => array( 'value' => 'blue', 'label' => __( 'Blue (default)', 'absolum' ) ), '1' => array( 'value' => 'green', 'label' => __( 'Green', 'absolum' ) ), '2' => array( 'value' => 'silver', 'label' => __( 'Silver', 'absolum' ) ), '3' => array( 'value' => 'black', 'label' => __( 'Black', 'absolum' ) ), '4' => array( 'value' => 'red', 'label' => __( 'Red', 'absolum' ) ), '5' => array( 'value' => 'yellow', 'label' => __( 'Yellow', 'absolum' ) ), '6' => array( 'value' => 'brown', 'label' => __( 'Brown', 'absolum' ) ) ); $absselect_sidebar = array( '0' => array( 'value' => 'right', 'label' => __( 'Right (default)', 'absolum' ) ), '1' => array( 'value' => 'left', 'label' => __( 'Left', 'absolum' ) ), '2' => array( 'value' => 'disable', 'label' => __( 'Disable', 'absolum' ) ) ); $absshortname = "abs"; $absoptionlist = array ( array( "id" => $absshortname, "type" => "open-tab"), array( "type" => "open"), array( "type" => "close"), array( "type" => "close-tab"), // Design array( "id" => $absshortname."-tab-1", "type" => "open-tab"), array( "type" => "open"), array( "name" => "Blog title color scheme", "desc" => "", "id" => $absshortname."_title_scheme", "type" => "select4", "std" => "false" ), array( "name" => "Menu color scheme", "desc" => "", "id" => $absshortname."_color_scheme", "type" => "select1", "std" => "false" ), array( "name" => "Background color scheme", "desc" => "", "id" => $absshortname."_back_scheme", "type" => "select5", "std" => "false" ), array( "name" => "Sidebar position", "desc" => "", "id" => $absshortname."_pos_sidebar", "type" => "select6", "std" => "false" ), array( "name" => "Display last post static/slideshow", "desc" => "Choose if you want to display last post or last 10 posts in a slideshow", "id" => $absshortname."_header_slider", "type" => "select3", "std" => "false" ), // Subscribe buttons // RSS Feed array( "name" => "RSS Feed", "desc" => "Insert custom RSS Feed URL, e.g. http://feeds.feedburner.com/Example", "id" => $absshortname."_rss_feed", "type" => "text", "std" => ""), // Newsletter array( "name" => "Newsletter", "desc" => "Insert custom newsletter URL, e.g. http://feedburner.google.com/fb/a/mailverify?uri=Example&loc=en_US", "id" => $absshortname."_newsletter", "type" => "text", "std" => ""), // Facebook array( "name" => "Facebook", "desc" => "Insert your Facebook ID", "id" => $absshortname."_facebook", "type" => "text", "std" => ""), // Twitter array( "name" => "Twitter", "desc" => "Insert your Twitter ID", "id" => $absshortname."_twitter_id", "type" => "text", "std" => ""), // LinkedIn array( "name" => "LinkedIn", "desc" => "Insert your LinkedIn profile URI", "id" => $absshortname."_linkedin_id", "type" => "text", "std" => ""), // Google+ array( "name" => "Google+", "desc" => "Insert your Google+ profile URI", "id" => $absshortname."_googleplus_id", "type" => "text", "std" => ""), // Styles array( "name" => "Content font", "desc" => "Examples: Trebuchet MS Segoe UI Arial Times Courier New Calibri ", "id" => $absshortname."_content_font", "type" => "select2", "std" => "false"), array( "name" => "Custom CSS", "desc" => 'For advanced users only: insert custom CSS, default style.css file', "id" => $absshortname."_css_content", "type" => "textarea", "std" => "false"), array( "type" => "close"), array( "type" => "close-tab"), // Themes Page array( "id" => $absshortname."-tab-2", "type" => "open-tab"), array( "name" => "Theme4Press Themes", "type" => "title"), array( "type" => "open"), array( "type" => "t4pthemes"), array( "type" => "close"), array( "type" => "close-tab"), ); /** * Create the options page */ function absolum_theme_options_do_page() { global $absthemename, $absshortname, $absoptionlist, $absselect_scheme, $absselect_slider, $absselect_content_font, $absselect_title, $absselect_background, $absselect_sidebar; if ( ! isset( $_REQUEST['updated'] ) ) { $_REQUEST['updated'] = false; } if( isset( $_REQUEST['reset'] )) { global $wpdb; $query = "DELETE FROM $wpdb->options WHERE option_name LIKE 'absolum'"; $wpdb->query($query); header("Location: themes.php?page=theme_options"); die; } ?>
'; ?>'.$absthemename.' settings reset
'; } ?>