예제 #1
0
 static function AddSCEditor()
 {
     if (!FST_Helper::$sceditor) {
         if (FST_Settings::Get('support_sceditor')) {
             $document = JFactory::getDocument();
             $document->addScript(JURI::root() . 'components/com_fst/assets/js/sceditor/jquery.sceditor.bbcode.js');
             $document->addScript(JURI::root() . 'components/com_fst/assets/js/sceditor/include.sceditor.js');
             $document->addScriptDeclaration("var sceditor_emoticons_root = '" . JURI::root(true) . "/components/com_fst/assets/';");
             $document->addScriptDeclaration("var sceditor_style_root = '" . JURI::root(true) . "/components/com_fst/assets/js/sceditor/';");
             $document->addStyleSheet(JURI::root() . 'components/com_fst/assets/js/sceditor/themes/default.css');
         }
         FST_Helper::$sceditor = true;
     }
 }
예제 #2
0
 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");
 }