/** * Define default color scheme array. * * @since 0.2.0 */ public function define_color_schemes() { $default_colors = array('wpgo-links-color' => '#333', 'wpgo-text-color' => '#363636'); if (current_theme_supports('custom-background')) { $custom_bg_args = get_theme_support('custom-background'); if (isset($custom_bg_args[0]['default-color']) && !empty($custom_bg_args[0]['default-color'])) { $default_colors['background_color'] = $custom_bg_args[0]['default-color']; } else { $default_colors['background_color'] = '#ffffff'; } // default to white bg color if none set } /* Individual customizer color picker defaults. */ $this->_wpgo_color_schemes = array(array('label' => __('Default', 'wpgothemes'), 'name' => 'default', 'default_colors' => $default_colors)); /* Add/remove color schemes via this filter. */ $this->_wpgo_color_schemes = WPGo_Hooks::wpgo_color_scheme_filter($this->_wpgo_color_schemes); /* Make sure all default hex codes contain lower case characters and are 6-digits in length. */ $this->validate_color_scheme_hex_codes(); }