$contentJson = $sHelper->getJsonData($steamProfileAPI); $contentDecoded = json_decode($contentJson); if (isset($contentDecoded->response->players)) { foreach ($contentDecoded->response->players as $rows) { /* * Setup CDN on avatar URLs */ $avatarPath = parse_url($rows->avatar); $rows->avatar = $sHelper->getSteamCDNDomain($avatarPath["path"]); /* * Apply game image to SteamProfile and use HTTPS if enabled */ if ($fullProfile == 1 && isset($rows->gameid) && $STEAM_GAMEBANNER > 0) { $appid = $rows->gameid; $steamid64 = $rows->steamid; $steamGamesAPI = $sHelper->getSteamGameAPI($steamid64); $gameInfo = $sHelper->getJsonData($steamGamesAPI); $games_decoded = json_decode($gameInfo); if ($games_decoded !== null) { foreach ($games_decoded->response->games as $rowsgames) { if ($rowsgames->appid == $appid) { if (isset($rowsgames->img_logo_url)) { $logo = $rowsgames->img_logo_url; } } } if (!empty($logo)) { $logoPath = '/steamcommunity/public/images/apps/' . $appid . '/' . $logo . '.jpg'; $rows->gameLogoSmall = $sHelper->getSteamCDNDomain($logoPath); } } else {