If the score itself were inserted into the output style code, designers could then use these codes to style reviews individually. For example, "good scores" could have a green background and "bad" a red, etc.

<td class="userreview_review_number">9</td> could become
<td class="userreview_review_number 9">9</td> to allow coloring the score widget according to score

<table class="userreview_view_teaser"> could become
<table class="userreview_view_teaser 9"> to allow the whole review to be colored according to score

Of course it would be up to the developer to specify the style:

.9 {
  background: blah blah blah;
  etc.
}

Comments

gerd riesselmann’s picture

This actually is a very good idea and will be included in the next 4.7-release, which I hope to publish this weekend. However, I decided to name the class "userreview_score_x" where x is the voting result as an integer, that is a number between 0 and 10.

In the meantime, you can overload the theme-function theme_userreview_vote($vote_value), to customize your voting result.

gerd riesselmann’s picture

Assigned: Unassigned » gerd riesselmann
gerd riesselmann’s picture

Status: Active » Fixed

Included in new release

Anonymous’s picture

Status: Fixed » Closed (fixed)