[gdrts_thumbs_rating]

This shortcode displays rating block for any rating item, and you need to specify which item to show. If template, style, alignment and distribution attributes are missing, the plugin will use default values.

List of attributes

  • type: entity and name of the type connected with the dot like this: {entity}.{name} and both are required.
  • id: real ID of the item you want to show. If this is for the post, this is post ID.
  • item: internal item ID of the item you want to show. If you provide this number, you don’t need to provide type/id attributes.
  • class: CSS class for the shortcode wrapper.
  • template: name of the template to use for display. Supported values: default. List of templates can be expanded, and list of all available templates is listed on the Templates panel in Information menu. This shortcode can use templates listed under Thumbs Rating / Single Block.
  • alignment: alignment of the rating block. Supported values: left, right, center, none.
  • style_theme: CSS theme to use to style the thumbs block. Supported values: plain, plain-inline, solid, solid-inline, simple, compact.
  • style_type: what to use, font icons or images. Supported values: font, image, text.
  • style_font_name: name of the font icon to use. Supported values: hands-fill, hands-empty, plus-square, smilies.
  • style_image_name: name of the image to use: Supported values: thumb.
  • style_size: size in pixels for the font icon or image.
  • style_class: additional CSS class to add to rating block wrapper.

Example

[gdrts_thumbs_rating type="posts.page" id=1
template="default" style_size=48 style_type="font"
style_font_name="smilies"]
0
0
134
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply