Premium Addons for Elementor - Version 3.7.5

Version Description

  • Tweak: Person widget Width option enhanced.
Download this release

Release Info

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

Code changes from version 3.7.4 to 3.7.5

admin/includes/admin-notices.php CHANGED
@@ -38,8 +38,8 @@ class Admin_Notices {
38
 
39
  $this->handle_review_notice();
40
 
41
- $this->handle_templates_notice();
42
-
43
  }
44
 
45
  /**
@@ -56,10 +56,9 @@ class Admin_Notices {
56
  if ( false == $response ) {
57
  $this->get_review_notice();
58
  }
59
- //$this->get_pbg_notice();
60
 
61
- $this->get_templates_notice();
62
-
63
  }
64
 
65
  /**
@@ -111,28 +110,29 @@ class Admin_Notices {
111
  }
112
 
113
  /**
114
- * Checks if Premium Templates message is dismissed.
115
  *
116
- * @since 3.6.0
117
  * @access public
118
  *
119
  * @return void
120
  */
121
- public function handle_templates_notice() {
122
- if ( ! isset( $_GET['templates'] ) ) {
123
  return;
124
  }
125
 
126
- if ( 'opt_out' === $_GET['templates'] ) {
127
  check_admin_referer( 'opt_out' );
128
 
129
- update_option( 'templates_notice', '1' );
130
  }
131
 
132
- wp_redirect( remove_query_arg( 'templates' ) );
133
  exit;
134
  }
135
 
 
136
  /**
137
  * Required plugin check
138
  *
@@ -275,35 +275,36 @@ class Admin_Notices {
275
 
276
  /**
277
  *
278
- * Shows an admin notice for Premium Templates.
279
  *
280
- * @since 3.6.0
281
  * @access public
282
  *
283
  * @return void
284
  */
285
- public function get_templates_notice() {
286
 
287
- $templates_notice = get_option( 'templates_notice' );
288
 
289
  $theme = Helper_Functions::get_installed_theme();
290
 
291
- $notice_url = sprintf( 'https://premiumaddons.com/premium-templates-for-elementor/?utm_source=templates-notification&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme );
292
 
293
- if ( '1' === $templates_notice ) {
294
  return;
295
- } else if ( '1' !== $templates_notice ) {
296
- $optout_url = wp_nonce_url( add_query_arg( 'templates', 'opt_out' ), 'opt_out' );
297
 
298
- $templates_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>Premium Templates&nbsp</strong> is now available in Premium Addons for Elementor.&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 );
299
 
300
- $templates_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 );
301
 
302
- $this->render_admin_notices( $templates_message );
303
 
304
  }
305
 
306
  }
 
307
 
308
  /**
309
  * Checks if a plugin is installed
@@ -319,7 +320,7 @@ class Admin_Notices {
319
  }
320
 
321
  /**
322
- * Checks user credentials
323
  *
324
  * @since 2.6.8
325
  *
38
 
39
  $this->handle_review_notice();
40
 
41
+ $this->handle_color_trans_notice();
42
+
43
  }
44
 
45
  /**
56
  if ( false == $response ) {
57
  $this->get_review_notice();
58
  }
 
59
 
60
+ $this->get_color_trans_notice();
61
+
62
  }
63
 
64
  /**
110
  }
111
 
112
  /**
113
+ * Checks if Premium Color Transition message is dismissed.
114
  *
115
+ * @since 3.7.5
116
  * @access public
117
  *
118
  * @return void
119
  */
120
+ public function handle_color_trans_notice() {
121
+ if ( ! isset( $_GET['color_trans'] ) ) {
122
  return;
123
  }
124
 
125
+ if ( 'opt_out' === $_GET['color_trans'] ) {
126
  check_admin_referer( 'opt_out' );
127
 
128
+ update_option( 'color_trans_notice', '1' );
129
  }
130
 
131
+ wp_redirect( remove_query_arg( 'color_trans' ) );
132
  exit;
133
  }
134
 
135
+
136
  /**
137
  * Required plugin check
138
  *
275
 
276
  /**
277
  *
278
+ * Shows an admin notice for Premium Color Transition.
279
  *
280
+ * @since 3.7.5
281
  * @access public
282
  *
283
  * @return void
284
  */
285
+ public function get_color_trans_notice() {
286
 
287
+ $color_trans_notice = get_option( 'color_trans_notice' );
288
 
289
  $theme = Helper_Functions::get_installed_theme();
290
 
291
+ $notice_url = sprintf( 'https://premiumaddons.com/elementor-color-transition-widget/?utm_source=color-trans-notification&utm_medium=wp-dash&utm_campaign=get-pro&utm_term=%s', $theme );
292
 
293
+ if ( '1' === $color_trans_notice ) {
294
  return;
295
+ } else if ( '1' !== $color_trans_notice ) {
296
+ $optout_url = wp_nonce_url( add_query_arg( 'color_trans', 'opt_out' ), 'opt_out' );
297
 
298
+ $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>Premium Color Transition&nbsp</strong> widget 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 );
299
 
300
+ $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 );
301
 
302
+ $this->render_admin_notices( $message );
303
 
304
  }
305
 
306
  }
307
+
308
 
309
  /**
310
  * Checks if a plugin is installed
320
  }
321
 
322
  /**
323
+ * Checks user credentials for specific action
324
  *
325
  * @since 2.6.8
326
  *
admin/includes/version-control.php CHANGED
@@ -92,7 +92,7 @@ class Version_Control {
92
  <tr class="pa-roll-row">
93
  <th><?php echo __('Rollback Version', 'premium-addons-for-elementor'); ?></th>
94
  <td>
95
- <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.7.3', 'premium-addons-for-elementor') ); ?></div>
96
  <p class="pa-roll-desc">
97
  <span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
98
  </p>
92
  <tr class="pa-roll-row">
93
  <th><?php echo __('Rollback Version', 'premium-addons-for-elementor'); ?></th>
94
  <td>
95
+ <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.7.4', 'premium-addons-for-elementor') ); ?></div>
96
  <p class="pa-roll-desc">
97
  <span><?php echo __('Warning: Please backup your database before making the rollback.', 'premium-addons-for-elementor'); ?></span>
98
  </p>
assets/frontend/css/premium-addons.css CHANGED
@@ -2108,6 +2108,14 @@
2108
  font-size: 18px;
2109
  margin: 0 5px;
2110
  }
 
 
 
 
 
 
 
 
2111
  /**************** Premium Dual Header ******************/
2112
  /*******************************************************/
2113
  .premium-dual-header-container .premium-dual-header-first-header, .premium-dual-header-container .premium-dual-header-second-header {
2108
  font-size: 18px;
2109
  margin: 0 5px;
2110
  }
2111
+ .elementor-widget-premium-addon-person .elementor-widget-container {
2112
+ display: -ms-flexbox;
2113
+ display: -webkit-flex;
2114
+ display: -moz-flex;
2115
+ display: -ms-flex;
2116
+ display: flex;
2117
+ justify-content: center;
2118
+ }
2119
  /**************** Premium Dual Header ******************/
2120
  /*******************************************************/
2121
  .premium-dual-header-container .premium-dual-header-first-header, .premium-dual-header-container .premium-dual-header-second-header {
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.7.4
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.7.4');
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.7.3');
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.7.5
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.7.5');
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.7.4');
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.2.2
7
  Requires PHP: 5.4
8
- Stable Tag: 3.7.4
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -56,6 +56,7 @@ Each widget and addon has been tested on different screen sizes, mobile devices,
56
 
57
  ### Section Addons & Widgets
58
  * [**Vertical Scroll Widget**](https://premiumaddons.com/vertical-scroll-widget-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(FREE)*: Create beautiful vertical scroll pages with advanced responsive control options using Premium Vertical Scroll Widget for Elementor Page Builder.
 
59
  * [**Multi-Scroll Widget**](https://premiumaddons.com/multi-scroll-widget-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: The only Elementor widget available that allows you to create attractive multi-scroll effect. It can be used to create full landing pages or use it inside any page.
60
  * [**Parallax Section Addon**](https://premiumaddons.com/parallax-section-addon-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: The only Elementor Parallax Section Addon with freehand design experience and many styles to choose from.
61
  * [**Particles Section Addon**](https://premiumaddons.com/particles-section-addon-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: Create eye-catching particles background using Elementor and Premium Addons with many customization options.
@@ -174,6 +175,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
174
 
175
  == Changelog ==
176
 
 
 
 
 
177
  = 3.7.4 =
178
 
179
  - Tweak: Added Normal/Hover options for navigation arrows in Carousel widget.
5
  Requires at Least: 4.5
6
  Tested Up To: 5.2.2
7
  Requires PHP: 5.4
8
+ Stable Tag: 3.7.5
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
56
 
57
  ### Section Addons & Widgets
58
  * [**Vertical Scroll Widget**](https://premiumaddons.com/vertical-scroll-widget-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(FREE)*: Create beautiful vertical scroll pages with advanced responsive control options using Premium Vertical Scroll Widget for Elementor Page Builder.
59
+ * [**Color Transition Widget**](https://premiumaddons.com/elementor-color-transition-widget/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: Create fancy, colorful, and eye-catching webpages using background Color Transition Widget for Elementor. It allows you to have a seamless transition between sections background colors.
60
  * [**Multi-Scroll Widget**](https://premiumaddons.com/multi-scroll-widget-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: The only Elementor widget available that allows you to create attractive multi-scroll effect. It can be used to create full landing pages or use it inside any page.
61
  * [**Parallax Section Addon**](https://premiumaddons.com/parallax-section-addon-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: The only Elementor Parallax Section Addon with freehand design experience and many styles to choose from.
62
  * [**Particles Section Addon**](https://premiumaddons.com/particles-section-addon-for-elementor-page-builder/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) *(PRO)*: Create eye-catching particles background using Elementor and Premium Addons with many customization options.
175
 
176
  == Changelog ==
177
 
178
+ = 3.7.5 =
179
+
180
+ - Tweak: Person widget `Width` option enhanced.
181
+
182
  = 3.7.4 =
183
 
184
  - Tweak: Added Normal/Hover options for navigation arrows in Carousel widget.
widgets/premium-person.php CHANGED
@@ -73,52 +73,77 @@ class Premium_Person extends Widget_Base {
73
  );
74
 
75
  $this->add_responsive_control('premium_person_image_width',
76
- [
77
- 'label' => __('Width', 'premium-addons-for-elementor'),
78
- 'type' => Controls_Manager::SLIDER,
79
- 'description' => __('Enter image width in (PX, EM, %), default is 100%', 'premium-addons-for-elementor'),
80
- 'size_units' => ['px', '%', 'em'],
81
- 'range' => [
82
- 'px' => [
83
- 'min' => 1,
84
- 'max' => 800,
85
- ],
86
- 'em' => [
87
- 'min' => 1,
88
- 'max' => 50,
89
- ],
90
  ],
91
- 'default' => [
92
- 'unit' => '%',
93
- 'size' => '100',
94
  ],
95
- 'label_block' => true,
96
- 'selectors' => [
97
- '{{WRAPPER}} .premium-person-image-container img' => 'width: {{SIZE}}{{UNIT}};',
98
- ]
99
- ]
100
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
  /*Hover Image Effect*/
103
  $this->add_control('premium_person_hover_image_effect',
104
- [
105
- 'label' => __('Hover Effect', 'premium-addons-for-elementor'),
106
- 'type' => Controls_Manager::SELECT,
107
- 'options' => [
108
- 'none' => __('None', 'premium-addons-for-elementor'),
109
- 'zoomin' => __('Zoom In', 'premium-addons-for-elementor'),
110
- 'zoomout'=> __('Zoom Out', 'premium-addons-for-elementor'),
111
- 'scale' => __('Scale', 'premium-addons-for-elementor'),
112
- 'grayscale'=> __('Grayscale', 'premium-addons-for-elementor'),
113
- 'blur' => __('Blur', 'premium-addons-for-elementor'),
114
- 'bright' => __('Bright', 'premium-addons-for-elementor'),
115
- 'sepia' => __('Sepia', 'premium-addons-for-elementor'),
116
- 'trans' => __('Translate', 'premium-addons-for-elementor'),
117
- ],
118
- 'default' => 'zoomin',
119
- 'label_block' => true
120
- ]
121
- );
122
 
123
  /*End Premium Person Section*/
124
  $this->end_controls_section();
@@ -199,29 +224,29 @@ class Premium_Person extends Widget_Base {
199
 
200
  /*Text Align*/
201
  $this->add_responsive_control('premium_person_text_align',
202
- [
203
- 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
204
- 'type' => Controls_Manager::CHOOSE,
205
- 'options' => [
206
- 'left' => [
207
- 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
208
- 'icon' => 'fa fa-align-left',
209
- ],
210
- 'center' => [
211
- 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
212
- 'icon' => 'fa fa-align-center',
213
- ],
214
- 'right' => [
215
- 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
216
- 'icon' => 'fa fa-align-right',
217
- ],
218
- ],
219
- 'default' => 'center',
220
- 'selectors' => [
221
- '{{WRAPPER}} .premium-person-info' => 'text-align: {{VALUE}};',
222
- ],
223
- ]
224
- );
225
 
226
  /*End Person Details Section*/
227
  $this->end_controls_section();
73
  );
74
 
75
  $this->add_responsive_control('premium_person_image_width',
76
+ [
77
+ 'label' => __('Width', 'premium-addons-for-elementor'),
78
+ 'type' => Controls_Manager::SLIDER,
79
+ 'description' => __('Enter image width in (PX, EM, %), default is 100%', 'premium-addons-for-elementor'),
80
+ 'size_units' => ['px', '%', 'em'],
81
+ 'range' => [
82
+ 'px' => [
83
+ 'min' => 1,
84
+ 'max' => 800,
 
 
 
 
 
85
  ],
86
+ 'em' => [
87
+ 'min' => 1,
88
+ 'max' => 50,
89
  ],
90
+ ],
91
+ 'default' => [
92
+ 'unit' => '%',
93
+ 'size' => '100',
94
+ ],
95
+ 'label_block' => true,
96
+ 'selectors' => [
97
+ '{{WRAPPER}} .premium-person-container' => 'width: {{SIZE}}{{UNIT}};',
98
+ ]
99
+ ]
100
+ );
101
+
102
+ $this->add_responsive_control('premium_person_align',
103
+ [
104
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
105
+ 'type' => Controls_Manager::CHOOSE,
106
+ 'options' => [
107
+ 'flex-start' => [
108
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
109
+ 'icon' => 'fa fa-align-left',
110
+ ],
111
+ 'center' => [
112
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
113
+ 'icon' => 'fa fa-align-center',
114
+ ],
115
+ 'flex-end' => [
116
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
117
+ 'icon' => 'fa fa-align-right',
118
+ ],
119
+ ],
120
+ 'default' => 'center',
121
+ 'selectors' => [
122
+ '{{WRAPPER}} .elementor-widget-container' => 'justify-content: {{VALUE}};',
123
+ ],
124
+ ]
125
+ );
126
 
127
  /*Hover Image Effect*/
128
  $this->add_control('premium_person_hover_image_effect',
129
+ [
130
+ 'label' => __('Hover Effect', 'premium-addons-for-elementor'),
131
+ 'type' => Controls_Manager::SELECT,
132
+ 'options' => [
133
+ 'none' => __('None', 'premium-addons-for-elementor'),
134
+ 'zoomin' => __('Zoom In', 'premium-addons-for-elementor'),
135
+ 'zoomout' => __('Zoom Out', 'premium-addons-for-elementor'),
136
+ 'scale' => __('Scale', 'premium-addons-for-elementor'),
137
+ 'grayscale' => __('Grayscale', 'premium-addons-for-elementor'),
138
+ 'blur' => __('Blur', 'premium-addons-for-elementor'),
139
+ 'bright' => __('Bright', 'premium-addons-for-elementor'),
140
+ 'sepia' => __('Sepia', 'premium-addons-for-elementor'),
141
+ 'trans' => __('Translate', 'premium-addons-for-elementor'),
142
+ ],
143
+ 'default' => 'zoomin',
144
+ 'label_block' => true
145
+ ]
146
+ );
147
 
148
  /*End Premium Person Section*/
149
  $this->end_controls_section();
224
 
225
  /*Text Align*/
226
  $this->add_responsive_control('premium_person_text_align',
227
+ [
228
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
229
+ 'type' => Controls_Manager::CHOOSE,
230
+ 'options' => [
231
+ 'left' => [
232
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
233
+ 'icon' => 'fa fa-align-left',
234
+ ],
235
+ 'center' => [
236
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
237
+ 'icon' => 'fa fa-align-center',
238
+ ],
239
+ 'right' => [
240
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
241
+ 'icon' => 'fa fa-align-right',
242
+ ],
243
+ ],
244
+ 'default' => 'center',
245
+ 'selectors' => [
246
+ '{{WRAPPER}} .premium-person-info' => 'text-align: {{VALUE}};',
247
+ ],
248
+ ]
249
+ );
250
 
251
  /*End Person Details Section*/
252
  $this->end_controls_section();