function load_js() { wp_register_script('bp-group-reviews', BP_GROUP_REVIEWS_URL . 'js/group-reviews.js', array("jquery")); wp_enqueue_script('bp-group-reviews'); $params = array('star' => bpgr_get_star_img(), 'star_half' => bpgr_get_star_half_img(), 'star_off' => bpgr_get_star_off_img()); wp_localize_script('bp-group-reviews', 'bpgr', $params); }
function bpgr_star_off_img() { echo bpgr_get_star_off_img(); }