@@ 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)); |
@@ 362-366 (lines=5) @@ | ||
359 | // rating_img |
|
360 | $rating = number_format($myrow['rating'] / 2, 0); |
|
361 | // irmtfan - add alt key for rating |
|
362 | if ($rating < 1) { |
|
363 | $rating_img = newbbDisplayImage('blank'); |
|
364 | } else { |
|
365 | $rating_img = newbbDisplayImage('rate' . $rating, constant('_MD_NEWBB_RATE' . $rating)); |
|
366 | } |
|
367 | // ------------------------------------------------------ |
|
368 | // topic_page_jump |
|
369 | $topic_page_jump = ''; |
@@ 951-955 (lines=5) @@ | ||
948 | // rating_img |
|
949 | $rating = number_format($myrow['rating'] / 2, 0); |
|
950 | // irmtfan - add alt key for rating |
|
951 | if ($rating < 1) { |
|
952 | $rating_img = newbbDisplayImage('blank'); |
|
953 | } else { |
|
954 | $rating_img = newbbDisplayImage('rate' . $rating, constant('_MD_NEWBB_RATE' . $rating)); |
|
955 | } |
|
956 | ||
957 | // ------------------------------------------------------ |
|
958 | // topic_page_jump |