Index: branches/5.2.x/core/units/reviews/reviews_tag_processor.php =================================================================== diff -u -N -r14769 -r14778 --- branches/5.2.x/core/units/reviews/reviews_tag_processor.php (.../reviews_tag_processor.php) (revision 14769) +++ branches/5.2.x/core/units/reviews/reviews_tag_processor.php (.../reviews_tag_processor.php) (revision 14778) @@ -1,6 +1,6 @@ GetRecordsCount(false) != $object->GetRecordsCount() ? $object->GetRecordsCount().' / '.$object->GetRecordsCount(false) : $object->GetRecordsCount(); } + + /** + * Dynamic votes indicator + * + * @param Array $params + * + * @return string + */ + function VotesIndicator($params) + { + $object =& $this->getObject($params); + /* @var $object kDBItem */ + + $rating_helper =& $this->Application->recallObject('RatingHelper'); + /* @var $rating_helper RatingHelper */ + + $rating = isset($params['rating']) ? $params['rating'] : $object->GetDBField('Rating'); + $small_style = array_key_exists('small_style', $params) ? $params['small_style'] : false; + + return $rating_helper->ratingBarSimple($rating, '', null, $small_style); + } } \ No newline at end of file