|
User Manual This section allows you to make changes in overall content of the site. More... |
![]() Get the full version |
General |
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.
' . $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 |