wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-global-styles.php
/**
	 * find gs classes in builder data
	 *
	 * @param string $builder_data
	 * @return array used gs
	 */
find gs classes in builder data
@param string $builder_data
@return array used gs
find gs classes in builder data @param string $builder_data @return array used gs
private static function find_in_text( $builder_data ) {
		$global_styles = array();
		if(is_array($builder_data)){
			$builder_data=json_encode($builder_data);
		}
		$builder_data = stripcslashes( $builder_data );
		preg_match_all( '/"global_styles":"(.*?)"/m', $builder_data, $matches );
		if ( !empty( $matches ) ) {
			$styles = explode( ' ', implode( ' ', $matches[1]  ));
			$global_styles = array_unique( $styles );
		}
		return $global_styles;
	}
private static function find_in_text ( $ builder_data ) { $ global_styles = array ( ) ; if ( is_array ( $ builder_data ) ) { $ builder_data = json_encode ( $ builder_data ) ; } $ builder_data = stripcslashes ( $ builder_data ) ; preg_match_all ( '/"global_styles":"(.*?)"/m' , $ builder_data , $ matches ) ; if ( ! empty ( $ matches ) ) { $ styles = explode ( ' ' , implode ( ' ' , $ matches [ 1 ] ) ) ; $ global_styles = array_unique ( $ styles ) ; } return $ global_styles ; }
find gs classes in builder data
 @param string $builder_data
 @return array used gs
find gs classes in builder data @param string $builder_data @return array used gs