2013-01-30 16:18:36 +00:00
|
|
|
(function($) {
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
// Hide review form - it will be in a lightbox
|
|
|
|
$('#review_form_wrapper').hide();
|
|
|
|
|
|
|
|
// Lightbox
|
|
|
|
$("a.zoom").prettyPhoto({
|
|
|
|
social_tools: false,
|
2013-02-04 14:36:23 +00:00
|
|
|
theme: 'pp_woocommerce',
|
2013-06-07 14:25:30 +00:00
|
|
|
horizontal_padding: 20,
|
2013-03-15 15:17:25 +00:00
|
|
|
opacity: 0.9,
|
|
|
|
deeplinking: false
|
2013-01-30 16:18:36 +00:00
|
|
|
});
|
|
|
|
$("a.show_review_form").prettyPhoto({
|
|
|
|
social_tools: false,
|
2013-01-31 14:15:50 +00:00
|
|
|
theme: 'pp_woocommerce',
|
2013-06-07 14:25:30 +00:00
|
|
|
horizontal_padding: 20,
|
2013-03-15 15:17:25 +00:00
|
|
|
opacity: 0.9,
|
|
|
|
deeplinking: false
|
2013-01-30 16:18:36 +00:00
|
|
|
});
|
|
|
|
$("a[rel^='prettyPhoto']").prettyPhoto({
|
|
|
|
social_tools: false,
|
2013-01-31 14:15:50 +00:00
|
|
|
theme: 'pp_woocommerce',
|
2013-06-07 14:25:30 +00:00
|
|
|
horizontal_padding: 20,
|
2013-03-15 15:17:25 +00:00
|
|
|
opacity: 0.9,
|
|
|
|
deeplinking: false
|
2013-01-30 16:18:36 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
// Open review form lightbox if accessed via anchor
|
|
|
|
if( window.location.hash == '#review_form' ) {
|
|
|
|
$('a.show_review_form').trigger('click');
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
})(jQuery);
|