Premium Addons for Elementor - Version 2.8.2

Version Description

  • Fixed: Navigation arrows issue in Premium Carousel widget.
Download this release

Release Info

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

Code changes from version 2.8.1 to 2.8.2

admin/assets/notice.css CHANGED
@@ -5,6 +5,7 @@
5
  margin: 0;
6
  min-height: 120px;
7
  padding-right: 1em;
 
8
  }
9
  .error.pa-notice-wrap div {
10
  padding: 0;
@@ -16,6 +17,10 @@
16
  min-height: 120px;
17
  padding: 0 0.7em;
18
  }
 
 
 
 
19
  .error.pa-notice-wrap .pa-text-wrap {
20
  padding-top: 0.3em;
21
  }
@@ -35,6 +40,21 @@
35
  .error.pa-notice-wrap .pa-text-wrap a:first-of-type {
36
  background: #0f6aa7
37
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  .error.pa-notice-wrap .pa-text-wrap a:not(:first-of-type) {
39
  margin-left: 0.3em;
40
  }
5
  margin: 0;
6
  min-height: 120px;
7
  padding-right: 1em;
8
+ align-items: center;
9
  }
10
  .error.pa-notice-wrap div {
11
  padding: 0;
17
  min-height: 120px;
18
  padding: 0 0.7em;
19
  }
20
+ .error.pa-black-notice,
21
+ .error.pa-black-notice .pa-img-wrap {
22
+ min-height: auto;
23
+ }
24
  .error.pa-notice-wrap .pa-text-wrap {
25
  padding-top: 0.3em;
26
  }
40
  .error.pa-notice-wrap .pa-text-wrap a:first-of-type {
41
  background: #0f6aa7
42
  }
43
+ .error.pa-black-notice .pa-text-wrap a:first-of-type {
44
+ background: transparent;
45
+ text-transform: none;
46
+
47
+ }
48
+ .error.pa-black-notice .pa-text-wrap a {
49
+ margin: 0;
50
+ padding: 0;
51
+ }
52
+ .pa-notice-close {
53
+ flex-basis: 56%;
54
+ }
55
+ .pa-notice-close span {
56
+ float: right;
57
+ }
58
  .error.pa-notice-wrap .pa-text-wrap a:not(:first-of-type) {
59
  margin-left: 0.3em;
60
  }
admin/includes/notices.php CHANGED
@@ -23,10 +23,9 @@ class Premium_Admin_Notices {
23
  * init required functions
24
  */
25
  public function init(){
26
- // $this->handle_get_pro_notice();
27
  $this->handle_review_notice();
28
- $this->handle_multi_scroll_notice();
29
- $this->handle_vertical_scroll_notice();
30
  }
31
 
32
  /**
@@ -35,33 +34,31 @@ class Premium_Admin_Notices {
35
  public function check_admin_notices() {
36
  $this->required_plugins_check();
37
  $this->get_review_notice();
38
- // $this->get_pro_notice();
39
- $this->get_multi_scroll_notice();
40
- $this->get_vertical_scroll_notice();
41
  }
42
 
43
  /**
44
- * Checks if get pro version message is dismissed.
45
  * @access public
46
  * @return void
47
  */
48
- public function handle_get_pro_notice() {
49
 
50
- if ( ! isset( $_GET['get_pa_pro'] ) ) {
51
  return;
52
  }
53
 
54
- if ( 'opt_out' === $_GET['get_pa_pro'] ) {
55
  check_admin_referer( 'opt_out' );
56
 
57
- update_option( 'get_pa_pro_notice', '1' );
58
  }
59
 
60
- wp_redirect( remove_query_arg( 'get_pa_pro' ) );
61
  exit;
62
  }
63
-
64
-
65
  /**
66
  * Checks if review message is dismissed.
67
  * @access public
@@ -82,27 +79,7 @@ class Premium_Admin_Notices {
82
  wp_redirect( remove_query_arg( 'pa_review' ) );
83
  exit;
84
  }
85
-
86
- /**
87
- * Checks if multi scroll message is dismissed.
88
- * @access public
89
- * @return void
90
- */
91
- public function handle_multi_scroll_notice() {
92
- if ( ! isset( $_GET['pro_scroll'] ) ) {
93
- return;
94
- }
95
-
96
- if ( 'opt_out' === $_GET['pro_scroll'] ) {
97
- check_admin_referer( 'opt_out' );
98
-
99
- update_option( 'pro_scroll_notice', '1' );
100
- }
101
-
102
- wp_redirect( remove_query_arg( 'pro_scroll' ) );
103
- exit;
104
- }
105
-
106
  /**
107
  * Checks if vertical scroll message is dismissed.
108
  * @access public
@@ -176,7 +153,7 @@ class Premium_Admin_Notices {
176
  } else if ( '1' !== $review ) {
177
  $optout_url = wp_nonce_url( add_query_arg( 'pa_review', 'opt_out' ), 'opt_out' );
178
 
179
- $review_message = sprintf( __('<div class="error pa-notice-wrap"><div class="pa-img-wrap"><img src="%s"></div><div class="pa-text-wrap"><p>Did you like<strong>&nbspPremium Addons for Elementor&nbsp</strong>Plugin?<span></p><p>Could you please do us a BIG favor ? if you could take 2 min of your time, we\'d really appreaciate if you give Premium Addons for Elementor 5-star rating on WordPress. By spreading the love, we can create even greater free stuff in the future!</p><p><a class="button button-primary" href="%s" target="_blank"><span><i class="dashicons dashicons-external"></i>Leave a Review</span></a><a class="button button-secondary" href="%s"><span><i class="dashicons dashicons-calendar-alt"></i>Maybe Later</span></a><a class="button button-secondary" href="%s"><span><i class="dashicons dashicons-smiley"></i>I Already did</span></a></p></div></div>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png' ,$review_url, $optout_url, $optout_url );
180
 
181
  }
182
 
@@ -184,69 +161,37 @@ class Premium_Admin_Notices {
184
 
185
  echo $review_message;
186
  }
187
-
188
-
189
  /**
190
  * Shows an admin notice when Elementor is missing.
191
  * @since 2.6.8
192
  * @return void
193
  */
194
- public function get_pro_notice() {
195
 
196
  $pro_path = 'premium-addons-pro/premium-addons-pro-for-elementor.php';
197
 
198
  $theme = self::get_installed_theme();
199
 
200
- $url = sprintf( 'https://premiumaddons.com/pro/?utm_source=notification&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme );
201
 
202
  if ( ! self::is_plugin_installed( $pro_path ) && current_user_can( 'install_plugins' ) ) {
203
 
204
- $get_pro = get_option( 'get_pa_pro_notice' );
205
 
206
- if ( '1' === $get_pro ) {
207
  return;
208
- } else if ( '1' !== $get_pro ) {
209
- $optout_url = wp_nonce_url( add_query_arg( 'get_pa_pro', 'opt_out' ), 'opt_out' );
210
 
211
- $message = sprintf( __('<p style="display: flex; align-items: center; padding:10px 10px 10px 0;"><img src="%s" style="margin-right: 0.8em; width: 40px;"><strong>Premium Addons PRO&nbsp</strong><span> is now available!&nbsp</span><a href="%s" target="_blank" style="flex-grow: 2;"> Check it out now.</a>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png' ,$url );
212
 
213
  }
214
 
215
- $message .= sprintf(__('<a href="%s" style="text-decoration: none; margin-left: 1em; float:right; "><span class="dashicons dashicons-dismiss"></span></a></p>', 'premium-addons-for-elementor'), $optout_url );
216
-
217
- $this->render_admin_notices( $message );
218
-
219
- }
220
- }
221
-
222
- /**
223
- * Shows an admin notice for multi scroll.
224
- * @since 2.7.0
225
- * @return void
226
- */
227
- public function get_multi_scroll_notice() {
228
-
229
- $scroll_notice = get_option( 'pro_scroll_notice' );
230
-
231
- $theme = self::get_installed_theme();
232
-
233
- $notice_url = sprintf( 'https://premiumaddons.com/multi-scroll-widget-for-elementor-page-builder?utm_source=multiscroll-notification&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme );
234
-
235
- if ( '1' === $scroll_notice ) {
236
- return;
237
- } else if ( '1' !== $scroll_notice ) {
238
- $optout_url = wp_nonce_url( add_query_arg( 'pro_scroll', 'opt_out' ), 'opt_out' );
239
-
240
- $scroll_message = sprintf( __('<p style="display: flex; align-items: center; padding:10px 10px 10px 0;"><img src="%s" style="margin-right: 0.8em; width: 40px;"><span>NEW!&nbsp</span><strong><span>Multi-Scroll Widget for Elementor&nbsp</strong>is Now Available in Premium Addons PRO.&nbsp</span><a href="%s" target="_blank" style="flex-grow: 2;"> Check it out now.</a>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png', $notice_url );
241
 
242
  }
243
-
244
- $scroll_message .= sprintf(__('<a href="%s" style="text-decoration: none; margin-left: 1em; float:right; "><span class="dashicons dashicons-dismiss"></span></a></p>', 'premium-addons-for-elementor'), $optout_url );
245
-
246
- $this->render_admin_notices( $scroll_message );
247
-
248
  }
249
-
250
 
251
  /**
252
  * Shows an admin notice for vertical scroll.
23
  * init required functions
24
  */
25
  public function init(){
 
26
  $this->handle_review_notice();
27
+ // $this->handle_vertical_scroll_notice();
28
+ $this->handle_black_notice();
29
  }
30
 
31
  /**
34
  public function check_admin_notices() {
35
  $this->required_plugins_check();
36
  $this->get_review_notice();
37
+ // $this->get_vertical_scroll_notice();
38
+ $this->get_black_notice();
 
39
  }
40
 
41
  /**
42
+ * Checks if get black friday sale message is dismissed.
43
  * @access public
44
  * @return void
45
  */
46
+ public function handle_black_notice() {
47
 
48
+ if ( ! isset( $_GET['get_pro_black'] ) ) {
49
  return;
50
  }
51
 
52
+ if ( 'opt_out' === $_GET['get_pro_black'] ) {
53
  check_admin_referer( 'opt_out' );
54
 
55
+ update_option( 'get_pro_black_notice', '1' );
56
  }
57
 
58
+ wp_redirect( remove_query_arg( 'get_pro_black' ) );
59
  exit;
60
  }
61
+
 
62
  /**
63
  * Checks if review message is dismissed.
64
  * @access public
79
  wp_redirect( remove_query_arg( 'pa_review' ) );
80
  exit;
81
  }
82
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  /**
84
  * Checks if vertical scroll message is dismissed.
85
  * @access public
153
  } else if ( '1' !== $review ) {
154
  $optout_url = wp_nonce_url( add_query_arg( 'pa_review', 'opt_out' ), 'opt_out' );
155
 
156
+ $review_message = sprintf( __('<div class="error pa-notice-wrap"><div class="pa-img-wrap"><img src="%s"></div><div class="pa-text-wrap"><p>Did you like<strong>&nbspPremium Addons for Elementor&nbsp</strong>Plugin?<span></p><p>Could you please do us a BIG favor ? if you could take 2 min of your time, we\'d really appreaciate if you give Premium Addons for Elementor 5-star rating on WordPress. By spreading the love, we can create even greater free stuff in the future!</p><p><a class="button button-primary" href="%s" target="_blank"><span><i class="dashicons dashicons-external"></i>Leave a Review</span></a><a class="button button-secondary" href="%s"></a><span><i class="dashicons dashicons-calendar-alt"></i>Maybe Later</span></a><a class="button button-secondary" href="%s"><a/><span><i class="dashicons dashicons-smiley"></i>I Already did</span></a></p></div></div>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png' ,$review_url, $optout_url, $optout_url );
157
 
158
  }
159
 
161
 
162
  echo $review_message;
163
  }
164
+
 
165
  /**
166
  * Shows an admin notice when Elementor is missing.
167
  * @since 2.6.8
168
  * @return void
169
  */
170
+ public function get_black_notice() {
171
 
172
  $pro_path = 'premium-addons-pro/premium-addons-pro-for-elementor.php';
173
 
174
  $theme = self::get_installed_theme();
175
 
176
+ $notice_url = sprintf( 'https://premiumaddons.com/black-friday?utm_source=black-friday-2018-notification&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme );
177
 
178
  if ( ! self::is_plugin_installed( $pro_path ) && current_user_can( 'install_plugins' ) ) {
179
 
180
+ $get_black = get_option( 'get_pro_black_notice' );
181
 
182
+ if ( '1' === $get_black ) {
183
  return;
184
+ } else if ( '1' !== $get_black ) {
185
+ $optout_url = wp_nonce_url( add_query_arg( 'get_pro_black', 'opt_out' ), 'opt_out' );
186
 
187
+ $notice_message = sprintf( __('<div class="error pa-notice-wrap pa-black-notice"><div class="pa-img-wrap"><img src="%s"></div><div class="pa-text-wrap"><p>Premium Addons for Elementor</p><p><strong>Black Friday Sale!</strong> Early Exclusive Access to Our Secret Deal. <a href="%s">Check it Out</a></p></div><div class="pa-notice-close"><a href="%s"><span class="dashicons dashicons-dismiss"></span></a></div></p></div>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png' ,$notice_url, $optout_url );
188
 
189
  }
190
 
191
+ echo $notice_message;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
 
193
  }
 
 
 
 
 
194
  }
 
195
 
196
  /**
197
  * Shows an admin notice for vertical scroll.
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.8.0</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.8.1</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>
assets/js/premium-addons.js CHANGED
@@ -353,7 +353,12 @@
353
  },
354
  setWidth : function( type ) {
355
  type = type || 'vertical';
356
- this.element.css( 'margin-' + 'vertical' === type ? 'left' : 'top' , '-' + this.getWidth() + 'px' );
 
 
 
 
 
357
  }
358
  }
359
  marginFix.setWidth();
353
  },
354
  setWidth : function( type ) {
355
  type = type || 'vertical';
356
+ if( type == 'vertical' ) {
357
+ this.element.css( 'margin-left', '-' + this.getWidth() + 'px' );
358
+ } else {
359
+ this.element.css( 'margin-top', '-' + this.getWidth() + 'px' );
360
+ }
361
+
362
  }
363
  }
364
  marginFix.setWidth();
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.8.1
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
 
25
- define('PREMIUM_ADDONS_VERSION', '2.8.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.8.0');
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.8.2
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
 
25
+ define('PREMIUM_ADDONS_VERSION', '2.8.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.8.1');
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: 4.9.8
7
  Requires PHP: 5.4
8
- Stable tag: 2.8.1
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.8.1 =
141
 
142
  - Tweak: Post date format now is retrieved from WordPress general settings.
5
  Requires at least: 4.5
6
  Tested up to: 4.9.8
7
  Requires PHP: 5.4
8
+ Stable tag: 2.8.2
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
137
 
138
  == Changelog ==
139
 
140
+ = 2.8.2 =
141
+
142
+ - Fixed: Navigation arrows issue in Premium Carousel widget.
143
+
144
  = 2.8.1 =
145
 
146
  - Tweak: Post date format now is retrieved from WordPress general settings.