示例#1
0
 /**
  * This function is used to display  new letter subscription  page
  *
  * @return string
  */
 function addNewsletterSubscription()
 {
     //language
     include_once 'classes/Core/CLanguage.php';
     Core_CLanguage::setLanguage('HOME');
     include_once 'classes/Core/CFeaturedItems.php';
     include_once 'classes/Display/DFeaturedItems.php';
     include 'classes/Core/CUserRegistration.php';
     include 'classes/Display/DUserRegistration.php';
     include_once 'classes/Core/CNewProducts.php';
     include_once 'classes/Display/DNewProducts.php';
     include 'classes/Core/CWishList.php';
     include 'classes/Display/DWishList.php';
     include 'classes/Core/CKeywordSearch.php';
     include 'classes/Display/DKeywordSearch.php';
     include 'classes/Core/CAddCart.php';
     include 'classes/Display/DAddCart.php';
     include_once 'classes/Core/CLastViewedProducts.php';
     include_once 'classes/Display/DLastViewedProducts.php';
     include_once 'classes/Core/CLastViewedProducts.php';
     include_once 'classes/Display/DLastViewedProducts.php';
     include_once 'classes/Core/CCurrencySettings.php';
     Core_CCurrencySettings::getDefaultCurrency();
     $default = new Core_CFeaturedItems();
     $output['maincatimage'] = $default->showMainCategory();
     $output['allfeaturedproducts'] = $default->featuredProducts();
     $output['showBestSellingProducts'] = $default->showBestSellingProducts();
     $output['signup'] = Display_DUserRegistration::signUp();
     $default = new Core_CLastViewedProducts();
     $output['lastviewedproducts'] = $default->lastViewedProducts();
     $default = new Core_CLastViewedProducts();
     $output['lastviewedproducts'] = $default->lastViewedProducts();
     $output['cartSnapShot'] = Core_CAddCart::cartSnapShot();
     include 'classes/Core/CHome.php';
     $output['sitelogo'] = Core_CHome::getLogo();
     $output['pagetitle'] = Core_CHome::pageTitle();
     $output['skinname'] = Core_CHome::skinName();
     $output['timezone'] = Core_CHome::setTimeZone();
     $output['homepageads'] = Core_CHome::showHomePageAds();
     $output['homepagecontent'] = Core_CHome::showHomePageContent();
     $output['currentDate'] = date('D,M d,Y - h:i A');
     $output['banner'] = Core_CHome::getBanner();
     $output['categories'] = Display_DUserRegistration::showMainCat();
     $output['googleanalytics'] = Core_CHome::getGoogleAnalyticsCode();
     $output['googlead'] = Core_CHome::getGoogleAd();
     $output['footer'] = Core_CHome::footer();
     $output['footerconnect'] = Core_CHome::getfooterconnect();
     $output['sociallink'] = Core_CHome::showSocialLinks();
     $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown();
     $output['cartcount'] = Core_CAddCart::countCart();
     $default = new Core_CFeaturedItems();
     $output['maincatimage'] = $default->showMainCategory();
     $output['newarrivalproducts'] = $default->newArrivalProducts();
     if ($_SESSION['compareProductId'] == '') {
         $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse();
     } else {
         $output['viewProducts'] = Core_CWishList::addtoCompareProduct();
     }
     $default = new Core_CNewProducts();
     $output['newproducts'] = $default->newProducts();
     if ($_SESSION['user_id'] != '') {
         $output['wishlistsnapshot'] = Core_CWishList::snapshotForHome();
     }
     $output['loginStatus'] = Core_CUserRegistration::loginStatus();
     $output['headermenu'] = Core_CUserRegistration::showHeaderMenu();
     $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden();
     $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu();
     $output['headertext'] = Core_CUserRegistration::showHeaderText();
     $output['slideshow'] = Core_CUserRegistration::viewSlideShow();
     $output['slideshowparameter'] = Core_CUserRegistration::getSlideShowParameter();
     $output['newsletter'] = Core_CUserRegistration::addNewsletterSubscription();
     Bin_Template::createTemplate('index.html', $output);
 }