/** * System Event: onAfterInitialise * * Load JF Core Overrides * * @return string */ public function onAfterInitialise() { if (JFactory::getApplication()->isSite() && !JoomfishExtensionHelper::isJoomFishActive()) { JError::raiseNotice('no_jf_extension', JText::_('JF_DATABASE_PLUGIN_NOT_PUBLISHED')); } $dbtype = JFactory::getConfig()->getValue('dbtype', 'mysqli'); if ($dbtype != 'mysqli') { JError::raiseNotice('no_jf_extension', JText::_('JF_DATABASE_DRIVER_NOT_SUPPORTED')); return; } if (!defined('JFOVERRIDES_PLUGIN_LOCATION')) { define('JFOVERRIDES_PLUGIN_LOCATION', dirname(__FILE__)); } if (JFactory::getApplication()->isAdmin()) { // remove * $this->_requireClassFile(JFOVERRIDES_PLUGIN_LOCATION . '/classes/language.php', 'JFormFieldLanguage'); $this->_requireClassFile(JFOVERRIDES_PLUGIN_LOCATION . '/classes/contentlanguage.php', 'JFormFieldContentLanguage'); // remove translated menus from root $this->_requireClassFile(JFOVERRIDES_PLUGIN_LOCATION . '/classes/adminmenuhelper.php', 'ModMenuHelper'); // added pre-post save events $this->_requireClassFile(JFOVERRIDES_PLUGIN_LOCATION . '/classes/menusmodelitem.php', 'MenusModelItem'); // home menu allow also default lang not just * $this->_requireClassFile(JFOVERRIDES_PLUGIN_LOCATION . '/classes/tablemenu.php', 'JTableMenu', true); } else { //JFactory::getApplication()->setLanguageFilter(false); jimport('joomla.application.menu'); //JLoader::import('joomla.application.menu', JFOVERRIDES_PLUGIN_LOCATION.'/classes' ); $this->_requireClassFile(JFOVERRIDES_PLUGIN_LOCATION . '/classes/menu.php', 'JMenuSite', true); JMenuSite::getInstance('site'); } }
* along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. * * The "GNU General Public License" (GPL) is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * ----------------------------------------------------------------------------- * @package joomfish * @subpackage mod_jflanguageselection * */ // no direct access defined('_JEXEC') or die('Restricted access'); JLoader::register('JoomfishExtensionHelper', JPATH_ADMINISTRATOR . '/components/com_joomfish/helpers/extensionHelper.php'); jimport('joomfish.route.jfroute'); if (!JoomfishExtensionHelper::isJoomFishActive()) { return; } $db = JFactory::getDBO(); $db->_profile("langmod", true); // Include the helper functions only once JLoader::import('helper', dirname(__FILE__), 'jfmodule'); JLoader::register('JoomFishVersion', JOOMFISH_ADMINPATH . DS . 'version.php'); $type = trim($params->get('type', 'rawimages')); $layout = JModuleHelper::getLayoutPath('mod_jflanguageselection', $type); $inc_jf_css = intval($params->get('inc_jf_css', 1)); $type = trim($params->get('type', 'dropdown')); $show_active = intval($params->get('show_active', 1)); $spacer = trim($params->get('spacer', ' ')); jimport('joomla.filesystem.file'); $jfManager = JoomFishManager::getInstance();