<?php
/**
* Global Color Settings.
*
* @package Training Institute Academy
*/

$training_institute_academy_default = training_institute_academy_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'training_institute_academy_global_color_setting',
	array(
	'title'      => esc_html__( 'Global Color Settings', 'training-institute-academy' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'training_institute_academy_theme_option_panel',
	)
);

$wp_customize->add_setting( 'training_institute_academy_global_color',
    array(
    'default'           => '#93BD4F',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control( 
    new WP_Customize_Color_Control( 
    $wp_customize, 
    'training_institute_academy_global_color',
    array(
        'label'      => esc_html__( 'Global First Color', 'training-institute-academy' ),
        'section'    => 'training_institute_academy_global_color_setting',
        'settings'   => 'training_institute_academy_global_color',
    ) ) 
);

$wp_customize->add_setting( 'training_institute_academy_global_second_color',
    array(
    'default'           => '#024695',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control( 
    new WP_Customize_Color_Control( 
    $wp_customize, 
    'training_institute_academy_global_second_color',
    array(
        'label'      => esc_html__( 'Global Second Color', 'training-institute-academy' ),
        'section'    => 'training_institute_academy_global_color_setting',
        'settings'   => 'training_institute_academy_global_second_color',
    ) ) 
);
