示例#1
0
 function _initialize()
 {
     if ($this->_initialized) {
         JError::raiseWarning('1', 'RokCandy instanceId=' . $this->_instanceId . ' was initialized already');
         return true;
     }
     $document =& JFactory::getDocument();
     $doctype = $document->getType();
     $this->_library = RokCandyHelper::getMacros();
 }
 function _initialize()
 {
     if ($this->_initialized) {
         JError::raiseWarning('1', 'RokCandy instanceId=' . $this->_instanceId . ' was initialized already');
         return true;
     }
     $document =& JFactory::getDocument();
     $doctype = $document->getType();
     // Only render for HTML output
     if ($doctype !== 'html') {
         return false;
     }
     $this->_library = RokCandyHelper::getMacros();
 }
示例#3
0
 function onAfterRoute()
 {
     $this->_library = RokCandyHelper::getMacros();
 }