PATH:
home
/
fengshp
/
www
/
wp-content
/
themes
/
themify-ultra
/
themify
/
themify-builder
/
includes
/
plugin-compat
<?php /** * Builder Plugin Compatibility Code * * @package Themify_Builder * @subpackage Themify_Builder/classes */ class Themify_Builder_Plugin_Compat_BWPMinify { static function init() { // Only apply the filter when WP Multisite with subdirectory install. if ( defined( 'SUBDOMAIN_INSTALL' ) && ! SUBDOMAIN_INSTALL ) { add_filter( 'bwp_minify_get_src', array( __CLASS__, 'bwp_minify_get_src' ) ); } } /** * Modify the src for builder stylesheet. */ public static function bwp_minify_get_src(string $string ):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 )) { $basedir = themify_upload_dir('basedir'); $base_path = substr( $basedir, strpos( $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; } }
[+]
..
[-] eventsmadeeasy.php
[edit]
[-] relatedposts.php
[edit]
[-] statcounter.php
[edit]
[-] polylang2.php
[edit]
[-] pmpro.php
[edit]
[-] enviragallery.php
[edit]
[+]
css
[-] autooptimize.php
[edit]
[-] members.php
[edit]
[-] gallerycustomlinks.php
[edit]
[-] kadence.php
[edit]
[-] armember.php
[edit]
[-] smartcookie.php
[edit]
[-] wcmembership.php
[edit]
[-] woocommerce.php
[edit]
[+]
js
[-] maxgalleriamedialibpro.php
[edit]
[-] bwpminify.php
[edit]
[-] essentialgrid.php
[edit]
[-] wpml.php
[edit]
[-] facetwp.php
[edit]
[-] cachepress.php
[edit]
[-] eventscalendar.php
[edit]
[-] wpjobmanager.php
[edit]
[-] rankmath.php
[edit]
[-] duplicateposts.php
[edit]
[-] wpml-translation.php
[edit]
[-] dokan.php
[edit]
[-] tutor.php
[edit]
[-] thrive.php
[edit]
[-] eventtickets.php
[edit]
[-] wpcourseware.php
[edit]