public function isCurrentThemeCompatible( $version = 1, $theme = null ) {

		if ( null === $theme ) {
			$theme = wp_get_theme();
		}

		$basepath = $this->getDir( $theme );

		$types = [
			'prince',
			'epub',
			'web',
		];

		foreach ( $types as $type ) {
			$path = '';
			if ( 1 === $version && 'web' !== $type ) {
				$path = $basepath . "/export/$type/style.scss";
			} elseif ( 1 === $version && 'web' === $type ) {
				$path = $basepath . '/style.scss';
			}

			if ( 2 === $version ) {
				$path = $basepath . "/assets/styles/$type/style.scss";
			}

			$fullpath = realpath( $path );
			if ( ! is_file( $fullpath ) ) {
				return false;
			}
		}

		return true;
	}
public function isCurrentThemeCompatible( $version = 1, $theme = null ) {

		if ( null === $theme ) {
			$theme = wp_get_theme();
		}

		$basepath = $this->getDir( $theme );

		$types = [
			'prince',
			'epub',
			'web',
		];

		foreach ( $types as $type ) {
			$path = '';
			if ( 1 === $version && 'web' !== $type ) {
				$path = $basepath . "/export/$type/style.scss";
			} elseif ( 1 === $version && 'web' === $type ) {
				$path = $basepath . '/style.scss';
			}

			if ( 2 === $version ) {
				$path = $basepath . "/assets/styles/$type/style.scss";
			}

			$fullpath = realpath( $path );
			if ( ! is_file( $fullpath ) ) {
				return false;
			}
		}

		return true;
	}
public function isCurrentThemeCompatible ( $ version = 1 , $ theme = null ) { if ( null === $ theme ) { $ theme = wp_get_theme ( ) ; } $ basepath = $ this -> getDir ( $ theme ) ; $ types = [ 'prince' , 'epub' , 'web' , ] ; foreach ( $ types as $ type ) { $ path = '' ; if ( 1 === $ version && 'web' !== $ type ) { $ path = $ basepath . "/export/$type/style.scss" ; } elseif ( 1 === $ version && 'web' === $ type ) { $ path = $ basepath . '/style.scss' ; } if ( 2 === $ version ) { $ path = $ basepath . "/assets/styles/$type/style.scss" ; } $ fullpath = realpath ( $ path ) ; if ( ! is_file ( $ fullpath ) ) { return false ; } } return true ; }
Are the current theme's stylesheets SCSS compatible?

@param int $version
@param \WP_Theme $theme (optional)

@return bool
Are the current theme s stylesheets SCSS compatible?