<?php
// Link In Bio Options.
$wp_customize->add_section(
    'home_page_link_in_bio_options',
    array(
        'title' => __('Link In Bio Section', 'blogbull'),
        'panel' => 'front_page_theme_options_panel',
    )
);
$wp_customize->add_setting(
    'blogbull_options[enable_link_in_bio]',
    array(
        'default' => $blogbull_default['enable_link_in_bio'],
        'sanitize_callback' => 'blogbull_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'blogbull_options[enable_link_in_bio]',
    array(
        'label' => __('Enable Link In Bio Section', 'blogbull'),
        'section' => 'home_page_link_in_bio_options',
        'type' => 'checkbox',
    )
);
$wp_customize->add_setting(
    'blogbull_section_seperator_bio_1',
    array(
        'default' => '',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    new Blogbull_Seperator_Control(
        $wp_customize,
        'blogbull_section_seperator_bio_1',
        array(
            'label' => esc_html__('Link In Bio Summary', 'blogbull'),
            'settings' => 'blogbull_section_seperator_bio_1',
            'section' => 'home_page_link_in_bio_options',
        )
    )
);
$wp_customize->add_setting(
    'blogbull_options[author_image_link_in_bio]',
    array(
        'default' => $blogbull_default['author_image_link_in_bio'],
        'sanitize_callback' => 'blogbull_sanitize_image',
    )
);
$wp_customize->add_control(
    new WP_Customize_Image_Control(
        $wp_customize,
        'blogbull_options[author_image_link_in_bio]',
        array(
            'label' => __('Upload Link In Bio Profile Image', 'blogbull'),
            'section' => 'home_page_link_in_bio_options',
        )
    )
);
$wp_customize->add_setting(
    'blogbull_options[author_name_link_in_bio]',
    array(
        'default' => $blogbull_default['author_name_link_in_bio'],
        'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control(
    'blogbull_options[author_name_link_in_bio]',
    array(
        'label' => __('Bio Profile Name', 'blogbull'),
        'section' => 'home_page_link_in_bio_options',
        'type' => 'text',
    )
);
$wp_customize->add_setting(
    'blogbull_options[author_description_link_in_bio]',
    array(
        'default' => $blogbull_default['author_description_link_in_bio'],
        'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control(
    'blogbull_options[author_description_link_in_bio]',
    array(
        'label' => __('Bio Description', 'blogbull'),
        'section' => 'home_page_link_in_bio_options',
        'type' => 'textarea',
    )
);
$wp_customize->add_setting(
    'blogbull_options[enable_link_in_bio_custom_label]',
    array(
        'default' => $blogbull_default['enable_link_in_bio_custom_label'],
        'sanitize_callback' => 'blogbull_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'blogbull_options[enable_link_in_bio_custom_label]',
    array(
        'label' => __('Enable Link In Bio Custom Label', 'blogbull'),
        'section' => 'home_page_link_in_bio_options',
        'type' => 'checkbox',
    )
);
$wp_customize->add_setting(
    'blogbull_options[author_appearance_buttons_text]',
    array(
        'default' => $blogbull_default['author_appearance_buttons_text'],
        'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control(
    'blogbull_options[author_appearance_buttons_text]',
    array(
        'label' => __('Link In Bio Label', 'blogbull'),
        'section' => 'home_page_link_in_bio_options',
        'type' => 'text',
    )
);
$wp_customize->add_setting('blogbull_options[author_appearance_button_bg_color]',
    array(
        'default' => $blogbull_default['author_appearance_button_bg_color'],
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control(
    new WP_Customize_Color_Control(
        $wp_customize,
        'blogbull_options[author_appearance_button_bg_color]',
        array(
            'label' => __('Label Background Color', 'blogbull'),
            'section' => 'home_page_link_in_bio_options',
            'type' => 'color',
        ))
);
$wp_customize->add_setting('blogbull_options[author_appearance_button_text_color]',
    array(
        'default' => $blogbull_default['author_appearance_button_text_color'],
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_hex_color',
    )
);
$wp_customize->add_control(
    new WP_Customize_Color_Control(
        $wp_customize,
        'blogbull_options[author_appearance_button_text_color]',
        array(
            'label' => __('Label Text Color', 'blogbull'),
            'section' => 'home_page_link_in_bio_options',
            'type' => 'color',
        ))
);
$wp_customize->add_setting(
    'blogbull_options[author_location_link_in_bio]',
    array(
        'default' => $blogbull_default['author_location_link_in_bio'],
        'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control(
    'blogbull_options[author_location_link_in_bio]',
    array(
        'label' => __('Author Location', 'blogbull'),
        'section' => 'home_page_link_in_bio_options',
        'type' => 'text',
    )
);
$wp_customize->add_setting(
    'blogbull_section_seperator_bio_2',
    array(
        'default' => '',
        'capability' => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field'
    )
);
$wp_customize->add_control(
    new Blogbull_Seperator_Control(
        $wp_customize,
        'blogbull_section_seperator_bio_2',
        array(
            'label' => esc_html__('Link In Bio Content', 'blogbull'),
            'settings' => 'blogbull_section_seperator_bio_1',
            'section' => 'home_page_link_in_bio_options',
        )
    )
);
$wp_customize->add_setting(
    'blogbull_options[link_in_bio_section_title]',
    array(
        'default' => $blogbull_default['link_in_bio_section_title'],
        'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control(
    'blogbull_options[link_in_bio_section_title]',
    array(
        'label' => __('Section Title', 'blogbull'),
        'section' => 'home_page_link_in_bio_options',
        'type' => 'text',
    )
);
$wp_customize->add_setting(
    'blogbull_options[link_in_bio_section_description]',
    array(
        'default' => $blogbull_default['link_in_bio_section_description'],
        'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control(
    'blogbull_options[link_in_bio_section_description]',
    array(
        'label' => __('Section Description', 'blogbull'),
        'section' => 'home_page_link_in_bio_options',
        'type' => 'textarea',
    )
);
$wp_customize->add_setting(
    'blogbull_options[link_in_bio_section_button_text]',
    array(
        'default' => $blogbull_default['link_in_bio_section_button_text'],
        'sanitize_callback' => 'sanitize_text_field',
    )
);
$wp_customize->add_control(
    'blogbull_options[link_in_bio_section_button_text]',
    array(
        'label' => __('Button Text', 'blogbull'),
        'section' => 'home_page_link_in_bio_options',
        'type' => 'text',
    )
);
$wp_customize->add_setting(
    'blogbull_options[link_in_bio_section_button_url]',
    array(
        'default' => $blogbull_default['link_in_bio_section_button_url'],
        'sanitize_callback' => 'esc_url_raw',
    )
);
$wp_customize->add_control(
    'blogbull_options[link_in_bio_section_button_url]',
    array(
        'label' => __('Button URL', 'blogbull'),
        'section' => 'home_page_link_in_bio_options',
        'type' => 'text',
    )
);