gdrts_loop()->render()->rating()

gdrts_loop()->render()->rating($args = array(), $echo = true);

Description

Render the rating text block. This method is used by all rating methods to display rating text. Depending on the rating method, $args array contains different parameters.

Parameters for $args

Stars Rating, Single Block and Rating List

  • before: HTML to show before the rating text.
  • after: HTML to show after the rating text.
  • show_votes: show number of votes.

Stars Review, Single Block and Rating List

  • before: HTML to show before the rating text.
  • after: HTML to show after the rating text.

Thumbs Rating, Single Block and Rating List

  • before: HTML to show before the rating text.
  • after: HTML to show after the rating text.
  • show_votes: show number of votes.

Like This, Single Block and Rating List

  • before: HTML to show before the rating text.
  • after: HTML to show after the rating text.
0
0
146
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply