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

$omega_blogger_default = omega_blogger_get_default_theme_options();
$omega_blogger_post_category_list = omega_blogger_post_category_list();

$wp_customize->add_section( 'omega_blogger_header_banner_setting',
    array(
    'title'      => esc_html__( 'Slider Settings', 'omega-blogger' ),
    'priority'   => 10,
    'capability' => 'edit_theme_options',
    'panel'      => 'omega_blogger_theme_home_pannel',
    )
);

// Show/Hide Site Logo
$wp_customize->add_setting('omega_blogger_display_logo', array(
    'default'           => false,
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_blogger_sanitize_checkbox',
));
$wp_customize->add_control('omega_blogger_display_logo', array(
    'label'    => esc_html__('Enable / Disable Site Logo', 'omega-blogger'),
    'section'  => 'title_tagline',
    'type'     => 'checkbox',
));

// Show/Hide Site Title
$wp_customize->add_setting('omega_blogger_display_title', array(
    'default'           => true,
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_blogger_sanitize_checkbox',
));
$wp_customize->add_control('omega_blogger_display_title', array(
    'label'    => esc_html__('Enable / Disable Site Title', 'omega-blogger'),
    'section'  => 'title_tagline',
    'type'     => 'checkbox',
));

// Show/Hide Site Tagline
$wp_customize->add_setting('omega_blogger_display_header_text',
    array(
        'default'           => false,
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'omega_blogger_sanitize_checkbox',
    )
);
$wp_customize->add_control('omega_blogger_display_header_text',
    array(
        'label' => esc_html__('Enable / Disable Site Tagline', 'omega-blogger'),
        'section' => 'title_tagline',
        'type' => 'checkbox',
    )
);

$wp_customize->add_setting('omega_blogger_header_banner',
    array(
        'default' => $omega_blogger_default['omega_blogger_header_banner'],
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'omega_blogger_sanitize_checkbox',
    )
);
$wp_customize->add_control('omega_blogger_header_banner',
    array(
        'label' => esc_html__('Enable Slider', 'omega-blogger'),
        'section' => 'omega_blogger_header_banner_setting',
        'type' => 'checkbox',
    )
);

$wp_customize->add_setting( 'omega_blogger_header_banner_cat',
    array(
    'default'           => 'uncategorized',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_blogger_sanitize_select',
    )
);
$wp_customize->add_control( 'omega_blogger_header_banner_cat',
    array(
    'label'       => esc_html__( 'Slider Post Left Category', 'omega-blogger' ),
    'section'     => 'omega_blogger_header_banner_setting',
    'type'        => 'select',
    'choices'     => $omega_blogger_post_category_list,
    )
);

$wp_customize->add_setting( 'omega_blogger_banner_right_cat',
    array(
    'default'           => 'Food',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_blogger_sanitize_select',
    )
);
$wp_customize->add_control( 'omega_blogger_banner_right_cat',
    array(
    'label'       => esc_html__( 'Slider Post Right Category', 'omega-blogger' ),
    'section'     => 'omega_blogger_header_banner_setting',
    'type'        => 'select',
    'choices'     => $omega_blogger_post_category_list,
    )
);

// Most Read Settings

$wp_customize->add_section( 'omega_blogger_pricing_plans_setting',
    array(
    'title'      => esc_html__( 'Most Read Settings', 'omega-blogger' ),
    'priority'   => 10,
    'capability' => 'edit_theme_options',
    'panel'      => 'omega_blogger_theme_home_pannel',
    )
);

$wp_customize->add_setting( 'omega_blogger_most_read_section_title',
    array(
    'default'           => $omega_blogger_default['omega_blogger_most_read_section_title'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control( 'omega_blogger_most_read_section_title',
    array(
    'label'    => esc_html__( 'Most Read Title', 'omega-blogger' ),
    'section'  => 'omega_blogger_pricing_plans_setting',
    'type'     => 'text',
    )
);

$wp_customize->add_setting( 'omega_blogger_most_read_section_sub_title',
    array(
    'default'           => $omega_blogger_default['omega_blogger_most_read_section_sub_title'],
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control( 'omega_blogger_most_read_section_sub_title',
    array(
    'label'    => esc_html__( 'Most Read Heading', 'omega-blogger' ),
    'section'  => 'omega_blogger_pricing_plans_setting',
    'type'     => 'text',
    )
);

$wp_customize->add_setting( 'omega_blogger_most_read_section_cat',
    array(
    'default'           => 'uncategorized',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_blogger_sanitize_select',
    )
);
$wp_customize->add_control( 'omega_blogger_most_read_section_cat',
    array(
    'label'       => esc_html__( 'Most Read Left Post Category', 'omega-blogger' ),
    'section'     => 'omega_blogger_pricing_plans_setting',
    'type'        => 'select',
    'choices'     => $omega_blogger_post_category_list,
    )
);

$wp_customize->add_setting( 'omega_blogger_most_read_right_section_cat',
    array(
    'default'           => 'Travel',
    'capability'        => 'edit_theme_options',
    'sanitize_callback' => 'omega_blogger_sanitize_select',
    )
);
$wp_customize->add_control( 'omega_blogger_most_read_right_section_cat',
    array(
    'label'       => esc_html__( 'Most Read Middle Post Category', 'omega-blogger' ),
    'section'     => 'omega_blogger_pricing_plans_setting',
    'type'        => 'select',
    'choices'     => $omega_blogger_post_category_list,
    )
);