Index: branches/RC/core/units/general/helpers/rating_helper.php =================================================================== diff -u -r11091 -r11092 --- branches/RC/core/units/general/helpers/rating_helper.php (.../rating_helper.php) (revision 11091) +++ branches/RC/core/units/general/helpers/rating_helper.php (.../rating_helper.php) (revision 11092) @@ -8,6 +8,7 @@ * @var int */ var $ratingUnitWidth = 25; + var $ratingSmallUnitWidth = 10; /** * Maximal star count @@ -33,7 +34,7 @@ * @param string $additional_msg * @return string */ - function ratingBar(&$object, $show_div = true, $additional_msg = '') + function ratingBar(&$object, $show_div = true, $additional_msg = '', $additional_style = '') { $perm_prefix = $this->Application->getUnitOption($object->Prefix, 'PermItemPrefix'); $static = !$this->Application->CheckPermission($perm_prefix . '.RATE', 0, $object->GetDBField('CategoryId')); @@ -51,19 +52,19 @@ $user_voted = $spam_helper->InSpamControl(); // now draw the rating bar - $rating_width = $total_votes ? @number_format($total_rating / $total_votes, 2) * $this->ratingUnitWidth : 0; + $unit_selected_width = $additional_style? $this->ratingSmallUnitWidth : $this->ratingUnitWidth; + $rating_width = $total_votes ? @number_format($total_rating / $total_votes, 2) * $unit_selected_width : 0; $rating1 = $total_votes ? @number_format($total_rating / $total_votes, 1) : 0; $rating2 = $total_votes ? @number_format($total_rating / $total_votes, 2) : 0; - $rater = ' -