Premium Addons for Elementor - Version 2.9.8

Version Description

  • Tweak: Added Margin option for fields in Premium Contact Form 7 widget.
Download this release

Release Info

Developer leap13
Plugin Icon 128x128 Premium Addons for Elementor
Version 2.9.8
Comparing to
See all releases

Code changes from version 2.9.7 to 2.9.8

admin/settings/version-control.php CHANGED
@@ -79,7 +79,7 @@ class PA_Version_Control {
79
<tr class="pa-roll-row">
80
<th>Rollback Version</th>
81
<td>
82
- <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.9.6</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
</td>
85
</tr>
79
<tr class="pa-roll-row">
80
<th>Rollback Version</th>
81
<td>
82
+ <div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 2.9.7</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
83
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
84
</td>
85
</tr>
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Premium Addons for Elementor
4
Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
- Version: 2.9.7
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
if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
24
// Define Constants
25
- define('PREMIUM_ADDONS_VERSION', '2.9.7');
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.9.6');
31
32
if( ! class_exists('Premium_Addons_Elementor') ) {
33
/*
3
Plugin Name: Premium Addons for Elementor
4
Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
+ Version: 2.9.8
7
Author: Leap13
8
Author URI: http://leap13.com/
9
Text Domain: premium-addons-for-elementor
22
if ( ! defined('ABSPATH') ) exit; // No access of directly access
23
24
// Define Constants
25
+ define('PREMIUM_ADDONS_VERSION', '2.9.8');
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.9.7');
31
32
if( ! class_exists('Premium_Addons_Elementor') ) {
33
/*
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
5
Requires at least: 4.5
6
Tested up to: 5.0.2
7
Requires PHP: 5.4
8
- Stable tag: 2.9.7
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
@@ -137,6 +137,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
137
138
== Changelog ==
139
140
= 2.9.7 =
141
142
- Tweak: Unnecessary `esc_html()` function removed to enhance performance.
5
Requires at least: 4.5
6
Tested up to: 5.0.2
7
Requires PHP: 5.4
8
+ Stable tag: 2.9.8
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
137
138
== Changelog ==
139
140
+ = 2.9.8 =
141
+
142
+ - Tweak: Added `Margin` option for fields in Premium Contact Form 7 widget.
143
+
144
= 2.9.7 =
145
146
- Tweak: Unnecessary `esc_html()` function removed to enhance performance.
widgets/premium-contactform.php CHANGED
@@ -258,18 +258,29 @@ class Premium_Contactform extends Widget_Base {
258
]
259
);
260
261
- $this->add_control(
262
'premium_elements_input_border_radius',
263
[
264
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
265
'type' => Controls_Manager::DIMENSIONS,
266
- 'separator' => 'before',
267
'size_units' => [ 'px' ],
268
'selectors' => [
269
'{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-text, {{WRAPPER}} .premium-elements-contact-form-container textarea.wpcf7-textarea' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
270
],
271
]
272
);
273
274
$this->add_control(
275
'premium_elements_input_focus',
@@ -483,7 +494,7 @@ class Premium_Contactform extends Widget_Base {
483
]
484
);
485
486
- $this->add_control(
487
'premium_elements_btn_border_radius',
488
[
489
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
258
]
259
);
260
261
+ $this->add_responsive_control(
262
'premium_elements_input_border_radius',
263
[
264
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),
265
'type' => Controls_Manager::DIMENSIONS,
266
'size_units' => [ 'px' ],
267
'selectors' => [
268
'{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-text, {{WRAPPER}} .premium-elements-contact-form-container textarea.wpcf7-textarea' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
269
],
270
]
271
);
272
+
273
+ $this->add_responsive_control(
274
+ 'premium_elements_input_margin',
275
+ [
276
+ 'label' => __( 'Margin', 'premium-addons-for-elementor' ),
277
+ 'type' => Controls_Manager::DIMENSIONS,
278
+ 'size_units' => [ 'px', 'em', '%' ],
279
+ 'selectors' => [
280
+ '{{WRAPPER}} .premium-elements-contact-form-container input.wpcf7-text, {{WRAPPER}} .premium-elements-contact-form-container textarea.wpcf7-textarea' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
281
+ ],
282
+ ]
283
+ );
284
285
$this->add_control(
286
'premium_elements_input_focus',
494
]
495
);
496
497
+ $this->add_responsive_control(
498
'premium_elements_btn_border_radius',
499
[
500
'label' => __( 'Border Radius', 'premium-addons-for-elementor' ),