wordpress/wp-content/themes/basic/themify/themify-builder/includes/plugin-compat/bwpminify.php
/**
	 * Modify the src for builder stylesheet.
	 *
	 * @access public
	 * @param string $string
	 * @return string
	 */
Modify the src for builder stylesheet.
Modify the src for builder stylesheet .
public static function bwp_minify_get_src( $string ) {
		$split_string = explode( ',', $string );
		$found_src = array();
		foreach( $split_string as $src ) {
			if ( preg_match( '/^files\/themify-css/', $src ) ) {
							$found_src[] = $src;
			}
		}
		if ( !empty( $found_src )) {
			$upload_dir = themify_upload_dir();
			$base_path = substr( $upload_dir['basedir'], strpos( $upload_dir['basedir'], 'wp-content' ) );
			foreach ( $found_src as $replace_src ) {
				$key = array_search( $replace_src, $split_string );
				if ( $key !== false ) {
					$split_string[ $key ] = trailingslashit( $base_path ) . str_replace( 'files/themify-css', 'themify-css', $split_string[ $key ] );
				}
			}
			$string = implode( ',', $split_string );
		}
		return $string;
	}
public static function bwp_minify_get_src ( $ string ) { $ split_string = explode ( ',' , $ string ) ; $ found_src = array ( ) ; foreach ( $ split_string as $ src ) { if ( preg_match ( '/^files\/themify-css/' , $ src ) ) { $ found_src [ ] = $ src ; } } if ( ! empty ( $ found_src ) ) { $ upload_dir = themify_upload_dir ( ) ; $ base_path = substr ( $ upload_dir [ 'basedir' ] , strpos ( $ upload_dir [ 'basedir' ] , 'wp-content' ) ) ; foreach ( $ found_src as $ replace_src ) { $ key = array_search ( $ replace_src , $ split_string ) ; if ( $ key !== false ) { $ split_string [ $ key ] = trailingslashit ( $ base_path ) . str_replace ( 'files/themify-css' , 'themify-css' , $ split_string [ $ key ] ) ; } } $ string = implode ( ',' , $ split_string ) ; } return $ string ; }
Modify the src for builder stylesheet.
Modify the src for builder stylesheet .