Premium Addons for Elementor - Version 3.9.0

Version Description

  • Tweak: Added Box Shadow option for digits in Countdown widget.
Download this release

Release Info

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

Code changes from version 3.8.9 to 3.9.0

admin/assets/css/notice.css CHANGED
@@ -34,16 +34,10 @@
34
width: 40px;
35
margin-right: 0.8em;
36
}
37
- .pa-new-feature-notice .pa-text-wrap .pa-notice-cta {
38
- -webkit-box-flex: 2;
39
- -webkit-flex-grow: 2;
40
- -ms-flex-positive: 2;
41
- flex-grow: 2;
42
- }
43
.pa-new-feature-notice .pa-text-wrap .pa-notice-close {
44
text-decoration: none;
45
margin-left: 1em;
46
- float: right;
47
}
48
.error .pa-text-wrap a:focus {
49
box-shadow: none;
34
width: 40px;
35
margin-right: 0.8em;
36
}
37
.pa-new-feature-notice .pa-text-wrap .pa-notice-close {
38
text-decoration: none;
39
margin-left: 1em;
40
+ margin-left: auto;
41
}
42
.error .pa-text-wrap a:focus {
43
box-shadow: none;
admin/includes/admin-notices.php CHANGED
@@ -41,6 +41,8 @@ class Admin_Notices {
41
42
// $this->handle_det_notice();
43
44
}
45
46
/**
@@ -58,6 +60,8 @@ class Admin_Notices {
58
$this->get_review_notice();
59
}
60
61
// $this->get_det_notice();
62
63
}
@@ -133,6 +137,31 @@ class Admin_Notices {
133
exit;
134
}
135
136
/**
137
* Required plugin check
138
*
@@ -273,6 +302,52 @@ class Admin_Notices {
273
274
}
275
276
/**
277
*
278
* Shows an admin notice for Disable Elementor Translation.
41
42
// $this->handle_det_notice();
43
44
+ $this->handle_bf_notice();
45
+
46
}
47
48
/**
60
$this->get_review_notice();
61
}
62
63
+ $this->get_bf_notice();
64
+
65
// $this->get_det_notice();
66
67
}
137
exit;
138
}
139
140
+ /**
141
+ *
142
+ * Checks if Black Friday message is dismissed.
143
+ *
144
+ * @access public
145
+ * @return void
146
+ *
147
+ */
148
+ public function handle_bf_notice() {
149
+
150
+ if ( ! isset( $_GET['papro_bf'] ) ) {
151
+ return;
152
+ }
153
+
154
+ if ( 'opt_out' === $_GET['papro_bf'] ) {
155
+ check_admin_referer( 'opt_out' );
156
+
157
+ update_option( 'papro_bf_notice', '1' );
158
+ }
159
+
160
+ wp_redirect( remove_query_arg( 'papro_bf' ) );
161
+
162
+ exit;
163
+ }
164
+
165
/**
166
* Required plugin check
167
*
302
303
}
304
305
+ /**
306
+ *
307
+ * Shows an admin notice for Black Friday.
308
+ *
309
+ * @since 2.7.6
310
+ * @return void
311
+ *
312
+ */
313
+ public function get_bf_notice() {
314
+
315
+ $papro_path = 'premium-addons-pro/premium-addons-pro-for-elementor.php';
316
+
317
+ $is_papro_installed = Helper_Functions::is_plugin_installed( $papro_path );
318
+
319
+ $license_status = get_option( 'papro_license_status' );
320
+
321
+ if( $is_papro_installed && 'valid' === $license_status )
322
+ return;
323
+
324
+ $theme = Helper_Functions::get_installed_theme();
325
+
326
+ $link = sprintf( 'https://premiumaddons.com/black-friday?utm_source=black-friday-2019-notification&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme );
327
+
328
+ $bf_notice = get_option( 'papro_bf_notice' );
329
+
330
+ if ( '1' === $bf_notice ) {
331
+ return;
332
+ } else if ( '1' !== $bf_notice ) {
333
+ $optout_url = wp_nonce_url( add_query_arg( 'papro_bf', 'opt_out' ), 'opt_out' );
334
+
335
+ $message = '<p class="pa-text-wrap">';
336
+
337
+ $message .= sprintf( '<img class="pa-notice-logo" src="%s">', PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png' );
338
+
339
+ $message .= sprintf( '<strong>%s</strong><span>%s</span>' , __( '2019 Black Friday Sale!.&nbsp;', 'premium-addons-for-elementor' ), __('Early Exclusive Access to Our Secret Deal.&nbsp;', 'premium-addons-for-elementor') );
340
+
341
+ $message .= sprintf( '<a class="pa-notice-cta" href="%s" target="_blank">%s</a>', $link , __( 'Check it Out', 'premium-addons-for-elementor' ) );
342
+
343
+ $message .= sprintf( __('<a class="pa-notice-close" href="%s"><span class="dashicons dashicons-dismiss"></span></a></p>', 'premium-addons-for-elementor'), $optout_url );
344
+
345
+ $this->render_admin_notices( $message );
346
+
347
+ }
348
+
349
+ }
350
+
351
/**
352
*
353
* Shows an admin notice for Disable Elementor Translation.
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Premium Addons for Elementor
4
Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
- Version: 3.8.9
7
Author: Leap13
8
Author URI: https://leap13.com/
9
Text Domain: premium-addons-for-elementor
@@ -14,12 +14,12 @@ License: GNU General Public License v3.0
14
if ( ! defined('ABSPATH') ) exit; // No access of directly access
15
16
// Define Constants
17
- define('PREMIUM_ADDONS_VERSION', '3.8.9');
18
define('PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
19
define('PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
20
define('PREMIUM_ADDONS_FILE', __FILE__);
21
define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
22
- define('PREMIUM_ADDONS_STABLE_VERSION', '3.8.8');
23
24
if( ! class_exists('Premium_Addons_Elementor') ) {
25
3
Plugin Name: Premium Addons for Elementor
4
Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
5
Plugin URI: https://premiumaddons.com
6
+ Version: 3.9.0
7
Author: Leap13
8
Author URI: https://leap13.com/
9
Text Domain: premium-addons-for-elementor
14
if ( ! defined('ABSPATH') ) exit; // No access of directly access
15
16
// Define Constants
17
+ define('PREMIUM_ADDONS_VERSION', '3.9.0');
18
define('PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
19
define('PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
20
define('PREMIUM_ADDONS_FILE', __FILE__);
21
define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
22
+ define('PREMIUM_ADDONS_STABLE_VERSION', '3.8.9');
23
24
if( ! class_exists('Premium_Addons_Elementor') ) {
25
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate Link: https://premiumaddons.com/?utm_source=wp-repo&utm_medium=link&utm_c
5
Requires at Least: 4.5
6
Tested Up To: 5.3
7
Requires PHP: 5.4
8
- Stable Tag: 3.8.9
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
@@ -175,6 +175,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
175
176
== Changelog ==
177
178
= 3.8.9 =
179
180
- Tweak: Added `Digits Separator` option in Countdown widget.
5
Requires at Least: 4.5
6
Tested Up To: 5.3
7
Requires PHP: 5.4
8
+ Stable Tag: 3.9.0
9
License: GPL v3.0
10
License URI: https://opensource.org/licenses/GPL-3.0
11
175
176
== Changelog ==
177
178
+ = 3.9.0 =
179
+
180
+ - Tweak: Added `Box Shadow` option for digits in Countdown widget.
181
+
182
= 3.8.9 =
183
184
- Tweak: Added `Digits Separator` option in Countdown widget.
widgets/premium-countdown.php CHANGED
@@ -10,6 +10,7 @@ use Elementor\Scheme_Color;
10
use Elementor\Scheme_Typography;
11
use Elementor\Group_Control_Border;
12
use Elementor\Group_Control_Typography;
13
14
if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
15
@@ -433,6 +434,14 @@ class Premium_Countdown extends Widget_Base {
433
]
434
);
435
436
$this->add_responsive_control(
437
'premium_countdown_digit_bg_size',
438
[
@@ -495,6 +504,15 @@ class Premium_Countdown extends Widget_Base {
495
]
496
);
497
498
$this->add_control(
499
'premium_countdown_unit_backcolor',
500
[
@@ -506,17 +524,7 @@ class Premium_Countdown extends Widget_Base {
506
]
507
);
508
509
- $this->add_group_control(
510
- Group_Control_Typography::get_type(),
511
- [
512
- 'name' => 'premium_countdown_unit_typo',
513
- 'scheme' => Scheme_Typography::TYPOGRAPHY_3,
514
- 'selector' => '{{WRAPPER}} .countdown .pre_countdown-section .pre_countdown-period',
515
- 'separator' => 'after'
516
- ]
517
- );
518
-
519
- $this->add_responsive_control(
520
'premium_countdown_separator_width',
521
[
522
'label' => __( 'Spacing in Between', 'premium-addons-for-elementor' ),
10
use Elementor\Scheme_Typography;
11
use Elementor\Group_Control_Border;
12
use Elementor\Group_Control_Typography;
13
+ use Elementor\Group_Control_Box_Shadow;
14
15
if( !defined( 'ABSPATH' ) ) exit; // No access of directly access
16
434
]
435
);
436
437
+ $this->add_group_control(
438
+ Group_Control_Box_Shadow::get_type(),
439
+ [
440
+ 'name' => 'premium_countdown_units_shadow',
441
+ 'selector' => '{{WRAPPER}} .countdown .pre_countdown-section',
442
+ ]
443
+ );
444
+
445
$this->add_responsive_control(
446
'premium_countdown_digit_bg_size',
447
[
504
]
505
);
506
507
+ $this->add_group_control(
508
+ Group_Control_Typography::get_type(),
509
+ [
510
+ 'name' => 'premium_countdown_unit_typo',
511
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_3,
512
+ 'selector' => '{{WRAPPER}} .countdown .pre_countdown-section .pre_countdown-period',
513
+ ]
514
+ );
515
+
516
$this->add_control(
517
'premium_countdown_unit_backcolor',
518
[
524
]
525
);
526
527
+ $this->add_responsive_control(
528
'premium_countdown_separator_width',
529
[
530
'label' => __( 'Spacing in Between', 'premium-addons-for-elementor' ),
widgets/premium-counter.php CHANGED
@@ -293,7 +293,7 @@ class Premium_Counter extends Widget_Base {
293
'type' => Controls_Manager::COLOR,
294
'scheme' => [
295
'type' => Scheme_Color::get_type(),
296
- 'value' => Scheme_Color::COLOR_1,
297
],
298
'condition' => [
299
'premium_counter_icon_style!' => 'simple'
293
'type' => Controls_Manager::COLOR,
294
'scheme' => [
295
'type' => Scheme_Color::get_type(),
296
+ 'value' => Scheme_Color::COLOR_2,
297
],
298
'condition' => [
299
'premium_counter_icon_style!' => 'simple'