function osC_Index_Manufacturers()
 {
     global $osC_Services, $osC_Language, $breadcrumb, $osC_Manufacturer;
     $this->_page_title = sprintf($osC_Language->get('index_heading'), STORE_NAME);
     if (is_numeric($_GET[$this->_module])) {
         include 'includes/classes/manufacturer.php';
         $osC_Manufacturer = new osC_Manufacturer($_GET[$this->_module]);
         if ($osC_Services->isStarted('breadcrumb')) {
             $breadcrumb->add($osC_Manufacturer->getTitle(), osc_href_link(FILENAME_DEFAULT, $this->_module . '=' . $_GET[$this->_module]));
         }
         $this->_page_title = $osC_Manufacturer->getTitle();
         $this->_page_image = 'manufacturers/' . $osC_Manufacturer->getImage();
         $page_title = $osC_Manufacturer->getPageTitle();
         if (!empty($page_title)) {
             $this->setMetaPageTitle($page_title);
         }
         $meta_keywords = $osC_Manufacturer->getMetaKeywords();
         if (!empty($meta_keywords)) {
             $this->addPageTags('keywords', $meta_keywords);
         }
         $meta_description = $osC_Manufacturer->getMetaDescription();
         if (!empty($meta_description)) {
             $this->addPageTags('description', $meta_description);
         }
         $this->_process();
     } else {
         $this->_page_contents = 'index.php';
     }
 }
Example #2
0
 function osC_Index_Manufacturers()
 {
     global $osC_Services, $osC_Language, $osC_Breadcrumb, $osC_Manufacturer;
     $this->_page_title = sprintf($osC_Language->get('index_heading'), STORE_NAME);
     if (is_numeric($_GET[$this->_module])) {
         include 'includes/classes/manufacturer.php';
         $osC_Manufacturer = new osC_Manufacturer($_GET[$this->_module]);
         if ($osC_Services->isStarted('breadcrumb')) {
             $osC_Breadcrumb->add($osC_Manufacturer->getTitle(), osc_href_link(FILENAME_DEFAULT, $this->_module . '=' . $_GET[$this->_module]));
         }
         $this->_page_title = $osC_Manufacturer->getTitle();
         $this->_page_image = 'manufacturers/' . $osC_Manufacturer->getImage();
         $this->_process();
     } else {
         $this->_page_contents = 'index.php';
     }
 }