Skip to content

Commit b80a4fc

Browse files
committed
Release new version 2.7.0
= 2.7.0 - 2023/01/03 = * This feature release removes the fontawesome lib and replaces icons with SVGs plus adds Default Topography option to font controls. * Feature - Convert icon from font awesome to SVG * Feature - Update styling for new SVG icons * Plugin Framework - Update typography control from plugin framework to add support for Default value * Plugin Framework - Default value will get fonts set in the theme. * Plugin Framework - Change generate typography style for change on typography control * Plugin Framework - Remove fontawesome lib
1 parent 3905eaa commit b80a4fc

12 files changed

+53
-2768
lines changed

a3-lazy-load.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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: 2.6.1
5+
Version: 2.7.0
66
Author: a3rev Software
77
Author URI: https://a3rev.com/
88
Requires at least: 5.6
@@ -31,7 +31,7 @@
3131

3232
define( 'A3_LAZY_LOAD_KEY', 'a3_lazy_load' );
3333
define( 'A3_LAZY_LOAD_PREFIX', 'a3_lazy_load_' );
34-
define( 'A3_LAZY_VERSION', '2.6.1' );
34+
define( 'A3_LAZY_VERSION', '2.7.0' );
3535
define( 'A3_LAZY_LOAD_G_FONTS', false );
3636

3737
use \A3Rev\LazyLoad\FrameWork;

admin/admin-interface.php

+6-10
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,11 @@ public function init_styles() {
7878
$admin_pages = $this->admin_pages();
7979

8080
if ( is_admin() && isset( $_REQUEST['page'] ) && in_array( $_REQUEST['page'], $admin_pages ) ) {
81-
add_action( 'admin_enqueue_scripts', array( $this, 'register_fontawesome_style' ), 0 );
8281
add_action( 'admin_enqueue_scripts', array( $this, 'admin_css_load' ) );
8382
do_action( $this->plugin_name . '_init_styles' );
8483
}
8584
}
8685

87-
public function register_fontawesome_style() {
88-
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
89-
wp_register_style( 'font-awesome-styles', $this->admin_plugin_url() . '/assets/css/font-awesome' . $suffix . '.css', array(), '4.5.0', 'all' );
90-
}
91-
9286
public function register_modal_scripts() {
9387
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
9488
wp_register_style( 'bootstrap-modal', $this->admin_plugin_url() . '/assets/css/modal' . $suffix . '.css', array(), '4.1.1', 'all' );
@@ -352,6 +346,7 @@ public function admin_includes() {
352346
/*-----------------------------------------------------------------------------------*/
353347
public function get_font_weights() {
354348
$font_weights = array (
349+
'' => __( 'Default' ),
355350
'300' => __( 'Thin', 'a3-lazy-load' ),
356351
'300 italic' => __( 'Thin/Italic', 'a3-lazy-load' ),
357352
'normal' => __( 'Normal', 'a3-lazy-load' ),
@@ -1035,7 +1030,7 @@ public function save_settings( $options, $option_name = '' ) {
10351030

10361031
public function reset_settings( $options, $option_name = '', $reset = false, $free_version = false ) {
10371032

1038-
if ( $reset ) {
1033+
if ( $reset && ! $free_version ) {
10391034
check_admin_referer( 'save_settings_' . $this->plugin_name );
10401035

10411036
if ( ! current_user_can( 'manage_options' ) ) {
@@ -2187,8 +2182,8 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-butt
21872182
data-confirm_message="<?php echo esc_attr( $confirm_message ); ?>"
21882183
<?php } ?>
21892184
><?php echo esc_html( $button_name ); ?></button>
2190-
<span class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-successed"><?php echo esc_html( $successed_text ); ?></span>
2191-
<span class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-errors"><?php echo esc_html( $errors_text ); ?></span>
2185+
<span class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-successed"><?php echo wp_kses_post( wptexturize( $successed_text ) ); ?></span>
2186+
<span class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-errors"><?php echo wp_kses_post( wptexturize( $errors_text ) ); ?></span>
21922187

21932188
<!-- Progress Bar -->
21942189
<?php if ( ! empty( $notice ) ) { ?>
@@ -2244,7 +2239,7 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-butt
22442239
<span class="a3rev-ui-statistic-separate">/</span>
22452240
<span class="a3rev-ui-statistic-total-item"><?php echo esc_html( $total_items ); ?></span>
22462241
<br />
2247-
<span class="a3rev-ui-statistic-item-name"><?php echo esc_html( $single_submit['item_name'] ); ?></span>
2242+
<span class="a3rev-ui-statistic-item-name"><?php echo wp_kses_post( wptexturize( $single_submit['item_name'] ) ); ?></span>
22482243
</div>
22492244
</div>
22502245
<?php
@@ -2773,6 +2768,7 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-size
27732768
id="<?php echo esc_attr( $id_attribute ); ?>-line_height"
27742769
class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-line_height chzn-select <?php if ( is_rtl() ) { echo 'chzn-rtl'; } ?>"
27752770
>
2771+
<option value="" selected="selected"><?php esc_html_e( 'Default' ); ?></option>
27762772
<?php
27772773
for ( $i = 0.6; $i <= 3.1; $i = $i + 0.1 ) {
27782774
?>

admin/admin-ui.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Admin_UI
3333
* You must change to correct plugin name that you are working
3434
*/
3535

36-
public $framework_version = '2.6.2';
36+
public $framework_version = '2.7.0';
3737
public $plugin_name = A3_LAZY_LOAD_KEY;
3838
public $plugin_path = A3_LAZY_LOAD_NAME;
3939
public $google_api_key_option = '';

0 commit comments

Comments
 (0)