<?php
/**
 * Theme Options.
 *
 * @package yoga_kriya
 */

$default = yoga_kriya_get_default_theme_options();

// Add Panel.
$wp_customize->add_panel( 'theme_option_panel',
	array(
	'title'      => __( 'Theme Options', 'yoga-kriya' ),
	'priority'   => 100,
	'capability' => 'edit_theme_options',
	)
);

// Typography Section.

$yoga_kriya_font_array = array(
	''                       => 'No Fonts',
	'Abril Fatface'          => 'Abril Fatface',
	'Acme'                   => 'Acme',
	'Anton'                  => 'Anton',
	'Architects Daughter'    => 'Architects Daughter',
	'Arimo'                  => 'Arimo',
	'Arsenal'                => 'Arsenal',
	'Arvo'                   => 'Arvo',
	'Alegreya'               => 'Alegreya',
	'Alfa Slab One'          => 'Alfa Slab One',
	'Averia Serif Libre'     => 'Averia Serif Libre',
	'Bangers'                => 'Bangers',
	'Boogaloo'               => 'Boogaloo',
	'Bad Script'             => 'Bad Script',
	'Bitter'                 => 'Bitter',
	'Bree Serif'             => 'Bree Serif',
	'BenchNine'              => 'BenchNine',
	'Cabin'                  => 'Cabin',
	'Cardo'                  => 'Cardo',
	'Courgette'              => 'Courgette',
	'Cherry Swash'           => 'Cherry Swash',
	'Cormorant Garamond'     => 'Cormorant Garamond',
	'Crimson Text'           => 'Crimson Text',
	'Cuprum'                 => 'Cuprum',
	'Cookie'                 => 'Cookie',
	'Chewy'                  => 'Chewy',
	'Days One'               => 'Days One',
	'Dosis'                  => 'Dosis',
	'Droid Sans'             => 'Droid Sans',
	'Economica'              => 'Economica',
	'Fredoka One'            => 'Fredoka One',
	'Fjalla One'             => 'Fjalla One',
	'Francois One'           => 'Francois One',
	'Frank Ruhl Libre'       => 'Frank Ruhl Libre',
	'Gloria Hallelujah'      => 'Gloria Hallelujah',
	'Great Vibes'            => 'Great Vibes',
	'Handlee'                => 'Handlee',
	'Hammersmith One'        => 'Hammersmith One',
	'Inconsolata'            => 'Inconsolata',
	'Indie Flower'           => 'Indie Flower',
	'IM Fell English SC'     => 'IM Fell English SC',
	'Julius Sans One'        => 'Julius Sans One',
	'Josefin Slab'           => 'Josefin Slab',
	'Josefin Sans'           => 'Josefin Sans',
	'Kanit'                  => 'Kanit',
	'Lobster'                => 'Lobster',
	'Lato'                   => 'Lato',
	'Lora'                   => 'Lora',
	'Libre Baskerville'      => 'Libre Baskerville',
	'Lobster Two'            => 'Lobster Two',
	'Merriweather'           => 'Merriweather',
	'Monda'                  => 'Monda',
	'Montserrat'             => 'Montserrat',
	'Muli'                   => 'Muli',
	'Marck Script'           => 'Marck Script',
	'Noto Serif'             => 'Noto Serif',
	'Open Sans'              => 'Open Sans',
	'Overpass'               => 'Overpass',
	'Overpass Mono'          => 'Overpass Mono',
	'Oxygen'                 => 'Oxygen',
	'Orbitron'               => 'Orbitron',
	'Patua One'              => 'Patua One',
	'Pacifico'               => 'Pacifico',
	'Padauk'                 => 'Padauk',
	'Playball'               => 'Playball',
	'Playfair Display'       => 'Playfair Display',
	'PT Sans'                => 'PT Sans',
	'Philosopher'            => 'Philosopher',
	'Permanent Marker'       => 'Permanent Marker',
	'Poiret One'             => 'Poiret One',
	'Quicksand'              => 'Quicksand',
	'Quattrocento Sans'      => 'Quattrocento Sans',
	'Raleway'                => 'Raleway',
	'Rubik'                  => 'Rubik',
	'Rokkitt'                => 'Rokkitt',
	'Russo One'              => 'Russo One',
	'Righteous'              => 'Righteous',
	'Slabo'                  => 'Slabo',
	'Source Sans Pro'        => 'Source Sans Pro',
	'Shadows Into Light Two' => 'Shadows Into Light Two',
	'Shadows Into Light'     => 'Shadows Into Light',
	'Sacramento'             => 'Sacramento',
	'Shrikhand'              => 'Shrikhand',
	'Tangerine'              => 'Tangerine',
	'Ubuntu'                 => 'Ubuntu',
	'VT323'                  => 'VT323',
	'Varela Round'           => 'Varela Round',
	'Vampiro One'            => 'Vampiro One',
	'Vollkorn'               => 'Vollkorn',
	'Volkhov'                => 'Volkhov',
	'Yanone Kaffeesatz'      => 'Yanone Kaffeesatz'
);

$wp_customize->add_section( 'yoga_kriya_typography',
	array(
	'title'      => __( 'Typography', 'yoga-kriya' ),
	'priority'   => 100,
	'capability' => 'edit_theme_options',
	'panel'      => 'theme_option_panel',
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_body_font_family]',
	array(
	'default'           => $default['yoga_kriya_body_font_family'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_choices',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_body_font_family]',
	array(
	'label'    => __( 'Body font family', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'select',
	'choices'  => $yoga_kriya_font_array,
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h1_font_family]',
	array(
	'default'           => $default['yoga_kriya_h1_font_family'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_choices',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_h1_font_family]',
	array(
	'label'    => __( 'H1 font family', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'select',
	'choices'  => $yoga_kriya_font_array,
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h1_font_size]',
	array(
	'default'           => $default['yoga_kriya_h1_font_size'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control( 'theme_options[yoga_kriya_h1_font_size]',
	array(
	'label'    => __( 'H1 Font Size', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'text',
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h2_font_family]',
	array(
	'default'           => $default['yoga_kriya_h2_font_family'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_choices',
	)
);

$wp_customize->add_control( 'theme_options[yoga_kriya_h2_font_family]',
	array(
	'label'    => __( 'H2 font family', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'select',
	'choices'  => $yoga_kriya_font_array,
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h2_font_size]',
	array(
	'default'           => $default['yoga_kriya_h2_font_size'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_h2_font_size]',
	array(
	'label'    => __( 'H2 Font Size', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'text',
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h3_font_family]',
	array(
	'default'           => $default['yoga_kriya_h3_font_family'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_choices',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_h3_font_family]',
	array(
	'label'    => __( 'H3 font family', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'select',
	'choices'  => $yoga_kriya_font_array,
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h3_font_size]',
	array(
	'default'           => $default['yoga_kriya_h3_font_size'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_h3_font_size]',
	array(
	'label'    => __( 'H3 Font Size', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'text',
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h4_font_family]',
	array(
	'default'           => $default['yoga_kriya_h4_font_family'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_choices',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_h4_font_family]',
	array(
	'label'    => __( 'H4 font family', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'select',
	'choices'  => $yoga_kriya_font_array,
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h4_font_size]',
	array(
	'default'           => $default['yoga_kriya_h4_font_size'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_h4_font_size]',
	array(
	'label'    => __( 'H4 Font Size', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'text',
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h5_font_family]',
	array(
	'default'           => $default['yoga_kriya_h5_font_family'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_choices',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_h5_font_family]',
	array(
	'label'    => __( 'H5 font family', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'select',
	'choices'  => $yoga_kriya_font_array,
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h5_font_size]',
	array(
	'default'           => $default['yoga_kriya_h5_font_size'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_h5_font_size]',
	array(
	'label'    => __( 'H5 Font Size', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'text',
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h6_font_family]',
	array(
	'default'           => $default['yoga_kriya_h6_font_family'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_choices',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_h6_font_family]',
	array(
	'label'    => __( 'H6 font family', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'select',
	'choices'  => $yoga_kriya_font_array,
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_h6_font_size]',
	array(
	'default'           => $default['yoga_kriya_h6_font_size'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_h6_font_size]',
	array(
	'label'    => __( 'H6 Font Size', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_typography',
	'type'     => 'text',
	'priority' => 100,
	)
);

// Global Color

$wp_customize->add_section( 'yoga_kriya_section_global_color', array(
	'title'      => __( 'Theme Color', 'yoga-kriya' ),
	'priority'   => 100,
	'capability' => 'edit_theme_options',
	'panel'      => 'theme_option_panel',
));

$wp_customize->add_setting( 'theme_options[yoga_kriya_first_color]', array(
	'default'           => $default['yoga_kriya_first_color'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_hex_color',
));

$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'theme_options[yoga_kriya_first_color]', array(
	'label'       => __( 'Highlight Color', 'yoga-kriya' ),
	'description' => __( 'With a single click, you can change the highlight color of the inner page; use the Elementor editor for customization on the homepage.', 'yoga-kriya' ),
	'section'     => 'yoga_kriya_section_global_color',
	'settings'    => 'theme_options[yoga_kriya_first_color]',
)));

// General Option.
$wp_customize->add_section( 'section_general_option',
	array(
	'title'      => __( 'General Options', 'yoga-kriya' ),
	'priority'   => 100,
	'capability' => 'edit_theme_options',
	'panel'      => 'theme_option_panel',
	)
);

// Cursor Dot Outline
$wp_customize->add_setting(
    'theme_options[yoga_kriya_enable_cursor_dot_outline]',
    array(
        'default' => $default['yoga_kriya_enable_cursor_dot_outline'],
        'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'theme_options[yoga_kriya_enable_cursor_dot_outline]',
    array(
        'label' => esc_html__('Enable Cursor Dot Outline', 'yoga-kriya'),
        'section' => 'section_general_option',
        'type' => 'checkbox',
    )
);

// Setting show scroll to top.

$wp_customize->add_setting( 'theme_options[show_scroll_to_top]',
	array(
	'default'           => $default['show_scroll_to_top'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_scroll_to_top]',
	array(
	'label'    => __( 'Show Scroll To Top', 'yoga-kriya' ),
	'section'  => 'section_general_option',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Setting show Preloader.
$wp_customize->add_setting( 'theme_options[show_preloader_setting]',
	array(
	'default'           => $default['show_preloader_setting'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_preloader_setting]',
	array(
	'label'    => __( 'Show Preloader', 'yoga-kriya' ),
	'section'  => 'section_general_option',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Setting show Sticky Header.
$wp_customize->add_setting( 'theme_options[show_data_sticky_setting]',
	array(
	'default'           => $default['show_data_sticky_setting'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_data_sticky_setting]',
	array(
	'label'    => __( 'Show Sticky Header', 'yoga-kriya' ),
	'section'  => 'section_general_option',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Post Option.
$wp_customize->add_section( 'section_post_option',
	array(
	'title'      => __( 'Post Options', 'yoga-kriya' ),
	'priority'   => 100,
	'capability' => 'edit_theme_options',
	'panel'      => 'theme_option_panel',
	)
);

// Setting show Post date.
$wp_customize->add_setting( 'theme_options[show_post_date_setting]',
	array(
	'default'           => $default['show_post_date_setting'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_post_date_setting]',
	array(
	'label'    => __( 'Show Post Date', 'yoga-kriya' ),
	'section'  => 'section_post_option',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Setting show Post Heading.
$wp_customize->add_setting( 'theme_options[show_post_heading_setting]',
	array(
	'default'           => $default['show_post_heading_setting'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_post_heading_setting]',
	array(
	'label'    => __( 'Show Post Heading', 'yoga-kriya' ),
	'section'  => 'section_post_option',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Setting show Post Content.
$wp_customize->add_setting( 'theme_options[show_post_content_setting]',
	array(
	'default'           => $default['show_post_content_setting'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_post_content_setting]',
	array(
	'label'    => __( 'Show Post Full Content', 'yoga-kriya' ),
	'section'  => 'section_post_option',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Setting show Post admin.
$wp_customize->add_setting( 'theme_options[show_post_admin_setting]',
	array(
	'default'           => $default['show_post_admin_setting'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_post_admin_setting]',
	array(
	'label'    => __( 'Show Post Admin', 'yoga-kriya' ),
	'section'  => 'section_post_option',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Setting show Post Categories.
$wp_customize->add_setting( 'theme_options[show_post_categories_setting]',
	array(
	'default'           => $default['show_post_categories_setting'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_post_categories_setting]',
	array(
	'label'    => __( 'Show Post Categories', 'yoga-kriya' ),
	'section'  => 'section_post_option',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Setting show Post Comments.
$wp_customize->add_setting( 'theme_options[show_post_comments_setting]',
	array(
	'default'           => $default['show_post_comments_setting'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_post_comments_setting]',
	array(
	'label'    => __( 'Show Post Comments', 'yoga-kriya' ),
	'section'  => 'section_post_option',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Setting show Post Featured Image.
$wp_customize->add_setting( 'theme_options[show_post_featured_image_setting]',
	array(
	'default'           => $default['show_post_featured_image_setting'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_post_featured_image_setting]',
	array(
	'label'    => __( 'Show Post Featured Image', 'yoga-kriya' ),
	'section'  => 'section_post_option',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Setting show Post Tags.
$wp_customize->add_setting( 'theme_options[show_post_tags_setting]',
	array(
	'default'           => $default['show_post_tags_setting'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_post_tags_setting]',
	array(
	'label'    => __( 'Show Post Tags', 'yoga-kriya' ),
	'section'  => 'section_post_option',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Header Section.
$wp_customize->add_section( 'section_header',
	array(
	'title'      => __( 'Header Options', 'yoga-kriya' ),
	'priority'   => 100,
	'capability' => 'edit_theme_options',
	'panel'      => 'theme_option_panel',
	)
);

// Setting show_title.
$wp_customize->add_setting( 'theme_options[show_title]',
	array(
	'default'           => $default['show_title'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_title]',
	array(
	'label'    => __( 'Show Site Title', 'yoga-kriya' ),
	'section'  => 'section_header',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);
// Setting show_tagline.
$wp_customize->add_setting( 'theme_options[show_tagline]',
	array(
	'default'           => $default['show_tagline'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_checkbox',
	)
);
$wp_customize->add_control( 'theme_options[show_tagline]',
	array(
	'label'    => __( 'Show Tagline', 'yoga-kriya' ),
	'section'  => 'section_header',
	'type'     => 'checkbox',
	'priority' => 100,
	)
);

// Setting announcement_text
$wp_customize->add_setting( 'theme_options[header_button_text]',
	array(
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field',
	)
);
$wp_customize->add_control( 'theme_options[header_button_text]',
	array(
	'label'    => __( 'Add Button Text', 'yoga-kriya' ),
	'section'  => 'section_header',
	'type'     => 'text',
	'priority' => 100,
	)
);

// Setting announcement link
$wp_customize->add_setting( 'theme_options[header_button_link]',
	array(
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'esc_url_raw',
	)
);
$wp_customize->add_control( 'theme_options[header_button_link]',
	array(
	'label'    => __( 'Add Button Link', 'yoga-kriya' ),
	'section'  => 'section_header',
	'type'     => 'url',
	'priority' => 100,
	)
);

// Layout Section.
$wp_customize->add_section( 'section_layout',
	array(
	'title'      => __( 'Layout Options', 'yoga-kriya' ),
	'priority'   => 100,
	'capability' => 'edit_theme_options',
	'panel'      => 'theme_option_panel',
	)
);

// Setting global_layout.
$wp_customize->add_setting( 'theme_options[global_layout]',
	array(
	'default'           => $default['global_layout'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_select',
	)
);
$wp_customize->add_control( 'theme_options[global_layout]',
	array(
	'label'    => __( 'Global Layout', 'yoga-kriya' ),
	'section'  => 'section_layout',
	'type'     => 'select',
	'choices'  => yoga_kriya_get_global_layout_options(),
	'priority' => 100,
	)
);

// Setting archive_layout.
$wp_customize->add_setting( 'theme_options[archive_layout]',
	array(
	'default'           => $default['archive_layout'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_select',
	)
);
$wp_customize->add_control( 'theme_options[archive_layout]',
	array(
	'label'    => __( 'Archive Layout', 'yoga-kriya' ),
	'section'  => 'section_layout',
	'type'     => 'select',
	'choices'  => yoga_kriya_get_archive_layout_options(),
	'priority' => 100,
	)
);
// Setting archive_image.
$wp_customize->add_setting( 'theme_options[archive_image]',
	array(
	'default'           => $default['archive_image'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_select',
	)
);
$wp_customize->add_control( 'theme_options[archive_image]',
	array(
	'label'    => __( 'Image in Archive', 'yoga-kriya' ),
	'section'  => 'section_layout',
	'type'     => 'select',
	'choices'  => yoga_kriya_get_image_sizes_options( true, array( 'disable', 'thumbnail', 'medium', 'large' ), false ),
	'priority' => 100,
	)
);
// Setting archive_image_alignment.
$wp_customize->add_setting( 'theme_options[archive_image_alignment]',
	array(
	'default'           => $default['archive_image_alignment'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_select',
	)
);
$wp_customize->add_control( 'theme_options[archive_image_alignment]',
	array(
	'label'           => __( 'Image Alignment in Archive', 'yoga-kriya' ),
	'section'         => 'section_layout',
	'type'            => 'select',
	'choices'         => yoga_kriya_get_image_alignment_options(),
	'priority'        => 100,
	'active_callback' => 'yoga_kriya_is_image_in_archive_active',
	)
);
// Setting single_image.
$wp_customize->add_setting( 'theme_options[single_image]',
	array(
	'default'           => $default['single_image'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_select',
	)
);
$wp_customize->add_control( 'theme_options[single_image]',
	array(
	'label'    => __( 'Image in Single Post/Page', 'yoga-kriya' ),
	'section'  => 'section_layout',
	'type'     => 'select',
	'choices'  => yoga_kriya_get_image_sizes_options( true, array( 'disable', 'large' ), false ),
	'priority' => 100,
	)
);

// 404 Page Setting

$wp_customize->add_section( 'yoga_kriya_404_page',
	array(
	'title'      => __( '404 Page Settings', 'yoga-kriya' ),
	'priority'   => 100,
	'capability' => 'edit_theme_options',
	'panel'      => 'theme_option_panel',
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_404_page_title]',
	array(
	'default'           => $default['yoga_kriya_404_page_title'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control( 'theme_options[yoga_kriya_404_page_title]',
	array(
	'label'    => __( 'Add Title', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_404_page',
	'type'     => 'text',
	'priority' => 100,
	)
);

$wp_customize->add_setting( 'theme_options[yoga_kriya_404_page_text]',
	array(
	'default'           => $default['yoga_kriya_404_page_text'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'sanitize_text_field',
	)
);

$wp_customize->add_control( 'theme_options[yoga_kriya_404_page_text]',
	array(
	'label'    => __( 'Add Text', 'yoga-kriya' ),
	'section'  => 'yoga_kriya_404_page',
	'type'     => 'text',
	'priority' => 100,
	)
);

// Footer Section.
$wp_customize->add_section( 'section_footer',
	array(
	'title'      => __( 'Footer Options', 'yoga-kriya' ),
	'priority'   => 100,
	'capability' => 'edit_theme_options',
	'panel'      => 'theme_option_panel',
	)
);

// Setting copyright_text.
$wp_customize->add_setting( 'theme_options[copyright_text]',
	array(
	'default'           => $default['copyright_text'],
	'capability'        => 'edit_theme_options',
	'sanitize_callback' => 'yoga_kriya_sanitize_textarea_content',
	'transport'         => 'postMessage',
	)
);

$wp_customize->add_control( 'theme_options[copyright_text]',
	array(
	'label'    => __( 'Copyright Text', 'yoga-kriya' ),
	'section'  => 'section_footer',
	'type'     => 'text',
	'priority' => 100,
	)
);

$wp_customize->add_setting('theme_options[yoga_kriya_copyright_text_align]',
	array(
	'capability'        => 'edit_theme_options',
	'default' 			=> $default['yoga_kriya_copyright_text_align'],
	'sanitize_callback' => 'yoga_kriya_sanitize_choices'
));
$wp_customize->add_control('theme_options[yoga_kriya_copyright_text_align]',array(
	'type' => 'radio',
	'label' => __('Copyright Text Alignment','yoga-kriya'),
	'section' => 'section_footer',
	'priority' => 100,
	'choices' => array(
		'left' => __('Left Align','yoga-kriya'),
		'right' => __('Right Align','yoga-kriya'),
		'center' => __('Center Align','yoga-kriya'),
	),
) );

$wp_customize->add_setting( 'theme_options[yoga_kriya_copyright_text_font_size]',
	array(
	'capability'        => 'edit_theme_options',
	'default'           => $default['yoga_kriya_copyright_text_font_size'],
	'transport'            => 'refresh',
    'sanitize_callback'    => 'absint',
    'sanitize_js_callback' => 'absint',
	)
);
$wp_customize->add_control( 'theme_options[yoga_kriya_copyright_text_font_size]',
	array(
	'label'    => __( 'Copyright Font Size', 'yoga-kriya' ),
	'section'  => 'section_footer',
	'type'     => 'number',
	'priority' => 100,
	)
);