| @@ 327-333 (lines=7) @@ | ||
| 324 | $xoopsTpl->assign('forum_jumpbox', newbbMakeJumpbox($forum_id)); |
|
| 325 | } |
|
| 326 | ||
| 327 | if ($GLOBALS['xoopsModuleConfig']['show_permissiontable']) { |
|
| 328 | /** @var \NewbbPermissionHandler $permHandler */ |
|
| 329 | $permHandler = xoops_getModuleHandler('permission', 'newbb'); |
|
| 330 | $permission_table = $permHandler->getPermissionTable($forum_id, false, $isAdmin); |
|
| 331 | $xoopsTpl->assign_by_ref('permission_table', $permission_table); |
|
| 332 | unset($permission_table); |
|
| 333 | } |
|
| 334 | ||
| 335 | if (1 == $GLOBALS['xoopsModuleConfig']['rss_enable']) { |
|
| 336 | $xoopsTpl->assign('rss_button', "<div align='right'><a href='" . XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/rss.php?f=' . $forum_id . "' title='RSS feed' target='_blank'>" . newbbDisplayImage('rss', 'RSS feed') . '</a></div>'); |
|
| @@ 463-468 (lines=6) @@ | ||
| 460 | $xoopsTpl->assign_by_ref('admin_actions', $admin_actions); |
|
| 461 | $xoopsTpl->assign('viewer_level', (int)($isAdmin ? 2 : is_object($GLOBALS['xoopsUser']))); |
|
| 462 | ||
| 463 | if ($GLOBALS['xoopsModuleConfig']['show_permissiontable']) { |
|
| 464 | /** @var \NewbbPermissionHandler $permHandler */ |
|
| 465 | $permHandler = xoops_getModuleHandler('permission', 'newbb'); |
|
| 466 | $permission_table = $permHandler->getPermissionTable($forumObject, $topicObject->getVar('topic_status'), $isAdmin); |
|
| 467 | $xoopsTpl->assign_by_ref('permission_table', $permission_table); |
|
| 468 | } |
|
| 469 | ||
| 470 | /////////////////////////////// |
|
| 471 | // show Poll |
|