Premium Addons for Elementor - Version 3.4.8

Version Description

  • Fixed: Carousel slides don't appear on RTL sites.
Download this release

Release Info

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

Code changes from version 3.4.7 to 3.4.8

admin/includes/admin-notices.php CHANGED
@@ -33,9 +33,12 @@ class Admin_Notices {
33
  * init required functions
34
  */
35
  public function init() {
 
36
  $this->handle_review_notice();
37
 
38
- $this->handle_image_accordion_notice();
 
 
39
  }
40
 
41
  /**
@@ -54,7 +57,9 @@ class Admin_Notices {
54
  }
55
  //$this->get_pbg_notice();
56
 
57
- $this->get_image_accordion_notice();
 
 
58
  }
59
 
60
  /**
@@ -127,6 +132,29 @@ class Admin_Notices {
127
  wp_redirect( remove_query_arg( 'image_accordion' ) );
128
  exit;
129
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
 
131
  /**
132
  * Required plugin check
@@ -299,6 +327,45 @@ class Admin_Notices {
299
  }
300
 
301
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
 
303
  /**
304
  * Get Installed Theme
33
  * init required functions
34
  */
35
  public function init() {
36
+
37
  $this->handle_review_notice();
38
 
39
+ /*$this->handle_image_accordion_notice();*/
40
+
41
+ $this->handle_wecu_notice();
42
  }
43
 
44
  /**
57
  }
58
  //$this->get_pbg_notice();
59
 
60
+ /*$this->get_image_accordion_notice();*/
61
+
62
+ $this->get_wecu_notice();
63
  }
64
 
65
  /**
132
  wp_redirect( remove_query_arg( 'image_accordion' ) );
133
  exit;
134
  }
135
+
136
+ /**
137
+ *
138
+ * Checks if WECU message is dismissed.
139
+ *
140
+ * @access public
141
+ * @return void
142
+ *
143
+ */
144
+ public function handle_wecu_notice() {
145
+ if ( ! isset( $_GET['wecu'] ) ) {
146
+ return;
147
+ }
148
+
149
+ if ( 'opt_out' === $_GET['wecu'] ) {
150
+ check_admin_referer( 'opt_out' );
151
+
152
+ update_option( 'wecu_notice', '1' );
153
+ }
154
+
155
+ wp_redirect( remove_query_arg( 'wecu' ) );
156
+ exit;
157
+ }
158
 
159
  /**
160
  * Required plugin check
327
  }
328
 
329
  }
330
+
331
+ /**
332
+ *
333
+ * Shows an admin notice for WECU.
334
+ *
335
+ * @since 3.4.8
336
+ * @access public
337
+ *
338
+ * @return void
339
+ */
340
+ public function get_wecu_notice() {
341
+
342
+ $papro_path = sprintf( '%1$s/premium-addons-pro-for-elementor.php', self::$papro );
343
+
344
+ if ( self::is_plugin_installed( $papro_path ) ) {
345
+ return;
346
+ }
347
+
348
+ $wecu_notice = get_option( 'wecu_notice' );
349
+
350
+ $theme = self::get_installed_theme();
351
+
352
+ $notice_url = sprintf( 'https://premiumaddons.com/pro/?utm_source=wecu-coupon&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme );
353
+
354
+ if ( '1' === $wecu_notice ) {
355
+ return;
356
+ } else if ( '1' !== $wecu_notice ) {
357
+
358
+ $optout_url = wp_nonce_url( add_query_arg( 'wecu', 'opt_out' ), 'opt_out' );
359
+
360
+ $wecu_message = sprintf( __('<p class="pa-text-wrap" style="display: flex; align-items: center; padding:10px 10px 10px 0;"><img src="%s" style="margin-right: 0.8em; width: 40px;"><strong><span>15&percnt; WCEU 2019 Special Discount for 2 Days Only.&nbsp</strong></span><a href="%s" target="_blank" style="flex-grow: 2;"> Use WCEU2019 Coupon code Now.</a>', 'premium-addons-for-elementor' ), PREMIUM_ADDONS_URL .'admin/images/premium-addons-logo.png', $notice_url );
361
+
362
+ $wecu_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 );
363
+
364
+ $this->render_admin_notices( $wecu_message );
365
+
366
+ }
367
+
368
+ }
369
 
370
  /**
371
  * Get Installed Theme
admin/includes/version-control.php CHANGED
@@ -91,7 +91,7 @@ class Version_Control {
91
  <tr class="pa-roll-row">
92
  <th><?php echo __('Rollback Version', 'premium-addons-for-elementor'); ?></th>
93
  <td>
94
- <div><?php echo sprintf( '<a target="_blank" href="%1$s" class="button pa-btn pa-rollback-button elementor-button-spinner">%2$s</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ), __('Reinstall Version 3.4.6', 'premium-addons-for-elementor') ); ?></div>
95
  <p class="pa-roll-desc">
96
  <span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
97
  </p>
91
  <tr class="pa-roll-row">
92
  <th><?php echo __('Rollback Version', 'premium-addons-for-elementor'); ?></th>
93
  <td>
94
+ <div><?php echo sprintf( '<a target="_blank" href="%1$s" class="button pa-btn pa-rollback-button elementor-button-spinner">%2$s</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ), __('Reinstall Version 3.4.7', 'premium-addons-for-elementor') ); ?></div>
95
  <p class="pa-roll-desc">
96
  <span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
97
  </p>
assets/css/premium-addons.css CHANGED
@@ -974,6 +974,9 @@ ul.slick-dots li {
974
  -webkit-transform: scale(1, 1);
975
  transform: scale(1, 1);
976
  }
 
 
 
977
  /**************** Premium Counter ***************/
978
  /************************************************/
979
  .premium-counter-area {
974
  -webkit-transform: scale(1, 1);
975
  transform: scale(1, 1);
976
  }
977
+ [dir='rtl'] .premium-carousel-inner .slick-slide {
978
+ float: right;
979
+ }
980
  /**************** Premium Counter ***************/
981
  /************************************************/
982
  .premium-counter-area {
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.4.7
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.4.7');
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.4.6');
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.4.8
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.4.8');
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.4.7');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
5
  Requires at least: 4.5
6
  Tested up to: 5.2
7
  Requires PHP: 5.4
8
- Stable tag: 3.4.7
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -140,6 +140,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
140
 
141
  == Changelog ==
142
 
 
 
 
 
143
  = 3.4.7 =
144
 
145
  - Tweak: Added `Localization Language` option for Premium Maps element in Google Maps settings page.
5
  Requires at least: 4.5
6
  Tested up to: 5.2
7
  Requires PHP: 5.4
8
+ Stable tag: 3.4.8
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
140
 
141
  == Changelog ==
142
 
143
+ = 3.4.8 =
144
+
145
+ - Fixed: Carousel slides don't appear on RTL sites.
146
+
147
  = 3.4.7 =
148
 
149
  - Tweak: Added `Localization Language` option for Premium Maps element in Google Maps settings page.