public function getHTMLStars() {

        $treshold_score = $this->seo_score - 2 < 0 ? 0 : $this->seo_score - 2;

        $num_stars   = intval(ceil($treshold_score) / 2);

        $num_nostars = 5 - $num_stars;

        $html = '<div id="fivestar-widget">';

        for ($i = 1; $i <= $num_stars; $i++) {
            $html .= '<div class="star on"></div>';
        }
        if ($treshold_score % 2) {
            $html .= '<div class="star on-half"></div>';
            $num_nostars--;
        }
        for ($i = 1; $i <= $num_nostars; $i++) {
            $html .= '<div class="star"></div>';
        }


        $html .= '</div>';
        return $html;
    }
public function getHTMLStars() {

        $treshold_score = $this->seo_score - 2 < 0 ? 0 : $this->seo_score - 2;

        $num_stars   = intval(ceil($treshold_score) / 2);

        $num_nostars = 5 - $num_stars;

        $html = '<div id="fivestar-widget">';

        for ($i = 1; $i <= $num_stars; $i++) {
            $html .= '<div class="star on"></div>';
        }
        if ($treshold_score % 2) {
            $html .= '<div class="star on-half"></div>';
            $num_nostars--;
        }
        for ($i = 1; $i <= $num_nostars; $i++) {
            $html .= '<div class="star"></div>';
        }


        $html .= '</div>';
        return $html;
    }
public function getHTMLStars ( ) { $ treshold_score = $ this -> seo_score - 2 < 0 ? 0 : $ this -> seo_score - 2 ; $ num_stars = intval ( ceil ( $ treshold_score ) / 2 ) ; $ num_nostars = 5 - $ num_stars ; $ html = '<div id="fivestar-widget">' ; for ( $ i = 1 ; $ i <= $ num_stars ; $ i ++ ) { $ html .= '<div class="star on"></div>' ; } if ( $ treshold_score % 2 ) { $ html .= '<div class="star on-half"></div>' ; $ num_nostars -- ; } for ( $ i = 1 ; $ i <= $ num_nostars ; $ i ++ ) { $ html .= '<div class="star"></div>' ; } $ html .= '</div>' ; return $ html ; }
getHTMLStars.
Get html of stars rating in CMS, maximum score is 12
threshold 2

@param none
@return String $html
getHTMLStars . Get html of stars rating in CMS maximum score is 12 threshold 2