diff --git a/assets/js/prettyPhoto/jquery.prettyPhoto.init.js b/assets/js/prettyPhoto/jquery.prettyPhoto.init.js index 8104d899295..246448a312b 100644 --- a/assets/js/prettyPhoto/jquery.prettyPhoto.init.js +++ b/assets/js/prettyPhoto/jquery.prettyPhoto.init.js @@ -1,9 +1,6 @@ (function($) { $(document).ready(function() { - // Hide review form - it will be in a lightbox - $('#review_form_wrapper').hide(); - // Lightbox $("a.zoom").prettyPhoto({ social_tools: false, @@ -12,13 +9,6 @@ $(document).ready(function() { opacity: 0.8, deeplinking: false }); - $("a.show_review_form").prettyPhoto({ - social_tools: false, - theme: 'pp_woocommerce', - horizontal_padding: 20, - opacity: 0.8, - deeplinking: false - }); $("a[rel^='prettyPhoto']").prettyPhoto({ social_tools: false, theme: 'pp_woocommerce', @@ -27,10 +17,5 @@ $(document).ready(function() { deeplinking: false }); - // Open review form lightbox if accessed via anchor - if( window.location.hash == '#review_form' ) { - $('a.show_review_form').trigger('click'); - } - }); })(jQuery); \ No newline at end of file diff --git a/assets/js/prettyPhoto/jquery.prettyPhoto.init.min.js b/assets/js/prettyPhoto/jquery.prettyPhoto.init.min.js index 50732148782..13d0e258d0b 100644 --- a/assets/js/prettyPhoto/jquery.prettyPhoto.init.min.js +++ b/assets/js/prettyPhoto/jquery.prettyPhoto.init.min.js @@ -1 +1 @@ -(function(e){e(document).ready(function(){e("#review_form_wrapper").hide();e("a.zoom").prettyPhoto({social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1});e("a.show_review_form").prettyPhoto({social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1});e("a[rel^='prettyPhoto']").prettyPhoto({social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1});window.location.hash=="#review_form"&&e("a.show_review_form").trigger("click")})})(jQuery); \ No newline at end of file +(function(e){e(document).ready(function(){e("a.zoom").prettyPhoto({social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1});e("a[rel^='prettyPhoto']").prettyPhoto({social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1})})})(jQuery); \ No newline at end of file diff --git a/includes/admin/settings/class-wc-settings-general.php b/includes/admin/settings/class-wc-settings-general.php index f314e6bac7d..4503dd57765 100644 --- a/includes/admin/settings/class-wc-settings-general.php +++ b/includes/admin/settings/class-wc-settings-general.php @@ -177,7 +177,7 @@ class WC_Settings_General extends WC_Settings_Page { 'desc' => __( 'Enable Lightbox', 'woocommerce' ), 'id' => 'woocommerce_enable_lightbox', 'default' => 'yes', - 'desc_tip' => __( 'Include WooCommerce\'s lightbox. Product gallery images and the add review form will open in a lightbox.', 'woocommerce' ), + 'desc_tip' => __( 'Include WooCommerce\'s lightbox. Product gallery images will open in a lightbox.', 'woocommerce' ), 'type' => 'checkbox', 'checkboxgroup' => 'start' ), diff --git a/readme.txt b/readme.txt index d631a169449..d021c3b1e82 100644 --- a/readme.txt +++ b/readme.txt @@ -213,6 +213,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Tweak - Shortcode tag filters + updated menu names to make white labelling easier. * Tweak - Removed placeholder polyfill. Use this plugin to replace functionality if required: http://wordpress.org/plugins/html5-placeholder-polyfill/ * Tweak - Replaced all instances of → and ← in frontent using wc icon font plus .wc-forward and .wc-backward utility classes. +* Tweak - Add review form no longer opens in lightbox. * Fix - Changed MyException to Exception in Checkout class as MyException class does not exist in WooCommerce * Fix - Default cart widget styling on non-wc pages. * Fix - Rounding for mijireh tax ex. price. diff --git a/templates/single-product-reviews.php b/templates/single-product-reviews.php index fbeb559533e..7525173f3d4 100644 --- a/templates/single-product-reviews.php +++ b/templates/single-product-reviews.php @@ -60,15 +60,13 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ' . __( 'Add Review', 'woocommerce' ) . '

'; - $title_reply = __( 'Add a review', 'woocommerce' ); else : $title_reply = __( 'Be the first to review', 'woocommerce' ).' “' . get_the_title() . '”'; - echo '

' . sprintf( __( 'There are no reviews yet, would you like to %s submit yours%s?', 'woocommerce' ), '', '' ) . '

'; + echo '

' . __( 'There are no reviews yet.', 'woocommerce' ) . '

'; endif;