Skip to content

Commit 5cf1b2e

Browse files
committed
Release new version 1.8.4
* Maintenance Update. Under the bonnet tweaks to keep your plugin running smoothly and is the foundation for new features to be developed this year * Framework - Update a3rev Plugin Framework to version 2.0.2 * Framework - Add Framework version for all style and script files * Tweak - Update for full compatibility with a3rev Dashboard plugin * Tweak - Test for compatibility with WordPress 4.9.4
1 parent 6cc0a1a commit 5cf1b2e

File tree

15 files changed

+2347
-237
lines changed

15 files changed

+2347
-237
lines changed

a3-lazy-load.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
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.3
5+
Version: 1.8.4
66
Author: a3rev Software
77
Author URI: https://a3rev.com/
88
Requires at least: 4.0
9-
Tested up to: 4.9.2
9+
Tested up to: 4.9.4
1010
Text Domain: a3-lazy-load
1111
Domain Path: /languages
1212
License: GPLv2 or later
@@ -19,7 +19,6 @@
1919
*/
2020
?>
2121
<?php
22-
define('A3_LAZY_VERSION', '1.8.3');
2322
define('A3_LAZY_LOAD_FILE_PATH', dirname(__FILE__));
2423
define('A3_LAZY_LOAD_DIR_NAME', basename(A3_LAZY_LOAD_FILE_PATH));
2524
define('A3_LAZY_LOAD_FOLDER', dirname(plugin_basename(__FILE__)));
@@ -30,6 +29,9 @@
3029
define('A3_LAZY_LOAD_CSS_URL', A3_LAZY_LOAD_URL . '/assets/css');
3130
define('A3_LAZY_LOAD_IMAGES_URL', A3_LAZY_LOAD_URL . '/assets/images');
3231

32+
define( 'A3_LAZY_LOAD_KEY', 'a3_lazy_load' );
33+
define( 'A3_LAZY_VERSION', '1.8.4' );
34+
3335
/**
3436
* Load Localisation files.
3537
*

admin/a3-lazy-load-admin.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
update_option('a3rev_lazy_load_plugin', 'a3_lazy_load' );
32

43
function a3_lazy_load_activated(){
54
update_option('a3_lazy_load_version', A3_LAZY_VERSION );

admin/admin-init.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ public function admin_settings_page( $page_data = array() ) {
225225
echo 'nav-tab-active';
226226
$tab_data = $tab;
227227
}
228+
echo ' ' . esc_attr( sanitize_title( $tab['name'] ) );
228229
echo '">' . $tab['label'] . '</a>';
229230
}
230231

admin/admin-interface.php

Lines changed: 100 additions & 50 deletions
Large diffs are not rendered by default.

admin/admin-ui.php

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,16 @@ class A3_Lazy_Load_Admin_UI
3030
* @var string
3131
* You must change to correct plugin name that you are working
3232
*/
33-
public $plugin_name = 'a3_lazy_load';
3433

35-
public $google_api_key_option = 'a3_lz_google_api_key';
36-
37-
public $toggle_box_open_option = 'a3_lz_toggle_box_open';
38-
39-
public $is_free_plugin = true;
40-
41-
public $version_transient = 'a3_lazy_load_update_info';
42-
43-
public $plugin_option_key = 'a3rev_lazy_load_plugin';
44-
45-
public $support_url = 'https://wordpress.org/support/plugin/a3-lazy-load/';
34+
public $framework_version = '2.0.2';
35+
public $plugin_name = A3_LAZY_LOAD_KEY;
36+
public $plugin_path = A3_LAZY_LOAD_NAME;
37+
public $google_api_key_option = A3_LAZY_LOAD_KEY . '_google_api_key';
38+
public $toggle_box_open_option = A3_LAZY_LOAD_KEY . '_toggle_box_open';
39+
public $version_transient = A3_LAZY_LOAD_KEY . '_licinfo';
40+
public $is_free_plugin = true;
41+
42+
public $support_url = 'https://wordpress.org/support/plugin/a3-lazy-load/';
4643

4744

4845
/**
@@ -55,7 +52,7 @@ class A3_Lazy_Load_Admin_UI
5552
* @var string
5653
* You must change to correct pro plugin page url on a3rev site
5754
*/
58-
public $pro_plugin_page_url = 'http://a3rev.com/shop/a3-lazy-load/';
55+
public $pro_plugin_page_url = 'https://a3rev.com/shop/a3-lazy-load/';
5956

6057
/**
6158
* @var string
@@ -323,11 +320,11 @@ public function get_version_message() {
323320
if ( FALSE !== stristr( $version_transient, '||' )
324321
&& is_array( $version_info )
325322
&& isset( $version_info[1] ) && $version_info[1] == 'valid'
326-
&& version_compare( get_option('a3_lazy_load_version') , $version_info[0], '<' ) ) {
323+
&& version_compare( A3_LAZY_VERSION , $version_info[0], '<' ) ) {
327324

328325
$version_message = sprintf( __( 'There is a new version <span class="a3rev-ui-new-plugin-version">%s</span> available, <a href="%s" target="_blank">update now</a> or download direct from <a href="%s" target="_blank">My Account</a> on a3rev.com', 'a3-lazy-load' ),
329326
$version_info[0],
330-
wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' . A3_LAZY_LOAD_NAME ), 'upgrade-plugin_' . A3_LAZY_LOAD_NAME ),
327+
wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' . $this->plugin_path ), 'upgrade-plugin_' . $this->plugin_path ),
331328
'https://a3rev.com/my-account/downloads/'
332329
);
333330
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,9 @@
766766
text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
767767
}
768768

769+
/* Time Picker Control */
770+
.a3rev_panel_container .a3rev-ui-time_picker { width: 76px; text-align: center; cursor: pointer; }
771+
769772
/* Help Tip */
770773
.a3rev_panel_container table.form-table th img.help_tip {
771774
float: right;

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

Lines changed: 99 additions & 145 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)