//$id = 774;
global $language ;
$curlang = $language->language;
echo "lenguaje es: ".$curlang;
$id = $_REQUEST['id'];
$seccion = $_REQUEST['s'];
$categoria = "";
$atras = "";
switch ($seccion) {
case 1:
$categoria = "nature";
$atras = "nature";
break;
case 2:
$categoria = "gastronomy";
$atras = "gastronomy";
break;
case 3:
$categoria = "entertainment and fun";
$atras = "entertainment-and-fun";
break;
case 4:
$categoria = "arte y cultura";
$atras = "art-and-culture";
break;
case 5:
$categoria = "fiestas y ferias";
$atras = "fiestas-y-ferias";
break;
}
$url = "http://live-guayaquilturismo-final.pantheonsite.io/api/getDetalleItemCo…".$id;
$galeria_url = "http://live-guayaquilturismo-final.pantheonsite.io/api/getGaleria?nid=".$id;

$json_galeria = file_get_contents($galeria_url);
$array_galeria = json_decode($json_galeria);

if (!$array_galeria){
echo "No gallery results
";
}else{
$elem_galeria = $array_galeria[0];
$lsGaleriaUrls = $elem_galeria->Imagenes_Galeria;
}

$json = file_get_contents($url);
$array = json_decode($json);

if (!$array){
echo "No data request";
return 1;
}
//echo var_dump($array);
$elem = $array[0];

$titulo = $elem->node_title;
//$header = $elem->header;
$body = $elem->body;
$direccion = $elem->Direccion;
$parroquia = $elem->Parroquia;
$website = $elem->Website;
$telefono = $elem->Telefono;
$horario = $elem->Horario;
$email = $elem->email;

$lat = '';
$lng = '';
$zoom = '';

if ($elem->mapapunto){
$lat = $elem->mapapunto->lat;
$lng = $elem->mapapunto->lon;
$zoom = $elem->mapapunto->zoom;
}

?>

field_header."' class='img-rounded' style='width:100%; max-width:850px'/>"; ?>



Contact

Website:


e-mail:


Address:


Working hours:


Phone:

Google Maps:





echo '

';
?>