<?php
/**
* Global Color Settings.
*
* @package Electrician Company
*/

$electrician_company_default = electrician_company_get_default_theme_options();

// Layout Section.
$wp_customize->add_section( 'electrician_company_global_color_setting',
	array(
	'title'      => esc_html__( 'Global Color Settings', 'electrician-company' ),
	'priority'   => 1,
	'capability' => 'edit_theme_options',
	'panel'      => 'electrician_company_theme_option_panel',
	)
);

$wp_customize->add_setting( 'electrician_company_global_color',
    array(
    'default'           => '#2457AA',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control( 
    new WP_Customize_Color_Control( 
    $wp_customize, 
    'electrician_company_global_color',
    array(
        'label'      => esc_html__( 'Global Color', 'electrician-company' ),
        'section'    => 'electrician_company_global_color_setting',
        'settings'   => 'electrician_company_global_color',
    ) ) 
);


$wp_customize->add_setting( 'electrician_company_secondary_color',
    array(
    'default'           => '#FFD200',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control( 
    new WP_Customize_Color_Control( 
    $wp_customize, 
    'electrician_company_secondary_color',
    array(
        'label'      => esc_html__( 'Secondary Color', 'electrician-company' ),
        'section'    => 'electrician_company_global_color_setting',
        'settings'   => 'electrician_company_secondary_color',
    ) ) 
);