loadLanguage(); } public function onContentPrepare($context, &$row, &$params, $page = 0) { $JApplication=JFactory::getApplication(); // don't run this plugin on administrator site if ($JApplication->isAdmin()) { return true; } // Don't run this plugin when the content is being indexed if (!empty($context)) { if ($context == 'com_finder.indexer') { return true; } } if (is_object($row)) { return $this->_includeCSS($row->text); } return $this->_includeCSS($row); } public function onPrepareContent( &$article, &$params, $limitstart = 0 ) { $JApplication=JFactory::getApplication(); // don't run this plugin on administrator site if ($JApplication->isAdmin()) { return true; } return $this->_includeCSS($article->text); } protected function _includeCSS(&$text) { // load the admin tabulizer component language, as well $lang = JFactory::getLanguage(); $lang->load('com_tabulizer', JPATH_ADMINISTRATOR); require_once(JPATH_ADMINISTRATOR.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_tabulizer'.DIRECTORY_SEPARATOR.'assets'.DIRECTORY_SEPARATOR.'classes'.DIRECTORY_SEPARATOR.'common'.DIRECTORY_SEPARATOR.'tags_processor.php'); $tag_processor = new TabulizerTagsProcessor(); $tag_processor->init('content'); $tag_processor->processTags($text); } } ?>