コード例 #1
0
ファイル: view.html.php プロジェクト: AxelFG/ckbran-inf
 function displaySingleProduct()
 {
     $this->product = $this->get('Product');
     $this->products = $this->get('Products');
     FST_Helper::TrSingle($this->product);
     FST_Helper::Tr($this->products);
     $mainframe = JFactory::getApplication();
     $pathway =& $mainframe->getPathway();
     if (FST_Helper::NeedBaseBreadcrumb($pathway, array('view' => 'test'))) {
         $pathway->addItem(JText::_('TESTIMONIALS'), FSTRoute::x('index.php?option=com_fst&view=test'));
     }
     $pathway->addItem($this->product['title']);
     // no product then general testimonials
     if (!$this->product && count($this->products) > 0) {
         $this->product = array();
         $this->product['title'] = JText::_('GENERAL_TESTIMONIALS');
         $this->product['id'] = 0;
         $this->product['description'] = '';
         $this->product['image'] = '/components/com_fst/assets/images/generaltests.png';
     }
     if ($this->test_always_prod_select) {
         $this->comments->show_item_select = 1;
     } else {
         $this->comments->show_item_select = 0;
     }
     $this->comments->PerPage(FST_Settings::Get('test_comments_per_page'));
     parent::display("single");
 }