wordpress/wp-content/themes/basic/themify/themify-utils.php
/**
 * Load/Check minified file is exist
 *
 * @return string/bool
 */
Load/Check minified file is exist
@return string/bool
Load / Check minified file is exist @return string / bool
function themify_enque( $url, $check = false,$cdn=true) {
	static $is = null;
	if ( $is === null ) {
	    $is = themify_is_minify_enabled();
	}
	$return = 0;
	if ($is===true) {
	    $f = pathinfo( $url );
	    if( isset( $f['extension'] ) && strpos( $f['basename'], '.min.', 2 ) === false){
			$name= $f['filename'].'.min.' . $f['extension'];
			if(is_file( trailingslashit( WP_CONTENT_DIR ).trailingslashit(str_replace( WP_CONTENT_URL, '', $f['dirname'] )) . $name )){
				if( $check===true) {
					$return = 1;
				} 
				else{
					$url = trailingslashit( $f['dirname'] ) . $name;
				}
			}
	    }
	}
	if ( $check === true ) {
		return $return;
	}
	if ( $cdn===true  && function_exists( 'get_rocket_cdn_url' ) ) {
		$url = get_rocket_cdn_url( $url );
	}
	return $url;
}
function themify_enque ( $ url , $ check = false , $ cdn = true ) { static $ is = null ; if ( $ is === null ) { $ is = themify_is_minify_enabled ( ) ; } $ return = 0 ; if ( $ is === true ) { $ f = pathinfo ( $ url ) ; if ( isset ( $ f [ 'extension' ] ) && strpos ( $ f [ 'basename' ] , '.min.' , 2 ) === false ) { $ name = $ f [ 'filename' ] . '.min.' . $ f [ 'extension' ] ; if ( is_file ( trailingslashit ( WP_CONTENT_DIR ) . trailingslashit ( str_replace ( WP_CONTENT_URL , '' , $ f [ 'dirname' ] ) ) . $ name ) ) { if ( $ check === true ) { $ return = 1 ; } else { $ url = trailingslashit ( $ f [ 'dirname' ] ) . $ name ; } } } } if ( $ check === true ) { return $ return ; } if ( $ cdn === true && function_exists ( 'get_rocket_cdn_url' ) ) { $ url = get_rocket_cdn_url ( $ url ) ; } return $ url ; }
Load/Check minified file is exist
 @return string/bool
Load / Check minified file is exist @return string / bool
/**
		 * WP Rocket CDN
		 * @link https://wp-rocket.me
		 */