<?php
if ( ! defined( 'ABSPATH' ) ) exit;
if( ! class_exists( 'WP_Customize_Control' ) ){
	return;
}
/**
 * Scroll to section.
 *
 * @since  1.1.45
 * @access public
 */
class Hunk_Companion_Customize_Control_Scroll{
	/**
	 *Hunk_Companion_Customize_Control_Scroll constructor.
	 */
	public function __construct(){
		add_action( 'customize_controls_init', array( $this, 'enqueue' ) );
		add_action( 'customize_preview_init', array( $this, 'helper_script_enqueue' ) );
		
	}
	/**
	 * The priority of the control.
	 * @since 1.1.45
	 * @var   string
	 */
	  public $priority = 0;
	 /**
	 * Loads the customizer script.
	 *
	 * @since  1.1.45
	 * @access public
	 * @return void
	 */
	public function enqueue(){
		wp_enqueue_script( 'gogo-scroller-script', HUNK_COMPANION_PLUGIN_DIR_URL . 'gogolite/customizer/customizer-scroll/js/script.js', array( 'jquery'),'',true);
	}
	
	public function helper_script_enqueue(){
		wp_enqueue_script( 'gogo-scroller-addon-script', HUNK_COMPANION_PLUGIN_DIR_URL . 'gogolite/customizer/customizer-scroll/js/customizer-addon-script.js', array('jquery'),'',true);
	}
}