return; } $catid = JRequest::getVar('subcat'); if (!$catid) { return; } $params->set('catsid', $catid); $params->set('k2catsid', $catid); } if (isset($_COOKIE['mod' . $module->id])) { $helper->set('cookie', $_COOKIE['mod' . $module->id]); } $theme = $helper->get('themes', 'default'); if ($theme == 'linear') { JHTML::script('modules/' . $module->module . '/tmpl/' . $theme . '/' . 'script.js'); $helper->jaset('groupbysubcat', 0); } if (!defined('_MODE_JAMODNEWSPRO_ASSETS_')) { define('_MODE_JAMODNEWSPRO_ASSETS_', 1); JHTML::stylesheet('modules/' . $module->module . '/assets/css/style.css'); if (is_file(JPATH_SITE . DS . 'templates' . DS . $mainframe->getTemplate() . DS . 'css' . DS . $module->module . ".css")) { JHTML::stylesheet('templates/' . $mainframe->getTemplate() . '/css/' . $module->module . ".css"); } //mootools support joomla 1.7 and 2.5 JHTML::_('behavior.framework', true); JHTML::_('behavior.tooltip'); JHTML::script('modules/' . $module->module . '/assets/js/script.js'); } if (!defined('_MODE_JAMODNEWSPRO_ASSETS_' . $theme)) { define('_MODE_JAMODNEWSPRO_ASSETS_' . $theme, 1); if (is_file(JPATH_SITE . DS . 'modules' . DS . $module->module . DS . 'tmpl' . DS . $theme . DS . "style.css")) {