type . '&object_id=' . $rating->id;
$othering = false;
$rate = $rating->get_user_rating();
if (!$rate) {
$rate = $rating->get_average_rating();
$othering = true;
}
?>
20% per star)
$width = $rate * 20;
if ($width < 0) $width = 0;
//set the current rating background
echo '- ';
echo T_('Current rating: ');
if ($rate <= 0) {
echo T_('not rated yet') . "
\n";
}
else printf(T_('%s of 5'), $rate); echo "\n";
for ($i = 1; $i < 6; $i++)
{
?>
-
id, '', 'star' . $i); ?>
id, '', 'star0'); ?>