<?php wp_gdsr_render_article() ?>
Page 12 of the user manual.
Using manual functions Automatic rendering is controlled by plugin. But in many cases you might need to do things 'your own way'. For this I have created few functions, and more will come.
Render Article: wp_gdsr_render_article()
This method will display rendering stars for post or page. This must be used in a post loop or will not work. This is the same as using STARRATER shortcode.
Render Article: wp_gdsr_render_comment()
This method will display rendering stars for comment. This must be used in a comment loop or will not work. This is the same as using STARRATERCOMMENT shortcode.
Render Review Rating: wp_gdsr_render_review()
This method will render stars for post review rating. This is the same as using STARREVIEW shortcode.
Render Widget: wp_gdsr_render_widget($widget)
This method will render widget like content. This method requires a number of parameters. If no parameters are passed, then the default widget parameters will be used. Parameters are in the form of
For rendering items you can specify exact template you want to use for header of the widget, each item and footer. Template strings can be HTML encoded or not. For this use, I recommend decoded HTML strings. Template can contain specific strings that will be replaced with actual values (hence the template). List of all supported template strings can be found in the next chapter.