/** * Renders comment integration of multi rating * * @param int $value initial rating value * @param object $post_id post id * @param int $multi_set_id id of the multi rating set to use * @param int $template_id id of the template to use * @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_multi_rating($value, $post_id, $multi_set_id, $template_id, $stars_set = "oxygen", $stars_size = 20, $stars_set_ie6 = "oxygen_gif") { if ($multi_set_id == 0) { return ""; } $set = gd_get_multi_set($multi_set_id); $votes = array(); for ($i = 0; $i < count($set->object); $i++) { $single_vote = array(); $single_vote["votes"] = 0; $single_vote["score"] = 0; $single_vote["rating"] = 0; $votes[] = $single_vote; } $style = $stars_set == "" ? $this->g->o["mur_style"] : $stars_set; $style = $this->g->is_ie6 ? $stars_set_ie6 == "" ? $this->g->o["mur_style_ie6"] : $stars_set_ie6 : $style; return GDSRRenderT2::render_mri($template_id, array("post_id" => $post_id, "style" => $style, "set" => $set, "height" => $stars_size)); }