/** * Download templates information data from JoomlaShine server * * @return object */ public static function getVersionData() { if (empty(self::$versionData)) { try { $response = JSNTplHttpRequest::get(JSN_TPLFRAMEWORK_VERSIONING_URL . '?category=cat_template'); } catch (Exception $e) { throw $e; } self::$versionData = json_decode($response['body'], true); } // Return result return self::$versionData; }