getInfo()["hide_amica"] == "N" && $_SESSION["ente"]->getInfo()["agg_normativi"] == "S") { $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => 'https://app.tuttogare.it/api/news/it/per-page/12', CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_TIMEOUT => 30 //timeout in seconds ]); $json_news = curl_exec($curl); curl_close($curl); if (!empty($json_news)) { $json_news = json_decode($json_news,true); if (is_array($json_news)) { $ris_agg_normativi = $json_news["data"]; } } if (!empty($ris_agg_normativi)) { $pages = count($ris_agg_normativi) / 4; ?>

/news/">