<?php
/**
* Global Color Settings.
*
* @package Wind Energy
*/

$wind_energy_default = wind_energy_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'wind_energy_global_color_setting',
	array(
	'title'      => esc_html__( 'Global Color Settings', 'wind-energy' ),
	'priority'   => 1,
	'capability' => 'edit_theme_options',
	'panel'      => 'wind_energy_theme_option_panel',
	)
);

$wp_customize->add_setting( 'wind_energy_global_color',
    array(
    'default'           => '#2AB684',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control( 
    new WP_Customize_Color_Control( 
    $wp_customize, 
    'wind_energy_global_color',
    array(
        'label'      => esc_html__( 'Global Color', 'wind-energy' ),
        'section'    => 'wind_energy_global_color_setting',
        'settings'   => 'wind_energy_global_color',
    ) ) 
);