| @@ 948-952 (lines=5) @@ | ||
| 945 | // rating_img | |
| 946 | $rating = number_format($myrow['rating'] / 2, 0); | |
| 947 | // irmtfan - add alt key for rating | |
| 948 |             if ($rating < 1) { | |
| 949 |                 $rating_img = newbbDisplayImage('blank'); | |
| 950 |             } else { | |
| 951 |                 $rating_img = newbbDisplayImage('rate' . $rating, constant('_MD_NEWBB_RATE' . $rating)); | |
| 952 | } | |
| 953 | ||
| 954 | // ------------------------------------------------------ | |
| 955 | // topic_page_jump | |
| @@ 667-672 (lines=6) @@ | ||
| 664 | if (!empty($GLOBALS['xoopsModuleConfig']['rating_enabled'])) { | |
| 665 |     $xoopsTpl->assign('votes', $topicObject->getVar('votes')); | |
| 666 |     $rating = number_format($topicObject->getVar('rating') / 2, 0); | |
| 667 |     if ($rating < 1) { | |
| 668 |         $rating_img = newbbDisplayImage('blank'); | |
| 669 |     } else { | |
| 670 | // irmtfan - add alt key for rating | |
| 671 |         $rating_img = newbbDisplayImage('rate' . $rating, constant('_MD_NEWBB_RATE' . $rating)); | |
| 672 | } | |
| 673 |     $xoopsTpl->assign('rating_img', $rating_img); | |
| 674 |     $xoopsTpl->assign('rate1', newbbDisplayImage('rate1', _MD_NEWBB_RATE1)); | |
| 675 |     $xoopsTpl->assign('rate2', newbbDisplayImage('rate2', _MD_NEWBB_RATE2)); | |
| @@ 363-367 (lines=5) @@ | ||
| 360 | // rating_img | |
| 361 | $rating = number_format($myrow['rating'] / 2, 0); | |
| 362 | // irmtfan - add alt key for rating | |
| 363 |             if ($rating < 1) { | |
| 364 |                 $rating_img = newbbDisplayImage('blank'); | |
| 365 |             } else { | |
| 366 |                 $rating_img = newbbDisplayImage('rate' . $rating, constant('_MD_NEWBB_RATE' . $rating)); | |
| 367 | } | |
| 368 | // ------------------------------------------------------ | |
| 369 | // topic_page_jump | |
| 370 | $topic_page_jump = ''; | |