Premium Addons for Elementor - Version 3.21.6

Version Description

  • Tweak: Added responsive controls for play icon and video description horizontal/vertical position options in Video Box widget.
  • Tweak: Unnecessary code removed for better performance.
Download this release

Release Info

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

Code changes from version 3.21.5 to 3.21.6

admin/includes/papro-actions.php CHANGED
@@ -60,7 +60,7 @@ class Papro_Actions {
60
 
61
  add_action( 'admin_init', [ $this, 'on_admin_init' ] );
62
 
63
- if( ! defined('PREMIUM_PRO_ADDONS_VERSION') )
64
  add_action( 'admin_menu', array ( $this,'create_pro_menus' ), 100 );
65
 
66
  add_action( 'admin_menu', array ( $this, 'change_admin_menu_name'), 100 );
60
 
61
  add_action( 'admin_init', [ $this, 'on_admin_init' ] );
62
 
63
+ if( ! Helper_Functions::check_papro_version() )
64
  add_action( 'admin_menu', array ( $this,'create_pro_menus' ), 100 );
65
 
66
  add_action( 'admin_menu', array ( $this, 'change_admin_menu_name'), 100 );
admin/includes/plugin-info.php CHANGED
@@ -56,7 +56,7 @@ class Plugin_Info {
56
  <div class="pa-text-container">
57
  <h4><?php echo __('What is Premium Addons?', 'premium-addons-for-elementor'); ?></h4>
58
  <p><?php echo __('Premium Addons for Elementor extends Elementor Page Builder capabilities with many fully customizable widgets and addons that help you to build impressive websites with no coding required.', 'premium-addons-for-elementor'); ?></p>
59
- <?php if( ! defined('PREMIUM_PRO_ADDONS_VERSION') ) : ?>
60
  <p><?php echo __('Get more widgets and addons with ', 'premium-addons-for-elementor'); ?><strong><?php echo __('Premium Addons Pro', 'premium-addons-for-elementor'); ?></strong> <a href="<?php echo esc_url( $url ); ?>" target="_blank" ><?php echo __('Click Here', 'premium-addons-for-elementor'); ?></a><?php echo __(' to know more.', 'premium-addons-for-elementor'); ?></p>
61
  <?php endif; ?>
62
  </div>
56
  <div class="pa-text-container">
57
  <h4><?php echo __('What is Premium Addons?', 'premium-addons-for-elementor'); ?></h4>
58
  <p><?php echo __('Premium Addons for Elementor extends Elementor Page Builder capabilities with many fully customizable widgets and addons that help you to build impressive websites with no coding required.', 'premium-addons-for-elementor'); ?></p>
59
+ <?php if( ! Helper_Functions::check_papro_version() ) : ?>
60
  <p><?php echo __('Get more widgets and addons with ', 'premium-addons-for-elementor'); ?><strong><?php echo __('Premium Addons Pro', 'premium-addons-for-elementor'); ?></strong> <a href="<?php echo esc_url( $url ); ?>" target="_blank" ><?php echo __('Click Here', 'premium-addons-for-elementor'); ?></a><?php echo __(' to know more.', 'premium-addons-for-elementor'); ?></p>
61
  <?php endif; ?>
62
  </div>
admin/settings/modules-setting.php CHANGED
@@ -110,7 +110,7 @@ class Modules_Settings {
110
 
111
  $plugin_name = 'Premium Addons for Elementor';
112
 
113
- if( defined( 'PREMIUM_PRO_ADDONS_VERSION' ) ) {
114
  if( isset( get_option( 'pa_wht_lbl_save_settings' )['premium-wht-lbl-plugin-name'] ) ) {
115
  $name = get_option( 'pa_wht_lbl_save_settings' )['premium-wht-lbl-plugin-name'];
116
  if( '' !== $name )
@@ -402,7 +402,7 @@ class Modules_Settings {
402
 
403
  </tr>
404
 
405
- <?php if( ! defined( 'PREMIUM_PRO_ADDONS_VERSION' ) ) : ?>
406
  <tr class="pa-sec-elems-tr"><th><h1>PRO Elements</h1></th></tr>
407
 
408
  <tr>
110
 
111
  $plugin_name = 'Premium Addons for Elementor';
112
 
113
+ if( Helper_Functions::check_papro_version() ) {
114
  if( isset( get_option( 'pa_wht_lbl_save_settings' )['premium-wht-lbl-plugin-name'] ) ) {
115
  $name = get_option( 'pa_wht_lbl_save_settings' )['premium-wht-lbl-plugin-name'];
116
  if( '' !== $name )
402
 
403
  </tr>
404
 
405
+ <?php if( ! Helper_Functions::check_papro_version() ) : ?>
406
  <tr class="pa-sec-elems-tr"><th><h1>PRO Elements</h1></th></tr>
407
 
408
  <tr>
includes/class-helper-functions.php CHANGED
@@ -60,7 +60,7 @@ class Helper_Functions {
60
  */
61
  public static function is_hide_rate(){
62
 
63
- if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
64
  if( isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-rate'] ) ) {
65
  $hide_rate = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-rate'];
66
  }
@@ -79,7 +79,7 @@ class Helper_Functions {
79
  */
80
  public static function is_hide_about(){
81
 
82
- if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
83
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-about'])){
84
  $hide_about = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-about'];
85
  }
@@ -98,7 +98,7 @@ class Helper_Functions {
98
  */
99
  public static function is_hide_version_control(){
100
 
101
- if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
102
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-version'])){
103
  $hide_version_tab = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-version'];
104
  }
@@ -117,7 +117,7 @@ class Helper_Functions {
117
  */
118
  public static function author(){
119
 
120
- if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
121
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-name'])){
122
  $author_free = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-name'];
123
  }
@@ -136,7 +136,7 @@ class Helper_Functions {
136
  */
137
  public static function name() {
138
 
139
- if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
140
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-plugin-name'])){
141
  $name_free = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-plugin-name'];
142
  }
@@ -154,7 +154,7 @@ class Helper_Functions {
154
  */
155
  public static function is_hide_row_meta() {
156
 
157
- if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
158
  if( isset( get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-row'] ) ){
159
  $hide_meta = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-row'];
160
  }
@@ -173,7 +173,7 @@ class Helper_Functions {
173
  */
174
  public static function is_hide_logo(){
175
 
176
- if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
177
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-logo'])){
178
  $hide_logo = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-logo'];
179
  }
@@ -192,7 +192,7 @@ class Helper_Functions {
192
  */
193
  public static function get_category(){
194
 
195
- if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
196
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-short-name'])){
197
  $category = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-short-name'];
198
  }
@@ -212,7 +212,7 @@ class Helper_Functions {
212
  */
213
  public static function get_prefix(){
214
 
215
- if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
216
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-prefix'])){
217
  $prefix = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-prefix'];
218
  }
@@ -231,7 +231,7 @@ class Helper_Functions {
231
  */
232
  public static function get_badge() {
233
 
234
- if( defined('PREMIUM_PRO_ADDONS_VERSION') ) {
235
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-badge'])){
236
  $badge = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-badge'];
237
  }
@@ -553,4 +553,26 @@ class Helper_Functions {
553
  return $theme;
554
 
555
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
556
  }
60
  */
61
  public static function is_hide_rate(){
62
 
63
+ if( self::check_papro_version() ) {
64
  if( isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-rate'] ) ) {
65
  $hide_rate = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-rate'];
66
  }
79
  */
80
  public static function is_hide_about(){
81
 
82
+ if( self::check_papro_version() ) {
83
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-about'])){
84
  $hide_about = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-about'];
85
  }
98
  */
99
  public static function is_hide_version_control(){
100
 
101
+ if( self::check_papro_version() ) {
102
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-version'])){
103
  $hide_version_tab = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-version'];
104
  }
117
  */
118
  public static function author(){
119
 
120
+ if( self::check_papro_version() ) {
121
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-name'])){
122
  $author_free = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-name'];
123
  }
136
  */
137
  public static function name() {
138
 
139
+ if( self::check_papro_version() ) {
140
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-plugin-name'])){
141
  $name_free = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-plugin-name'];
142
  }
154
  */
155
  public static function is_hide_row_meta() {
156
 
157
+ if( self::check_papro_version() ) {
158
  if( isset( get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-row'] ) ){
159
  $hide_meta = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-row'];
160
  }
173
  */
174
  public static function is_hide_logo(){
175
 
176
+ if( self::check_papro_version() ) {
177
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-logo'])){
178
  $hide_logo = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-logo'];
179
  }
192
  */
193
  public static function get_category(){
194
 
195
+ if( self::check_papro_version() ) {
196
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-short-name'])){
197
  $category = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-short-name'];
198
  }
212
  */
213
  public static function get_prefix(){
214
 
215
+ if( self::check_papro_version() ) {
216
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-prefix'])){
217
  $prefix = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-prefix'];
218
  }
231
  */
232
  public static function get_badge() {
233
 
234
+ if( self::check_papro_version() ) {
235
  if(isset(get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-badge'])){
236
  $badge = get_option('pa_wht_lbl_save_settings')['premium-wht-lbl-badge'];
237
  }
553
  return $theme;
554
 
555
  }
556
+
557
+ /**
558
+ * Check PAPRO Version
559
+ *
560
+ * Check if PAPRO version is updated
561
+ *
562
+ * @since 3.21.6
563
+ * @access public
564
+ *
565
+ * @return boolen $is_updated
566
+ */
567
+ public static function check_papro_version() {
568
+
569
+ if( ! defined ( 'PREMIUM_PRO_ADDONS_VERSION' ) ) {
570
+ return false;
571
+ }
572
+
573
+ $is_updated = get_option( 'papro_updated', true );
574
+
575
+ return $is_updated;
576
+
577
+ }
578
  }
includes/templates/classes/config.php CHANGED
@@ -93,7 +93,7 @@ if( ! class_exists('Premium_Templates_Core_Config') ) {
93
  */
94
  public function get_license_key() {
95
 
96
- if( ! defined ('PREMIUM_PRO_ADDONS_VERSION') ) {
97
  return;
98
  }
99
 
@@ -115,7 +115,7 @@ if( ! class_exists('Premium_Templates_Core_Config') ) {
115
  */
116
  public function get_license_status() {
117
 
118
- if( ! defined ('PREMIUM_PRO_ADDONS_VERSION') ) {
119
  return;
120
  }
121
 
@@ -137,7 +137,7 @@ if( ! class_exists('Premium_Templates_Core_Config') ) {
137
  */
138
  public function get_license_page() {
139
 
140
- if( defined ('PREMIUM_PRO_ADDONS_VERSION') ) {
141
 
142
  return add_query_arg(
143
  array(
@@ -169,7 +169,7 @@ if( ! class_exists('Premium_Templates_Core_Config') ) {
169
  */
170
  public function get_pro_message() {
171
 
172
- if( defined ('PREMIUM_PRO_ADDONS_VERSION') ) {
173
  return __('Activate License', 'premium-addons-for-elementor');
174
  } else {
175
  return __('Get Pro', 'premium-addons-for-elementor');
93
  */
94
  public function get_license_key() {
95
 
96
+ if( ! Helper_Functions::check_papro_version() ) {
97
  return;
98
  }
99
 
115
  */
116
  public function get_license_status() {
117
 
118
+ if( ! Helper_Functions::check_papro_version() ) {
119
  return;
120
  }
121
 
137
  */
138
  public function get_license_page() {
139
 
140
+ if( Helper_Functions::check_papro_version() ) {
141
 
142
  return add_query_arg(
143
  array(
169
  */
170
  public function get_pro_message() {
171
 
172
+ if( Helper_Functions::check_papro_version() ) {
173
  return __('Activate License', 'premium-addons-for-elementor');
174
  } else {
175
  return __('Get Pro', 'premium-addons-for-elementor');
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons for Elementor plugin includes widgets and addons like Blog Post Grid, Gallery, Carousel, Modal Popup, Google Maps, Pricing Tables, Lottie Animations, Countdown, Testimonials.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 3.21.5
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.21.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.21.4');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons for Elementor plugin includes widgets and addons like Blog Post Grid, Gallery, Carousel, Modal Popup, Google Maps, Pricing Tables, Lottie Animations, Countdown, Testimonials.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 3.21.6
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.21.6');
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.21.5');
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: 5.0
6
  Tested Up To: 5.5.1
7
  Requires PHP: 5.4
8
- Stable Tag: 3.21.5
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -178,6 +178,11 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
178
 
179
  == Changelog ==
180
 
 
 
 
 
 
181
  = 3.21.5 =
182
 
183
  - Tweak: Added `Trigger on Viewport` option in Lottie Animations widget.
5
  Requires at least: 5.0
6
  Tested Up To: 5.5.1
7
  Requires PHP: 5.4
8
+ Stable Tag: 3.21.6
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
178
 
179
  == Changelog ==
180
 
181
+ = 3.21.6 =
182
+
183
+ - Tweak: Added responsive controls for play icon and video description horizontal/vertical position options in Video Box widget.
184
+ - Tweak: Unnecessary code removed for better performance.
185
+
186
  = 3.21.5 =
187
 
188
  - Tweak: Added `Trigger on Viewport` option in Lottie Animations widget.
widgets/premium-videobox.php CHANGED
@@ -479,7 +479,7 @@ class Premium_Videobox extends Widget_Base {
479
  ]
480
  );
481
 
482
- $this->add_control('premium_video_box_icon_hor_position',
483
  [
484
  'label' => __('Horizontal Position (%)', 'premium-addons-for-elementor'),
485
  'type' => Controls_Manager::SLIDER,
@@ -498,7 +498,7 @@ class Premium_Videobox extends Widget_Base {
498
  ]
499
  );
500
 
501
- $this->add_control('premium_video_box_icon_ver_position',
502
  [
503
  'label' => __('Vertical Position (%)', 'premium-addons-for-elementor'),
504
  'type' => Controls_Manager::SLIDER,
@@ -546,7 +546,7 @@ class Premium_Videobox extends Widget_Base {
546
  ]
547
  );
548
 
549
- $this->add_control('premium_video_box_description_hor_position',
550
  [
551
  'label' => __('Horizontal Position (%)', 'premium-addons-for-elementor'),
552
  'type' => Controls_Manager::SLIDER,
@@ -565,7 +565,7 @@ class Premium_Videobox extends Widget_Base {
565
  ]
566
  );
567
 
568
- $this->add_control('premium_video_box_description_ver_position',
569
  [
570
  'label' => __('Vertical Position (%)', 'premium-addons-for-elementor'),
571
  'type' => Controls_Manager::SLIDER,
479
  ]
480
  );
481
 
482
+ $this->add_responsive_control('premium_video_box_icon_hor_position',
483
  [
484
  'label' => __('Horizontal Position (%)', 'premium-addons-for-elementor'),
485
  'type' => Controls_Manager::SLIDER,
498
  ]
499
  );
500
 
501
+ $this->add_responsive_control('premium_video_box_icon_ver_position',
502
  [
503
  'label' => __('Vertical Position (%)', 'premium-addons-for-elementor'),
504
  'type' => Controls_Manager::SLIDER,
546
  ]
547
  );
548
 
549
+ $this->add_responsive_control('premium_video_box_description_hor_position',
550
  [
551
  'label' => __('Horizontal Position (%)', 'premium-addons-for-elementor'),
552
  'type' => Controls_Manager::SLIDER,
565
  ]
566
  );
567
 
568
+ $this->add_responsive_control('premium_video_box_description_ver_position',
569
  [
570
  'label' => __('Vertical Position (%)', 'premium-addons-for-elementor'),
571
  'type' => Controls_Manager::SLIDER,