/** * Insert box multi review on post edit panel. */ function editbox_post_mur() { global $post; gdsr_render_multi_editor(array("post_id" => $post->ID, "admin" => true)); }
/** * Renders multi rating review editor block. * * @param int $post_id id of the post rating will be attributed to * @param bool $echo echo results or return it as a string * @param array $settings override settings for rendering the block * @return string html with rendered contents */ function wp_gdsr_multi_review_editor($multi_set_id = 0, $post_id = 0, $template_id = 0, $echo = true) { global $gdsr, $post; if ($post_id == 0) { $post_id = $post->ID; } $multi_set_id = $multi_set_id == 0 ? gdsr_get_multi_set($post_id) : $multi_set_id; if ($echo) { echo gdsr_render_multi_editor(array("post_id" => $post_id, "multi_id" => $multi_set_id, "tpl" => $template_id), $echo); } else { return gdsr_render_multi_editor(array("post_id" => $post_id, "multi_id" => $multi_set_id, "tpl" => $template_id), $echo); } }