a3 Lazy Load - Version 1.2.0

Version Description

Feature Upgrade. Added support for Lazy Load images in Tabbed content without having to scroll, also a file permissions tweak plus full compatibility with WordPress 4.2.2

Download this release

Release Info

Developer a3rev
Plugin Icon 128x128 a3 Lazy Load
Version 1.2.0
Comparing to
See all releases

Code changes from version 1.1.1 to 1.2.0

a3-lazy-load.php CHANGED
@@ -2,11 +2,11 @@
2
  /*
3
  Plugin Name: a3 Lazy Load
4
  Description: Speed up your site and enhance frontend user's visual experience in PC's, Tablets and mobile with a3 Lazy Load.
5
- Version: 1.1.1
6
  Author: a3 Revolution
7
  Author URI: http://www.a3rev.com/
8
  Requires at least: 3.8
9
- Tested up to: 4.2.0
10
  License: GPLv2 or later
11
  Copyright © 2011 a3 Revolution Software Development team
12
  a3 Revolution Software Development team
@@ -17,7 +17,7 @@ License: GPLv2 or later
17
  */
18
  ?>
19
  <?php
20
- define('A3_LAZY_VERSION', '1.1.1');
21
  define('A3_LAZY_LOAD_FILE_PATH', dirname(__FILE__));
22
  define('A3_LAZY_LOAD_DIR_NAME', basename(A3_LAZY_LOAD_FILE_PATH));
23
  define('A3_LAZY_LOAD_FOLDER', dirname(plugin_basename(__FILE__)));
2
  /*
3
  Plugin Name: a3 Lazy Load
4
  Description: Speed up your site and enhance frontend user's visual experience in PC's, Tablets and mobile with a3 Lazy Load.
5
+ Version: 1.2.0
6
  Author: a3 Revolution
7
  Author URI: http://www.a3rev.com/
8
  Requires at least: 3.8
9
+ Tested up to: 4.2.2
10
  License: GPLv2 or later
11
  Copyright © 2011 a3 Revolution Software Development team
12
  a3 Revolution Software Development team
17
  */
18
  ?>
19
  <?php
20
+ define('A3_LAZY_VERSION', '1.2.0');
21
  define('A3_LAZY_LOAD_FILE_PATH', dirname(__FILE__));
22
  define('A3_LAZY_LOAD_DIR_NAME', basename(A3_LAZY_LOAD_FILE_PATH));
23
  define('A3_LAZY_LOAD_FOLDER', dirname(plugin_basename(__FILE__)));
admin/a3-lazy-load-admin.php CHANGED
@@ -2,7 +2,7 @@
2
  update_option('a3rev_lazy_load_plugin', 'a3_lazy_load');
3
 
4
  function a3_lazy_load_activated(){
5
- update_option('a3_lazy_load_version', '1.1.1');
6
 
7
  // Set Settings Default from Admin Init
8
  global $a3_lazy_load_admin_init;
@@ -51,6 +51,6 @@ function a3_lazy_load_upgrade_plugin() {
51
  update_option('a3_lazy_load_version', '1.1.0');
52
  }
53
 
54
- update_option('a3_lazy_load_version', '1.1.1');
55
  }
56
  ?>
2
  update_option('a3rev_lazy_load_plugin', 'a3_lazy_load');
3
 
4
  function a3_lazy_load_activated(){
5
+ update_option('a3_lazy_load_version', '1.2.0');
6
 
7
  // Set Settings Default from Admin Init
8
  global $a3_lazy_load_admin_init;
51
  update_option('a3_lazy_load_version', '1.1.0');
52
  }
53
 
54
+ update_option('a3_lazy_load_version', '1.2.0');
55
  }
56
  ?>
admin/less/sass.php CHANGED
@@ -36,11 +36,11 @@ class A3_Lazy_Load_Less
36
  {
37
  @ini_set( 'display_errors', false );
38
  $_upload_dir = wp_upload_dir();
39
- @chmod($_upload_dir['basedir'], 0777);
40
  if (!is_dir($_upload_dir['basedir'] . '/sass')) {
41
- @mkdir($_upload_dir['basedir'] . '/sass', 0777);
42
  } else {
43
- @chmod($_upload_dir['basedir'] . '/sass', 0777);
44
  }
45
 
46
  if ( trim( $css_file_name ) == '' ) $css_file_name = $this->css_file_name;
@@ -72,7 +72,7 @@ class A3_Lazy_Load_Less
72
  ));
73
  if ($files) {
74
  foreach ($files as $file) {
75
- @chmod($_upload_dir['basedir'] . '/sass/' . $file, 0777);
76
  }
77
  }
78
 
36
  {
37
  @ini_set( 'display_errors', false );
38
  $_upload_dir = wp_upload_dir();
39
+ @chmod($_upload_dir['basedir'], 0755);
40
  if (!is_dir($_upload_dir['basedir'] . '/sass')) {
41
+ @mkdir($_upload_dir['basedir'] . '/sass', 0755);
42
  } else {
43
+ @chmod($_upload_dir['basedir'] . '/sass', 0755);
44
  }
45
 
46
  if ( trim( $css_file_name ) == '' ) $css_file_name = $this->css_file_name;
72
  ));
73
  if ($files) {
74
  foreach ($files as $file) {
75
+ @chmod($_upload_dir['basedir'] . '/sass/' . $file, 0644);
76
  }
77
  }
78
 
assets/js/jquery.lazyloadxt.extend.js ADDED
@@ -0,0 +1 @@
 
1
+ jQuery.lazyLoadXT.updateEvent = 'load orientationchange resize scroll touchmove focus click';
classes/class-a3-lazy-load.php CHANGED
@@ -138,6 +138,7 @@ class A3_Lazy_Load
138
  do_action('before_a3_lazy_load_xt_script');
139
  wp_deregister_script( 'jquery-lazyloadxt' );
140
  wp_enqueue_script( 'jquery-lazyloadxt', apply_filters( 'a3_lazy_load_main_script', A3_LAZY_LOAD_JS_URL.'/jquery.lazyloadxt'.$suffix.'.js' ), array( 'jquery' ), self::version, $in_footer );
 
141
  do_action('after_a3_lazy_load_xt_script');
142
  }
143
 
138
  do_action('before_a3_lazy_load_xt_script');
139
  wp_deregister_script( 'jquery-lazyloadxt' );
140
  wp_enqueue_script( 'jquery-lazyloadxt', apply_filters( 'a3_lazy_load_main_script', A3_LAZY_LOAD_JS_URL.'/jquery.lazyloadxt'.$suffix.'.js' ), array( 'jquery' ), self::version, $in_footer );
141
+ wp_enqueue_script( 'jquery-lazyloadxt-extend', apply_filters( 'a3_lazy_load_extend_script', A3_LAZY_LOAD_JS_URL.'/jquery.lazyloadxt.extend.js' ), array( 'jquery' ), self::version, $in_footer );
142
  do_action('after_a3_lazy_load_xt_script');
143
  }
144
 
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: a3rev, A3 Revolution Software Development team
4
  Tags: a3 lazy load, Lazy Loading , image lazy load, lazyload
5
  Requires at least: 4.0
6
- Tested up to: 4.2.0
7
- Stable tag: 1.1.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -144,6 +144,12 @@ Automatic installation is the easiest option as WordPress handles the file trans
144
 
145
  == Changelog ==
146
 
 
 
 
 
 
 
147
  = 1.1.1 - 2015/04/21 =
148
  * Tweak - Tested and Tweaked for full compatibility with WordPress Version 4.2.0
149
  * Tweak - Update style of plugin framework. Removed the [data-icon] selector to prevent conflict with other plugins that have font awesome icons
@@ -185,6 +191,9 @@ Automatic installation is the easiest option as WordPress handles the file trans
185
 
186
  == Upgrade Notice ==
187
 
 
 
 
188
  = 1.1.1 =
189
  Maintenance upgrade. Code tweaks for full compatibility with WordPress 4.2.0 and WooCommerce 2.3.8
190
 
3
  Contributors: a3rev, A3 Revolution Software Development team
4
  Tags: a3 lazy load, Lazy Loading , image lazy load, lazyload
5
  Requires at least: 4.0
6
+ Tested up to: 4.2.2
7
+ Stable tag: 1.2.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
144
 
145
  == Changelog ==
146
 
147
+ = 1.2.0 - 2015/05/18 =
148
+ * Feature - Added new extend script to support event when click or tap on tab to load images without having to scroll to initiate load.
149
+ * Tweak - Tested and Tweaked for full compatibility with WordPress Version 4.2.2
150
+ * Tweak - Changed Permission 777 to 755 for style folder inside the uploads folder
151
+ * Tweak - Chmod 644 for dynamic style and .less files from uploads folder
152
+
153
  = 1.1.1 - 2015/04/21 =
154
  * Tweak - Tested and Tweaked for full compatibility with WordPress Version 4.2.0
155
  * Tweak - Update style of plugin framework. Removed the [data-icon] selector to prevent conflict with other plugins that have font awesome icons
191
 
192
  == Upgrade Notice ==
193
 
194
+ = 1.2.0 =
195
+ Feature Upgrade. Added support for Lazy Load images in Tabbed content without having to scroll, also a file permissions tweak plus full compatibility with WordPress 4.2.2
196
+
197
  = 1.1.1 =
198
  Maintenance upgrade. Code tweaks for full compatibility with WordPress 4.2.0 and WooCommerce 2.3.8
199