Commit Graph

78 Commits

Author SHA1 Message Date
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
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