Skip to content

Commit d39732b

Browse files
committed
Release new version 1.9.0
* This feature upgrade is focused on adding a number of new options for excluding Lazy Load from sections of a site. Compatibility with WordPress 4.9.8, Gutenberg 3.4.0 and WooCommerce 3.4.4 * Feature - Add exclude from Lazy Load by URI * Feature - Add exclude from Lazy Load by Page types * Feature - Add support for using Wildcards in images and videos skipped classes * Tweak - Upgrade lazyloadxt lib to latest version 1.1.0 * Tweak - Rename jquery.lazyloadxt.js to jquery.lazyloadxt.extra.js * Tweak - Add new Exclude by URI’s and Page Types Options box and help text * Tweak - Test for compatibility with WordPress 4.9.8 * Tweak - Test for compatibility with WooCommerce 3.4.4 * Tweak - Test for compatibility with Gutenberg 3.4.0 * Fix - Make Skip Classes feature work when have entered it to that list * Credit - Props to Kurt @AMPERAGE-Marketing for his contribution to this release
1 parent 1095d9d commit d39732b

31 files changed

+2387
-1047
lines changed

a3-lazy-load.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
/*
33
Plugin Name: a3 Lazy Load
44
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.8.9
5+
Version: 1.9.0
66
Author: a3rev Software
77
Author URI: https://a3rev.com/
88
Requires at least: 4.0
9-
Tested up to: 4.9.6
9+
Tested up to: 4.9.8
1010
Text Domain: a3-lazy-load
1111
Domain Path: /languages
1212
WC requires at least: 2.0.0
13-
WC tested up to: 3.4.1
13+
WC tested up to: 3.4.4
1414
License: GPLv2 or later
1515
Copyright © 2011 a3 Revolution Software Development team
1616
a3 Revolution Software Development team
@@ -32,7 +32,7 @@
3232
define('A3_LAZY_LOAD_IMAGES_URL', A3_LAZY_LOAD_URL . '/assets/images');
3333

3434
define( 'A3_LAZY_LOAD_KEY', 'a3_lazy_load' );
35-
define( 'A3_LAZY_VERSION', '1.8.9' );
35+
define( 'A3_LAZY_VERSION', '1.9.0' );
3636

3737
/**
3838
* Load Localisation files.
@@ -62,6 +62,7 @@ function a3_lazy_load_plugin_textdomain() {
6262
include( 'admin/admin-init.php' );
6363
include( 'admin/less/sass.php' );
6464

65+
include( 'classes/class-a3-lazy-load-excludes.php' );
6566
include( 'classes/class-a3-lazy-load.php' );
6667
include( 'classes/class-a3-lazy-load-filter.php' );
6768

admin/a3-lazy-load-admin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
function a3_lazy_load_activated(){
44
update_option('a3_lazy_load_version', A3_LAZY_VERSION );
55

6-
// Set Settings Default from Admin Init
76
global $a3_lazy_load_admin_init;
8-
$a3_lazy_load_admin_init->set_default_settings();
9-
107
delete_metadata( 'user', 0, $a3_lazy_load_admin_init->plugin_name . '-' . 'plugin_framework_global_box' . '-' . 'opened', '', true );
118

129
update_option('a3_lazy_load_just_installed', true);
@@ -16,10 +13,13 @@ function a3_lazy_load_activated(){
1613
* Load languages file
1714
*/
1815
function a3_lazy_load_init() {
19-
global $a3_lazy_load_global_settings;
2016

2117
if ( get_option( 'a3_lazy_load_just_installed' ) ) {
2218
delete_option( 'a3_lazy_load_just_installed' );
19+
20+
// Set Settings Default from Admin Init
21+
global $a3_lazy_load_admin_init;
22+
$a3_lazy_load_admin_init->set_default_settings();
2323
}
2424

2525
a3_lazy_load_plugin_textdomain();
@@ -34,7 +34,7 @@ function a3_lazy_load_init() {
3434
add_filter( $a3_lazy_load_admin_init->plugin_name . '_plugin_extension_boxes', array( 'A3_Lazy_Load_Hook_Filter', 'plugin_extension_box' ) );
3535

3636
// Add language
37-
add_action('init', 'a3_lazy_load_init');
37+
add_action('init', 'a3_lazy_load_init', 105);
3838

3939
// Add custom style to dashboard
4040
add_action( 'admin_enqueue_scripts', array( 'A3_Lazy_Load_Hook_Filter', 'a3_wp_admin' ) );

admin/admin-init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function init() {
4242
$menu_hook = 'admin_menu';
4343
add_action( $menu_hook, array( $this, 'register_admin_menu' ) );
4444

45-
add_action( 'plugins_loaded', array( $this, 'get_all_settings' ), 8 );
45+
add_action( 'init', array( $this, 'get_all_settings' ), 101 );
4646
}
4747

4848
/*-----------------------------------------------------------------------------------*/

admin/admin-interface.php

Lines changed: 87 additions & 40 deletions
Large diffs are not rendered by default.

admin/admin-ui.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ class A3_Lazy_Load_Admin_UI
3131
* You must change to correct plugin name that you are working
3232
*/
3333

34-
public $framework_version = '2.0.3';
34+
public $framework_version = '2.0.7';
3535
public $plugin_name = A3_LAZY_LOAD_KEY;
3636
public $plugin_path = A3_LAZY_LOAD_NAME;
3737
public $google_api_key_option = '';
3838
public $toggle_box_open_option = '';
3939
public $version_transient = '';
4040
public $is_free_plugin = true;
4141

42-
public $support_url = 'https://wordpress.org/support/plugin/a3-lazy-load/';
42+
public $support_url = '';
4343

4444

4545
/**
@@ -74,9 +74,11 @@ public function __construct() {
7474
$this->google_api_key_option = A3_LAZY_LOAD_KEY . '_google_api_key';
7575
$this->toggle_box_open_option = A3_LAZY_LOAD_KEY . '_toggle_box_open';
7676
$this->version_transient = A3_LAZY_LOAD_KEY . '_licinfo';
77-
}
78-
7977

78+
$this->support_url = 'https://wordpress.org/support/plugin/a3-lazy-load/';
79+
}
80+
81+
8082
/*-----------------------------------------------------------------------------------*/
8183
/* admin_plugin_url() */
8284
/*-----------------------------------------------------------------------------------*/

admin/assets/css/admin-ui-style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@
271271
.a3rev_panel_container .a3rev-ui-ajax_submit-control,
272272
.a3rev_panel_container .a3rev-ui-ajax_multi_submit-control {
273273
margin-bottom: 6px;
274+
position: relative;
274275
}
275276
.a3rev_panel_container .a3rev-ui-ajax_submit-control .a3rev-ui-ajax_submit-button,
276277
.a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-button {
@@ -321,6 +322,14 @@
321322
max-width: 600px;
322323
position: relative;
323324
}
325+
.a3rev_panel_container .a3rev-ui-progress-notice {
326+
display: none;
327+
position: absolute;
328+
text-align: center;
329+
top: -25px;
330+
width: 100%;
331+
color: #f00;
332+
}
324333
.a3rev_panel_container .a3rev-ui-progress-inner {
325334
animation: progress-bar 1s infinite linear;
326335
-ms-animation: progress-bar 1s infinite linear;
@@ -877,6 +886,9 @@
877886
margin-bottom:5px;
878887
margin-right:2px;
879888
}
889+
.chzn-select-ajaxify ~ .chosen-container .no-results span {
890+
display: none;
891+
}
880892

881893
/* Custom for each element web icons font */
882894
.a3-plugin-ui-delete-icon:before {

0 commit comments

Comments
 (0)