is_plugin ? plugins_url( preg_replace('/\s/', '%20', self::$config['APP_DIR'] . self::$config['ASSETS_DIR'] . $asset), preg_replace('/\s/', '%20', self::$config['APP_DIR']) ) : get_template_directory_uri() .'/'. self::$config['APP_DIR'] . self::$config['ASSETS_DIR'] . $asset; } public function assetPath($asset) { return self::$config['APP_ROOT'] . self::$config['ASSETS_DIR'] . $asset; } public static function config($name) { return isset(self::$config[$name]) ? self::$config[$name] : null; } } } if (!class_exists('WPBakeryVisualComposerTemplateInterface')) { interface WPBakeryVisualComposerTemplateInterface { public function output($post = null); } }