Commit Graph

98 Commits

Author SHA1 Message Date
Manos Psychogyiopoulos 4cc936c383 move event handlers to init 2017-03-14 13:52:48 +02:00
Manos Psychogyiopoulos fb6c1b09fc use class prop `flexslider_enabled` in `init_zoom` 2017-03-14 13:44:45 +02:00
Manos Psychogyiopoulos 4e48a2ddfa revert change from attr. to data. 2017-03-14 13:33:05 +02:00
Manos Psychogyiopoulos 9181f1c151 allow init with args 2017-03-14 12:55:25 +02:00
Manos Psychogyiopoulos 1d5cd9409e allow multiple galleries on page and init of dynamically loaded galleries 2017-03-13 18:58:39 +02:00
Claudiu Lodromanean 0715146e89 Reset gallery position on variation change 2017-03-01 11:42:41 -08:00
Mike Jolley b9a01da618 Check size of all images to enable zoom
Closes #13290
2017-02-23 12:29:09 +00:00
Mike Jolley 7f33db5746 Fix and minify 2017-02-21 10:35:11 +00:00
Maximus80 ea97b60d49 fix product gallery lightbox trigger 2017-02-21 09:11:39 +01:00
Mike Jolley 926384f20c Make script load features conditonally 2017-01-27 15:35:29 +00:00
Mike Jolley bf24ba395d Use get_theme_support for gallery features 2017-01-27 14:13:54 +00:00
Mike Jolley f457c25055 Remove unused is_touch_device 2017-01-26 15:19:37 +00:00
Mike Jolley 41f3572b23 Merge branch 'fix-12922' 2017-01-26 14:57:51 +00:00
Claudiu Lodromanean ecb542986a Basic non-height-changing slideshow 2017-01-23 15:35:30 -08:00
James Koster 88a378ea79 Don't allow users to open the lightbox for placeholder images 2017-01-16 14:17:03 +00:00
Mike Jolley 7b739b9367 Register scripts using plugins_url 2016-12-05 18:34:30 +00:00
James Koster 4343c8dc03 Disable magnification on touch. #12315 2016-11-14 11:50:37 +00:00
Shiva Poudel b32c7b89dc Fix - Photoswipe action button background style (#12209)
* Fix - Photoswipe action button background style

* Fix - Do not scroll to top after closing PhotoSwipe

* Tweak - Move photoswipe style overides to WooCommerce stylesheet

Closes #12200
2016-11-03 11:35:55 +00:00
James Koster 3823b78318 Add/product galleries (#11665)
* register prettyPhoto but don't enqueue. #10721

* Remove lightbox option. #10721

Also registers the prettyPhoto styles instead of enqueueing

* Stip all prettyPhoto related stuff from the templates and tidy up some logic. #10721

* Add flexslider assets #10721

* styling and re-adds `woocommerce_single_product_image_thumbnail_html`. #10721.

* Add zoom functionality. #10721

* Move js to single-product.js. #10721

* styling of the gallery thumbnails when using the `product_page` shortcode. #10721

* Only enable the zoom if the image is large enough. #10721

* Use a 4 column layout by default. #10721

* Make the carousel options filterable. #10721

* rtl styles for gallery. #10721

* Don't zoom on handheld devices. #10721

* markup tweaks in prep for photoswipe

* disable zoom for now

* Add and enqueue photoswipe assets

* add the photoswipe template

* initialise photoswipe - it's alive!

* tidy up js. add title. add separate trigger. #10721

* Move photoswipe functions to single-product.js. #10721

* reactivate the zoom! #10721

* style the photoswipe trigger. #10721

* disable flexslider animation loop. #10721

* js tidy up. #10721

* Fix jshint

* Abstract the product gallery scripts

* Minify

* Fixed conflict with the admin bar

* Photoswipe conflict with admin bar

* Index. #10721

* photoswipe button styles. #10721

* Styling. #10721

* No animation on zoom
* Image width on mobile

* No shadows please. #10721

Looking at you, Twenty Twelve.

* code tidy and add class to placeholder figure. #10721

* simplify rtl query

* photoswipe button styles

* Comma should not be here

* zoom icon #10721

* gallery thumb styles. #10721

* trigger icon. #10721

* Image margins. #10721

* icon hover states. #10721

* Variation handling

* Fix zoom and heights

* Resize after timeout
2016-10-13 15:25:42 +01:00
bucketpress dfccfce705 Grouping of delegated events together
As suggested by @claudiosmweb
2016-04-19 10:00:16 +08:00
bucketpress 6cca7029fc Make product tabs and ratings work when product page is loaded via ajax
.wc-tabs-wrapper, .woocommerce-tabs, #rating set as delegated events, so that on ajax loading a product page, we can call 
$( '.wc-tabs-wrapper, .woocommerce-tabs, #rating' ).trigger('init'); to make them work.
2016-04-18 18:08:42 +08:00
Mike Jolley 65f2c24358 Handle tab-reviews click 2016-04-15 18:25:18 +01:00
Mike Jolley 25d6a93c07 Merge pull request #10479 from shivapoudel/gtm-listener
Tweak - GTM listener for single products tabs
2016-03-07 12:04:38 +00:00
Shiva Poudel 25e1d72017 Tweak - GTM listener for single products tabs, Closes #10478 2016-03-04 23:52:39 +05:45
Mike Jolley 6f04ff1fa0 Replace size with length
Fixes #10444
2016-03-01 13:08:25 +00:00
James Koster 0cc109f67a Replaces the old star rating selector with a new slimline version. closes #8826
The old one was 5 separate buttons. This new one consolidates the 5
options into one element making it leaner visually and more intuitive.
Works in IE9+ with a graceful degradation for IE8.
2015-10-08 11:27:25 +01:00
Mike Jolley a3d376b5c3 Tab hiding with some theme markup.
Closes #8791
2015-08-12 12:05:31 +01:00
Mike Jolley 03f16d6833 Made tab panel selector more specific to avoid theme conflicts. 2015-08-11 10:46:21 +01:00
Claudio Sanches 62d879e86c Fixed all jshint errors #4680 2015-07-10 02:13:30 -03:00
Mike Jolley d5660e8cfc Don't disable buttons
Closes #8424
2015-06-22 11:09:23 +01:00
Mike Jolley 4997ed0efb Cleaned up tabs JS and fixed conflicts with bootstrap
Fixes #8000
2015-04-23 12:24:15 +01:00
Mike Jolley 270e26c3cc Allow linking to #reviews tab Closes #4630 2014-10-24 15:50:15 +01:00
splashingpixels 222b57a159 frontend single-product jshinted and coding standards 2014-03-19 15:56:07 -07:00
splashingpixels 76021004c1 external product review link not opening on load fixes #5008 2014-03-01 12:10:25 -08:00
James Koster d4c2d54b0d js fix #4629 2014-02-06 09:36:55 +00:00
James Koster 2b8ef5101f review pagination. closes #4629 2014-02-05 12:40:15 +00:00
toddlahman 13c24b410e Removed (document).ready from jQuery scripts
jQuery(document).ready(function($) { is equivalent to calling
jQuery(function($) {.

http://api.jquery.com/ready/
2014-01-30 18:44:17 -08:00
Jared Cobb 9fc47db17f Make frontend scripts safe to run on non WC pages (check for objects)
For a more detailed explaination of why this is helpful, see
Issue #4202. In short, from a dev ops perspective, if we want to build /
concatonate our front end scripts into a single application.js file, we
need to ensure scripts first check for dependent global object helpers
before trying to use them. For example, there are several objects
(created via PHP using `wp_localize_script`) which generate objects such
as `wc_single_product_params`. These objects will not exist on most
other pages, however these scripts attempt to execute code that
references these objects.
2013-12-04 12:15:24 -07:00
Mike Jolley b4d1c764d5 Move average rating outside of hidden tab. Closes #3867. 2013-10-31 16:26:20 +00:00
Justin Stern e584ea83a2 Fixed Multiple Sets of Tabs on One Page Bug
When clicking on a tab on a page with multiple sets of products/tabs,
other products/tabs were influenced due to a missing jquery context
element
2013-10-03 14:23:50 -04:00
Mike Jolley 4f0320fdb2 Refactor frontend scripts #3165 2013-06-11 13:31:41 +01:00
Mike Jolley 6bcb33f74a Fix reviews Closes #2378. 2013-02-11 15:37:26 +00:00
James Koster ac70b46867 more prettyPhoto 2013-01-31 14:15:55 +00:00
James Koster 5302eb019f css class name consistency #2086 2013-01-03 11:40:10 +00:00
Mike Jolley 5507e8453f Remove depricated jQuery Closes #2039 2012-12-28 13:02:12 +00:00
Mike Jolley c394119983 Ajax view cart. Closes #1948. 2012-12-10 13:11:05 +00:00
Mike Jolley c1c5cd6890 Prevent double form submission. Closes #1609. 2012-10-17 12:21:50 +01:00
Mike Jolley 30b8ddaf1d Split up frontend scripts so they can be loaded when needed. 2012-07-17 15:09:18 +01:00