<?php
/**
* Global Color Settings.
*
* @package Board Games
*/

$board_games_default = board_games_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'board_games_global_color_setting',
    array(
    'title'      => esc_html__( 'Global Color Settings', 'board-games' ),
    'priority'   => 1,
    'capability' => 'edit_theme_options',
    'panel'      => 'board_games_theme_option_panel',
    )
);

$wp_customize->add_setting( 'board_games_global_color',
    array(
    'default'           => '#6B20DE',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control( 
    new WP_Customize_Color_Control( 
    $wp_customize, 
    'board_games_global_color',
    array(
        'label'      => esc_html__( 'Global Color', 'board-games' ),
        'section'    => 'board_games_global_color_setting',
        'settings'   => 'board_games_global_color',
    ) ) 
);

$wp_customize->add_setting( 'board_games_secondary_color',
    array(
    'default'           => '#9E21DD',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control( 
    new WP_Customize_Color_Control( 
    $wp_customize, 
    'board_games_secondary_color',
    array(
        'label'      => esc_html__( 'Seconday Color', 'board-games' ),
        'section'    => 'board_games_global_color_setting',
        'settings'   => 'board_games_secondary_color',
    ) ) 
);