Changeset 1246810
- Timestamp:
- 09/16/2015 06:00:42 PM (10 years ago)
- Location:
- lazyload-woocommerce
- Files:
-
- 8 added
- 2 edited
-
tags/1.2.1 (added)
-
tags/1.2.1/css (added)
-
tags/1.2.1/css/lazy.css (added)
-
tags/1.2.1/js (added)
-
tags/1.2.1/js/call-ll.js (added)
-
tags/1.2.1/js/jquery.lazyload.min.js (added)
-
tags/1.2.1/lazyload-woocommerce.php (added)
-
tags/1.2.1/readme.txt (added)
-
trunk/lazyload-woocommerce.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lazyload-woocommerce/trunk/lazyload-woocommerce.php
r1225289 r1246810 5 5 Plugin URI: https://wordpress.org/plugins/lazyload-woocommerce/ 6 6 Description: Lazy Load for WooCommerce includes the functionality to properly append Lazy Load into the image loop for WooCommerce in product listings (i.e. category). This does not apply to the individual product image, but anywhere they are used in the loop (by default, the unordered list). Includes a fallback if JavaScript is not active. Does not call in jQuery (you must have this already in use). 7 Version: 1.2 7 Version: 1.2.1 8 8 Author: Edge Webware 9 9 Author URI: http://edgewebware.com … … 91 91 $llwoo_image_src = wp_get_attachment_image_src(get_post_thumbnail_id(), 'shop_catalog'); 92 92 $llwoo_placeholder = get_option('lazyload-woo_placeholder'); 93 $llwoo_placeholder_fallback = w oocommerce_placeholder_img_src();93 $llwoo_placeholder_fallback = wc_placeholder_img_src(); 94 94 $size = wc_get_image_size( 'shop_catalog' ); 95 95 $llwoo_width = $size['width']; -
lazyload-woocommerce/trunk/readme.txt
r1225289 r1246810 1 1 === Lazy Load for WooCommerce === 2 2 Contributors: edgewebware,aibrean 3 Tags: lazy load, jquery,woocommerce, products, images 3 Tags: lazy load, jquery, woocommerce, products, images, lazyload, front-end optimization, image load, image lazyload, lazy loading, placeholder, placeholder image 4 Donate link: https://edgewebware.com/plugins/ 4 5 Requires at least: 4.0.0 5 Tested up to: 4.3 6 Stable tag: 1.2 6 Tested up to: 4.3.1 7 Stable tag: 1.2.1 7 8 License: GPLv2 or later 8 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 10 10 Lazy Load for WooCommerce includes the functionality to properly append Lazy Load into the image loop for WooCommerce (2.4. 4tested).11 Lazy Load for WooCommerce includes the functionality to properly append Lazy Load into the image loop for WooCommerce (2.4.6 tested). 11 12 12 13 == Description == 13 Lazy Load for WooCommerce includes the functionality to properly append Lazy Load into the image loop for WooCommerce in product listings (i.e. shop category). It has been tested against WooCommerce 2.3.8. This does not apply to the individual product image, but anywhere they are used in the loop (by default, the unordered list). 14 Lazy Load for WooCommerce includes the functionality to properly append Lazy Load into the image loop for WooCommerce in product listings (i.e. shop category). It has been tested against WooCommerce 2.3.8 and should work back to WooCommerce 2.1.0 (untested). This does not apply to the individual product image, but anywhere they are used in the loop (by default, the unordered list). 15 16 If you would like to send an email directly for support, contact us via the form at <a href="https://edgewebware.com/plugins/" target="_blank">https://edgewebware.com/plugins/</a>. 14 17 15 18 == Installation == … … 24 27 Additionally, we allow for you to modify the available functions for Lazy Load. To dequeue the plugin functions and use your own, use `wp_dequeue_script('lazyload-call');`. See http://www.appelsiini.net/projects/lazyload for a full rundown of options (trigger loading, effects, images in containers, nonsequential images, invisible images, etc.). 25 28 29 If you would like to send an email directly for support, contact us via the form at <a href="https://edgewebware.com/plugins/" target="_blank">https://edgewebware.com/plugins/</a>. 30 31 == Frequently Asked Questions == 32 = Does this plugin work with the newest WP/WooCommerce version and also older versions? = 33 Since it's fairly basic it should. It's a very lightweight plugin. 34 35 You will need to manually call in jQuery support if you don't already have it running (see Installation Instructions). 36 37 Your WooCommerce installation needs to support `shop_catalog` which has been an initiated image size since WooCommerce 1.6.2 at least. 38 39 Secondarily, there should be support for WooCommerce's placeholder image (not an absolute requirement for loading since you can put in your own, but the tab may not be visible or in the same location in older versions of WooCommerce). The placeholder image function for WooCommerce has been updated to `wc_placeholder_img_src` so previous instances of `woocommerce_placeholder_img_src` have been deprecated as of 2.1.0. 40 = What is WooCommerce's image loop? = 41 We are basically replacing WooCommerce's hook of `woocommerce_template_loop_product_thumbnail` with our own (for Lazy Load). This is used in the `content-product.php` template file. If your WooCommerce theme has been customized (YOURTHEME/woocommerce/content-product.php) then in some cases this has been altered. The hook runs as part of `do_action( 'woocommerce_before_shop_loop_item_title' )`. 42 = If I have a custom image loop, can I still use the plugin? = 43 It would probably be best if you were to manually configure the source LazyLoad script (<a href="http://www.appelsiini.net/projects/lazyload" target="_blank" rel="nofollow">http://www.appelsiini.net/projects/lazyload</a>) to reduce code bloat. It is possible to use our plugin and then add the class "lazy" to your image and replace the image src with your placeholder image and add `data-original` to link to your thumbnail. You would also need to add width/height to the image element. 26 44 == Screenshots == 27 45 1. Setting up the placeholder for the products that will be used for LazyLoad (it will match the shop catalog image dimensions). 28 46 29 47 == Changelog == 48 = 1.2.1 = 49 * ADDED: support note for 4.3.1 50 * Updated Description and Tags 51 * ADDED: Donate/Support link 52 * ADDED: FAQ 53 * Fixed: removed deprecated function of `woocommerce_placeholder_img_src` and replaced with the current (as of WC 2.1.0) `wc_placeholder_img_src` 54 30 55 = 1.2 = 31 56 * Removed manual entry of dimensions. It will now automatically use the dimensions for `shop_catalog` which is set under WooCommerce > Settings > Products > Display.
Note: See TracChangeset
for help on using the changeset viewer.