<?php
/**
* Header Banner Options.
*
* @package Omega Design Agency
*/

$omega_design_agency_default = omega_design_agency_get_default_theme_options();
$omega_design_agency_post_category_list = omega_design_agency_post_category_list();

$wp_customize->add_section( 'omega_design_agency_header_banner_setting',
    array(
    'title'      => esc_html__( 'Slider Settings', 'omega-design-agency' ),
    'priority'   => 10,
    'capability' => 'edit_theme_options',
    'panel'      => 'theme_home_pannel',
    )
);

$wp_customize->add_setting('omega_design_agency_display_header_text',
    array(
        'default' => $omega_design_agency_default['omega_design_agency_display_header_text'],
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'omega_design_agency_sanitize_checkbox',
    )
);
$wp_customize->add_control('omega_design_agency_display_header_text',
    array(
        'label' => esc_html__('Enable / Disable Tagline', 'omega-design-agency'),
        'section' => 'title_tagline',
        'type' => 'checkbox',
    )
);

$wp_customize->add_setting('omega_design_agency_header_banner',
    array(
        'default' => $omega_design_agency_default['omega_design_agency_header_banner'],
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'omega_design_agency_sanitize_checkbox',
    )
);
$wp_customize->add_control('omega_design_agency_header_banner',
    array(
        'label' => esc_html__('Enable Slider', 'omega-design-agency'),
        'section' => 'omega_design_agency_header_banner_setting',
        'type' => 'checkbox',
    )
);

$wp_customize->add_setting('omega_design_agency_banner_background_image',
    array(
        'default' => $omega_design_agency_default['omega_design_agency_banner_background_image'],
        'sanitize_callback' => 'esc_url_raw',
    )
);
$wp_customize->add_control(
    new WP_Customize_Image_Control( $wp_customize,'omega_design_agency_banner_background_image',
        array(
            'label' => __('Slider Background Image','omega-design-agency'),
            'section' => 'omega_design_agency_header_banner_setting',
            'settings' => 'omega_design_agency_banner_background_image',
        )
    )
);

$wp_customize->add_setting( 'omega_design_agency_header_banner_cat',
    array(
    'default'           => 'Slider',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_design_agency_sanitize_select',
    )
);
$wp_customize->add_control( 'omega_design_agency_header_banner_cat',
    array(
    'label'       => esc_html__( 'Slider Post Category', 'omega-design-agency' ),
    'section'     => 'omega_design_agency_header_banner_setting',
    'type'        => 'select',
    'choices'     => $omega_design_agency_post_category_list,
    )
);

$wp_customize->add_setting('omega_design_agency_client_section_logo_image_1',
    array(
        'default' => $omega_design_agency_default['omega_design_agency_client_section_logo_image_1'],
        'sanitize_callback' => 'esc_url_raw',
    )
);
$wp_customize->add_control(
    new WP_Customize_Image_Control( $wp_customize,'omega_design_agency_client_section_logo_image_1',
        array(
            'label' => __('Client Logo 1','omega-design-agency'),
            'section' => 'omega_design_agency_header_banner_setting',
            'settings' => 'omega_design_agency_client_section_logo_image_1',
        )
    )
);

$wp_customize->add_setting('omega_design_agency_client_section_logo_image_2',
    array(
        'default' => $omega_design_agency_default['omega_design_agency_client_section_logo_image_2'],
        'sanitize_callback' => 'esc_url_raw',
    )
);
$wp_customize->add_control(
    new WP_Customize_Image_Control( $wp_customize,'omega_design_agency_client_section_logo_image_2',
        array(
            'label' => __('Client Logo 2','omega-design-agency'),
            'section' => 'omega_design_agency_header_banner_setting',
            'settings' => 'omega_design_agency_client_section_logo_image_2',
        )
    )
);

$wp_customize->add_setting('omega_design_agency_client_section_logo_image_3',
    array(
        'default' => $omega_design_agency_default['omega_design_agency_client_section_logo_image_2'],
        'sanitize_callback' => 'esc_url_raw',
    )
);
$wp_customize->add_control(
    new WP_Customize_Image_Control( $wp_customize,'omega_design_agency_client_section_logo_image_3',
        array(
            'label' => __('Client Logo 3','omega-design-agency'),
            'section' => 'omega_design_agency_header_banner_setting',
            'settings' => 'omega_design_agency_client_section_logo_image_3',
        )
    )
);

// Team Setting

$wp_customize->add_section( 'product_column_setting',
    array(
    'title'      => esc_html__( 'Team Setting', 'omega-design-agency' ),
    'priority'   => 10,
    'capability' => 'edit_theme_options',
    'panel'      => 'theme_home_pannel',
    )
);

$wp_customize->add_setting( 'omega_design_agency_team_section_subtitle',
    array(
    'default' => $omega_design_agency_default['omega_design_agency_team_section_subtitle'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control( 'omega_design_agency_team_section_subtitle',
    array(
    'label'    => esc_html__( 'Sub Title ', 'omega-design-agency' ),
    'section'  => 'product_column_setting',
    'type'     => 'text',
    )
);

$wp_customize->add_setting( 'omega_design_agency_team_section_title',
    array(
    'default' => $omega_design_agency_default['omega_design_agency_team_section_title'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control( 'omega_design_agency_team_section_title',
    array(
    'label'    => esc_html__( 'Title ', 'omega-design-agency' ),
    'section'  => 'product_column_setting',
    'type'     => 'text',
    )
);

$wp_customize->add_setting( 'omega_design_agency_locations_post_cat',
    array(
    'default'           => '',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_design_agency_sanitize_select',
    )
);
$wp_customize->add_control( 'omega_design_agency_locations_post_cat',
    array(
    'label'       => esc_html__( 'Team Post Category', 'omega-design-agency' ),
    'section'     => 'product_column_setting',
    'type'        => 'select',
    'choices'     => $omega_design_agency_post_category_list,
    )
);

for ($i=1; $i <=6 ; $i++) {

    $wp_customize->add_setting( 'omega_design_agency_team_section_designation'.$i,
        array(
        'default'           => 'Web Designer',
        'capability'        => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field',
        )
    );
    $wp_customize->add_control( 'omega_design_agency_team_section_designation'.$i,
        array(
        'label'    => esc_html__( 'Designation', 'omega-design-agency' ) .$i,
        'section'  => 'product_column_setting',
        'type'     => 'text',
        )
    );
}
