/** * This function is used to Show map * * @return HTML data */ function showMap() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('SITE_MAP'); include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CHome.php'; include_once 'classes/Core/CAddCart.php'; include 'classes/Core/CSiteMap.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $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['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['sitemap'] = Core_CSiteMap::showMap(); $output['cartcount'] = Core_CAddCart::countCart(); Bin_Template::createTemplate('sitemap.html', $output); }
/** * This function is used to show the dynamic cms * * @return string */ function showDynamicContent() { include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CUserAddressBook.php'; include 'classes/Core/CHome.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CAddCart.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $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['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['result'] = $result; $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu(); $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts(); $output['cartcount'] = Core_CAddCart::countCart(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $output['showpages'] = Core_CHome::showDynamicContent(); Bin_Template::createTemplate('cms.html', $output); }
/** * This function is used to Display the News Page * * @return string */ function showNewsPage() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('CMS'); include_once 'classes/Core/CFeaturedItems.php'; include_once 'classes/Display/DFeaturedItems.php'; include 'classes/Core/CNews.php'; include 'classes/Display/DNews.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/CHome.php'; include 'classes/Core/CAddCart.php'; include 'classes/Display/DAddCart.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include 'classes/Core/CProductDetail.php'; include 'classes/Display/DProductDetail.php'; $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $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['cartSnapShot'] = Core_CAddCart::cartSnapShot(); include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; $output['signup'] = Display_DUserRegistration::signUp(); $default = new Core_CLastViewedProducts(); $output['lastviewedproducts'] = $default->lastViewedProducts(); if ($_SESSION['user_id'] != '') { $output['wishlistsnapshot'] = Core_CWishList::wishlistSnapshot(); } $output['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['categories'] = Display_DUserRegistration::showMainCat(); $output['categorytree'] = Core_CProductDetail::showCategoryTree(); $output['newscontent'] = Core_CNews::showNewsPage(); if ($_SESSION['compareProductId'] == '') { $output['viewProducts']['viewProducts'] = Display_DWishList::viewProductElse(); } else { $output['viewProducts'] = Core_CWishList::addtoCompareProduct(); } Bin_Template::createTemplate('news.html', $output); }
/** * This function is used to get the user login status * * . * * @return string data */ function loginStatus() { //language include_once 'classes/Core/CLanguage.php'; include_once 'classes/Core/CHitCounter.php'; $str = ''; $salute = ''; if ($_SESSION['user_id'] != '') { $str = Core_CLanguage::_('LOGOUT'); $output['logout'] = '<a href="' . $_SESSION['base_url'] . '/logout.html">' . $str . '</a>'; $output['username'] = Core_CLanguage::_('WELCOME') . $_SESSION['user_name']; $output['user'] = $_SESSION['user_name']; } else { $str = Core_CLanguage::_('LOGIN'); $output['logout'] = '<a href="' . $_SESSION['base_url'] . '/login.html">' . $str . '</a>'; $output['username'] = Core_CLanguage::_('WELCOME') . Core_CLanguage::_('GUEST'); $output['user'] = '******'; } $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['adSense'] = Core_CUserRegistration::adSense(); $output['CustomHeader'] = Core_CUserRegistration::getCustomHeader(); //Core_CRss::showRss(); //set HitCounter Core_CHitCounter::setCount(); $output['hitCounter'] = Core_CHitCounter::showCount(); return $output; }
/** * This function is used to delete CompareProduct * * @return string */ function deleteCompareProduct() { $output = array(); include 'classes/Core/CWishList.php'; include 'classes/Display/DWishList.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include 'classes/Core/CUserRegistration.php'; include_once 'classes/Display/DUserRegistration.php'; include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CHome.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); $output['signup'] = Display_DUserRegistration::signUp(); $default = new Core_CWishList(); $output['compareProducts'] = $default->deleteCompareProduct(); $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $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['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts(); $output['userRight'] = "userdashboard.html"; $output['rows'] = Core_CWishList::viewCompareProduct(); Bin_Template::createTemplate('userIndex.html', $output); }
/** * This function is used to check and download digital product for my downloads * * @return string */ function CheckDigitalProduct() { //language include_once 'classes/Core/CLanguage.php'; Core_CLanguage::setLanguage('MY_DOWNLOADS'); $this->checkLogin(); include 'classes/Core/CKeywordSearch.php'; include 'classes/Display/DKeywordSearch.php'; include 'classes/Core/CUserRegistration.php'; include 'classes/Display/DUserRegistration.php'; include_once 'classes/Core/CUserWishList.php'; include_once 'classes/Core/CHome.php'; include "classes/Lib/HandleErrors.php"; include_once 'classes/Core/CLastViewedProducts.php'; include_once 'classes/Display/DLastViewedProducts.php'; include_once 'classes/Core/CAddCart.php'; include_once 'classes/Core/CUserOrder.php'; include_once 'classes/Core/CCurrencySettings.php'; Core_CCurrencySettings::getDefaultCurrency(); Core_CUserWishList::Ulogin($Err); $output['val'] = $Err->values; $output['msg'] = $Err->messages; $output['sitelogo'] = Core_CHome::getLogo(); $output['pagetitle'] = Core_CHome::pageTitle(); $output['timezone'] = Core_CHome::setTimeZone(); $output['currentDate'] = date('D,M d,Y - h:i A'); $output['skinname'] = Core_CHome::skinName(); $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['loginStatus'] = Core_CUserRegistration::loginStatus(); $output['dropdowncat'] = Core_CKeywordSearch::categoryDropDown(); $output['headermenu'] = Core_CUserRegistration::showHeaderMenu(); $output['headertext'] = Core_CUserRegistration::showHeaderText(); $output['divStat'] = Core_CUserWishList::getStatus(); $output['headerMainMenu'] = Core_CUserRegistration::showHeaderMainMenu(); $output['headermenuhidden'] = Core_CUserRegistration::showHeaderMenuHidden(); $output['userLeftMenu'] = Display_DUserRegistration::showUserLeftMenu(); $output['currencysettings'] = Core_CUserRegistration::showCurrencySettings(); $output['lastviewedproducts'] = Core_CLastViewedProducts::lastViewedProducts(); $output['cartcount'] = Core_CAddCart::countCart(); $output['userRight'] = "userdashboard.html"; $output['rows'] = Core_CUserOrder::CheckDigitalProduct($result); Bin_Template::createTemplate('userIndex.html', $output); }
/** * 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); }