<?php
function flossy_upsale_setting( $wp_customize ) {
	
	$wp_customize->add_section(
        'flossy_upsale',
        array(
            'title' 		=> __('Get More Features in Flossy Pro','flossy'),
			'priority'      => 1,
		)
    );
	
	/*=========================================
	 Buttons
	=========================================*/
	
	class Flossy_Button_Customize_Control extends WP_Customize_Control {
	public $type = 'flossy_upsale';

	   function render_content() {
		?>
			<div class="upsale_info">
				<ul>
					<li><a href="https://preview.sellerthemes.com/pro/flossy/" class="btn-secondary" target="_blank"><i class="dashicons dashicons-desktop"></i><?php _e( 'Pro Demo','flossy' ); ?> </a></li>
					
					<li><a href="https://sellerthemes.com/flossy-premium/" class="btn-primary" target="_blank"><i class="dashicons dashicons-cart"></i><?php _e( 'Purchase Now','flossy' ); ?> </a></li>
					
					<li><a href="https://sellerthemes.ticksy.com/" class="btn-secondary" target="_blank"><i class="dashicons dashicons-sos"></i><?php _e( 'Ask for Support','flossy' ); ?> </a></li>
					
					<li><a href="https://wordpress.org/support/theme/flossy/reviews/#new-post" class="btn-green" target="_blank"><i class="dashicons dashicons-heart"></i><?php _e( 'Give us Rating','flossy' ); ?> </a></li>
				</ul>
			</div>
		<?php
	   }
	}
	
	$wp_customize->add_setting(
		'flossy_upsale_btns',
		array(
		   'capability'     => 'edit_theme_options',
			'sanitize_callback' => 'flossy_sanitize_text',
		)	
	);
	
	$wp_customize->add_control( new Flossy_Button_Customize_Control( $wp_customize, 'flossy_upsale_btns', array(
		'section' => 'flossy_upsale',
    ))
);
}
add_action( 'customize_register', 'flossy_upsale_setting',999 );