<?php
/**
* Global Color Settings.
*
* @package Education Reform
*/

$education_reform_default = education_reform_get_default_theme_options();

// Global Color Section.
$wp_customize->add_section( 'education_reform_global_color_setting',
	array(
	'title'      => esc_html__( 'Global Color Settings', 'education-reform' ),
	'priority'   => 1,
	'capability' => 'edit_theme_options',
	'panel'      => 'education_reform_theme_option_panel',
	)
);

$wp_customize->add_setting( 'education_reform_global_color',
    array(
    'default'           => '#1a4d8c',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control( 
    new WP_Customize_Color_Control( 
    $wp_customize, 
    'education_reform_global_color',
    array(
        'label'      => esc_html__( 'Global Color', 'education-reform' ),
        'section'    => 'education_reform_global_color_setting',
        'settings'   => 'education_reform_global_color',
    ) ) 
);
