<?php
/**
 * icyNETS Simplic Theme Customizer
 *
 * @package icyNETS Simplic
 *
 * Support us
 */

function icynets_simplic_registers() {

    wp_register_script('icynets-simplic-customizer', get_template_directory_uri() . '/js/icynets_simplic_customizer_help.js', array("jquery"), '', true);
	
    wp_enqueue_script('icynets-simplic-customizer');
	
    wp_localize_script('icynets-simplic-customizer', 'icynets_simplic_advert', array(
        'rate_text' => __('Rate This Theme', 'icynets-simplic'),
        'rate_url' => esc_url('https://wordpress.org/support/view/theme-reviews/icynets-simplic#postform'),
		
        'demo_text' => __('View Demo!', 'icynets-simplic'),
        'demo_url' => esc_url('http://wpthemes.icynets.com/simplic/'),
		
		'donate_button'=>__('<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="HB3DJDBCXYECG">
			<input type="image" src="https://www.paypalobjects.com/en_US/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><p>Please support our hard work by rating this Theme and Donating.</p>', 'icynets-simplic'),
		
        'documentation_text' => __('Free Themes', 'icynets-simplic'),
        'documentation_url' => esc_url('http://www.icynets.com/themes/')
        )
    );
}

add_action('customize_controls_enqueue_scripts', 'icynets_simplic_registers');