public static function getStaticFileUrl() { if (self::$staticUrl != null) { return self::$staticUrl; } $host = self::getConfig()->static_file->host; $ver = self::getConfig()->static_file->version; if ($host == null) { return ''; // $host = self::getConfig()->img->url->cdn; } if ($ver == null) { self::$staticUrl = "//{$host}"; } else { self::$staticUrl = "//{$host}/hr{$ver}"; } return self::$staticUrl; }