<?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_amstore_theme_general_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'amstore' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_amstore_premium_features_url', esc_url('https://wpdevart.com/amstore-wordpress-online-store-theme')),
				'premium_features_list' => array(
					esc_html__( '+40 Other Popular Fonts', 'amstore' ),
					esc_html__( 'Wide and Full-Width Layouts', 'amstore' ),
					esc_html__( 'Preloader', 'amstore' ),
                    esc_html__( 'Button Animation', 'amstore' ),
                    esc_html__( '+6 Beautiful Patterns', 'amstore' ),
					esc_html__( 'Customizable Search Overlay', 'amstore' ),
					esc_html__( 'Back To Top Button', 'amstore' ),
					esc_html__( '... and Other Premium Features', 'amstore' ),
				),
				'panel'         => 'wpdevart_amstore_general_settings_panel',
				'priority'      => 7777,
			)
		)
	);

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

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

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

    $wp_customize->add_section(
		new Wpdevart_Premium_Features_List(
			$wp_customize,
			'wpdevart_amstore_theme_custom_homepage_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'amstore' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_amstore_premium_features_url', esc_url('https://wpdevart.com/amstore-wordpress-online-store-theme')),
				'premium_features_list' => array(
                    esc_html__( '+4 Beautiful Banner Themes', 'amstore' ),
                    esc_html__( 'Homepage Sections Positions', 'amstore' ),
					esc_html__( 'WooCommerce Section', 'amstore' ),
					esc_html__( 'Sales Section', 'amstore' ),
                    esc_html__( 'Benefits of Ordering Section', 'amstore' ),
                    esc_html__( 'Shop by Brand Section', 'amstore' ),
                    esc_html__( 'Shop by Category Section', 'amstore' ),
					esc_html__( 'Achievements Section', 'amstore' ),
					esc_html__( 'Advantages Section', 'amstore' ),
					esc_html__( 'Services Section', 'amstore' ),
					esc_html__( 'Sections Description Color', 'amstore' ),
					esc_html__( 'Sections Title Lines Color', 'amstore' ),
					esc_html__( 'Wide and Full-Width Layouts', 'amstore' ),
					esc_html__( '... and Other Premium Features', 'amstore' ),
				),
				'panel'         => 'wpdevart_amstore_custom_homepage_panel',
				'priority'      => 7777,
			)
		)
	);

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

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

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

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

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

    $wp_customize->add_setting( 'wpdevart_amstore_top_header_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_amstore_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_amstore_top_header_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'amstore' ),
        'section' => 'wpdevart_amstore_top_header_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Address Section', 'amstore' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Phone/Email/Address Icon Color', 'amstore' )
            ),
            'feature3' => array(
                'name' => esc_html__( 'Animations for Top Header Elements', 'amstore' )
            ),
            'feature4' => array(
                'name' => esc_html__( '... and Other Premium Features', 'amstore' )
            ),
        )
    )
    ) );
    
    $wp_customize->add_setting( 'wpdevart_amstore_header_menu_search_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_amstore_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_amstore_header_menu_search_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'amstore' ),
        'section' => 'wpdevart_amstore_header_menu_search_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Search Button Animations', 'amstore' )
            ),
            'feature2' => array(
                'name' => esc_html__( '... and Other Premium Features', 'amstore' )
            ),
        )
    )
    ) );

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

    $wp_customize->add_setting( 'wpdevart_amstore_single_post_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_amstore_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_amstore_single_post_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'amstore' ),
        'section' => 'wpdevart_amstore_single_post_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( '+6 Beautiful Patterns', 'amstore' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Title Animations', 'amstore' )
            ),
            'feature3' => array(
                'name' => esc_html__( 'Banner Animations', 'amstore' )
            ),
            'feature4' => array(
                'name' => esc_html__( '4 Animated Elements', 'amstore' )
            ),
            'feature5' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'amstore' )
            ),
            'feature6' => array(
                'name' => esc_html__( '... and Other Premium Features', 'amstore' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_amstore_single_page_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_amstore_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_amstore_single_page_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'amstore' ),
        'section' => 'wpdevart_amstore_single_page_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( '+6 Beautiful Patterns', 'amstore' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Title Animations', 'amstore' )
            ),
            'feature3' => array(
                'name' => esc_html__( 'Banner Animations', 'amstore' )
            ),
            'feature4' => array(
                'name' => esc_html__( '4 Animated Elements', 'amstore' )
            ),
            'feature5' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'amstore' )
            ),
            'feature6' => array(
                'name' => esc_html__( '... and Other Premium Features', 'amstore' )
            ),
        )
    )
    ) );

    $wp_customize->add_setting( 'wpdevart_amstore_blog_archive_page_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_amstore_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_amstore_blog_archive_page_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'amstore' ),
        'section' => 'wpdevart_amstore_blog_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Title Animations', 'amstore' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Banner Animations', 'amstore' )
            ),
            'feature3' => array(
                'name' => esc_html__( '4 Animated Elements', 'amstore' )
            ),
            'feature4' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'amstore' )
            ),
            'feature5' => array(
                'name' => esc_html__( '... and Other Premium Features', 'amstore' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_amstore_search_page_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_amstore_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_amstore_search_page_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'amstore' ),
        'section' => 'wpdevart_amstore_search_page_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Title Animations', 'amstore' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Banner Animations', 'amstore' )
            ),
            'feature3' => array(
                'name' => esc_html__( '4 Animated Elements', 'amstore' )
            ),
            'feature4' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'amstore' )
            ),
            'feature5' => array(
                'name' => esc_html__( '... and Other Premium Features', 'amstore' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_amstore_blog_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_amstore_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_amstore_blog_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'amstore' ),
        'section' => 'wpdevart_amstore_blog_archive_search_general_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Images Hover Effects', 'amstore' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Ordering of Metas', 'amstore' )
            ),
            'feature3' => array(
                'name' => esc_html__( '... and Other Premium Features', 'amstore' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_amstore_custom_homepage_banner_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_amstore_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_amstore_custom_homepage_banner_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'amstore' ),
        'section' => 'wpdevart_amstore_custom_homepage_banner_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( '+4 Beautiful Banner Themes', 'amstore' )
            ),
            'feature2' => array(
                'name' => esc_html__( '... and Other Premium Features', 'amstore' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_amstore_custom_homepage_general_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_amstore_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_amstore_custom_homepage_general_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'amstore' ),
        'section' => 'wpdevart_amstore_custom_homepage_general_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Ordering of Sections', 'amstore' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Sections Description Color', 'amstore' )
            ),
            'feature3' => array(
                'name' => esc_html__( 'Sections Title Lines Color', 'amstore' )
            ),
            'feature4' => array(
                'name' => esc_html__( '... and Other Premium Features', 'amstore' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_amstore_footer_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_amstore_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_amstore_footer_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'amstore' ),
        'section' => 'wpdevart_amstore_footer_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( '+4 Beautiful Footer Themes', 'amstore' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Copyright Section Image', 'amstore' )
            ),
            'feature3' => array(
                'name' => esc_html__( '... and Other Premium Features', 'amstore' )
            ),
        )
    )
    ) );