set("PAGE", "home"); $template->set("PAGE_TITLE", ($locale == "en")?"Home":"Accueil"); $template->set_filenames(array( 'body' => 'home.html' )); /* Home page banner images */ $banners = getFilesFromDir($path.'projects/home'); $totalBanners = count($banners); for($i=0; $i<$totalBanners; ++$i){ $template->set_block("banners", array( "PATH" => $banners[$i] )); } $template->display('head'); $template->display('body'); $template->display('foot'); ?>