<?php

    $wp_customize->register_section_type( 'Wpdevart_Premium_Features_List' );


	##################------ Premium Features Sections ------##################

	$wp_customize->add_section(
		new Wpdevart_Premium_Features_List(
			$wp_customize,
			'wpdevart_bookstore_wda_theme_general_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'bookstore-wda' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_bookstore_wda_premium_features_url', esc_url('https://wpdevart.com/wordpress-bookstore-theme')),
				'premium_features_list' => array(
					esc_html__( '+40 Other Popular Fonts', 'bookstore-wda' ),
					esc_html__( 'Wide and Full-Width Layouts', 'bookstore-wda' ),
					esc_html__( 'Preloader', 'bookstore-wda' ),
                    esc_html__( 'Button Animation', 'bookstore-wda' ),
                    esc_html__( '+13 Beautiful Patterns', 'bookstore-wda' ),
					esc_html__( 'Customizable Search Overlay', 'bookstore-wda' ),
					esc_html__( 'Back To Top Button', 'bookstore-wda' ),
					esc_html__( '... and Other Premium Features', 'bookstore-wda' ),
				),
				'panel'         => 'wpdevart_bookstore_wda_general_settings_panel',
				'priority'      => 7777,
			)
		)
	);

	$wp_customize->add_section(
		new Wpdevart_Premium_Features_List(
			$wp_customize,
			'wpdevart_bookstore_wda_theme_header_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'bookstore-wda' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_bookstore_wda_premium_features_url', esc_url('https://wpdevart.com/wordpress-bookstore-theme')),
				'premium_features_list' => array(
					esc_html__( 'Sticky Header Feature', 'bookstore-wda' ),
					esc_html__( 'Sticky Header Feature for Mobile', 'bookstore-wda' ),
                    esc_html__( 'Logo Animations', 'bookstore-wda' ),
					esc_html__( 'Search Button Animations', 'bookstore-wda' ),
                    esc_html__( 'Woo Cart Animations', 'bookstore-wda' ),
					esc_html__( 'Wide and Full-Width Layouts', 'bookstore-wda' ),
					esc_html__( '... and Other Premium Features', 'bookstore-wda' ),
				),
				'panel'         => 'wpdevart_bookstore_wda_header_panel',
				'priority'      => 7777,
			)
		)
	);

	$wp_customize->add_section(
		new Wpdevart_Premium_Features_List(
			$wp_customize,
			'wpdevart_bookstore_wda_theme_single_post_page_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'bookstore-wda' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_bookstore_wda_premium_features_url', esc_url('https://wpdevart.com/wordpress-bookstore-theme')),
				'premium_features_list' => array(
					esc_html__( '+13 Beautiful Patterns', 'bookstore-wda' ),
                    esc_html__( 'Post/Page Title Animations', 'bookstore-wda' ),
					esc_html__( 'Post/Page Banner Animations', 'bookstore-wda' ),
                    esc_html__( '4 Animated Banner Elements', 'bookstore-wda' ),
					esc_html__( 'Animated Elements Colors', 'bookstore-wda' ),
					esc_html__( 'Wide and Full-Width Layouts', 'bookstore-wda' ),
					esc_html__( '... and Other Premium Features', 'bookstore-wda' ),
				),
				'panel'         => 'wpdevart_bookstore_wda_single_post_page_panel',
				'priority'      => 7777,
			)
		)
	);

	$wp_customize->add_section(
		new Wpdevart_Premium_Features_List(
			$wp_customize,
			'wpdevart_bookstore_wda_theme_blog_archive_search_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'bookstore-wda' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_bookstore_wda_premium_features_url', esc_url('https://wpdevart.com/wordpress-bookstore-theme')),
				'premium_features_list' => array(
					esc_html__( 'Images Hover Effects', 'bookstore-wda' ),
					esc_html__( 'Archive/Search Page Title Animations', 'bookstore-wda' ),
                    esc_html__( 'Archive/Search Page Banner Animations', 'bookstore-wda' ),
					esc_html__( '4 Animated Elements', 'bookstore-wda' ),
                    esc_html__( 'Animated Elements Colors', 'bookstore-wda' ),
					esc_html__( 'Wide and Full-Width Layouts', 'bookstore-wda' ),
					esc_html__( '... and Other Premium Features', 'bookstore-wda' ),
				),
				'panel'         => 'wpdevart_bookstore_wda_blog_archive_search_panel',
				'priority'      => 7777,
			)
		)
	);

    $wp_customize->add_section(
		new Wpdevart_Premium_Features_List(
			$wp_customize,
			'wpdevart_bookstore_wda_theme_custom_homepage_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'bookstore-wda' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_bookstore_wda_premium_features_url', esc_url('https://wpdevart.com/wordpress-bookstore-theme')),
				'premium_features_list' => array(
                    esc_html__( '+7 Beautiful Banner Themes', 'bookstore-wda' ),
                    esc_html__( 'Homepage Sections Positions', 'bookstore-wda' ),
					esc_html__( 'WooCommerce Section', 'bookstore-wda' ),
					esc_html__( 'Sales Section', 'bookstore-wda' ),
                    esc_html__( 'Benefits of Ordering Section', 'bookstore-wda' ),
                    esc_html__( 'Our Partners Section', 'bookstore-wda' ),
                    esc_html__( 'Shop by Category Section', 'bookstore-wda' ),
					esc_html__( 'Achievements Section', 'bookstore-wda' ),
					esc_html__( 'Advantages Section', 'bookstore-wda' ),
					esc_html__( 'Services Section', 'bookstore-wda' ),
					esc_html__( 'Team Members Section', 'bookstore-wda' ),
					esc_html__( '... and Other Sections', 'bookstore-wda' ),
					esc_html__( 'Sections Description Color', 'bookstore-wda' ),
					esc_html__( 'Sections Title Lines Color', 'bookstore-wda' ),
					esc_html__( 'Wide and Full-Width Layouts', 'bookstore-wda' ),
					esc_html__( '... and Other Premium Features', 'bookstore-wda' ),
				),
				'panel'         => 'wpdevart_bookstore_wda_custom_homepage_panel',
				'priority'      => 7777,
			)
		)
	);

	$wp_customize->add_section(
		new Wpdevart_Premium_Features_List(
			$wp_customize,
			'wpdevart_bookstore_wda_theme_woo_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'bookstore-wda' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_bookstore_wda_premium_features_url', esc_url('https://wpdevart.com/wordpress-bookstore-theme')),
				'premium_features_list' => array(
                    esc_html__( 'WooCommerce Search Bar Section', 'bookstore-wda' ),
                    esc_html__( 'Customizable Category List and Search Bar', 'bookstore-wda' ),
					esc_html__( 'WooCommerce Shop/Category Structure', 'bookstore-wda' ),
					esc_html__( 'WooCommerce Premium Sections', 'bookstore-wda' ),
					esc_html__( 'WooCommerce Breadcrumbs', 'bookstore-wda' ),
					esc_html__( 'WooCommerce Header Cart Design', 'bookstore-wda' ),
                    esc_html__( 'WooCommerce Button Animation', 'bookstore-wda' ),
					esc_html__( 'WooCommerce Sidebar Options', 'bookstore-wda' ),
					esc_html__( 'Wide and Full-Width Layouts', 'bookstore-wda' ),
					esc_html__( '... and Other Premium Features', 'bookstore-wda' ),
				),
				'panel'         => 'wpdevart_bookstore_wda_woocommerce_settings_panel',
				'priority'      => 7777,
			)
		)
	);
        
    ##################------ Premium Features Controls------##################

    $wp_customize->add_setting( 'wpdevart_bookstore_wda_logo_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization',
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_logo_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'title_tagline',
        'priority' => 50,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Logo Animation', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Text Logo Font-size', 'bookstore-wda' )
            ),
            'feature3' => array(
                'name' => esc_html__( 'Text Logo Font Weight', 'bookstore-wda' )
            ),
            'feature4' => array(
                'name' => esc_html__( 'Site Description Color', 'bookstore-wda' )
            ),
            'feature5' => array(
                'name' => esc_html__( 'Site Description Font-size', 'bookstore-wda' )
            ),
            'feature6' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );

    $wp_customize->add_setting( 'wpdevart_bookstore_wda_font_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_font_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_fonts_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( '+40 Other Popular Fonts', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );

    $wp_customize->add_setting( 'wpdevart_bookstore_wda_primary_button_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_primary_button_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_primary_button_settings',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Button Animation', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );

    $wp_customize->add_setting( 'wpdevart_bookstore_wda_header_general_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_header_general_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_header_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Sticky Header Feature', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Sticky Header Feature for Mobile', 'bookstore-wda' )
            ),
            'feature3' => array(
                'name' => esc_html__( 'Animations for Header Elements', 'bookstore-wda' )
            ),
            'feature4' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );

    $wp_customize->add_setting( 'wpdevart_bookstore_wda_top_header_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_top_header_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_top_header_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Address Section', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Phone/Email/Address Icon Color', 'bookstore-wda' )
            ),
            'feature3' => array(
                'name' => esc_html__( 'Animations for Top Header Elements', 'bookstore-wda' )
            ),
            'feature4' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );
    
    $wp_customize->add_setting( 'wpdevart_bookstore_wda_header_menu_search_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_header_menu_search_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_header_menu_search_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Search Button Animations', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );

	if ( class_exists( 'WooCommerce' ) ) {
    $wp_customize->add_setting( 'wpdevart_bookstore_wda_woo_primary_button_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_woo_primary_button_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'woocommerce_primary_button_colors_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'WooCommerce Button Animation', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );
    };

    $wp_customize->add_setting( 'wpdevart_bookstore_wda_single_post_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_single_post_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_single_post_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( '+13 Beautiful Patterns', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Title Animations', 'bookstore-wda' )
            ),
            'feature3' => array(
                'name' => esc_html__( 'Banner Animations', 'bookstore-wda' )
            ),
            'feature4' => array(
                'name' => esc_html__( '4 Animated Elements', 'bookstore-wda' )
            ),
            'feature5' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'bookstore-wda' )
            ),
            'feature6' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_bookstore_wda_single_page_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_single_page_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_single_page_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( '+13 Beautiful Patterns', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Title Animations', 'bookstore-wda' )
            ),
            'feature3' => array(
                'name' => esc_html__( 'Banner Animations', 'bookstore-wda' )
            ),
            'feature4' => array(
                'name' => esc_html__( '4 Animated Elements', 'bookstore-wda' )
            ),
            'feature5' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'bookstore-wda' )
            ),
            'feature6' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );

    $wp_customize->add_setting( 'wpdevart_bookstore_wda_blog_archive_page_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_blog_archive_page_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_blog_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Title Animations', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Banner Animations', 'bookstore-wda' )
            ),
            'feature3' => array(
                'name' => esc_html__( '4 Animated Elements', 'bookstore-wda' )
            ),
            'feature4' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'bookstore-wda' )
            ),
            'feature5' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_bookstore_wda_search_page_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_search_page_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_search_page_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Title Animations', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Banner Animations', 'bookstore-wda' )
            ),
            'feature3' => array(
                'name' => esc_html__( '4 Animated Elements', 'bookstore-wda' )
            ),
            'feature4' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'bookstore-wda' )
            ),
            'feature5' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_bookstore_wda_blog_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_blog_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_blog_archive_search_general_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Images Hover Effects', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Ordering of Metas', 'bookstore-wda' )
            ),
            'feature3' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_bookstore_wda_custom_homepage_banner_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_custom_homepage_banner_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_custom_homepage_banner_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( '+7 Beautiful Banner Themes', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_bookstore_wda_footer_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_bookstore_wda_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_bookstore_wda_footer_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'bookstore-wda' ),
        'section' => 'wpdevart_bookstore_wda_footer_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( '+4 Beautiful Footer Themes', 'bookstore-wda' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Copyright Section Image', 'bookstore-wda' )
            ),
            'feature3' => array(
                'name' => esc_html__( '... and Other Premium Features', 'bookstore-wda' )
            ),
        )
    )
    ) );