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

$solar_energy_engine_default = solar_energy_engine_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'solar_energy_engine_global_color_setting',
	array(
	'title'      => esc_html__( 'Global Color Settings', 'solar-energy-engine' ),
	'priority'   => 1,
	'capability' => 'edit_theme_options',
	'panel'      => 'solar_energy_engine_theme_option_panel',
	)
);

$wp_customize->add_setting( 'solar_energy_engine_global_color',
    array(
    'default'           => '#48c2c2',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control( 
    new WP_Customize_Color_Control( 
    $wp_customize, 
    'solar_energy_engine_global_color',
    array(
        'label'      => esc_html__( 'Global Color', 'solar-energy-engine' ),
        'section'    => 'solar_energy_engine_global_color_setting',
        'settings'   => 'solar_energy_engine_global_color',
    ) ) 
);