generalsettings = "General Settings"; $this->shortgeneralsettings = ""; /// get options from data base $value_of_std[0] = get_theme_mod($this->shortgeneralsettings."_logo_img", ''); $value_of_std[1] = get_theme_mod($this->shortgeneralsettings."_body_back", ''); $value_of_std[2] = get_theme_mod($this->shortgeneralsettings."_custom_css", ''); $value_of_std[3] = get_theme_mod($this->shortgeneralsettings."_favicon_img", ''); $value_of_std[4] = get_theme_mod($this->shortgeneralsettings."_show_comments", ''); $value_of_std[5] = get_theme_mod($this->shortgeneralsettings."_blog_style", ''); $value_of_std[6] = get_theme_mod($this->shortgeneralsettings."_grab_image", ''); $value_of_std[7] = get_theme_mod($this->shortgeneralsettings."_show_twitter_icon", ''); $value_of_std[8] = get_theme_mod($this->shortgeneralsettings."_show_rss_icon", ''); $value_of_std[9] = get_theme_mod($this->shortgeneralsettings."_show_facebook_icon", ''); $value_of_std[10] = get_theme_mod($this->shortgeneralsettings."_twitter_url", ''); $value_of_std[11] = get_theme_mod($this->shortgeneralsettings."_rss_url", ''); $value_of_std[12] = get_theme_mod($this->shortgeneralsettings."_facebook_url", ''); $value_of_std[13] = get_theme_mod($this->shortgeneralsettings."_date_format1", ''); $value_of_std[14] = get_theme_mod($this->shortgeneralsettings."_date_format2", ''); $value_of_std[15] = get_theme_mod($this->shortgeneralsettings."_date_format3", ''); $value_of_std[16] = get_theme_mod($this->shortgeneralsettings."_date_format4", ''); $value_of_std[17] = get_theme_mod($this->shortgeneralsettings."_our_style", ''); $value_of_std[18] = get_theme_mod($this->shortgeneralsettings."_menu_search_form", ''); $value_of_std[19] = get_theme_mod($this->shortgeneralsettings."_post_header", ''); $value_of_std[20] = get_theme_mod($this->shortgeneralsettings."_favicon_enable", ''); $value_of_std[21] = get_theme_mod($this->shortgeneralsettings."_date_enable", ''); $value_of_std[22] = get_theme_mod($this->shortgeneralsettings."_footer_text", 'WordPress Themes by Web-Dorado'); $this->options_generalsettings = array( array( "name" => "Logo", "id" => "_logo_img", "std" => $value_of_std[0] ), array( "name" => "General Settings", "id" => "_body_back", "std" => $value_of_std[1] ), array( "name" => "General Settings", "id" => "_custom_css", "std" => $value_of_std[2] ), array( "name" => "General Settings", "id" => "_favicon_img", "std" => $value_of_std[3] ), array( "name" => "General Settings", "id" => "_show_comments", "std" => $value_of_std[4] ), array( "name" => "General Settings", "id" => "_blog_style", "std" => $value_of_std[5] ), array( "name" => "General Settings", "id" => "_grab_image", "std" => $value_of_std[6] ), array( "name" => "General Settings", "id" => "_show_twitter_icon", "std" => $value_of_std[7] ), array( "name" => "General Settings", "id" => "_show_rss_icon", "std" => $value_of_std[8] ), array( "name" => "General Settings", "id" => "_show_facebook_icon", "std" => $value_of_std[9] ), array( "name" => "General Settings", "id" => "_twitter_url", "std" => $value_of_std[10] ), array( "name" => "General Settings", "id" => "_rss_url", "std" => $value_of_std[11] ), array( "name" => "General Settings", "id" => "_facebook_url", "std" => $value_of_std[12] ), array( "name" => "General Settings", "id" => "_date_format1", "std" => $value_of_std[13] ), array( "name" => "General Settings", "id" => "_date_format2", "std" => $value_of_std[14] ), array( "name" => "General Settings", "id" => "_date_format3", "std" => $value_of_std[15] ), array( "name" => "General Settings", "id" => "_date_format4", "std" => $value_of_std[16] ), array( "name" => "General Settings", "id" => "_our_style", "std" => $value_of_std[17] ), array( "name" => "General Settings", "id" => "_menu_search_form", "std" => $value_of_std[18] ), array( "name" => "General Settings", "id" => "_post_header", "std" => $value_of_std[19] ), array( "name" => "General Settings", "id" => "_favicon_enable", "std" => $value_of_std[20] ), array( "name" => "General Settings", "id" => "_date_enable", "std" => $value_of_std[21] ), array( "name" => "Footer text", "id" => "_footer_text", "std" => $value_of_std[22] ) ); } public function web_dorado_theme_update_and_get_options_general_settings(){ if ( isset($_GET['page']) && $_GET['page'] == "web_dorado_theme" && isset($_GET['controller']) && $_GET['controller'] == "general_page") { if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'save') { foreach ($this->options_generalsettings as $value) { set_theme_mod($value['id'], $_REQUEST[$value['id']]); } foreach ($this->options_generalsettings as $value) { if (isset($_REQUEST[$value['id']])) { set_theme_mod($value['id'], $_REQUEST[$value['id']]); } else { remove_theme_mod($value['id']); } } header("Location: admin.php?page=web_dorado_theme&controller=general_page&saved=true"); die; } else { if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'reset' ) { foreach ($this->options_generalsettings as $value) { remove_theme_mod($value['id']); } header("Location: admin.php?page=web_dorado_theme&controller=general_page&reset=true"); die; } } } } public function web_dorado_general_settings_page_admin_scripts(){ wp_enqueue_style('general_settings_page_main_style',get_bloginfo('template_directory').'/admin/css/general_settings_page.css'); wp_enqueue_script('jquery'); wp_enqueue_script('common'); wp_enqueue_script('jquery-color'); wp_print_scripts('editor'); if (function_exists('add_thickbox')) add_thickbox(); wp_print_scripts('media-upload'); //if (function_exists('wp_tiny_mce')) wp_tiny_mce(); wp_admin_css(); wp_enqueue_script('utils'); do_action("admin_print_styles-post-php"); do_action('admin_print_styles'); } public function dorado_theme_admin_general_settings(){ if(isset($_REQUEST['controller']) && $_REQUEST['controller']=='general_page'){ if (isset($_REQUEST['saved']) && $_REQUEST['saved'] ) echo '

' . $this->generalsettings . ' settings are saved.

'; if (isset($_REQUEST['reset']) && $_REQUEST['reset'] ) echo '

' . $this->generalsettings . ' settings are reset.

'; } ?>
User Manual
This section allows you to make changes in overall content of the site. More...

Get the full version    

General

Show Comments

>

Comment box will appear below the single posts/pages, allowing the users to provide feedback concerning the post. You can disable the comment box for a particular post/page from the corresponding one.

Custom CSS

Custom CSS will change the visual style of the site. This CSS code will be inserted in the <head> tag of your site. You can provide custom CSS code to be applied to specific elements.

Logo

You can apply a custom logo image by clicking on the Upload Image button and uploading your image.

"/>

Show Favicon

Check the box to show favicon on the site. You can add custom favicon to your homepage. Press “Upload image” button and choosing the corresponding file if the box is checked. By default favicon is a 16 x 16 pixel file saved in favicon.ico format in root directory of the server.

/>

You can apply a custom favicon image by clicking on the Upload Image button and uploading your image.

"/>

Blog Style post format

Here you can choose to change the format of your index/homepage posts and view them as short post previews.

>

Grab the First Post Image

Enable this option if you want to use the images that are already in your post to create a thumbnail without using custom fields. In this case thumbnail images will be generated automatically using the first image of the post. Note that the image needs to be hosted on your own server.

>

Show Twitter Icon

Here you can choose to show the Twitter Icon.

>

Enter your Twitter Profile URL below.

">

Show RSS Icon

Here you can choose to show the RSS Icon.

>

Enter your RSS URL below.

">

Show Facebook Icon

Here you can choose to show the Facebook Icon.

>

Enter your Facebook Profile URL below.

">

Display Date to the Posts

>

Choose to display date in posts whether or not.

Information in the Footer

Here you can provide the HTML code to be inserted in the footer of your web site.