@@ 323-327 (lines=5) @@ | ||
320 | // rating_img |
|
321 | $rating = number_format($myrow['rating'] / 2, 0); |
|
322 | // irmtfan - add alt key for rating |
|
323 | if ($rating < 1) { |
|
324 | $rating_img = newbbDisplayImage('blank'); |
|
325 | } else { |
|
326 | $rating_img = newbbDisplayImage('rate' . $rating, constant('_MD_NEWBB_RATE' . $rating)); |
|
327 | } |
|
328 | // ------------------------------------------------------ |
|
329 | // topic_page_jump |
|
330 | $topic_page_jump = ''; |
@@ 955-959 (lines=5) @@ | ||
952 | // rating_img |
|
953 | $rating = number_format($myrow['rating'] / 2, 0); |
|
954 | // irmtfan - add alt key for rating |
|
955 | if ($rating < 1) { |
|
956 | $rating_img = newbbDisplayImage('blank'); |
|
957 | } else { |
|
958 | $rating_img = newbbDisplayImage('rate' . $rating, constant('_MD_NEWBB_RATE' . $rating)); |
|
959 | } |
|
960 | ||
961 | // ------------------------------------------------------ |
|
962 | // topic_page_jump |
@@ 669-674 (lines=6) @@ | ||
666 | if (!empty($GLOBALS['xoopsModuleConfig']['rating_enabled'])) { |
|
667 | $xoopsTpl->assign('votes', $topicObject->getVar('votes')); |
|
668 | $rating = number_format($topicObject->getVar('rating') / 2, 0); |
|
669 | if ($rating < 1) { |
|
670 | $rating_img = newbbDisplayImage('blank'); |
|
671 | } else { |
|
672 | // irmtfan - add alt key for rating |
|
673 | $rating_img = newbbDisplayImage('rate' . $rating, constant('_MD_NEWBB_RATE' . $rating)); |
|
674 | } |
|
675 | $xoopsTpl->assign('rating_img', $rating_img); |
|
676 | $xoopsTpl->assign('rate1', newbbDisplayImage('rate1', _MD_NEWBB_RATE1)); |
|
677 | $xoopsTpl->assign('rate2', newbbDisplayImage('rate2', _MD_NEWBB_RATE2)); |