Mike Jolley
d12194fbe7
Only push to lightbox if image is found
...
Closes #19435
2018-03-29 11:18:35 +01:00
Claudiu Lodromanean
d7718df0f9
Merge pull request #18400 from woocommerce/update/17656
...
Pass through zoom options
2018-01-09 09:21:13 -08:00
Mike Jolley
2b2b73b4b7
Pass through zoom options
2018-01-09 15:44:54 +00:00
Mike Jolley
fdadbc67a4
Remove deprecated load call
...
Closes #18005
2018-01-09 10:01:29 +00:00
MannyC
1252215dc2
Change flexslider options property name back to just `flexslider` from `flexslider_options`.
2017-12-20 12:15:45 +00:00
MannyC
c8dfc7e91e
Allow back end to pass adhoc options to the product flexslider, following the standard set by the photoswipe options.
...
This commit also changes the name of the options array key from `flexslider` to `flexslider-options`, also following the photoswipe standard.
As a side effect, the flexslider is now correctly being passed the `rtl` parameter, which previously wasn't being used by the front end (even though the back end was sending it).
2017-12-17 01:03:51 +00:00
Mike Jolley
2044a3737b
Fixes a flexslider bug when there is only 1 image on the product page.
...
Closes #17403
This also fixes zoom issues due to the above error.
2017-11-02 11:09:34 +00:00
Mike Jolley
435c4344db
Fix zoom target
...
Closes #17227
2017-10-17 17:26:08 -07:00
Mike Jolley
fa46b7166f
Check zoom is enabled before running initZoomForTarget
...
Fixes https://wordpress.org/support/topic/product-gallery-zoom/
2017-10-13 15:16:41 +01:00
Mike Jolley
79e3bbd0bf
Set allow one slide to false for flexslider
...
Closes #16002
2017-07-07 11:37:10 +01:00
Claudio Sanches
7172d559c8
Fixed coding standards
2017-07-04 14:09:16 -03:00
Mike Jolley
c1de30fa38
Merge branch 'master' into fix/gallery-height-with-no-cache
...
# Conflicts:
# assets/js/frontend/single-product.min.js
2017-07-04 11:50:15 +01:00
Mike Jolley
d78f088ba2
Force height for the gallery if the image is no loaded at time of init
2017-06-30 15:58:55 +01:00
Mike Jolley
f469312d76
Init zoom after slide is displayed
...
Closes #15825
2017-06-27 22:01:05 +01:00
Mike Jolley
b140f61510
Merge branch 'master' into fix/14578
...
# Conflicts:
# assets/js/frontend/single-product.min.js
2017-05-23 15:09:20 +01:00
Vinod Dalvi
3249f23576
Resolved the issue - Allow linking to single product additional_information tab from url hash #15016
2017-05-11 19:51:31 +05:30
Mike Jolley
7c037728f6
Merge branch 'fix/14448'
...
# Conflicts:
# assets/js/frontend/single-product.min.js
2017-04-27 12:00:05 +01:00
Mike Jolley
a4f7bb3d6e
Remove extra comma
2017-04-27 11:52:10 +01:00
Mike Jolley
1e6d52a3bd
Add a data-caption for captions and keep title around.
...
Fixes #14578
2017-04-25 14:31:24 +01:00
Mike Jolley
1f66a29457
Use smoothHeight
...
Closes #14448
2017-04-17 16:23:04 +01:00
AJ Clarke
b8e5fc22a2
Localized Photoswipe script
2017-04-14 09:34:05 -07:00
Manos Psychogyiopoulos
92d1490151
Fix typo in single-product.js
2017-04-12 15:06:16 +03:00
Mike Jolley
d607aea651
Fade gallery in if no images are set.
...
Fixes #13910
2017-04-04 23:43:14 +01:00
Mike Jolley
6ccac2f19f
Switch to $target
...
https://github.com/woocommerce/woocommerce/pull/13859#discussion_r109178
476
2017-03-31 16:27:51 +01:00
Mike Jolley
101c11a7ec
Use start event to fade
2017-03-31 15:26:46 +01:00
Mike Jolley
62bd505bda
CSS transition
2017-03-31 15:16:10 +01:00
Mike Jolley
0c2ab2dabb
Fade gallery in after delay to avoid flash
...
Closes #13847
2017-03-31 13:53:37 +01:00
James Koster
1cd85b1b9b
Use the full size image dimensions to decide whether to init zoom. #13830
2017-03-30 19:52:29 +01:00
Mike Jolley
673aa5f5bb
Change zoom mode on touch devices
...
Fixes #13775
2017-03-27 17:10:21 +01:00
Mike Jolley
9ff603681b
Abort gallery script when there are no images
...
Fixes #13699
2017-03-22 11:08:37 +00:00
Mike Jolley
d710ada38d
Fix reset with more than one on page
2017-03-14 16:38:04 +00:00
Mike Jolley
a6436eb915
prototype pattern
2017-03-14 15:48:18 +00:00
Manos Psychogyiopoulos
161b6a132b
use data() correctly
2017-03-14 15:42:15 +02:00
Manos Psychogyiopoulos
290e000bcb
better use of gallery var
2017-03-14 15:04:08 +02:00
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