/** * Renders comment integration of standard rating * * @param int $value initial rating value * @param string $stars_set set to use for rendering * @param int $stars_size set size to use for rendering * @param string $stars_set_ie6 set to use for rendering in ie6 */ function comment_integrate_standard_rating($value = 0, $stars_set = "oxygen", $stars_size = 20, $stars_set_ie6 = "oxygen_gif") { $style = $stars_set == "" ? $this->g->o["style"] : $stars_set; $style = $this->g->is_ie6 ? $stars_set_ie6 == "" ? $this->g->o["style_ie6"] : $stars_set_ie6 : $style; $size = $stars_size == 0 ? $this->g->o["size"] : $stars_size; return GDSRRender::rating_stars_local($style, $size, $this->g->o["stars"], true, $value * $size, "gdsr_int", "rcmmpost"); }
/** * Renders comment review stars * * @param int $value initial rating value * @param bool $allow_vote render stars to support rendering or not to */ function comment_review($value = 0, $allow_vote = true) { $stars = $this->o["cmm_review_stars"]; $size = $this->o["cmm_review_size"]; return GDSRRender::rating_stars_local($size, $stars, $allow_vote, $value * $size); }