[ "tasks" => "Tasks", "no tasks found" => "No tasks found." ] ]); $APPS["taskfloor_tasks"]["i18n"] = TRUE; $APPS["taskfloor_tasks"]["title"] = "tasks"; $APPS["taskfloor_tasks"]["icon"] = "tasks"; $APPS["taskfloor_tasks"]["type"] = "blue-grey"; $content = ""; use GuzzleHttp\Exception\ClientException; try { $client = new GuzzleHttp\Client(); $response = $client->request('POST', TASKFLOOR_API, ['form_params' => [ 'action' => "gettasks", 'username' => $_SESSION['username'], 'password' => $_SESSION['password'], 'max' => 5 ]]); $resp = json_decode($response->getBody(), TRUE); if ($resp['status'] == "OK") { if (count($resp['tasks']) > 0) { $content = '