Version Description
Download this release
Release Info
Developer | bjornjohansen |
Plugin | BJ Lazy Load |
Version | 0.6.3 |
Comparing to | |
See all releases |
Code changes from version 0.6.2 to 0.6.3
- admin.php +1 -1
- bj-lazy-load.php +28 -3
- readme.txt +5 -2
admin.php
CHANGED
@@ -88,7 +88,7 @@ class BJLL_Admin_Page extends scbAdminPage {
|
|
88 |
);
|
89 |
|
90 |
|
91 |
-
if (
|
92 |
$optionfields[] = array(
|
93 |
'title' => __( 'Disable on WPTouch', 'bj_lazy_load' ),
|
94 |
'type' => 'radio',
|
88 |
);
|
89 |
|
90 |
|
91 |
+
if ( BJLL::has_wptouch() ) {
|
92 |
$optionfields[] = array(
|
93 |
'title' => __( 'Disable on WPTouch', 'bj_lazy_load' ),
|
94 |
'type' => 'radio',
|
bj-lazy-load.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: BJ Lazy Load
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/bj-lazy-load/
|
5 |
Description: Lazy image loading makes your site load faster and saves bandwidth.
|
6 |
-
Version: 0.6.
|
7 |
Author: Bjørn Johansen
|
8 |
Author URI: http://twitter.com/bjornjohansen
|
9 |
License: GPL2
|
@@ -31,7 +31,7 @@ require_once( dirname(__FILE__) . '/scb/load.php' );
|
|
31 |
if ( ! class_exists( 'BJLL' ) ) {
|
32 |
class BJLL {
|
33 |
|
34 |
-
const version = '0.6.
|
35 |
protected $_placeholder_url;
|
36 |
protected $_skip_classes;
|
37 |
|
@@ -42,7 +42,7 @@ if ( ! class_exists( 'BJLL' ) ) {
|
|
42 |
|
43 |
$options = self::_get_options();
|
44 |
|
45 |
-
if ( 'yes' == $options->get( 'disable_on_wptouch' ) &&
|
46 |
return;
|
47 |
}
|
48 |
|
@@ -221,6 +221,31 @@ if ( ! class_exists( 'BJLL' ) ) {
|
|
221 |
new BJLL_Admin_Page( __FILE__, $options );
|
222 |
}
|
223 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
|
225 |
}
|
226 |
}
|
3 |
Plugin Name: BJ Lazy Load
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/bj-lazy-load/
|
5 |
Description: Lazy image loading makes your site load faster and saves bandwidth.
|
6 |
+
Version: 0.6.3
|
7 |
Author: Bjørn Johansen
|
8 |
Author URI: http://twitter.com/bjornjohansen
|
9 |
License: GPL2
|
31 |
if ( ! class_exists( 'BJLL' ) ) {
|
32 |
class BJLL {
|
33 |
|
34 |
+
const version = '0.6.3';
|
35 |
protected $_placeholder_url;
|
36 |
protected $_skip_classes;
|
37 |
|
42 |
|
43 |
$options = self::_get_options();
|
44 |
|
45 |
+
if ( 'yes' == $options->get( 'disable_on_wptouch' ) && self::is_wptouch() ) {
|
46 |
return;
|
47 |
}
|
48 |
|
221 |
new BJLL_Admin_Page( __FILE__, $options );
|
222 |
}
|
223 |
}
|
224 |
+
|
225 |
+
static function is_wptouch() {
|
226 |
+
if ( function_exists( 'bnc_wptouch_is_mobile' ) && bnc_wptouch_is_mobile() ) {
|
227 |
+
return true;
|
228 |
+
}
|
229 |
+
|
230 |
+
global $wptouch_pro;
|
231 |
+
|
232 |
+
if ( defined( 'WPTOUCH_VERSION' ) || is_object( $wptouch_pro ) ) {
|
233 |
+
|
234 |
+
if ( $wptouch_pro->showing_mobile_theme ) {
|
235 |
+
return true;
|
236 |
+
}
|
237 |
+
}
|
238 |
+
|
239 |
+
return false;
|
240 |
+
}
|
241 |
+
|
242 |
+
static function has_wptouch() {
|
243 |
+
if ( function_exists( 'bnc_wptouch_is_mobile' ) || defined( 'WPTOUCH_VERSION' ) ) {
|
244 |
+
return true;
|
245 |
+
}
|
246 |
+
|
247 |
+
return false;
|
248 |
+
}
|
249 |
|
250 |
}
|
251 |
}
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: images, iframes, lazy loading, jquery, javascript, optimize, performance, bandwidth, responsive design, hidpi, retina
|
5 |
Author URI: http://twitter.com/bjornjohansen
|
6 |
Requires at least: 3.3
|
7 |
-
Tested up to: 3.5
|
8 |
-
Stable tag: 0.6.
|
9 |
|
10 |
Lazy loading makes your site load faster and saves bandwidth. Uses jQuery and degrades gracefully for non-js users. Works with both images and iframes.
|
11 |
|
@@ -58,6 +58,9 @@ Probably, your theme does not call wp_footer(). Edit the plugin settings to load
|
|
58 |
Check your HTML source or see the magic at work in Web Inspector, FireBug or similar.
|
59 |
|
60 |
== Changelog ==
|
|
|
|
|
|
|
61 |
|
62 |
= Version 0.6.2 =
|
63 |
* Bugfix: Remove notice of undefined constant when SCRIPT_DEBUG isn't defined
|
4 |
Tags: images, iframes, lazy loading, jquery, javascript, optimize, performance, bandwidth, responsive design, hidpi, retina
|
5 |
Author URI: http://twitter.com/bjornjohansen
|
6 |
Requires at least: 3.3
|
7 |
+
Tested up to: 3.5.1
|
8 |
+
Stable tag: 0.6.3
|
9 |
|
10 |
Lazy loading makes your site load faster and saves bandwidth. Uses jQuery and degrades gracefully for non-js users. Works with both images and iframes.
|
11 |
|
58 |
Check your HTML source or see the magic at work in Web Inspector, FireBug or similar.
|
59 |
|
60 |
== Changelog ==
|
61 |
+
|
62 |
+
= Version 0.6.3 =
|
63 |
+
* Detects WPTouch Pro as well
|
64 |
|
65 |
= Version 0.6.2 =
|
66 |
* Bugfix: Remove notice of undefined constant when SCRIPT_DEBUG isn't defined
|