colorcontrol = "Color Control"; $this->shortcolorcontrol = "cc"; $value_of_std[0]=get_theme_mod($this->shortcolorcontrol."_head_elem_back_color",'#e8e8e8'); $value_of_std[1]=get_theme_mod($this->shortcolorcontrol."_content_back_color",'#ececec'); $value_of_std[2]=get_theme_mod($this->shortcolorcontrol."_shadow_background_color",'#ffffff'); $value_of_std[3]=get_theme_mod($this->shortcolorcontrol."_footer_back_color",'#ececec'); $value_of_std[4]=get_theme_mod($this->shortcolorcontrol."_text_headers_color",'#1f1f1f'); $value_of_std[5]=get_theme_mod($this->shortcolorcontrol."_primary_text_color",'#1f1f1f'); $value_of_std[6]=get_theme_mod($this->shortcolorcontrol."_footer_text_color",'#1f1f1f'); $value_of_std[7]=get_theme_mod($this->shortcolorcontrol."_primary_links_color",'#575757'); $value_of_std[8]=get_theme_mod($this->shortcolorcontrol."_primary_links_hover_color",'#ffffff'); $value_of_std[9]=get_theme_mod($this->shortcolorcontrol."_menu_color",'#dd9100'); $value_of_std[10]=get_theme_mod($this->shortcolorcontrol."_selected_menu_color",'#dd9100'); $value_of_std[11]=get_theme_mod($this->shortcolorcontrol."_color_scheme",'#E0E0E0'); $this->options_colorcontrol = array( array( "name" => "Header Element Backround ", "desc" => "", "id" => $this->shortcolorcontrol . "_head_elem_back_color", "type" => "picker", "std" => $value_of_std[0] ), array( "name" => "Body Background", "desc" => "", "id" => $this->shortcolorcontrol . "_content_back_color", "type" => "picker", "std" => $value_of_std[1] ), array( "name" => "Slider Background", "desc" => "", "id" => $this->shortcolorcontrol . "_shadow_background_color", "type" => "picker", "std" => $value_of_std[2] ), array( "name" => "Footer Background", "desc" => "", "id" => $this->shortcolorcontrol . "_footer_back_color", "type" => "picker", "std" => $value_of_std[3] ), array( "name" => "Header Text", "desc" => "", "id" => $this->shortcolorcontrol . "_text_headers_color", "type" => "picker", "std" => $value_of_std[4] ), array( "name" => "Primary Text", "desc" => "", "id" => $this->shortcolorcontrol . "_primary_text_color", "type" => "picker", "std" => $value_of_std[5] ), array( "name" => "Footer Text", "desc" => "", "id" => $this->shortcolorcontrol . "_footer_text_color", "type" => "picker", "std" => $value_of_std[6] ), array( "name" => "Primary Links", "desc" => "", "id" => $this->shortcolorcontrol . "_primary_links_color", "type" => "picker", "std" => $value_of_std[7] ), array( "name" => "Primary Links Hover", "desc" => "", "id" => $this->shortcolorcontrol . "_primary_links_hover_color", "type" => "picker", "std" => $value_of_std[8] ), array( "name" => "Hover Menu Item", "desc" => "", "id" => $this->shortcolorcontrol . "_menu_color", "type" => "picker", "std" => $value_of_std[9] ), array( "name" => "Selected Menu Item", "desc" => "", "id" => $this->shortcolorcontrol . "_selected_menu_color", "type" => "picker", "std" => $value_of_std[10] ), array( "name" => " ", "id" => $this->shortcolorcontrol . "_color_scheme", "std" => $value_of_std[11] ), ); } /// save changes or reset options public function web_dorado_theme_update_and_get_options_color_control(){ if ( isset($_GET['page']) && $_GET['page'] == "web_dorado_theme" && isset($_GET['controller']) && $_GET['controller'] == "color_control_page") { if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'save' ) { foreach ($this->options_colorcontrol as $value) { set_theme_mod($value['id'], $_REQUEST[$value['id']]); } foreach ($this->options_colorcontrol as $value) { if (isset($_REQUEST[$value['id']])) { set_theme_mod($value['id'], $_REQUEST[$value['id']]); } else { remove_theme_mod($value['id']); } } header("Location: themes.php?page=web_dorado_theme&controller=color_control_page&saved=true"); die; } else if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'reset' ) { foreach ($this->options_colorcontrol as $value) { remove_theme_mod($value['id']); } header("Location: themes.php?page=web_dorado_theme&controller=color_control_page&reset=true"); die; } } } public function web_dorado_color_control_page_admin_scripts(){ wp_enqueue_style('color_control_page_main_style',get_bloginfo('template_directory').'/admin/css/color_control.css'); wp_enqueue_style('color_control_picker',get_bloginfo('template_directory').'/pickercss/colorpicker.css'); wp_enqueue_script('jquery'); wp_enqueue_script('picker_1',get_template_directory_uri().'/pickerjs/colorpicker.js'); wp_enqueue_script('picker_2',get_template_directory_uri().'/pickerjs/eye.js'); wp_enqueue_script('picker_3',get_template_directory_uri().'/pickerjs/utils.js'); wp_enqueue_script('picker_5',get_template_directory_uri().'/pickerjs/layout.js'); wp_enqueue_script('picker_4',get_template_directory_uri().'/pickerjs/my.js'); } public function dorado_theme_admin_color_control(){ if(isset($_REQUEST['controller']) && $_REQUEST['controller']=='color_control_page'){ if (isset($_REQUEST['saved']) && $_REQUEST['saved'] ) echo '

' . $this->colorcontrol . ' settings saved.

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

' . $this->colorcontrol . ' settings reset.

'; } $pickers=$this->get_option_type('picker'); $count_picker=count( $pickers ); ?>
User Manual
This section allows you customize the color features. More...

Get the full version    

Color Control

";} ?>

Color Scheme

The theme has different color schemes. Use the drop-down menu below to change the color scheme. Click Save to apply the new scheme.

options_colorcontrol as $option ){ if(isset($type) && isset($option['type']) && $option['type'] == $type ){ $cur_type_elements[$k]=$option; $k++; } } return $cur_type_elements; } }