$forums = bXForumHandler::getForums($catego->id(), $xoopsModuleConfig['show_inactive'] ? -1 : 1, true); $tpl->append('categos', array('id' => $catego->id(), 'title' => $catego->title(), 'forums' => forums_data($forums))); } } else { /** * Cargamos solo los foros */ $xoopsOption['template_main'] = 'bxpress-index-forums.tpl'; $xoopsOption['module_subpage'] = "index"; include 'header.php'; $fHand = new bXForumHandler(); $forums = $fHand->getForums(0, $xoopsModuleConfig['show_inactive'] ? -1 : 1, true); $posters = array(); $tpl->assign('forums', forums_data($forums)); } $user = bXFunctions::getLastUser(); if ($user) { $tpl->assign('user', array('id' => $user->uid(), 'uname' => $user->uname())); } unset($user); // Usuarios Conectados $tpl->assign('register_num', bXFunctions::getOnlineCount(1)); $tpl->assign('anonymous_num', bXFunctions::getOnlineCount(0)); $tpl->assign('total_users', bXFunctions::totalUsers()); $tpl->assign('total_topics', bXFunctions::totalTopics()); $tpl->assign('total_posts', bXFunctions::totalPosts()); $tpl->assign('lang_forum', __('Forum', 'bxpress')); $tpl->assign('lang_topics', __('Topics', 'bxpress')); $tpl->assign('lang_posts', __('Posts', 'bxpress')); $tpl->assign('lang_lastpost', __('Last Post', 'bxpress')); $tpl->assign('lang_lastuser', __('Last registered user:'******'bxpress'));