wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-global-styles.php
/**
	 * Localize some required data about global styles into Builder scripts
	 * This function is a filter for a hook
	 *
	 * @param array $vars
	 * @return array
	 */
Localize some required data about global styles into Builder scripts
This function is a filter for a hook

@param array $vars
@return array
Localize some required data about global styles into Builder scripts This function is a filter for a hook @param array $vars @return array
public static function localize_data($vars) {
		$post_id=is_admin() ? get_the_ID() : Themify_Builder::$builder_active_id;
		if(self::$isGlobalEditPage===true) {
			$vars['globalStyleData']=array('id'=>$post_id, 'class'=>get_post_field('post_name', $post_id), 'type'=>get_post_meta($post_id, 'themify_global_style_type', true), 'exportURL'=>self::export_url($post_id));
		} else {
			if(!isset(self::$used_styles[$post_id])) {
				self::$used_styles[$post_id]=self::used_global_styles($post_id);
			}
			$vars['globalStyles']=self::$used_styles[$post_id];
		}
		return $vars;
	}
public static function localize_data ( $ vars ) { $ post_id = is_admin ( ) ? get_the_ID ( ) : Themify_Builder :: $ builder_active_id ; if ( self :: $ isGlobalEditPage === true ) { $ vars [ 'globalStyleData' ] = array ( 'id' => $ post_id , 'class' => get_post_field ( 'post_name' , $ post_id ) , 'type' => get_post_meta ( $ post_id , 'themify_global_style_type' , true ) , 'exportURL' => self :: export_url ( $ post_id ) ) ; } else { if ( ! isset ( self :: $ used_styles [ $ post_id ] ) ) { self :: $ used_styles [ $ post_id ] = self :: used_global_styles ( $ post_id ) ; } $ vars [ 'globalStyles' ] = self :: $ used_styles [ $ post_id ] ; } return $ vars ; }
Localize some required data about global styles into Builder scripts
 This function is a filter for a hook
Localize some required data about global styles into Builder scripts This function is a filter for a hook
// localize current post if post type is global style // Localize used Global Styles in this post/page