<?php
//Pro Button

function rambo_pro_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 class="pro-box">
       <a href="<?php echo esc_url('http://webriti.com/rambo/');?>" target="_blank" class="upgrade" id="review_pro"><?php _e( 'UPGRADE  TO PRO','rambo' ); ?></a>
		
	</div>
    <?php
    }
}
$wp_customize->add_section( 'rambo_pro_section' , array(
		'title'      => __('Important Links', 'rambo'),
		'priority'   => 1100,
   	) );

$wp_customize->add_setting(
    'upgrade_pro',
    array(
        'default' => '',
		'capability'     => 'edit_theme_options',
		'sanitize_callback' => 'sanitize_text_field',
    )	
);
$wp_customize->add_control( new WP_Pro_Customize_Control( $wp_customize, 'upgrade_pro', array(
		'section' => 'rambo_pro_section',
		'setting' => 'upgrade_pro',
    ))
);

class WP_Review_Customize_Control extends WP_Customize_Control {
    public $type = 'new_menu';
    /**
    * Render the control's content.
    */
    public function render_content() {
    ?>
	  <div class="pro-box">
     <a href="<?php echo esc_url('https://wordpress.org/support/view/theme-reviews/rambo#new-post/');?>" target="_blank" class="review" id="review_pro"><?php _e('ADD YOUR REVIEW','rambo' ); ?></a>
	 </div>
    <?php
    }
}

$wp_customize->add_setting(
    'pro_Review',
    array(
        'capability'     => 'edit_theme_options',
		'sanitize_callback' => 'sanitize_text_field',
    )	
);
$wp_customize->add_control( new WP_Review_Customize_Control( $wp_customize, 'pro_Review', array(	
		'section' => 'rambo_pro_section',
		'setting' => 'pro_Review',
    ))
);

class WP_help_Customize_Control extends WP_Customize_Control {
    public $type = 'new_menu';
    /**
    * Render the control's content.
    */
    public function render_content() {
    ?>
     <div class="pro-box">
       <a href="<?php echo esc_url('http://webriti.com/themes/dummydata/lite/RamboLite.zip');?>" target="_blank" class="upgrade" id="review_pro"><?php _e('DOWNLOAD IMPORT FILE','rambo' ); ?></a>
        
    </div>
    <?php
    }
}

$wp_customize->add_setting(
    'dwn_import',
    array(
       'capability'     => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field',
    )   
);
$wp_customize->add_control( new WP_help_Customize_Control( $wp_customize, 'dwn_import', array(
        'section' => 'rambo_pro_section',
        'setting' => 'dwn_import',
    ))
);


class WP_fur_support_Customize_Control extends WP_Customize_Control {
    public $type = 'new_menu';
    /**
    * Render the control's content.
    */
    public function render_content() {
    ?>
      <div class="pro-box">
     <a href="<?php echo esc_url('https://wordpress.org/support/theme/rambo/');?>" target="_blank" class="review" id="review_pro">
     <?php _e( 'THEME SUPPORT','rambo' ); ?></a>
     </div>
     <div class="pro-vesrion">
     <?php //_e('Buy the pro version and give us a chance to serve you better.Buy the pro version and give us a chance to serve you better. ','rambo');?>
     </div>
    <?php
    }
}

$wp_customize->add_setting(
    'fur_support',
    array(
        'capability'     => 'edit_theme_options',
        'sanitize_callback' => 'sanitize_text_field',
    )   
);
$wp_customize->add_control( new WP_fur_support_Customize_Control( $wp_customize, 'fur_support', array(  
        'section' => 'rambo_pro_section',
        'setting' => 'fur_support',
    ))
);

class WP_document_Customize_Control extends WP_Customize_Control {
    public $type = 'new_menu';
    /**
    * Render the control's content.
    */
    public function render_content() {
    ?>
      <div class="pro-box">
	 <a href="<?php echo esc_url('http://webriti.com/help/themes/rambo/rambo-wordpress-theme/');?>" target="_blank" class="document" id="review_pro">
	 <?php _e( 'PRO DOCUMENTATION','rambo' ); ?></a>
	 
	 </div>
	 <div class="pro-vesrion">
	 <?php _e('The Pro Version gives you more opportunities to enhance your site and business. In order to create effective online presence one have to showcase their wide range of products, have to use contact us enquiry form, have to make effective about us page, have to introduce team members, etc etc . The pro version will give it all. Buy the pro version and give us a chance to serve you better. ','rambo');?>
	 </div>
    <?php
    }
}

$wp_customize->add_setting(
    'doc_Review',
    array(
		'capability'     => 'edit_theme_options',
		'sanitize_callback' => 'sanitize_text_field',
    )	
);
$wp_customize->add_control( new WP_document_Customize_Control( $wp_customize, 'doc_Review', array(	
		'section' => 'rambo_pro_section',
		'setting' => 'doc_Review',
    ))
);

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