Premium Addons for Elementor - Version 3.7.2

Version Description

  • Fixed: Vertical Scroll does not work on mobile when Enable Full Section Scroll on Touch Devices is disabled.
Download this release

Release Info

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

Code changes from version 3.7.1 to 3.7.2

admin/assets/js/pa-notice.js CHANGED
@@ -13,7 +13,7 @@
13
  url: ajaxurl,
14
  type: 'POST',
15
  data: {
16
- action: 'pa-dismiss-admin-notice',
17
  notice: $noticeWrap.data( 'notice' )
18
  }
19
  });
13
  url: ajaxurl,
14
  type: 'POST',
15
  data: {
16
+ action: 'pa_dismiss_admin_notice',
17
  notice: $noticeWrap.data( 'notice' )
18
  }
19
  });
admin/includes/admin-notices.php CHANGED
@@ -27,7 +27,7 @@ class Admin_Notices {
27
 
28
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
29
 
30
- add_action( 'wp_ajax_pa-dismiss-admin-notice', array( $this, 'dismiss_admin_notice' ) );
31
 
32
  }
33
 
@@ -376,7 +376,7 @@ class Admin_Notices {
376
 
377
  $key = isset( $_POST['notice'] ) ? $_POST['notice'] : '';
378
 
379
- if ( ! empty( $key) ) {
380
 
381
  $cache_key = 'premium_notice_' . PREMIUM_ADDONS_VERSION;
382
 
27
 
28
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
29
 
30
+ add_action( 'wp_ajax_pa_dismiss_admin_notice', array( $this, 'dismiss_admin_notice' ) );
31
 
32
  }
33
 
376
 
377
  $key = isset( $_POST['notice'] ) ? $_POST['notice'] : '';
378
 
379
+ if ( ! empty( $key ) ) {
380
 
381
  $cache_key = 'premium_notice_' . PREMIUM_ADDONS_VERSION;
382
 
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.0', '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>
@@ -138,6 +138,5 @@ class Version_Control {
138
  update_option( 'pa_beta_save_settings', $this->pa_beta_settings );
139
 
140
  return true;
141
- die();
142
  }
143
  }
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.1', '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>
138
  update_option( 'pa_beta_save_settings', $this->pa_beta_settings );
139
 
140
  return true;
 
141
  }
142
  }
admin/settings/maps.php CHANGED
@@ -163,7 +163,7 @@ class Maps {
163
 
164
  if( isset( $_POST['fields'] ) ) {
165
  parse_str( $_POST['fields'], $settings );
166
- }else {
167
  return;
168
  }
169
 
@@ -177,6 +177,5 @@ class Maps {
177
  update_option( 'pa_maps_save_settings', $this->pa_maps_settings );
178
 
179
  return true;
180
- die();
181
  }
182
  }
163
 
164
  if( isset( $_POST['fields'] ) ) {
165
  parse_str( $_POST['fields'], $settings );
166
+ } else {
167
  return;
168
  }
169
 
177
  update_option( 'pa_maps_save_settings', $this->pa_maps_settings );
178
 
179
  return true;
 
180
  }
181
  }
admin/settings/modules-setting.php CHANGED
@@ -736,6 +736,5 @@ class Modules_Settings {
736
  update_option( 'pa_save_settings', $this->pa_settings );
737
 
738
  return true;
739
- die();
740
  }
741
  }
736
  update_option( 'pa_save_settings', $this->pa_settings );
737
 
738
  return true;
 
739
  }
740
  }
assets/frontend/js/lib/iscroll.js CHANGED
@@ -307,7 +307,7 @@ var utils = (function () {
307
  top : el.offsetTop,
308
  left : el.offsetLeft,
309
  width : el.offsetWidth,
310
- height : utils.hasTouch ? 650 : el.offsetHeight
311
  };
312
  }
313
  };
307
  top : el.offsetTop,
308
  left : el.offsetLeft,
309
  width : el.offsetWidth,
310
+ height : utils.hasTouch ? jQuery(window).outerHeight() : el.offsetHeight
311
  };
312
  }
313
  };
assets/frontend/js/premium-vscroll.js CHANGED
@@ -30,7 +30,7 @@
30
  sections = {},
31
  currentSection = null,
32
  isScrolling = false,
33
- sectionChanged = false;
34
 
35
  var touchStartY = 0,
36
  touchEndY = 0;
@@ -46,14 +46,14 @@
46
 
47
  self.init = function() {
48
 
49
- if( settings.fullSection ) {
 
 
50
  self.setSectionsOverflow();
51
  }
52
 
53
  self.setSectionsData();
54
 
55
- isTouch = self.isTouchDevice();
56
-
57
  $itemsList.on("click.premiumVerticalScroll", self.onNavDotChange);
58
  $menuItems.on("click.premiumVerticalScroll", self.onNavDotChange);
59
 
@@ -78,7 +78,7 @@
78
 
79
  $window.on("load", function() {
80
  self.setSectionsData();
81
- if( settings.fullSection ) {
82
  self.sectionsOverflowRefresh();
83
  }
84
  });
@@ -299,8 +299,10 @@
299
 
300
  self.onTouchMove = function( e ) {
301
 
302
- self.preventDefault( e );
303
-
 
 
304
  if ( isScrolling ) {
305
  self.preventDefault( e );
306
  return false;
@@ -364,12 +366,13 @@
364
  newSectionId = sectionId;
365
  } else {
366
  newSectionId = nextSectionId;
367
- sectionChanged = 1;
368
  }
369
  }
370
 
371
  if ( newSectionId ) {
372
-
 
 
373
  $( ".premium-vscroll-dots, .premium-vscroll-nav-menu" ).removeClass( "premium-vscroll-dots-hide" );
374
 
375
  if ( ! self.isScrolled( sectionId, direction ) ) {
@@ -381,6 +384,8 @@
381
 
382
  } else {
383
 
 
 
384
  var $lastselector = checkTemps ? $instance : $( "#" + sectionId );
385
 
386
  if ( "down" === direction ) {
@@ -657,7 +662,9 @@
657
 
658
  self.onWheel = function( event ) {
659
 
660
- self.preventDefault( event );
 
 
661
 
662
  if ( isScrolling ) {
663
  return false;
@@ -730,7 +737,8 @@
730
  }
731
 
732
  if ( newSectionId ) {
733
- if ( ! self.isScrolled( sectionId, direction ) ) {
 
734
  return;
735
  }
736
 
@@ -739,6 +747,7 @@
739
  self.onAnchorChange( newSectionId );
740
 
741
  } else {
 
742
  var $lastselector = checkTemps
743
  ? $instance
744
  : $("#" + sectionId);
@@ -800,7 +809,7 @@
800
  return false;
801
  }
802
 
803
- self.onResize = function(event) {
804
  self.setSectionsData();
805
  self.sectionsOverflowRefresh();
806
  };
30
  sections = {},
31
  currentSection = null,
32
  isScrolling = false,
33
+ inScope = true;
34
 
35
  var touchStartY = 0,
36
  touchEndY = 0;
46
 
47
  self.init = function() {
48
 
49
+ isTouch = self.isTouchDevice();
50
+
51
+ if( settings.fullTouch || ( ! isTouch && settings.fullSection ) ) {
52
  self.setSectionsOverflow();
53
  }
54
 
55
  self.setSectionsData();
56
 
 
 
57
  $itemsList.on("click.premiumVerticalScroll", self.onNavDotChange);
58
  $menuItems.on("click.premiumVerticalScroll", self.onNavDotChange);
59
 
78
 
79
  $window.on("load", function() {
80
  self.setSectionsData();
81
+ if( settings.fullTouch || ( ! isTouch && settings.fullSection ) ) {
82
  self.sectionsOverflowRefresh();
83
  }
84
  });
299
 
300
  self.onTouchMove = function( e ) {
301
 
302
+ if( inScope ) {
303
+ self.preventDefault( e );
304
+ }
305
+
306
  if ( isScrolling ) {
307
  self.preventDefault( e );
308
  return false;
366
  newSectionId = sectionId;
367
  } else {
368
  newSectionId = nextSectionId;
 
369
  }
370
  }
371
 
372
  if ( newSectionId ) {
373
+
374
+ inScope = true;
375
+
376
  $( ".premium-vscroll-dots, .premium-vscroll-nav-menu" ).removeClass( "premium-vscroll-dots-hide" );
377
 
378
  if ( ! self.isScrolled( sectionId, direction ) ) {
384
 
385
  } else {
386
 
387
+ inScope = false;
388
+
389
  var $lastselector = checkTemps ? $instance : $( "#" + sectionId );
390
 
391
  if ( "down" === direction ) {
662
 
663
  self.onWheel = function( event ) {
664
 
665
+ if( inScope && ! isTouch ) {
666
+ self.preventDefault( event );
667
+ }
668
 
669
  if ( isScrolling ) {
670
  return false;
737
  }
738
 
739
  if ( newSectionId ) {
740
+ inScope = true;
741
+ if ( ! self.isScrolled( sectionId, direction ) && ! isTouch ) {
742
  return;
743
  }
744
 
747
  self.onAnchorChange( newSectionId );
748
 
749
  } else {
750
+ inScope = false;
751
  var $lastselector = checkTemps
752
  ? $instance
753
  : $("#" + sectionId);
809
  return false;
810
  }
811
 
812
+ self.onResize = function() {
813
  self.setSectionsData();
814
  self.sectionsOverflowRefresh();
815
  };
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.1
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.1');
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.0');
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.2
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.2');
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.1');
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.1
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -174,6 +174,10 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
174
 
175
  == Changelog ==
176
 
 
 
 
 
177
  = 3.7.1 =
178
 
179
  - Tweak: Vertical Scroll performance enhanced on all devices.
5
  Requires at Least: 4.5
6
  Tested Up To: 5.2.2
7
  Requires PHP: 5.4
8
+ Stable Tag: 3.7.2
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
174
 
175
  == Changelog ==
176
 
177
+ = 3.7.2 =
178
+
179
+ - Fixed: Vertical Scroll does not work on mobile when `Enable Full Section Scroll on Touch Devices` is disabled.
180
+
181
  = 3.7.1 =
182
 
183
  - Tweak: Vertical Scroll performance enhanced on all devices.