function osC_Info_Sitemap() { global $osC_Services, $osC_Language, $breadcrumb, $Qarticles_listing, $Qfaqs_listing; $this->_page_title = $osC_Language->get('info_sitemap_heading'); $articles = new toC_Articles(); $Qarticles_listing = $articles->getListing(); $faqs = new toC_Faqs(); $Qfaqs_listing = $faqs->getListing(); if ($osC_Services->isStarted('breadcrumb')) { $breadcrumb->add($osC_Language->get('breadcrumb_sitemap'), osc_href_link(FILENAME_INFO, $this->_module)); } }
function osC_Info_Sitemap() { global $osC_Services, $osC_Language, $breadcrumb, $Qinformation_listing, $articles_categories, $Qfaqs_listing; $this->_page_title = $osC_Language->get('info_sitemap_heading'); //create the article instance to get the articles in each categories $articles = new toC_Articles(); //get the articles listing for information category $Qinformation_listing = $articles->getListing(1); //get articles categories including the articles $articles_categories = $articles->getCategoriesListing(); //get the faqs listing $faqs = new toC_Faqs(); $Qfaqs_listing = $faqs->getListing(); if ($osC_Services->isStarted('breadcrumb')) { $breadcrumb->add($osC_Language->get('breadcrumb_sitemap'), osc_href_link(FILENAME_INFO, $this->_module)); } }
function osC_Info_Articles_categories() { global $osC_Language; if (isset($_GET['articles_categories_id']) && !empty($_GET['articles_categories_id'])) { $this->_page_title = toC_Articles::getArticleCategoriesName($_GET['articles_categories_id']); } else { $this->_page_title = $osC_Language->get('info_article_categories_heading'); } }
function displayPrivacy() { global $osC_Language; $osC_Language->load('info'); require_once 'includes/classes/articles.php'; $article = toC_Articles::getEntry(INFORMATION_PRIVACY_NOTICE); $content = '<div style="margin: 10px">'; $content .= '<h1>' . $osC_Language->get('info_privacy_heading') . '</h1>'; $content .= $article['articles_description']; $content .= '</div>'; echo $content; }
function osC_Info_Info() { global $osC_Language, $osC_Database, $content, $breadcrumb, $osC_Services, $Qarticle; if (isset($_GET['articles_id']) && !empty($_GET['articles_id'])) { $Qarticle = toC_Articles::getEntry($_GET['articles_id']); if ($Qarticle->numberofRows() > 0) { $this->_page_title = $Qarticle->value('articles_name'); if ($osC_Services->isStarted('breadcrumb')) { $breadcrumb->add($osC_Language->get($Qarticle->value('articles_name')), osc_href_link(FILENAME_INFO, 'articles&articles_id=' . $_GET['articles_id'])); } } else { $this->_page_title = $osC_Language->get('info_not_found_heading'); $this->_page_contents = 'info_not_found.php'; } } else { $this->_page_title = $osC_Language->get('info_not_found_heading'); $this->_page_contents = 'info_not_found.php'; } }
function osC_Info_Articles_categories() { global $osC_Language, $osC_Services, $breadcrumb, $article_categories; if (isset($_GET['articles_categories_id']) && !empty($_GET['articles_categories_id'])) { $article_categories = toC_Articles::getArticleCategoriesEntry($_GET['articles_categories_id']); $this->_page_title = $article_categories['articles_categories_name']; if (!empty($article_categories['page_title'])) { $this->setMetaPageTitle($article_categories['page_title']); } if (!empty($enty['meta_keywords'])) { $this->addPageTags('keywords', $enty['meta_keywords']); } if (!empty($enty['meta_description'])) { $this->addPageTags('description', $enty['meta_description']); } if ($osC_Services->isStarted('breadcrumb')) { $breadcrumb->add($article_categories['articles_categories_name'], osc_href_link(FILENAME_INFO, 'articles_categories&articles_categories_id=' . $_GET['articles_categories_id'])); } } else { $this->_page_title = $osC_Language->get('info_not_found_heading'); $this->_page_contents = 'info_not_found.php'; } }
<?php /* $Id: articles_categories.php $ TomatoCart Open Source Shopping Cart Solutions http://www.tomatocart.com http://www.tomatoshop.ir Persian Tomatocart v1.1.8.6 / Khordad 1394 Copyright (c) 2009 Wuxi Elootec Technology Co., Ltd This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation. */ $Qarticles = toC_Articles::getListing($_GET['articles_categories_id']); ?> <h1><?php echo $article_categories['articles_categories_name']; ?> </h1> <?php if ($Qarticles->numberOfRows() > 0) { while ($Qarticles->next()) { ?> <div class="moduleBox"> <h6><span style="float: left;"><?php echo osC_DateTime::getShort($Qarticles->value('articles_date_added')); ?> </span><?php