<?php
/**
 * Skacero-pro Theme Customizer.
 *
 * @package Skacero
 */

/**
 * Add postMessage support for site title and description for the Theme Customizer.
 *
 * @param WP_Customize_Manager $wp_customize Theme Customizer object.
 */

function Skacero_Pro_Support_Customizer( $wp_customize ) {
	class WP_Pro_Customize_Control extends WP_Customize_Control {
		public $type = 'new_menu';
		/**
		* Render the control's content.
		*/
		public function render_content() {
		?>
		<div style="border-bottom: 1px solid #ddd;">

		<div class="lite-box" style="text-align:center">
			<a style="margin: 20px 10px 0px;"href="<?php echo esc_url('http://wpthemes.icynets.com/skacero/'); ?>" class="button" target="_blank"><?php echo esc_html('View Demo!','skacero-lite');?></a>

			<a style="margin: 20px 10px 0px;"href="<?php echo esc_url('http://www.icynets.com');?>" class="button" target="_blank"><?php echo esc_html('Get Support','skacero-lite');?></a>
		</div>

		<a class="button" id="rate-theme" style="display: table;margin: 20px auto;"href="<?php echo esc_url('https://wordpress.org/support/theme/skacero-lite/reviews/'); ?>" class="button" target="_blank"><?php echo esc_html('Rate This Theme','skacero-lite');?>
		</a>

		<div style="text-align:center">
			<?php _e('<div class="support-box">
			<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
				<input type="hidden" name="cmd" value="_s-xclick">
				<input type="hidden" name="hosted_button_id" value="LERHBK4QUYDF4">
				<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!">
				<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
			</form>
			</div>', 'skacero-lite'); ?>
		</div>

		</div>
		 <div class="pro-vesrion">
		 <?php echo esc_html('If you like this WordPress Layout please do well to support our work by donating.  ','skacero-lite');?>
		 </div>
		<?php
		}
	}
$wp_customize->add_section( 'skacero_pro_section' , array(
		'title'      => __('SUPPORT', 'skacero-lite'),
		'priority'   => 1,
   	) );

$wp_customize->add_setting(
    'upgrade_pro',
    array(
		'capability'     => 'edit_theme_options',
		'sanitize_callback' => 'sanitize_text_field',
    )	
);
$wp_customize->add_control( new WP_Pro_Customize_Control( 
	$wp_customize, 
		'upgrade_pro', array(
		'label' => __('Discover Skacero-pro','skacero-lite'),
        'section' => 'skacero_pro_section',
		'setting' => 'upgrade_pro',
    ))
);




}
add_action( 'customize_register', 'Skacero_Pro_Support_Customizer' );
?>