/**
  * Attribute getter method
  * 
  * @return the id rating the component
  */
 function get_rating_attr()
 {
     return round(wiziapp_get_rating($this->data[0]));
 }
function wiziapp_the_rating()
{
    global $post;
    //    $ratingLink = wiziapp_getRatingLink();
    $rating = round(wiziapp_get_rating($post->ID));
    //    $classes = array();
    $html = '';
    if ($rating > 0) {
        //    $html = '<a id="wiziapp_rating" class="wiziapp_star_container" href="' . $ratingLink . '">';
        $html = '<a id="wiziapp_rating" class="wiziapp_star_container" href="#">';
        for ($c = 1; $c <= 5; ++$c) {
            $className = "_off";
            if ($c <= $rating) {
                $className = "_on";
            }
            $html .= '<span class="wiziapp_star wiziapp_star' . $className . '"></span>';
        }
        $html .= '</a>';
    }
    echo $html;
}