Version Description
- Fix: Premium Fancy Text widget slide up effect bug.
- Fix: Premium Countdown widget expiration message special characters bug.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.2.1
- admin/settings-page.php +1 -1
- assets/js/premium-addons.js +5 -5
- premium-addons-for-elementor.php +3 -3
- readme.txt +6 -1
- widgets/premium-countdown.php +2 -2
admin/settings-page.php
CHANGED
@@ -356,7 +356,7 @@ class PA_admin_settings {
|
|
356 |
|
357 |
<tr class="pa-roll-row">
|
358 |
<th>Rollback Version</th>
|
359 |
-
<td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.
|
360 |
</tr>
|
361 |
<tr>
|
362 |
<th><h4 class="pa-beta-test">Become a Beta Tester</h4><span class="pa-beta-test-span">Turn-on Beta Tester, to get notified when a new beta version of Premium Addons for Elementor. The Beta version will not install automatically. You always have the option to ignore it.</span></th>
|
356 |
|
357 |
<tr class="pa-roll-row">
|
358 |
<th>Rollback Version</th>
|
359 |
+
<td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.2.0</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div><p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p></td>
|
360 |
</tr>
|
361 |
<tr>
|
362 |
<th><h4 class="pa-beta-test">Become a Beta Tester</h4><span class="pa-beta-test-span">Turn-on Beta Tester, to get notified when a new beta version of Premium Addons for Elementor. The Beta version will not install automatically. You always have the option to ignore it.</span></th>
|
assets/js/premium-addons.js
CHANGED
@@ -162,10 +162,6 @@
|
|
162 |
var PremiumFancyTextHandler = function($scope,$){
|
163 |
var fancyTextElement = $scope.find('.premium-fancy-text-wrapper');
|
164 |
var fancyTextSettings = fancyTextElement.data('settings');
|
165 |
-
var fancyStrings = [];
|
166 |
-
fancyTextSettings['strings'].forEach(function(item){
|
167 |
-
fancyStrings.push(escapeHtml(item));
|
168 |
-
});
|
169 |
function escapeHtml(unsafe) {
|
170 |
return unsafe
|
171 |
.replace(/&/g, "&")
|
@@ -175,6 +171,10 @@
|
|
175 |
.replace(/'/g, "'");
|
176 |
}
|
177 |
if(fancyTextSettings['effect'] === 'typing'){
|
|
|
|
|
|
|
|
|
178 |
fancyTextElement.find('.premium-fancy-text').typed( {
|
179 |
strings: fancyStrings,
|
180 |
typeSpeed: fancyTextSettings['typeSpeed'],
|
@@ -194,7 +194,7 @@
|
|
194 |
direction: "up"
|
195 |
});
|
196 |
}
|
197 |
-
};
|
198 |
//Premium Countdown Handler
|
199 |
var PremiumCountDownHandler = function ($scope,$){
|
200 |
var countDownElement = $scope.find('.premium-countdown').each(function(){
|
162 |
var PremiumFancyTextHandler = function($scope,$){
|
163 |
var fancyTextElement = $scope.find('.premium-fancy-text-wrapper');
|
164 |
var fancyTextSettings = fancyTextElement.data('settings');
|
|
|
|
|
|
|
|
|
165 |
function escapeHtml(unsafe) {
|
166 |
return unsafe
|
167 |
.replace(/&/g, "&")
|
171 |
.replace(/'/g, "'");
|
172 |
}
|
173 |
if(fancyTextSettings['effect'] === 'typing'){
|
174 |
+
var fancyStrings = [];
|
175 |
+
fancyTextSettings['strings'].forEach(function(item){
|
176 |
+
fancyStrings.push(escapeHtml(item));
|
177 |
+
});
|
178 |
fancyTextElement.find('.premium-fancy-text').typed( {
|
179 |
strings: fancyStrings,
|
180 |
typeSpeed: fancyTextSettings['typeSpeed'],
|
194 |
direction: "up"
|
195 |
});
|
196 |
}
|
197 |
+
};
|
198 |
//Premium Countdown Handler
|
199 |
var PremiumCountDownHandler = function ($scope,$){
|
200 |
var countDownElement = $scope.find('.premium-countdown').each(function(){
|
premium-addons-for-elementor.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
-
Version: 2.2.
|
7 |
Author: Leap13
|
8 |
Author URI: http://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
@@ -22,12 +22,12 @@ if( !function_exists('add_action') ) {
|
|
22 |
|
23 |
if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
|
24 |
|
25 |
-
define( 'PREMIUM_ADDONS_VERSION', '2.2.
|
26 |
define( 'PREMIUM_ADDONS_URL', plugins_url('/', __FILE__ ) );
|
27 |
define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
|
28 |
define( 'PREMIUM_ADDONS_FILE', __FILE__ );
|
29 |
define( 'PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
|
30 |
-
define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.
|
31 |
|
32 |
|
33 |
/**
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 20 premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
+
Version: 2.2.1
|
7 |
Author: Leap13
|
8 |
Author URI: http://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
22 |
|
23 |
if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
|
24 |
|
25 |
+
define( 'PREMIUM_ADDONS_VERSION', '2.2.1' );
|
26 |
define( 'PREMIUM_ADDONS_URL', plugins_url('/', __FILE__ ) );
|
27 |
define( 'PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
|
28 |
define( 'PREMIUM_ADDONS_FILE', __FILE__ );
|
29 |
define( 'PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
|
30 |
+
define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.2.0');
|
31 |
|
32 |
|
33 |
/**
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.5
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 2.2.
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
@@ -99,6 +99,11 @@ Premium Addons for Elementor is light weight and we also gave you the control to
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
|
|
|
|
102 |
= 2.2.0 =
|
103 |
|
104 |
- Tweak: Added image alt text option for images in Premium Grid widget.
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.5
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 2.2.1
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 2.2.1 =
|
103 |
+
|
104 |
+
- Fix: Premium Fancy Text widget slide up effect bug.
|
105 |
+
- Fix: Premium Countdown widget expiration message special characters bug.
|
106 |
+
|
107 |
= 2.2.0 =
|
108 |
|
109 |
- Tweak: Added image alt text option for images in Premium Grid widget.
|
widgets/premium-countdown.php
CHANGED
@@ -478,7 +478,7 @@ class Premium_Counter_Down_Widget extends Widget_Base {
|
|
478 |
$ss = !empty( $settings['premium_countdown_second_plural'] ) ? $settings['premium_countdown_second_plural'] : 'Seconds';
|
479 |
$labels1 = $ys."," . $ms ."," . $ws ."," . $ds ."," . $hs ."," . $mis ."," . $ss;
|
480 |
|
481 |
-
$expire_text =
|
482 |
|
483 |
$pcdt_style = $settings['premium_countdown_style'] == 'd-u-s' ? ' side' : ' down';
|
484 |
|
@@ -509,4 +509,4 @@ class Premium_Counter_Down_Widget extends Widget_Base {
|
|
509 |
}
|
510 |
}
|
511 |
|
512 |
-
Plugin::instance()->widgets_manager->register_widget_type( new Premium_Counter_Down_Widget() );
|
478 |
$ss = !empty( $settings['premium_countdown_second_plural'] ) ? $settings['premium_countdown_second_plural'] : 'Seconds';
|
479 |
$labels1 = $ys."," . $ms ."," . $ws ."," . $ds ."," . $hs ."," . $mis ."," . $ss;
|
480 |
|
481 |
+
$expire_text = $settings['premium_countdown_expiry_text_'];
|
482 |
|
483 |
$pcdt_style = $settings['premium_countdown_style'] == 'd-u-s' ? ' side' : ' down';
|
484 |
|
509 |
}
|
510 |
}
|
511 |
|
512 |
+
Plugin::instance()->widgets_manager->register_widget_type( new Premium_Counter_Down_Widget() );
|