$js5srp_handle_style_bars = plugins_url( 'jquery-bar-rating-master/dist/themes/bootstrap-stars.css', __FILE__ );
wp_enqueue_style($js5srp_handle_style_bars, $src = "$js5srp_handle_style_bars");
$js5srp_handle_style = plugins_url( 'js5srp-5-star-style.css', __FILE__ );
wp_enqueue_style($js5srp_handle_style, $src = "$js5srp_handle_style");
$js5srp_google = esc_attr( get_option('js5srp_google') );
$js5srp_facebook = esc_attr( get_option('js5srp_facebook') );
$js5srp_yelp = esc_attr( get_option('js5srp_yelp') );
$js5srp_share = esc_attr( get_option('js5srp_share') );
// IF REVIEW IS POSTED
if (isset($_POST["js5srp_review"])) {
// ARE STARS OR REVIEW EMPTY?
if(empty(sanitize_text_field($_POST["js5srp_reviewtext"])) || empty(sanitize_text_field($_POST["js5srp_rating"]))){ ?>
Please make sure and add a star rating and review before pressing submit.
include "js5srp-reviewform.php";
}else{
if(sanitize_text_field($_POST['js5srp_rating']) < 5){
echo "
".esc_attr( get_option('js5srp_failtitle') )."
";
echo "
".esc_attr( get_option('js5srp_faildescription') )."
";
}
if(sanitize_text_field($_POST['js5srp_rating']) == 5){
echo "
".esc_attr( get_option('js5srp_successtitle') )."
";
echo "
".esc_attr( get_option('js5srp_successdescription') )."
";
?>
Some Other Text
Click in this Field and hit Ctrl+V to see what is on clipboard
Select the sites below to share your review:
if(!empty($js5srp_google)) { ?>
; ?>)
} ?>
if(!empty($js5srp_facebook)) { ?>
; ?>)
} ?>
if(!empty($js5srp_yelp)) { ?>
; ?>)
} ?>
}
$js5srp_handle_script_copy = plugins_url( 'js5srp-click-to-copy.min.js', __FILE__ );
wp_enqueue_script($js5srp_handle_script_copy, $src = "$js5srp_handle_script_copy");
}}else{
?>
include "js5srp-reviewform.php";
if($js5srp_share == "y"){ echo "
"; }
}
?>
wp_enqueue_script("jquery");
$js5srp_handle_style_barrating = plugins_url( 'jquery-bar-rating-master/jquery.barrating.js', __FILE__ );
wp_enqueue_script($js5srp_handle_style_barrating, $src = "$js5srp_handle_style_barrating");
$js5srp_handle_style_examples = plugins_url( 'jquery-bar-rating-master/examples/js/examples.js', __FILE__ );
wp_enqueue_script($js5srp_handle_style_examples, $src = "$js5srp_handle_style_examples");
?>