Offerte Residence Argentario

    "; $lingua = ICL_LANGUAGE_CODE; if ($lingua == 'ICL_LANGUAGE_CODE') { $lingua = "IT"; } $lingua = strtoupper($lingua); $file = 'http://www.simplebooking.it/feed/rss.aspx?GUID=e3350483-96f1-4f5b-9c79-ca0fd4e72ca1&TIPO=OFF&LANG=' . $lingua ; if(!$xml = simplexml_load_file($file)) exit('Failed to open '.$file); foreach ($xml->channel->item as $item) { $link = $item->link; $titolo = $item->title; $descrizione = $item->description; $descr = strip_tags(substr($descrizione, 0, 300)); $foto = $item->enclosure['url']; $struttura = "Pineta Residence"; $datax = $item->{'simplebooking:expirationdate'}; if (!empty($link)) { } $a = $a +1; if ($a == 1) { $cosaxx = "first"; } if ($a == 2) { $cosaxx = "first"; } if ($a == 3) { $cosaxx = "last"; } if ($a <= 3) { $rex .="
  • "; $rex .=""; $rex .="

    ".$titolo."

    "; $rex .="
  • "; } } $rex .="
"; echo $rex; ?>