<?php
/**
* Header Options.
*
* @package Omega Hair Salon
*/

$omega_hair_salon_default = omega_hair_salon_get_default_theme_options();

// Header Section.
$wp_customize->add_section( 'omega_hair_salon_button_header_setting',
	array(
	'title'      => esc_html__( 'Header Settings', 'omega-hair-salon' ),
	'priority'   => 10,
	'capability' => 'edit_theme_options',
	'panel'      => 'omega_hair_salon_theme_option_panel',
	)
);

$wp_customize->add_setting('omega_hair_salon_sticky',
    array(
        'default' => $omega_hair_salon_default['omega_hair_salon_sticky'],
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'omega_hair_salon_sanitize_checkbox',
    )
);
$wp_customize->add_control('omega_hair_salon_sticky',
    array(
        'label' => esc_html__('Enable Sticky Header', 'omega-hair-salon'),
        'section' => 'omega_hair_salon_button_header_setting',
        'type' => 'checkbox',
    )
);

$wp_customize->add_setting( 'omega_hair_salon_header_layout_location',
    array(
    'default'           => $omega_hair_salon_default['omega_hair_salon_header_layout_location'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control( 'omega_hair_salon_header_layout_location',
    array(
    'label'    => esc_html__( 'Header Location', 'omega-hair-salon' ),
    'section'  => 'omega_hair_salon_button_header_setting',
    'type'     => 'text',
    )
);

$wp_customize->add_setting( 'omega_hair_salon_header_layout_opening_time',
    array(
    'default'           => $omega_hair_salon_default['omega_hair_salon_header_layout_opening_time'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control( 'omega_hair_salon_header_layout_opening_time',
    array(
    'label'    => esc_html__( 'Header Opening Time', 'omega-hair-salon' ),
    'section'  => 'omega_hair_salon_button_header_setting',
    'type'     => 'text',
    )
);

$wp_customize->add_setting( 'omega_hair_salon_header_layout_phone_number',
    array(
    'default'           => $omega_hair_salon_default['omega_hair_salon_header_layout_phone_number'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control( 'omega_hair_salon_header_layout_phone_number',
    array(
    'label'    => esc_html__( 'Header Phone Number', 'omega-hair-salon' ),
    'section'  => 'omega_hair_salon_button_header_setting',
    'type'     => 'text',
    )
);

$wp_customize->add_setting('omega_hair_salon_menu_font_size',
    array(
        'default'           => $omega_hair_salon_default['omega_hair_salon_menu_font_size'],
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'omega_hair_salon_sanitize_number_range',
    )
);
$wp_customize->add_control('omega_hair_salon_menu_font_size',
    array(
        'label'       => esc_html__('Menu Font Size', 'omega-hair-salon'),
        'section'     => 'omega_hair_salon_button_header_setting',
        'type'        => 'number',
        'input_attrs' => array(
           'min'   => 1,
           'max'   => 30,
           'step'   => 1,
        ),
    )
);

$wp_customize->add_setting( 'omega_hair_salon_menu_text_transform',
    array(
    'default'           => $omega_hair_salon_default['omega_hair_salon_menu_text_transform'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_hair_salon_sanitize_menu_transform',
    )
);
$wp_customize->add_control( 'omega_hair_salon_menu_text_transform',
    array(
    'label'       => esc_html__( 'Menu Text Transform', 'omega-hair-salon' ),
    'section'     => 'omega_hair_salon_button_header_setting',
    'type'        => 'select',
    'choices'     => array(
        'capitalize' => esc_html__( 'Capitalize', 'omega-hair-salon' ),
        'uppercase'  => esc_html__( 'Uppercase', 'omega-hair-salon' ),
        'lowercase'    => esc_html__( 'Lowercase', 'omega-hair-salon' ),
        ),
    )
);

$wp_customize->add_setting('omega_hair_salon_header_menus_color', array(
    'default'           => '',
    'sanitize_callback' => 'sanitize_hex_color',
));
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'omega_hair_salon_header_menus_color', array(
    'label'    => __('Main Menu Color', 'omega-hair-salon'),
    'section'  => 'omega_hair_salon_button_header_setting',
)));

$wp_customize->add_setting('omega_hair_salon_header_menus_hover_color', array(
    'default'           => '',
    'sanitize_callback' => 'sanitize_hex_color',
));
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'omega_hair_salon_header_menus_hover_color', array(
    'label'    => __('Main Menu Hover Color', 'omega-hair-salon'),
    'section'  => 'omega_hair_salon_button_header_setting',
)));

$wp_customize->add_setting('omega_hair_salon_header_submenus_color', array(
    'default'           => '',
    'sanitize_callback' => 'sanitize_hex_color',
));
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'omega_hair_salon_header_submenus_color', array(
    'label'    => __('Submenu Color', 'omega-hair-salon'),
    'section'  => 'omega_hair_salon_button_header_setting',
)));

$wp_customize->add_setting('omega_hair_salon_header_submenus_hover_color', array(
    'default'           => '',
    'sanitize_callback' => 'sanitize_hex_color',
));
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'omega_hair_salon_header_submenus_hover_color', array(
    'label'    => __('Submenu Hover Color', 'omega-hair-salon'),
    'section'  => 'omega_hair_salon_button_header_setting',
)));