Example #1
0
    }
    //$helper->set('maxSubCats', -1);
} elseif (JRequest::getBool('janewspro_linear_ajax')) {
    $moduleid = JRequest::getInt('moduleid');
    if ($moduleid != $module->id) {
        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');
} elseif (JRequest::getBool('janewspro_linear_ajax')) {
    $moduleid = JRequest::getInt('moduleid');
    if ($moduleid != $module->id) {
        return;
    }
    $catid = JRequest::getInt('subcat');
    if (!$catid) {
        return;
    }
    $params->set('catsid', 'cat.' . $catid);
    $params->set('flexi_catsid', $catid);
    $params->set('k2catsid', $catid);
}
$theme = $helper->get('themes', 'default');
if ($theme == 'linear') {
    $helper->set('groupbysubcat', 0);
}
$helper->_load($params, $module->id);
if (!defined('_MODE_JAMODNEWSPRO_ASSETS_')) {
    define('_MODE_JAMODNEWSPRO_ASSETS_', 1);
    JHTML::stylesheet('style.css', 'modules/' . $module->module . '/assets/css/');
    if (is_file(JPATH_SITE . DS . 'templates' . DS . $mainframe->getTemplate() . DS . 'css' . DS . $module->module . ".css")) {
        JHTML::stylesheet($module->module . ".css", 'templates/' . $mainframe->getTemplate() . '/css/');
    }
    JHTML::_('behavior.mootools');
    JHTML::_('behavior.tooltip');
    JHTML::script('script.js', 'modules/' . $module->module . '/assets/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")) {
Example #3
0
    }
    //$helper->set('maxSubCats', -1);
} elseif (JRequest::getBool('janewspro_linear_ajax')) {
    $moduleid = JRequest::getInt('moduleid');
    if ($moduleid != $module->id) {
        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->set('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');