@@ 143-149 (lines=7) @@ | ||
140 | $xt = new NewsTopic(); |
|
141 | ||
142 | $xoopsTpl->assign('columnwidth', (int)(1 / $column_count * 100)); |
|
143 | if ($xoopsModuleConfig['ratenews']) { |
|
144 | $xoopsTpl->assign('rates', true); |
|
145 | $xoopsTpl->assign('lang_ratingc', _NW_RATINGC); |
|
146 | $xoopsTpl->assign('lang_ratethisnews', _NW_RATETHISNEWS); |
|
147 | } else { |
|
148 | $xoopsTpl->assign('rates', false); |
|
149 | } |
|
150 | ||
151 | if ($xoopsOption['storytopic']) { |
|
152 | $xt->getTopic($xoopsOption['storytopic']); |
|
@@ 249-255 (lines=7) @@ | ||
246 | $GLOBALS['xoopsOption']['template_main'] = 'news_by_topic.tpl'; |
|
247 | require_once XOOPS_ROOT_PATH . '/header.php'; |
|
248 | $xoopsTpl->assign('columnwidth', (int)(1 / $column_count * 100)); |
|
249 | if ($xoopsModuleConfig['ratenews']) { |
|
250 | $xoopsTpl->assign('rates', true); |
|
251 | $xoopsTpl->assign('lang_ratingc', _NW_RATINGC); |
|
252 | $xoopsTpl->assign('lang_ratethisnews', _NW_RATETHISNEWS); |
|
253 | } else { |
|
254 | $xoopsTpl->assign('rates', false); |
|
255 | } |
|
256 | ||
257 | $xt = new NewsTopic(); |
|
258 | $alltopics = $xt->getTopicsList(true, $xoopsModuleConfig['restrictindex']); |