<?php
/**
 * Pro Version Upgrade Section
 *
 * Registers Upgrade Section for the Pro Version of the theme
 *
 * @package cleanead
 */


/**
 * Adds pro version description
 *
 * @param object $wp_customize / Customizer Object
 */
function cleanead_customize_register_upgrade_options( $wp_customize ) {

	// Add Upgrade / More Features Section
	$wp_customize->add_section( 'cleanead_section_upgrade', array(
        'title'    => esc_html__( 'More Features', 'cleanead' ),
        'priority' => 70,
		'panel' => 'cleanead_options_panel' 
		)
	);
	
	// Add custom Upgrade Content control
	$wp_customize->add_setting( 'cleanead_theme_options[upgrade]', array(
        'default'           => '',
		'type'           	=> 'option',
        'transport'         => 'refresh',
        'sanitize_callback' => 'esc_attr'
        )
    );
    $wp_customize->add_control( new cleanead_Customize_Upgrade_Control(
        $wp_customize, 'cleanead_theme_options[upgrade]', array(
            'section' => 'cleanead_section_upgrade',
            'settings' => 'cleanead_theme_options[upgrade]',
            'priority' => 1
            )
        )
    );

}
add_action( 'customize_register', 'cleanead_customize_register_upgrade_options' );