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
Comment #1
gerd riesselmann commentedThis 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.
Comment #2
gerd riesselmann commentedComment #3
gerd riesselmann commentedIncluded in new release
Comment #4
(not verified) commented