getCategoryName(4,$selectedLang); if ( isset($_GET['name']) ) { $selectedCity = $hotelsNear->getCityFE($_GET['name'],$selectedLang); $selectedCity['name'] = ($selectedCity['name'])?($selectedCity['name']):($selectedCity['def_name']); } $hn = $siteMan->getText("hotels_near",$selectedLang); $description = $siteMan->getText("descr_home",$selectedLang); $keywords = $siteMan->getText("key_home",$selectedLang); // CATEGORIES include($_SERVER['DOCUMENT_ROOT']."/_include/catlist.inc.php"); // HORIZMENU include($_SERVER['DOCUMENT_ROOT']."/_include/horizmenu.inc.php"); // LANGUAGES include($_SERVER['DOCUMENT_ROOT']."/_include/langlist.inc.php"); // BREADCRUMB $breadcrumb.="Home Page"; if ( isset($selectedCity) ) { $breadcrumb.=":: $hn ".$categoryName." :: $hn ".$selectedCity['name']; } else $breadcrumb.=":: $hn ".$categoryName; // NAVIGATION if ( $strucutres = $hotelsNear->getStructures($selectedLang) ) foreach ( $strucutres as $structure ) $navigation.="$hn ".$structure['name']."
"; // CONTENT if ( $selectedCity ) { $title = "$hn ".$selectedCity['name'].", ".$selectedCity['country_name']; $short = $hotelsNear->getCityShort($selectedCity['city_id'],$selectedLang); if ( $short ) $description = $title . " " . strip_tags($short); else $description = $title . " " . $description; $keywords = strtolower("$hn ".$selectedCity['name'].", ".$selectedCity['country_name']).", ".$keywords; $content.="

getCategoryImage(4)."\" align=\"right\" alt=\"$hn $categoryName\">$title

"; $content .= "
"; $content .= "

"; $content .= "\"".$selectedCity['name']."\"getStructureThumb($selectedCity['address'],4)."\">"; $content .= $hotelsNear->getCityDescr($selectedCity['city_id'],$selectedLang); $content .= "

"; $content .= "
"; $content .= "
"; $content .= "
"; $content .= "
"; if ( $structures = $hotelsNear->getStructures($selectedLang,false,false,$selectedCity['city_id']) ) { foreach ( $structures as $structure ) { $content.="
"; $content.="getStructureThumb($structure['address'])."\" alt=\"".$structure['name']."\">"; $content.="
"; $content.="

".$structure['name']."

"; $content.="

".$hotelsNear->getStructureShort($structure['structure_id'],$selectedLang)."

"; $content.="
"; $content.="
"; } } } else { $title = "$hn $categoryName"; $description = $title . ". " . $description; $keywords = strtolower("$hn $categoryName").", ".$keywords; $content.="

getCategoryImage(4)."\" align=\"right\" alt=\"$hn $categoryName\">$title

"; $cities = $hotelsNear->getCitiesFE($selectedLang); //$cities = $hotelsNear->getCitiesFE('en'); if ( $cities ) { foreach ( $cities as $city ) { $content.="
"; $content.="getStructureThumb($city['address'],4)."\" width=\"80\" alt=\"".(($city['name'])?($city['name']):($city['def_name']))."\">"; $content.="
"; $content.="

".(($city['name'])?($city['name']):($city['def_name'])).", ".$city['country_name']."

"; $content.="

".$hotelsNear->getCityShort($city['city_id'],$selectedLang)."

"; $content.="
"; $content.="
"; } } /** echo "
";
var_dump($structures);
echo "
"; /**/ } $template->param("TITLE",$title); $template->param("DESCRIPTION",$description); $template->param("KEYWORDS",$keywords); $template->param("HORIZMENU",$horizmenu); $template->param("CATEGORIES",$catList); $template->param("LANGUAGES",$langList); $template->param("BREADCRUMB",$breadcrumb); $template->param("CONTENT",$content); $template->param("NAVIGATION",$navigation); $template->setname($tmplPath."/main.tmpl"); $template->output(); ?>