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

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

	$wp_customize->add_section(
		new Wpdevart_Premium_Features_List(
			$wp_customize,
			'wpdevart_flower_shop_florist_theme_single_post_page_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'flower-shop-florist' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_flower_shop_florist_premium_features_url', esc_url('https://wpdevart.com/wordpress-flower-shop-theme')),
				'premium_features_list' => array(
					esc_html__( 'Post/Page Title Animations', 'flower-shop-florist' ),
					esc_html__( '+6 Beautiful Patterns', 'flower-shop-florist' ),
					esc_html__( 'Post/Page Banner Animations', 'flower-shop-florist' ),
					esc_html__( 'Breadcrumbs', 'flower-shop-florist' ),
                    esc_html__( '4 Animated Banner Elements', 'flower-shop-florist' ),
					esc_html__( 'Animated Elements Colors', 'flower-shop-florist' ),
					esc_html__( '... and Other Premium Features', 'flower-shop-florist' ),
				),
				'panel'         => 'wpdevart_flower_shop_florist_single_post_page_panel',
				'priority'      => 7777,
			)
		)
	);

	$wp_customize->add_section(
		new Wpdevart_Premium_Features_List(
			$wp_customize,
			'wpdevart_flower_shop_florist_theme_blog_archive_search_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'flower-shop-florist' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_flower_shop_florist_premium_features_url', esc_url('https://wpdevart.com/wordpress-flower-shop-theme')),
				'premium_features_list' => array(
					esc_html__( 'Images Hover Effects', 'flower-shop-florist' ),
					esc_html__( 'Archive/Search Page Title Animations', 'flower-shop-florist' ),
                    esc_html__( 'Archive/Search Page Banner Animations', 'flower-shop-florist' ),
					esc_html__( '4 Animated Elements', 'flower-shop-florist' ),
                    esc_html__( 'Animated Elements Colors', 'flower-shop-florist' ),
					esc_html__( '... and Other Premium Features', 'flower-shop-florist' ),
				),
				'panel'         => 'wpdevart_flower_shop_florist_blog_archive_search_panel',
				'priority'      => 7777,
			)
		)
	);

    $wp_customize->add_section(
		new Wpdevart_Premium_Features_List(
			$wp_customize,
			'wpdevart_flower_shop_florist_theme_custom_homepage_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'flower-shop-florist' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_flower_shop_florist_premium_features_url', esc_url('https://wpdevart.com/wordpress-flower-shop-theme')),
				'premium_features_list' => array(
					esc_html__( '+5 Beautiful Banner Themes', 'flower-shop-florist' ),
					esc_html__( 'WooCommerce Section', 'flower-shop-florist' ),
					esc_html__( 'Sales Section', 'flower-shop-florist' ),
					esc_html__( 'Achievements Section', 'flower-shop-florist' ),
					esc_html__( 'Advantages Section', 'flower-shop-florist' ),
					esc_html__( 'Services Section', 'flower-shop-florist' ),
					esc_html__( 'Sections Description Color', 'flower-shop-florist' ),
					esc_html__( 'Wide and Full-width Layouts', 'flower-shop-florist' ),
					esc_html__( 'WooCommerce Section', 'flower-shop-florist' ),
					esc_html__( '... and Other Premium Features', 'flower-shop-florist' ),
				),
				'panel'         => 'wpdevart_flower_shop_florist_custom_homepage_panel',
				'priority'      => 7777,
			)
		)
	);

	$wp_customize->add_section(
		new Wpdevart_Premium_Features_List(
			$wp_customize,
			'wpdevart_flower_shop_florist_theme_woo_features',
			array(
				'title'         => esc_html__( 'Even More Options in the Premium Version!', 'flower-shop-florist' ),
                'upsell_link'  => apply_filters( 'parent_wpdevart_flower_shop_florist_premium_features_url', esc_url('https://wpdevart.com/wordpress-flower-shop-theme')),
				'premium_features_list' => array(
                    esc_html__( 'WooCommerce Search Bar Section', 'flower-shop-florist' ),
					esc_html__( 'Customizable Header Cart', 'flower-shop-florist' ),
					esc_html__( 'Breadcrumbs', 'flower-shop-florist' ),
					esc_html__( 'Wide and Full-width Layouts', 'flower-shop-florist' ),
                    esc_html__( 'Customizable Category List and Search Bar', 'flower-shop-florist' ),
					esc_html__( 'WooCommerce Sidebar Options', 'flower-shop-florist' ),
					esc_html__( '... and Other Premium Features', 'flower-shop-florist' ),
				),
				'panel'         => 'wpdevart_flower_shop_florist_woocommerce_settings_panel',
				'priority'      => 7777,
			)
		)
	);
        
    ##################------ Premium Features Controls------##################

    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_logo_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization',
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_logo_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'title_tagline',
        'priority' => 50,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Text Logo animations', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Text Logo font-size', 'flower-shop-florist' )
            ),
            'feature3' => array(
                'name' => esc_html__( 'Text Logo font weight', 'flower-shop-florist' )
            ),
            'feature4' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );

    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_font_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_font_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'wpdevart_flower_shop_florist_fonts_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( '+40 Other Popular Fonts', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );

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

    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_top_header_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_top_header_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'wpdevart_flower_shop_florist_top_header_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Address Section', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Phone/Email/Address Icon Color', 'flower-shop-florist' )
            ),
            'feature3' => array(
                'name' => esc_html__( 'Animations for Top Header Elements', 'flower-shop-florist' )
            ),
            'feature4' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );
    
    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_header_menu_search_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_header_menu_search_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'wpdevart_flower_shop_florist_header_menu_search_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Search Button Animations', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );

	if ( class_exists( 'WooCommerce' ) ) {
    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_header_woo_cart_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_header_woo_cart_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'wpdevart_flower_shop_florist_header_woo_cart',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Woo Cart Animations', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );
    };

    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_single_post_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_single_post_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'wpdevart_flower_shop_florist_single_post_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Title Animations', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Banner Animations', 'flower-shop-florist' )
            ),
            'feature3' => array(
                'name' => esc_html__( '4 Animated Elements', 'flower-shop-florist' )
            ),
            'feature4' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'flower-shop-florist' )
            ),
            'feature5' => array(
                'name' => esc_html__( '+6 Beautiful Patterns', 'flower-shop-florist' )
            ),
            'feature6' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_single_page_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_single_page_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'wpdevart_flower_shop_florist_single_page_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Title Animations', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Banner Animations', 'flower-shop-florist' )
            ),
            'feature3' => array(
                'name' => esc_html__( '4 Animated Elements', 'flower-shop-florist' )
            ),
            'feature4' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'flower-shop-florist' )
            ),
            'feature5' => array(
                'name' => esc_html__( '+6 Beautiful Patterns', 'flower-shop-florist' )
            ),
            'feature6' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );

    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_blog_archive_page_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_blog_archive_page_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'wpdevart_flower_shop_florist_blog_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Title Animations', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Banner Animations', 'flower-shop-florist' )
            ),
            'feature3' => array(
                'name' => esc_html__( '4 Animated Elements', 'flower-shop-florist' )
            ),
            'feature4' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'flower-shop-florist' )
            ),
            'feature5' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_search_page_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_search_page_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'wpdevart_flower_shop_florist_search_page_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Title Animations', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Banner Animations', 'flower-shop-florist' )
            ),
            'feature3' => array(
                'name' => esc_html__( '4 Animated Elements', 'flower-shop-florist' )
            ),
            'feature4' => array(
                'name' => esc_html__( 'Animated Elements Colors', 'flower-shop-florist' )
            ),
            'feature5' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_blog_settings_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_blog_settings_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'wpdevart_flower_shop_florist_blog_archive_search_general_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Images Hover Effects', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_custom_homepage_general_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_custom_homepage_general_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'wpdevart_flower_shop_florist_custom_homepage_general_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( 'Sections Description Color', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Sections Title Lines Color', 'flower-shop-florist' )
            ),
            'feature3' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );
    $wp_customize->add_setting( 'wpdevart_flower_shop_florist_footer_premium_features',
    array(
        'sanitize_callback' => 'wpdevart_flower_shop_florist_text_sanitization'
    )
    );
    $wp_customize->add_control( new Wpdevart_Premium_Features_Control_List( $wp_customize, 'wpdevart_flower_shop_florist_footer_premium_features',
    array(
        'label' => esc_html__( 'More Features in the Premium Version!', 'flower-shop-florist' ),
        'section' => 'wpdevart_flower_shop_florist_footer_section',
        'priority' => 777,
        'choices' => array(
            'feature1' => array(
                'name' => esc_html__( '+4 Beautiful Footer Themes', 'flower-shop-florist' )
            ),
            'feature2' => array(
                'name' => esc_html__( 'Copyright section image', 'flower-shop-florist' )
            ),
            'feature3' => array(
                'name' => esc_html__( '... and Other Premium Features', 'flower-shop-florist' )
            ),
        )
    )
    ) );