array(
'value' => 'right',
'label' => __( 'Right (default)' )
),
'1' => array(
'value' => 'left',
'label' => __( 'Left' )
),
'2' => array(
'value' => 'left_right',
'label' => __( 'Left + Right' )
)
);
$select_logo = array(
'0' => array(
'value' => 'left',
'label' => __( 'Left (default)' )
),
'1' => array(
'value' => 'right',
'label' => __( 'Right' )
),
'2' => array(
'value' => 'disable',
'label' => __( 'Disable' )
)
);
$select_sidebar_num = array(
'0' => array(
'value' => 'one',
'label' => __( '1 (default)' )
),
'1' => array(
'value' => 'two',
'label' => __( '2' )
),
'2' => array(
'value' => 'disable',
'label' => __( 'Disable' )
)
);
$select_width = array(
'0' => array(
'value' => 'fixed',
'label' => __( 'Fixed (default)' )
),
'1' => array(
'value' => 'fluid',
'label' => __( 'Fluid' )
)
);
$select_home_header = array(
'0' => array(
'value' => 'search_social',
'label' => __( 'Search Field + Subscribe Buttons (default)' )
),
'1' => array(
'value' => 'post_search_social',
'label' => __( 'Recent Posts + Search Field + Subscribe Buttons' )
),
'2' => array(
'value' => 'disable',
'label' => __( 'Disable' )
)
);
$select_single_header = array(
'0' => array(
'value' => 'search_social',
'label' => __( 'Search Field + Subscribe Buttons (default)' )
),
'1' => array(
'value' => 'post_search_social',
'label' => __( 'Recent Posts + Search Field + Subscribe Buttons' )
),
'2' => array(
'value' => 'disable',
'label' => __( 'Disable' )
)
);
$select_archives_header = array(
'0' => array(
'value' => 'search_social',
'label' => __( 'Search Field + Subscribe Buttons (default)' )
),
'1' => array(
'value' => 'post_search_social',
'label' => __( 'Recent Posts + Search Field + Subscribe Buttons' )
),
'2' => array(
'value' => 'disable',
'label' => __( 'Disable' )
)
);
$select_content_back = array(
'0' => array(
'value' => 'light',
'label' => __( 'Light (default)' )
),
'1' => array(
'value' => 'dark',
'label' => __( 'Dark' )
)
);
$select_menu_back = array(
'0' => array(
'value' => 'light',
'label' => __( 'Light (default)' )
),
'1' => array(
'value' => 'dark',
'label' => __( 'Dark' )
)
);
$select_main_color = array(
'0' => array(
'value' => 'grey_blue',
'label' => __( 'Dark Grey + Blue (default)' )
),
'1' => array(
'value' => 'light_grey_blue',
'label' => __( 'Light Grey + Blue' )
),
'2' => array(
'value' => 'green_yellow',
'label' => __( 'Green + Yellow' )
),
'3' => array(
'value' => 'red_yellow',
'label' => __( 'Red + Yellow' )
),
'4' => array(
'value' => 'pink_purple',
'label' => __( 'Pink + Purple' )
),
'5' => array(
'value' => 'light_blue',
'label' => __( 'Light Blue + Blue' )
),
'6' => array(
'value' => 'brown_yellow',
'label' => __( 'Brown + Yellow' )
)
);
$select_post_layout = array(
'0' => array(
'value' => 'one',
'label' => __( '1 (default)' )
),
'1' => array(
'value' => 'two',
'label' => __( '2' )
),
'2' => array(
'value' => 'three',
'label' => __( '3' )
)
);
$select_title_font = array(
'0' => array(
'value' => 'impact',
'label' => __( 'Impact (default)' )
),
'1' => array(
'value' => 'tahoma',
'label' => __( 'Tahoma' )
),
'2' => array(
'value' => 'georgia',
'label' => __( 'Georgia' )
),
'3' => array(
'value' => 'arial',
'label' => __( 'Arial' )
),
'4' => array(
'value' => 'calibri',
'label' => __( 'Calibri' )
)
);
$select_content_font = array(
'0' => array(
'value' => 'segoe',
'label' => __( 'Segoe UI (default)' )
),
'1' => array(
'value' => 'arial',
'label' => __( 'Arial' )
),
'2' => array(
'value' => 'georgia',
'label' => __( 'Georgia' )
),
'3' => array(
'value' => 'courier',
'label' => __( 'Courier New' )
),
'4' => array(
'value' => 'calibri',
'label' => __( 'Calibri' )
)
);
$select_widgets_num = array(
'0' => array(
'value' => 'disable',
'label' => __( 'Disable (default)' )
),
'1' => array(
'value' => 'one',
'label' => __( '1' )
),
'2' => array(
'value' => 'two',
'label' => __( '2' )
),
'3' => array(
'value' => 'three',
'label' => __( '3' )
),
'4' => array(
'value' => 'four',
'label' => __( '4' )
)
);
$select_widgets_header = array(
'0' => array(
'value' => 'disable',
'label' => __( 'Disable (default)' )
),
'1' => array(
'value' => 'one',
'label' => __( '1' )
),
'2' => array(
'value' => 'two',
'label' => __( '2' )
),
'3' => array(
'value' => 'three',
'label' => __( '3' )
),
'4' => array(
'value' => 'four',
'label' => __( '4' )
)
);
$select_nav_links = array(
'0' => array(
'value' => 'after',
'label' => __( 'After posts (default)' )
),
'1' => array(
'value' => 'before',
'label' => __( 'Before posts' )
),
'2' => array(
'value' => 'both',
'label' => __( 'Both' )
)
);
$slider_speed = array(
'0' => array(
'value' => 'disable',
'label' => __( 'Disable (default)' )
),
'1' => array(
'value' => 'normal',
'label' => __( 'Normal' )
),
'2' => array(
'value' => 'slow',
'label' => __( 'Slow' )
),
'3' => array(
'value' => 'fast',
'label' => __( 'Fast' )
)
);
$select_back_button = array(
'0' => array(
'value' => 'disable',
'label' => __( 'Disable (default)' )
),
'1' => array(
'value' => 'left',
'label' => __( 'Left' )
),
'2' => array(
'value' => 'right',
'label' => __( 'Right' )
),
'3' => array(
'value' => 'middle',
'label' => __( 'Middle' )
)
);
$share_this_button = array(
'0' => array(
'value' => 'single',
'label' => __( 'Single posts (default)' )
),
'1' => array(
'value' => 'single_archive',
'label' => __( 'Single posts + Archive pages' )
),
'2' => array(
'value' => 'all',
'label' => __( 'All pages' )
),
'3' => array(
'value' => 'disable',
'label' => __( 'Disable' )
)
);
$header_meta = array(
'0' => array(
'value' => 'single_archive',
'label' => __( 'Single posts + Archive pages (default)' )
),
'1' => array(
'value' => 'single',
'label' => __( 'Single posts' )
),
'2' => array(
'value' => 'disable',
'label' => __( 'Disable' )
)
);
$select_post_links = array(
'0' => array(
'value' => 'after',
'label' => __( 'After post content (default)' )
),
'1' => array(
'value' => 'before',
'label' => __( 'Before post content' )
),
'2' => array(
'value' => 'both',
'label' => __( 'Both' )
),
'3' => array(
'value' => 'disable',
'label' => __( 'Disable' )
)
);
$select_tagline_pos = array(
'0' => array(
'value' => 'next',
'label' => __( 'Next to blog title (default)' )
),
'1' => array(
'value' => 'above',
'label' => __( 'Above blog title' )
),
'2' => array(
'value' => 'under',
'label' => __( 'Under blog title' )
),
'3' => array(
'value' => 'disable',
'label' => __( 'Disable' )
)
);
$select_similar_posts = array(
'0' => array(
'value' => 'disable',
'label' => __( 'Disable (default)' )
),
'1' => array(
'value' => 'category',
'label' => __( 'Match by categories' )
),
'2' => array(
'value' => 'tag',
'label' => __( 'Match by tags' )
)
);
$shortname = "evl";
$optionlist = array (
array( "id" => $shortname,
"type" => "open-tab"),
array( "type" => "open"),
array( "type" => "close"),
array( "type" => "close-tab"),
// Design
array( "id" => $shortname."-tab-1",
"type" => "open-tab"),
array( "name" => "Design",
"type" => "title"),
array( "type" => "open"),
array( "name" => "Main colors",
"desc" => "Color scheme of header, footer and links",
"id" => $shortname."_main_color",
"type" => "select7",
"std" => "false"
),
array( "name" => "Disable background images",
"desc" => "Check this box if you don't want to display background images - 'nacked mode'",
"id" => $shortname."_back_images",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Menu color",
"desc" => "Background color of main menu",
"id" => $shortname."_menu_back",
"type" => "select6",
"std" => "false"
),
array( "name" => "Content color",
"desc" => "Background color of content",
"id" => $shortname."_content_back",
"type" => "select5",
"std" => "false"
),
array( "name" => "Number of sidebars",
"desc" => "",
"id" => $shortname."_sidebar_num",
"type" => "select1",
"std" => "false"
),
array( "name" => "Sidebar(s) position",
"desc" => "For Left + Right option the 2 sidebars must be enabled",
"id" => $shortname."_pos_sidebar",
"type" => "select2",
"std" => "false"
),
array( "name" => "Width",
"desc" => "Fixed = 960px / Fluid = 99% width of browser window",
"id" => $shortname."_width_layout",
"type" => "select3",
"std" => "false"
),
array( "type" => "close"),
array( "type" => "close-tab"),
// Posts
array( "id" => $shortname."-tab-2",
"type" => "open-tab"),
array( "name" => "Posts",
"type" => "title"),
array( "type" => "open"),
array( "name" => "Number of articles per row on home and archive pages - 'post boxes'",
"desc" => "Option 2 or 3 is recommended to use with disabled Sidebar(s) or enabled Fluid width",
"id" => $shortname."_post_layout",
"type" => "select8",
"std" => "false"),
array( "name" => "Enable post excerpts with thumbnails",
"desc" => "Check this box if you want to display post excerpts with post thumbnails",
"id" => $shortname."_excerpt_thumbnail",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Disable post author avatar",
"desc" => "Check this box if you don't want to display post author avatar",
"id" => $shortname."_author_avatar",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Post meta header placement",
"desc" => "Choose placement of the post meta header - Date, Author, Comments",
"id" => $shortname."_header_meta",
"type" => "select18",
"std" => "false"),
array( "name" => "'Share This' buttons placement",
"desc" => "Choose placement of the 'Share This' buttons",
"id" => $shortname."_share_this",
"type" => "select17",
"std" => "false"),
array( "name" => "Position of previous/next posts links",
"desc" => "Choose the position of the Previous/Next Post links",
"id" => $shortname."_post_links",
"type" => "select19",
"std" => "false"),
array( "name" => "Display Similar posts",
"desc" => "Choose if you want to display Similar posts in articles",
"id" => $shortname."_similar_posts",
"type" => "select23",
"std" => "false"),
array( "type" => "close"),
array( "type" => "close-tab"),
// Subscribe buttons
array( "id" => $shortname."-tab-3",
"type" => "open-tab"),
array( "name" => "Subscribe settings",
"type" => "title"),
// RSS Feed
array( "type" => "open"),
array( "name" => "RSS Feed",
"desc" => "Insert custom RSS Feed URL, e.g. http://feeds.feedburner.com/Example",
"id" => $shortname."_rss_feed",
"type" => "text",
"std" => ""),
array( "type" => "close"),
// Newsletter
array( "type" => "open"),
array( "name" => "Newsletter",
"desc" => "Insert custom newsletter URL, e.g. http://feedburner.google.com/fb/a/mailverify?uri=Example&loc=en_US",
"id" => $shortname."_newsletter",
"type" => "text1",
"std" => ""),
array( "type" => "close"),
// Facebook
array( "type" => "open"),
array( "name" => "Facebook",
"desc" => "Insert your Facebook ID",
"id" => $shortname."_facebook",
"type" => "text2",
"std" => ""),
array( "type" => "close"),
// Twitter
array( "type" => "open"),
array( "name" => "Twitter",
"desc" => "Insert your Twitter ID",
"id" => $shortname."_twitter_id",
"type" => "text3",
"std" => ""),
array( "type" => "close"),
// Google Buzz
array( "type" => "open"),
array( "name" => "Google Buzz",
"desc" => "Insert your Google Buzz ID",
"id" => $shortname."_google_buzz",
"type" => "text4",
"std" => ""),
array( "type" => "close"),
// MySpace
array( "type" => "open"),
array( "name" => "MySpace",
"desc" => "Insert your MySpace ID",
"id" => $shortname."_myspace",
"type" => "text5",
"std" => ""),
array( "type" => "close"),
// Skype
array( "type" => "open"),
array( "name" => "Skype",
"desc" => "Insert your Skype ID, e.g. username",
"id" => $shortname."_skype",
"type" => "text6",
"std" => ""),
array( "type" => "close"),
// YouTube
array( "type" => "open"),
array( "name" => "YouTube",
"desc" => "Insert your YouTube ID",
"id" => $shortname."_youtube",
"type" => "text7",
"std" => ""),
array( "type" => "close"),
// Flickr
array( "type" => "open"),
array( "name" => "Flickr",
"desc" => "Insert your Flickr ID",
"id" => $shortname."_flickr",
"type" => "text8",
"std" => ""),
array( "type" => "close"),
// LinkedIn
array( "type" => "open"),
array( "name" => "LinkedIn",
"desc" => "Insert your LinkedIn profile URI, e.g. http://ca.linkedin.com/pub/your-name/3/859/23b",
"id" => $shortname."_linkedin",
"type" => "text9",
"std" => ""),
array( "type" => "close"),
array( "type" => "close-tab"),
// Header content
array( "id" => $shortname."-tab-4",
"type" => "open-tab"),
array( "name" => "Header content",
"type" => "title"),
array( "type" => "open"),
array( "name" => "Custom logo",
"desc" => "",
"id" => $shortname."_header_logo",
"type" => "upload",
"std" => "false"),
array( "name" => "Logo position",
"desc" => "Choose the position of your custom logo",
"id" => $shortname."_pos_logo",
"type" => "select13",
"std" => "false"),
array( "name" => "Disable Blog Title",
"desc" => "Check this box if you don't want to display title of your blog",
"id" => $shortname."_blog_title",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Blog Tagline position",
"desc" => "Choose the position of blog tagline",
"id" => $shortname."_tagline_pos",
"type" => "select22",
"std" => "false"),
array( "name" => "Number of widget cols in header",
"desc" => "",
"id" => $shortname."_widgets_header",
"type" => "select12",
"std" => "false"),
array( "name" => "Home page header content",
"desc" => "",
"id" => $shortname."_home_header_content",
"type" => "select4",
"std" => "false"),
array( "name" => "Single post header content",
"desc" => "",
"id" => $shortname."_single_header_content",
"type" => "select20",
"std" => "false"),
array( "name" => "Archives and other pages header content",
"desc" => "",
"id" => $shortname."_archives_header_content",
"type" => "select21",
"std" => "false"),
array( "name" => "Slideshow",
"desc" => "To enable a slideshow the Recent Posts + Search Field + Subscribe Buttons option must be enabled",
"id" => $shortname."_header_slider",
"type" => "select15",
"std" => "false"),
array( "type" => "close"),
array( "type" => "close-tab"),
// Footer content
array( "id" => $shortname."-tab-5",
"type" => "open-tab"),
array( "name" => "Footer content",
"type" => "title"),
array( "type" => "open"),
array( "name" => "Number of widget cols in footer",
"desc" => "",
"id" => $shortname."_widgets_num",
"type" => "select11",
"std" => "false"
),
array( "name" => "Custom footer",
"desc" => 'Available HTML tags and attributes:
<b> <i> <a href="" title=""> <blockquote> <del datetime="">
',
"id" => $shortname."_footer_content",
"type" => "textarea",
"std" => "false"),
array( "type" => "close"),
array( "type" => "close-tab"),
// Styles
array( "id" => $shortname."-tab-6",
"type" => "open-tab"),
array( "name" => "Styles",
"type" => "title"),
array( "type" => "open"),
array( "name" => "Blog Title font",
"desc" => "Examples: Impact Tahoma
Georgia Arial Calibri
",
"id" => $shortname."_title_font",
"type" => "select9",
"std" => "false"),
array( "name" => "Content font",
"desc" => "Examples: Segoe UI Arial
Georgia Courier New Calibri
",
"id" => $shortname."_content_font",
"type" => "select10",
"std" => "false"),
array( "name" => "Custom CSS",
"desc" => 'For advanced users only: insert custom CSS, default style.css file',
"id" => $shortname."_css_content",
"type" => "textarea",
"std" => "false"),
array( "type" => "close"),
array( "type" => "close-tab"),
// Navigation
array( "id" => $shortname."-tab-7",
"type" => "open-tab"),
array( "name" => "Navigation",
"type" => "title"),
array( "type" => "open"),
array( "name" => "Disable main menu",
"desc" => "Check this box if you don't want to display main menu",
"id" => $shortname."_main_menu",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Position of navigation links",
"desc" => "Choose the position of the Older/Newer Posts links",
"id" => $shortname."_nav_links",
"type" => "select14",
"std" => "false"),
array( "name" => "Position of 'Back to Top' button",
"desc" => "",
"id" => $shortname."_pos_button",
"type" => "select16",
"std" => "false"),
array( "type" => "close"),
array( "type" => "close-tab"),
// Ads Spaces
array( "id" => $shortname."-tab-8",
"type" => "open-tab"),
array( "name" => "Ads",
"type" => "title"),
array( "type" => "open"),
array( "name" => "Ad Space 1 - Header Top",
"desc" => "Insert an ads code here to display in the Header Top
<ins datetime=""> <img src="" alt="" /> <ul> <ol> <li>
<code> <em> <strong> <div> <span> <h1> <h2> <h3> <h4> <h5> <h6>
<table> <tbody> <tr> <td> <br /> <hr />
recommended max. ads width 468px",
"id" => $shortname."_space_1",
"type" => "textarea1",
"std" => "false"),
array( "name" => "Ad Space 2 - Header Bottom",
"desc" => "Insert an ads code here to display in the Header Bottom
recommended max. ads width 960px",
"id" => $shortname."_space_2",
"type" => "textarea2",
"std" => "false"),
array( "name" => "Ad Space 3 - Sidebar 1 Top",
"desc" => "Insert an ads code here to display in the Sidebar 1 Top
recommended max. ads width 300px",
"id" => $shortname."_space_3",
"type" => "textarea3",
"std" => "false"),
array( "name" => "Ad Space 4 - Sidebar 1 Bottom",
"desc" => "Insert an ads code here to display in the Sidebar 1 Bottom
recommended max. ads width 300px",
"id" => $shortname."_space_4",
"type" => "textarea4",
"std" => "false"),
array( "name" => "Ad Space 5 - Sidebar 2 Top",
"desc" => "Insert an ads code here to display in the Sidebar 2 Top
recommended max. ads width 300px",
"id" => $shortname."_space_5",
"type" => "textarea5",
"std" => "false"),
array( "name" => "Ad Space 6 - Sidebar 2 Bottom",
"desc" => "Insert an ads code here to display in the Sidebar 2 Bottom
recommended max. ads width 300px",
"id" => $shortname."_space_6",
"type" => "textarea6",
"std" => "false"),
array( "name" => "Ad Space 7 - Post Top",
"desc" => "Insert an ads code here to display in the Post Top
recommended max. ads width 600px",
"id" => $shortname."_space_7",
"type" => "textarea7",
"std" => "false"),
array( "name" => "Ad Space 8 - Post Bottom",
"desc" => "Insert an ads code here to display in the Post Bottom
recommended max. ads width 600px",
"id" => $shortname."_space_8",
"type" => "textarea8",
"std" => "false"),
array( "name" => "Ad Space 9 - Footer",
"desc" => "Insert an ads code here to display in the Footer
recommended max. ads width 960px",
"id" => $shortname."_space_9",
"type" => "textarea9",
"std" => "false"),
array( "type" => "close"),
array( "type" => "close-tab"),
);
/**
* Create the options page
*/
function theme_options_do_page() {
global $themename, $shortname, $optionlist, $select_sidebar_num, $select_sidebar, $select_width, $select_home_header, $select_content_back, $select_menu_back, $select_main_color,
$select_post_layout, $select_title_font, $select_content_font, $select_widgets_num, $select_widgets_header, $select_logo, $select_nav_links, $slider_speed,
$select_back_button, $share_this_button, $header_meta, $select_post_links, $select_single_header, $select_archives_header, $select_tagline_pos, $select_similar_posts;
if ( ! isset( $_REQUEST['updated'] ) ) {
$_REQUEST['updated'] = false;
}
if( isset( $_REQUEST['reset'] )) {
global $wpdb;
$query = "DELETE FROM $wpdb->options WHERE option_name LIKE 'evolve'";
$wpdb->query($query);
header("Location: themes.php?page=theme_options");
die;
}
?>
Do you enjoy this theme? Send your ideas - issues - wishes or help in development by a donation. Thank you!
'.$themename.' settings saved
'.$themename.' settings reset
'; } ?>