Version Description
- Fix: Javascript caching bug.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 2.3.4 |
Comparing to | |
See all releases |
Code changes from version 2.3.3 to 2.3.4
- admin/settings-page.php +1 -1
- includes/beta-testers.php +2 -2
- premium-addons-for-elementor.php +12 -13
- readme.txt +5 -1
admin/settings-page.php
CHANGED
@@ -373,7 +373,7 @@ class PA_admin_settings {
|
|
373 |
|
374 |
<tr class="pa-roll-row">
|
375 |
<th>Rollback Version</th>
|
376 |
-
<td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.3.
|
377 |
</tr>
|
378 |
<tr>
|
379 |
<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>
|
373 |
|
374 |
<tr class="pa-roll-row">
|
375 |
<th>Rollback Version</th>
|
376 |
+
<td><div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.3.3</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>
|
377 |
</tr>
|
378 |
<tr>
|
379 |
<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>
|
includes/beta-testers.php
CHANGED
@@ -48,8 +48,8 @@ class PA_Beta_Testers {
|
|
48 |
return $transient;
|
49 |
}
|
50 |
public function __construct() {
|
51 |
-
$check_component_active = get_option( 'pa_save_settings' );
|
52 |
-
if ( 0 !== $check_component_active
|
53 |
return;
|
54 |
}
|
55 |
|
48 |
return $transient;
|
49 |
}
|
50 |
public function __construct() {
|
51 |
+
$check_component_active = isset(get_option( 'pa_save_settings' )['is-beta-tester']) ? get_option( 'pa_save_settings' )['is-beta-tester'] : 1;
|
52 |
+
if ( 0 !== $check_component_active ) {
|
53 |
return;
|
54 |
}
|
55 |
|
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.3.
|
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.3.
|
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.3.
|
31 |
|
32 |
|
33 |
/**
|
@@ -83,13 +83,15 @@ define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.3.2');
|
|
83 |
if (get_option('pa_activation_redirect', false)) {
|
84 |
delete_option('pa_activation_redirect');
|
85 |
if (!is_network_admin()) {
|
86 |
-
|
87 |
}
|
88 |
}
|
89 |
};
|
90 |
|
91 |
class premium_Addon_Elementor {
|
92 |
|
|
|
|
|
93 |
/**
|
94 |
* Load all the hooks here
|
95 |
* @since 1.0
|
@@ -109,7 +111,7 @@ define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.3.2');
|
|
109 |
*/
|
110 |
public function premium_addons_register_styles(){
|
111 |
wp_register_style('premium-addons', PREMIUM_ADDONS_URL . 'assets/css/premium-addons.css', array(), PREMIUM_ADDONS_VERSION, 'all');
|
112 |
-
$check_grid_active = get_option('pa_save_settings')['premium-grid'];
|
113 |
if($check_grid_active){
|
114 |
wp_register_style('pa-prettyphoto', PREMIUM_ADDONS_URL . 'assets/css/prettyphoto.css', array(), PREMIUM_ADDONS_VERSION, 'all');
|
115 |
}
|
@@ -120,7 +122,7 @@ define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.3.2');
|
|
120 |
*/
|
121 |
public function premium_addons_enqueue_styles(){
|
122 |
wp_enqueue_style('premium-addons');
|
123 |
-
$check_grid_active = get_option('pa_save_settings')['premium-grid'];
|
124 |
if($check_grid_active){
|
125 |
wp_enqueue_style('pa-prettyphoto');
|
126 |
}
|
@@ -139,7 +141,9 @@ define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.3.2');
|
|
139 |
}
|
140 |
|
141 |
public function premium_addons_register_scripts(){
|
142 |
-
$
|
|
|
|
|
143 |
|
144 |
if( $check_component_active['premium-progressbar'] ) {
|
145 |
wp_register_script( 'premium-addons-js', PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js', array( 'jquery' ), PREMIUM_ADDONS_VERSION, true );
|
@@ -192,17 +196,13 @@ define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.3.2');
|
|
192 |
}
|
193 |
}
|
194 |
|
195 |
-
|
196 |
public function premium_addons_widget_register() {
|
197 |
$this->initiate_elementor_addons();
|
198 |
$this->premium_addons_widgets_area();
|
199 |
}
|
200 |
|
201 |
private function premium_addons_widgets_area() {
|
202 |
-
$
|
203 |
-
|
204 |
-
$pa_default_settings = array_fill_keys( $pa_elements_keys, true );
|
205 |
-
|
206 |
$check_component_active = get_option( 'pa_save_settings', $pa_default_settings );
|
207 |
|
208 |
foreach($check_component_active as $element_name => $element_active){
|
@@ -215,7 +215,6 @@ define( 'PREMIUM_ADDONS_STABLE_VERSION', '2.3.2');
|
|
215 |
require_once (PREMIUM_ADDONS_PATH . 'widgets/' . $element_name . '.php');
|
216 |
}
|
217 |
}
|
218 |
-
|
219 |
}
|
220 |
|
221 |
public function initiate_elementor_addons() {
|
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.3.4
|
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.3.4' );
|
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.3.3');
|
31 |
|
32 |
|
33 |
/**
|
83 |
if (get_option('pa_activation_redirect', false)) {
|
84 |
delete_option('pa_activation_redirect');
|
85 |
if (!is_network_admin()) {
|
86 |
+
wp_redirect("admin.php?page=pa-settings-page");
|
87 |
}
|
88 |
}
|
89 |
};
|
90 |
|
91 |
class premium_Addon_Elementor {
|
92 |
|
93 |
+
protected $pa_elements_keys = ['premium-banner', 'premium-blog','premium-carousel', 'premium-countdown','premium-counter','premium-dual-header','premium-fancytext','premium-image-separator','premium-maps','premium-modalbox','premium-person','premium-progressbar','premium-testimonials','premium-title','premium-videobox', 'premium-pricing-table', 'premium-contactform', 'premium-button', 'premium-image-button','premium-grid'];
|
94 |
+
|
95 |
/**
|
96 |
* Load all the hooks here
|
97 |
* @since 1.0
|
111 |
*/
|
112 |
public function premium_addons_register_styles(){
|
113 |
wp_register_style('premium-addons', PREMIUM_ADDONS_URL . 'assets/css/premium-addons.css', array(), PREMIUM_ADDONS_VERSION, 'all');
|
114 |
+
$check_grid_active = isset(get_option('pa_save_settings')['premium-grid']) ? get_option('pa_save_settings')['premium-grid']: true;
|
115 |
if($check_grid_active){
|
116 |
wp_register_style('pa-prettyphoto', PREMIUM_ADDONS_URL . 'assets/css/prettyphoto.css', array(), PREMIUM_ADDONS_VERSION, 'all');
|
117 |
}
|
122 |
*/
|
123 |
public function premium_addons_enqueue_styles(){
|
124 |
wp_enqueue_style('premium-addons');
|
125 |
+
$check_grid_active = isset(get_option('pa_save_settings')['premium-grid']) ? get_option('pa_save_settings')['premium-grid']: true;
|
126 |
if($check_grid_active){
|
127 |
wp_enqueue_style('pa-prettyphoto');
|
128 |
}
|
141 |
}
|
142 |
|
143 |
public function premium_addons_register_scripts(){
|
144 |
+
$pa_default_settings = array_fill_keys($this->pa_elements_keys, true);
|
145 |
+
|
146 |
+
$check_component_active = get_option('pa_save_settings', $pa_default_settings);
|
147 |
|
148 |
if( $check_component_active['premium-progressbar'] ) {
|
149 |
wp_register_script( 'premium-addons-js', PREMIUM_ADDONS_URL . 'assets/js/premium-addons.js', array( 'jquery' ), PREMIUM_ADDONS_VERSION, true );
|
196 |
}
|
197 |
}
|
198 |
|
|
|
199 |
public function premium_addons_widget_register() {
|
200 |
$this->initiate_elementor_addons();
|
201 |
$this->premium_addons_widgets_area();
|
202 |
}
|
203 |
|
204 |
private function premium_addons_widgets_area() {
|
205 |
+
$pa_default_settings = array_fill_keys( $this->pa_elements_keys, true );
|
|
|
|
|
|
|
206 |
$check_component_active = get_option( 'pa_save_settings', $pa_default_settings );
|
207 |
|
208 |
foreach($check_component_active as $element_name => $element_active){
|
215 |
require_once (PREMIUM_ADDONS_PATH . 'widgets/' . $element_name . '.php');
|
216 |
}
|
217 |
}
|
|
|
218 |
}
|
219 |
|
220 |
public function initiate_elementor_addons() {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.6
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 2.3.
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
@@ -99,6 +99,10 @@ Premium Addons for Elementor is light weight and we also gave you the control to
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
|
|
102 |
= 2.3.3 =
|
103 |
|
104 |
- Tweak: Added slashed price option to Premium Pricing Table widget.
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.9.6
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 2.3.4
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 2.3.4 =
|
103 |
+
|
104 |
+
- Fix: Javascript caching bug.
|
105 |
+
|
106 |
= 2.3.3 =
|
107 |
|
108 |
- Tweak: Added slashed price option to Premium Pricing Table widget.
|