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.="
";
$content .= "getStructureThumb($selectedCity['address'],4)."\">";
$content .= $hotelsNear->getCityDescr($selectedCity['city_id'],$selectedLang);
$content .= "
".$hotelsNear->getStructureShort($structure['structure_id'],$selectedLang)."
"; $content.="".$hotelsNear->getCityShort($city['city_id'],$selectedLang)."
"; $content.=""; 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(); ?>