<?php
/**
* Global Color Settings.
*
* @package Online Learning LMS
*/

$online_learning_lms_default = online_learning_lms_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'online_learning_lms_global_color_setting',
	array(
	'title'      => esc_html__( 'Global Color Settings', 'online-learning-lms' ),
	'priority'   => 21,
	'capability' => 'edit_theme_options',
	'panel'      => 'online_learning_lms_theme_option_panel',
	)
);

$wp_customize->add_setting( 'online_learning_lms_global_color',
    array(
    'default'           => '#754FFE',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control( 
    new WP_Customize_Color_Control( 
    $wp_customize, 
    'online_learning_lms_global_color',
    array(
        'label'      => esc_html__( 'Global Color', 'online-learning-lms' ),
        'section'    => 'online_learning_lms_global_color_setting',
        'settings'   => 'online_learning_lms_global_color',
    ) ) 
);

$wp_customize->add_setting( 'online_learning_lms_global_colorr',
    array(
    'default'           => '#00224D',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control( 
    new WP_Customize_Color_Control( 
    $wp_customize, 
    'online_learning_lms_global_colorr',
    array(
        'label'      => esc_html__( 'Secondary Color', 'online-learning-lms' ),
        'section'    => 'online_learning_lms_global_color_setting',
        'settings'   => 'online_learning_lms_global_colorr',
    ) ) 
);