muAssetPath(); return $plugin ? plugins_url("resources/{$path}", $plugin) : false; } return plugins_url("resources/{$path}", $this->filename); } /** * Returns the contents of the given asset. * * @param string $path * @return string */ public function inlineAsset($path) { $asset = (string) file_get_contents( "{$this->directory}/resources/{$path}" ); if (! defined('SCRIPT_DEBUG') || ! SCRIPT_DEBUG) { $asset = preg_replace('/(?:(?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:(?