Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     $mainframe = JFactory::getApplication();
     global $option;
     // Get pagination request variables
     $aparams = FSF_Settings::GetViewSettingsObj('faqs');
     $this->_enable_pages = $aparams->get('enable_pages', 1);
     $limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', FSF_Settings::Get('faq_per_page'), 'int');
     if ($this->_enable_pages == 0) {
         $limit = 999999;
     }
     $limitstart = JRequest::getVar('limitstart', 0, '', 'int');
     // In case limit has been changed, adjust it
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
     $this->_curcatid = JRequest::getInt('catid');
     $this->_search = JRequest::getVar('search', '', '', 'string');
     $this->_catlist = $this->_getCatList();
     if ($this->_search != "") {
         $this->_curcattitle = JText::_("SEARCH_RESULTS");
         $this->_curcatid = -1;
         $this->_curcatimage = "/components/com_fsf/assets/images/search.png";
     } else {
         if ($this->_curcatid == "0") {
             $this->_curcattitle = JText::_("ALL_FAQS");
             $this->_curcatimage = "/components/com_fsf/assets/images/allfaqs.png";
         } else {
             foreach ($this->_catlist as $cat) {
                 if ($cat['id'] == $this->_curcatid) {
                     $this->_curcattitle = $cat['title'];
                     $this->_curcatimage = $cat['image'];
                     $this->_curcatdesc = $cat['description'];
                 }
             }
         }
     }
 }
Exemplo n.º 2
0
            ?>
/images/fsf/faqcats/<?php 
            echo $this->curcatimage;
            ?>
' width='64' height='64'>
			<?php 
        }
        ?>
	    </div>
	    <?php 
    }
    ?>
			<div class='fsf_spacer contentheading' style="padding-top:6px;padding-bottom:6px;">

			<?php 
    if (FSF_Settings::Get('faq_cat_prefix') || !$this->curcattitle) {
        ?>
				<?php 
        echo JText::_("FAQS");
        ?>
				<?php 
        if ($this->curcattitle) {
            echo " - ";
        }
        ?>
 
			<?php 
    }
    ?>
			<?php 
    echo $this->curcattitle;
Exemplo n.º 3
0
 static function AddSCEditor()
 {
     if (!FSF_Helper::$sceditor) {
         if (FSF_Settings::Get('support_sceditor')) {
             $document = JFactory::getDocument();
             $document->addScript(JURI::root() . 'components/com_fsf/assets/js/sceditor/jquery.sceditor.bbcode.js');
             $document->addScript(JURI::root() . 'components/com_fsf/assets/js/sceditor/include.sceditor.js');
             $document->addScriptDeclaration("var sceditor_emoticons_root = '" . JURI::root(true) . "/components/com_fsf/assets/';");
             $document->addScriptDeclaration("var sceditor_style_root = '" . JURI::root(true) . "/components/com_fsf/assets/js/sceditor/';");
             $document->addStyleSheet(JURI::root() . 'components/com_fsf/assets/js/sceditor/themes/default.css');
         }
         FSF_Helper::$sceditor = true;
     }
 }
Exemplo n.º 4
0
	<div class="fsf_spacer"></div>
	<?php 
echo FSF_Helper::PageSubTitle("PLEASE_SELECT_A_TAG");
?>

	<div class='faq_category'>
	    <div class='faq_category_image'>
			<img src='<?php 
echo JURI::root(true);
?>
/components/com_fsf/assets/images/tags-64x64.png' width='64' height='64'>
	    </div>
	    <div class='fsf_spacer contentheading' style="padding-top:6px;padding-bottom:6px;">
			<?php 
if (FSF_Settings::Get('faq_cat_prefix')) {
    ?>
			<?php 
    echo JText::_("FAQS");
    ?>
 
			<?php 
}
?>
			<?php 
echo JText::_('TAGS');
?>
		</div>
	</div>
	<div class='fsf_clear'></div>