setParam("cruiseSearchForm", $cruiseSearchForm); // You should have a banner place with code flashRotator in the admintool $bannermanager->setBannerPlaceTemplate("flashRotator", "templates/banners/rotator.php"); $template->setParam("pageId", $currentPage["page_id"], "flashRotator"); $template->setParam("languageId", CURRENT_LANGUAGE_ID, "flashRotator"); $bannermanager->decorateAll(); require_once "lib/MenuPlain.php"; $menu = new MenuPlain(0, MTLEFT); $navigator->addMenu($menu, "leftmenu"); require_once "lib/MenuPath.php"; $menuPath = new MenuPath(0); $menuPath->setTemplate("templates/menu/menu_path.php"); //$menuPath->setItemTemplate("templates/menu/menu_item_path.php"); $navigator->addMenu($menuPath, "path"); // displays the items on level 0 of menu MTTOP // require_once "lib/MenuPlain.php"; // $menu = new MenuPlain(0, MTTOP); // //$menu->setTemplate("templates/menu/menu_plain.php"); // //$menu->setItemTemplate("templates/menu/menu_item_plain.php"); // $navigator->addMenu($menu, "topmenu"); // displays the items on level 0 of menu MTTOP require_once "lib/MenuPlain.php"; $menu = new MenuPlain(0, MTBOTTOM); $menu->setTemplate("templates/menu/menu_bottom.php"); $navigator->addMenu($menu, "bottommenu"); // displays the items with parent node 0 of menu MTTOP in a tree structure // require_once "lib/MenuTree.php"; // $menu = new MenuTree(0, MTTOP); // //$tree_menu->setMenuType(MTTOP); // $menu->setTemplate("templates/menu/menu_tree.php"); // $menu->setItemTemplate("templates/menu/menu_item_tree.php"); // $navigator->addMenu($menu, "treemenu"); // displays the children with parent node 0 of menu MTTOP in a flat list require_once "lib/MenuChildren.php"; $menu = new MenuChildren(0); $navigator->addMenu($menu, "childrenmenu"); // News Box require_once('lib/news/News.php'); $news = new News(); $newsBox = $news->RenderBox(3); $template->setParam('newsBox', $newsBox); // Special Offer Box /* require_once('lib/specialOffers/specialOffers.php'); $specialOffers = new specialOffers(); $specialOffersBox = $specialOffers->RenderBox(3); $template->setParam('specialOffersBox', $specialOffersBox); */ // RSS Box /* require_once('lib/Rss.php'); $rss = new Rss(); $rssBox = $rss->RenderAjaxBox(3, "bbc"); $template->setParam('rssBox', $rssBox); */ // Twitter Box /* require_once('lib/Twitter.php'); $twitter = new Twitter(); $twitterBox = $twitter->RenderAjax(3); $template->setParam('twitterBox', $twitterBox); */ // Authorization Box --- Authorize now if ($auth->isLogged()) { $logform = $template->parse("templates/logout_form.php"); $template->setParam('logoutBox', $logform); } elseif ($currentPage["page_url"] != "checkout") { // $auth->setSuccessURL(HOME_PATH); $auth->setLoginForm("templates/login_form.php"); $auth->authorize(); $template->setParam("loginBox", $auth->loginFormContent); } if (defined("GALLERY_TYPE_PAGE") && !$currentPage['page_default']){ // Get gallery assigned to current page require_once "lib/Gallery.php"; $gallery = new Gallery(GALLERY_TYPE_PAGE, $currentPage["page_id"]); $galleryBox = $gallery->RenderBox(); $template->setParam('galleryBox', $galleryBox); } // Set homepage gallery if ($currentPage['page_default']){ // Get gallery assigned to current page require_once "lib/Gallery.php"; $gallery = new Gallery(GALLERY_TYPE_GALLERY); $galleryBox = $gallery->RenderBox(); $template->setParam('galleryBox', $galleryBox); } if (defined("DOWNLOAD_TYPE_PAGE")){ // Get gallery assigned to current page require_once "lib/Downloads.php"; $download = new Downloads(DOWNLOAD_TYPE_PAGE, $currentPage["page_id"]); $downloadBox = $download->RenderBox(); $template->setParam('downloadBox', $downloadBox); } if (defined("RELATED_TYPE_PAGE") && defined("RELATED_TYPE_NEWS")){ require_once "lib/NewsMenuItem.php"; $relatedNewsBox = Related::renderBox($currentPage["page_id"], RELATED_TYPE_PAGE, RELATED_TYPE_NEWS); $template->setParam('relatedNewsBox', $relatedNewsBox); } if (defined("RELATED_TYPE_PAGE")){ $relatedPagesBox = Related::renderBox($currentPage["page_id"], RELATED_TYPE_PAGE, RELATED_TYPE_PAGE); $template->setParam('relatedPagesBox', $relatedPagesBox); } # --- START GENERIC BASKET // Set shopping basket box require_once('lib/shop/Basket.php'); $basket = new Basket(); $template->setParam("basketBox", $basket->renderBox()); // Set Left Menu Categories $category = new Category(); $template->setParam("categoriesBox", $category->renderBox()); // Geet data $urlData = Product :: parseURL(); $template->setParam("selectedCategory", $urlData["category_id"]); // Get Hot Products $hotProducts = Product::getHotList(3); $template->setParam("hotProducts", $hotProducts); // Get all currencies $template->setParam("currencies", Currency::getAllCurrencies()); // Set current currency $template->setParam("currencySelected", Currency::setCurrency()); // Tags Box require_once('lib/Tags.php'); $tags = new Tags(); $tagsBox = $tags->RenderBox(25,TAG_TYPE_PRODUCT); $template->setParam('tagsBox', $tagsBox); # --- END GENERIC BASKET // Scripts pages if ($HAS_ACCESS) { if (isset($arrScriptPages[$pageName])){ parse_str($arrScriptPages[$pageName]["params"]); include($arrScriptPages[$pageName]["file"]); } else { include 'page.php'; } } else { include 'login.php'; } if (MULTY_LANGUAGE) { // Render language selector $template->setParam("languageSelector", $translator->renderLanguageSelector()); } // Render Menus $navigator->decorateMenu(); if(isset($_GET["fancyBoxPopIn"]) && $_GET["fancyBoxPopIn"] == 1){ $hasLayout = false; } if ($hasLayout) { // if WFC_HOME_WALL it will display the wall on the default page if(WFC_HOME_WALL && $currentPage['page_default']) { $pageContent = $template->getParam("pageContent"); $pageContent .= WallPost::renderHomeWall($auth->user['login_id'], false); $template->setParam("pageContent", $pageContent); } $content = $template->parse('templates/layout.php'); } else { $content = $template->getParam("pageContent"); } $content = $translator->translateAll($content); $content = $navigator->parseLinks($content); // send content length to prevent browser flckering if (!headers_sent()) header("Content-Length: ".strlen($content)); echo $content; //echo memory_get_usage(); ?>