wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-global-styles.php
/**
	 * Enqueue required styles and scripts for Global Styles page
	 *
	 * @param String $page name of the admin page
	 * @return void
	 */
Enqueue required styles and scripts for Global Styles page
@param String $page name of the admin page
@return void
Enqueue required styles and scripts for Global Styles page @param String $page name of the admin page @return void
public static function enqueue_admin_scripts(  ) {
		if ( isset($_GET['page']) && $_GET['page']==='themify-global-styles') {
			wp_enqueue_style( 'magnific', themify_enque( THEMIFY_URI . '/css/lightbox.css' ), null, THEMIFY_VERSION );
			wp_enqueue_script( 'magnific', THEMIFY_URI . '/js/lightbox.min.js', null, THEMIFY_VERSION, true );
			wp_enqueue_style( 'themify-global-styles-css', themify_enque( THEMIFY_BUILDER_URI . '/css/editor/themify-global-styles.css' ), false, THEMIFY_VERSION );
			wp_enqueue_script( 'themify-global-styles-js', themify_enque( THEMIFY_BUILDER_URI . '/js/editor/themify-global-styles.js' ), null, THEMIFY_VERSION, true );
			wp_localize_script( 'themify-global-styles-js', 'themifyGlobalStylesVars', array(
					'messages' => array(
						'formValid' => esc_html__( 'Please enter a name.', 'themify' ),
						'create' => esc_html__( 'Create', 'themify' ),
						'creating' => esc_html__( 'Creating ...', 'themify' ),
						'deleteConfirm' => esc_html__( 'Once it is deleted, all styling associated with this Global Style will be gone. This can not be undone.', 'themify' ),
						'deleteConfirm2' => esc_html__( 'Remove permanently, Are you sure?', 'themify' )
					),
					'nonce' => wp_create_nonce( 'tb_load_nonce' ),
					'ajaxurl' => admin_url( 'admin-ajax.php' )
				)
			);
		}
	}
public static function enqueue_admin_scripts ( ) { if ( isset ( $ _GET [ 'page' ] ) && $ _GET [ 'page' ] === 'themify-global-styles' ) { wp_enqueue_style ( 'magnific' , themify_enque ( THEMIFY_URI . '/css/lightbox.css' ) , null , THEMIFY_VERSION ) ; wp_enqueue_script ( 'magnific' , THEMIFY_URI . '/js/lightbox.min.js' , null , THEMIFY_VERSION , true ) ; wp_enqueue_style ( 'themify-global-styles-css' , themify_enque ( THEMIFY_BUILDER_URI . '/css/editor/themify-global-styles.css' ) , false , THEMIFY_VERSION ) ; wp_enqueue_script ( 'themify-global-styles-js' , themify_enque ( THEMIFY_BUILDER_URI . '/js/editor/themify-global-styles.js' ) , null , THEMIFY_VERSION , true ) ; wp_localize_script ( 'themify-global-styles-js' , 'themifyGlobalStylesVars' , array ( 'messages' => array ( 'formValid' => esc_html__ ( 'Please enter a name.' , 'themify' ) , 'create' => esc_html__ ( 'Create' , 'themify' ) , 'creating' => esc_html__ ( 'Creating ...' , 'themify' ) , 'deleteConfirm' => esc_html__ ( 'Once it is deleted, all styling associated with this Global Style will be gone. This can not be undone.' , 'themify' ) , 'deleteConfirm2' => esc_html__ ( 'Remove permanently, Are you sure?' , 'themify' ) ) , 'nonce' => wp_create_nonce ( 'tb_load_nonce' ) , 'ajaxurl' => admin_url ( 'admin-ajax.php' ) ) ) ; } }
Enqueue required styles and scripts for Global Styles page
 @param String $page name of the admin page
 @return void
Enqueue required styles and scripts for Global Styles page @param String $page name of the admin page @return void