$vPaths = self::trigger('cssJSToolbox.import', $params); foreach ($vPaths as $vPath) { // Import file. require_once self::resolvePath($vPath); } } /** * put your comment there... * * @param mixed $vPath * @param mixed $base */ public static function resolvePath($vPath, $base = CJTOOLBOX_PATH) { // Resolve CJT extensions path if (strpos($vPath, 'extension://') === 0) { // Remove extension wrapper $vPath = str_replace('extension://', '', $vPath); // Point to plugin directory $base = WP_PLUGIN_DIR; } // Replace all :'s with /'s. $path = str_replace(':', '/', $vPath); $path = "{$base}/{$path}"; return self::trigger('cssJSToolbox.resolvepath', $path, $vPath); } } // End Class // Hookable! cssJSToolbox::define('cssJSToolbox', array('hookType' => CJTWordpressEvents::HOOK_FILTER));