gdsr_multi_rating_average

gdsr_multi_rating_average($settings = array(), $echo = true)

  • $settings: array with rendering parameters
  • $echo: echo results or return it as a string.

Renders single rating stars image with average rating for the multi rating review.

Rendering parameters:

  • id: multi set id
  • render: what to display: ‘rating’ or ‘review’
  • post_id: id for the post
  • show: what values to calculate: ‘visitors’, ‘users’ or ‘total’
  • style: name for the rating set
  • style_ie6:  name for the rating set for IE6 browser
  • size: size for the displayed stars

Example:

[php]$settings = array(‘id’ => 1, ‘style’ => ‘crystal’, ‘size’ => 24);
gdsr_multi_rating_average($settings);[/php]

Comments

Leave a Reply