Exemplo n.º 1
0
 /**
  * Code for StarRating shortcode implementation
  *
  * @param array $atts
  */
 function shortcode_starrating($atts = array())
 {
     $sett = shortcode_atts($this->default_shortcode_starrating, $atts);
     return GDSRRenderT2::render_srr($sett);
 }
Exemplo n.º 2
0
/**
 * Renders rating results based on $atts settings array similar to the StarRating shortcode.
 *
 * @param array $atts settings to use for rendering
 * @param bool $echo echo results or return it as a string
 * @return string html with rendered contents
 */
function wp_gdsr_render_rating_results($atts = array(), $echo = true)
{
    global $gdsr;
    $atts = wp_parse_args((array) $atts, $gdsr->default_shortcode_starrating);
    if ($echo) {
        echo GDSRRenderT2::render_srr($atts);
    } else {
        return GDSRRenderT2::render_srr($atts);
    }
}