wordpress/wp-content/themes/basic/themify/customizer/class-themify-customizer.php
/**
		 * Enqueue script for custom control.
		 */
Enqueue script for custom control.
Enqueue script for custom control .
function customize_control_scripts() {
			wp_enqueue_style( 'tf-base', THEMIFY_URI . '/css/base.min.css', null, THEMIFY_VERSION);
			themify_enque_style('themify-icons', THEMIFY_URI . '/themify-icons/themify-icons.css', null, '2.0');
			themify_enque_style('themify-colorpicker', THEMIFY_METABOX_URI . 'css/jquery.minicolors.css', null, THEMIFY_VERSION);
			wp_enqueue_media();
			themify_enque_style('themify-customize-control', THEMIFY_CUSTOMIZER_URI . '/css/themify.customize-control.css', null, THEMIFY_VERSION);
			 JS
			themify_enque_script('themify-colorpicker-js', THEMIFY_METABOX_URI . 'js/jquery.minicolors.js', array('jquery'), THEMIFY_VERSION,true);
			wp_localize_script( 'themify-colorpicker-js', 'themifyCM', Themify_Metabox::themify_localize_cm_data() );
			Themify_Metabox::get_instance()->admin_enqueue_scripts();
			Themify_Metabox::get_instance()->enqueue();
			themify_enque_style('themify-combobox', THEMIFY_CUSTOMIZER_URI . '/css/jquery.scombobox.css', null, THEMIFY_VERSION);
			themify_enque_script('themify-combobox', THEMIFY_CUSTOMIZER_URI . '/js/jquery.scombobox.min.js', array('jquery'), THEMIFY_VERSION, true);
			themify_enque_script('themify-customize-control', THEMIFY_CUSTOMIZER_URI . '/js/themify.customize-control.js', array('jquery', 'customize-controls', 'underscore', 'backbone'), THEMIFY_VERSION, true);
			$controls = array(
				'nonce' => wp_create_nonce('ajax-nonce'),
				'clearMessage' => __('This will reset all styling and customization. Do you want to proceed?', 'themify'),
				'exportMessage' => __('You have un-saved settings. If proceed then export will not have them. Do you want to proceed?', 'themify'),
				'confirm_on_unload' => __('You have unsaved data.', 'themify'),
				'header_transparnet' => $this->get_header_transparent() ? __('Transparent header is being selected in header background option, thus header background does not reflect on preview but it will show on pages with regular header background mode.', 'themify') : false,
				'responsiveBreakpoints' => array(
					'tablet_landscape' => themify_get('setting-customizer_responsive_design_tablet_landscape', '', true),
					'tablet' => themify_get('setting-customizer_responsive_design_tablet', '', true),
					'mobile' => themify_get('setting-customizer_responsive_design_mobile', '', true)
				),
				'mobile_menu_trigger_point' => themify_get( 'setting-mobile_menu_trigger_point', 1200,true ),
				'cf_api_url' => Themify_Custom_Fonts::$api_url
			);
			wp_localize_script('themify-customize-control', 'themifyCustomizerControls', $controls);
		}
function customize_control_scripts ( ) { wp_enqueue_style ( 'tf-base' , THEMIFY_URI . '/css/base.min.css' , null , THEMIFY_VERSION ) ; themify_enque_style ( 'themify-icons' , THEMIFY_URI . '/themify-icons/themify-icons.css' , null , '2.0' ) ; themify_enque_style ( 'themify-colorpicker' , THEMIFY_METABOX_URI . 'css/jquery.minicolors.css' , null , THEMIFY_VERSION ) ; wp_enqueue_media ( ) ; themify_enque_style ( 'themify-customize-control' , THEMIFY_CUSTOMIZER_URI . '/css/themify.customize-control.css' , null , THEMIFY_VERSION ) ; themify_enque_script ( 'themify-colorpicker-js' , THEMIFY_METABOX_URI . 'js/jquery.minicolors.js' , array ( 'jquery' ) , THEMIFY_VERSION , true ) ; wp_localize_script ( 'themify-colorpicker-js' , 'themifyCM' , Themify_Metabox :: themify_localize_cm_data ( ) ) ; Themify_Metabox :: get_instance ( ) -> admin_enqueue_scripts ( ) ; Themify_Metabox :: get_instance ( ) -> enqueue ( ) ; themify_enque_style ( 'themify-combobox' , THEMIFY_CUSTOMIZER_URI . '/css/jquery.scombobox.css' , null , THEMIFY_VERSION ) ; themify_enque_script ( 'themify-combobox' , THEMIFY_CUSTOMIZER_URI . '/js/jquery.scombobox.min.js' , array ( 'jquery' ) , THEMIFY_VERSION , true ) ; themify_enque_script ( 'themify-customize-control' , THEMIFY_CUSTOMIZER_URI . '/js/themify.customize-control.js' , array ( 'jquery' , 'customize-controls' , 'underscore' , 'backbone' ) , THEMIFY_VERSION , true ) ; $ controls = array ( 'nonce' => wp_create_nonce ( 'ajax-nonce' ) , 'clearMessage' => __ ( 'This will reset all styling and customization. Do you want to proceed?' , 'themify' ) , 'exportMessage' => __ ( 'You have un-saved settings. If proceed then export will not have them. Do you want to proceed?' , 'themify' ) , 'confirm_on_unload' => __ ( 'You have unsaved data.' , 'themify' ) , 'header_transparnet' => $ this -> get_header_transparent ( ) ? __ ( 'Transparent header is being selected in header background option, thus header background does not reflect on preview but it will show on pages with regular header background mode.' , 'themify' ) : false , 'responsiveBreakpoints' => array ( 'tablet_landscape' => themify_get ( 'setting-customizer_responsive_design_tablet_landscape' , '' , true ) , 'tablet' => themify_get ( 'setting-customizer_responsive_design_tablet' , '' , true ) , 'mobile' => themify_get ( 'setting-customizer_responsive_design_mobile' , '' , true ) ) , 'mobile_menu_trigger_point' => themify_get ( 'setting-mobile_menu_trigger_point' , 1200 , true ) , 'cf_api_url' => Themify_Custom_Fonts :: $ api_url ) ; wp_localize_script ( 'themify-customize-control' , 'themifyCustomizerControls' , $ controls ) ; }
Enqueue script for custom control.
Enqueue script for custom control .
// Font Icon CSS // Minicolors // Enqueue media scripts // Controls CSS // Minicolors JS // Plupload //Combobox JS // Controls JS // Pass JS variables to controls