Addons for Elementor - Version 4.3.1

Version Description

  • Added - Smooth height option to Testimonials Slider
Download this release

Release Info

Developer livemesh
Plugin Icon 128x128 Addons for Elementor
Version 4.3.1
Comparing to
See all releases

Code changes from version 4.3 to 4.3.1

addons-for-elementor.php CHANGED
@@ -8,7 +8,7 @@
8
  * Author URI: https://livemeshelementor.com
9
  * License: GPL3
10
  * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
11
- * Version: 4.3
12
  * Text Domain: livemesh-el-addons
13
  * Domain Path: languages
14
  *
@@ -35,7 +35,7 @@ if ( !defined( 'ABSPATH' ) ) {
35
 
36
  if ( !function_exists( 'lae_fs' ) ) {
37
  // Plugin version
38
- define( 'LAE_VERSION', '4.3' );
39
  // Plugin Root File
40
  define( 'LAE_PLUGIN_FILE', __FILE__ );
41
  // Plugin Folder Path
8
  * Author URI: https://livemeshelementor.com
9
  * License: GPL3
10
  * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
11
+ * Version: 4.3.1
12
  * Text Domain: livemesh-el-addons
13
  * Domain Path: languages
14
  *
35
 
36
  if ( !function_exists( 'lae_fs' ) ) {
37
  // Plugin version
38
+ define( 'LAE_VERSION', '4.3.1' );
39
  // Plugin Root File
40
  define( 'LAE_PLUGIN_FILE', __FILE__ );
41
  // Plugin Folder Path
admin/views/documentation.php CHANGED
@@ -1164,6 +1164,10 @@ else {
1164
  <div id="updates-panel" class="panel-left">
1165
 
1166
  <h2>Change Log for the Premium Version</h2>
 
 
 
 
1167
  <h3>4.3</h3>
1168
  <ul>
1169
  <li>Added - Touch enabled, responsive Tab Slider widget for Elementor</li>
1164
  <div id="updates-panel" class="panel-left">
1165
 
1166
  <h2>Change Log for the Premium Version</h2>
1167
+ <h3>4.3.1</h3>
1168
+ <ul>
1169
+ <li>Added - Smooth height option to Testimonials Slider</li>
1170
+ </ul>
1171
  <h3>4.3</h3>
1172
  <ul>
1173
  <li>Added - Touch enabled, responsive Tab Slider widget for Elementor</li>
assets/js/lae-widgets.js CHANGED
@@ -21,7 +21,7 @@
21
  directionNav: settings['direction_nav'],
22
  prevText: "Previous<span></span>",
23
  nextText: "Next<span></span>",
24
- smoothHeight: false,
25
  animationLoop: true,
26
  slideshow: true,
27
  rtl: rtl,
21
  directionNav: settings['direction_nav'],
22
  prevText: "Previous<span></span>",
23
  nextText: "Next<span></span>",
24
+ smoothHeight: settings['smooth_height'],
25
  animationLoop: true,
26
  slideshow: true,
27
  rtl: rtl,
assets/js/lae-widgets.min.js CHANGED
@@ -1 +1 @@
1
- (function($){var WidgetLAETestimonialsSliderHandler=function($scope,$){var slider_elem=$scope.find(".lae-testimonials-slider").eq(0);var rtl=slider_elem.attr("dir")==="rtl";var settings=slider_elem.data("settings");slider_elem.flexslider({selector:".lae-slides > .lae-slide",animation:settings["slide_animation"],direction:settings["direction"],slideshowSpeed:settings["slideshow_speed"],animationSpeed:settings["animation_speed"],namespace:"lae-flex-",pauseOnAction:settings["pause_on_action"],pauseOnHover:settings["pause_on_hover"],controlNav:settings["control_nav"],directionNav:settings["direction_nav"],prevText:"Previous<span></span>",nextText:"Next<span></span>",smoothHeight:false,animationLoop:true,slideshow:true,rtl:rtl,easing:"swing",controlsContainer:"lae-testimonials-slider"})};var WidgetLAETabSliderHandler=function($scope,$){var slider_elem=$scope.find(".lae-tab-slider").eq(0);if(slider_elem.length>0){var rtl=slider_elem.attr("dir")==="rtl";var settings=slider_elem.data("settings");var autoplay=settings["autoplay"];var adaptive_height=settings["adaptive_height"];var infinite=settings["infinite_looping"];var autoplay_speed=parseInt(settings["autoplay_speed"])||3e3;var animation_speed=parseInt(settings["animation_speed"])||300;var pause_on_hover=settings["pause_on_hover"];var pause_on_focus=settings["pause_on_focus"];slider_elem.slick({arrows:false,dots:true,customPaging:function(slider,index){return $(slider.$slides[index]).find(".lae-tab-slide-nav")},infinite:infinite,autoplay:autoplay,autoplaySpeed:autoplay_speed,speed:animation_speed,fade:false,pauseOnHover:pause_on_hover,pauseOnFocus:pause_on_focus,adaptiveHeight:adaptive_height,slidesToShow:1,slidesToScroll:1,rtl:rtl})}};var WidgetLAEStatsBarHandler=function($scope,$){$scope.find(".lae-stats-bar-content").each(function(){var dataperc=$(this).data("perc");$(this).animate({width:dataperc+"%"},dataperc*20)})};var WidgetLAEStatsBarHandlerOnScroll=function($scope,$){$scope.livemeshWaypoint(function(direction){WidgetLAEStatsBarHandler($(this.element),$);this.destroy()},{offset:(window.innerHeight||document.documentElement.clientHeight)-150})};var WidgetLAEPiechartsHandler=function($scope,$){$scope.find(".lae-piechart .lae-percentage").each(function(){var track_color=$(this).data("track-color");var bar_color=$(this).data("bar-color");$(this).easyPieChart({animate:2e3,lineWidth:10,barColor:bar_color,trackColor:track_color,scaleColor:false,lineCap:"square",size:220})})};var WidgetLAEPiechartsHandlerOnScroll=function($scope,$){$scope.livemeshWaypoint(function(direction){WidgetLAEPiechartsHandler($(this.element),$);this.destroy()},{offset:(window.innerHeight||document.documentElement.clientHeight)-100})};var WidgetLAEOdometersHandler=function($scope,$){$scope.find(".lae-odometer .lae-number").each(function(){var odometer=$(this);setTimeout(function(){var data_stop=odometer.attr("data-stop");$(odometer).text(data_stop)},100)})};var WidgetLAEOdometersHandlerOnScroll=function($scope,$){$scope.livemeshWaypoint(function(direction){WidgetLAEOdometersHandler($(this.element),$);this.destroy()},{offset:(window.innerHeight||document.documentElement.clientHeight)-100})};var WidgetLAECarouselHandler=function($scope,$){var carousel_elem=$scope.find(".lae-carousel, .lae-posts-carousel").eq(0);if(carousel_elem.length>0){var rtl=carousel_elem.attr("dir")==="rtl";var settings=carousel_elem.data("settings");var arrows=settings["arrows"];var dots=settings["dots"];var autoplay=settings["autoplay"];var adaptive_height=settings["adaptive_height"];var autoplay_speed=parseInt(settings["autoplay_speed"])||3e3;var animation_speed=parseInt(settings["animation_speed"])||300;var fade=settings["fade"];var pause_on_hover=settings["pause_on_hover"];var display_columns=parseInt(settings["display_columns"])||4;var scroll_columns=parseInt(settings["scroll_columns"])||4;var tablet_width=parseInt(settings["tablet_width"])||800;var tablet_display_columns=parseInt(settings["tablet_display_columns"])||2;var tablet_scroll_columns=parseInt(settings["tablet_scroll_columns"])||2;var mobile_width=parseInt(settings["mobile_width"])||480;var mobile_display_columns=parseInt(settings["mobile_display_columns"])||1;var mobile_scroll_columns=parseInt(settings["mobile_scroll_columns"])||1;carousel_elem.slick({arrows:arrows,dots:dots,infinite:true,autoplay:autoplay,autoplaySpeed:autoplay_speed,speed:animation_speed,fade:false,pauseOnHover:pause_on_hover,adaptiveHeight:adaptive_height,slidesToShow:display_columns,slidesToScroll:scroll_columns,rtl:rtl,responsive:[{breakpoint:tablet_width,settings:{slidesToShow:tablet_display_columns,slidesToScroll:tablet_scroll_columns}},{breakpoint:mobile_width,settings:{slidesToShow:mobile_display_columns,slidesToScroll:mobile_scroll_columns}}]})}};var WidgetLAEPortfolioHandler=function($scope,$){if($().isotope===undefined){return}var portfolioElem=$scope.find(".lae-portfolio:not(.lae-custom-grid)");if(portfolioElem.length===0){return}var rtl=portfolioElem.attr("dir")==="rtl";var isotopeOptions=portfolioElem.data("isotope-options");portfolioElem.isotope({itemSelector:isotopeOptions["itemSelector"],layoutMode:isotopeOptions["layoutMode"],originLeft:!rtl});portfolioElem.imagesLoaded().progress(function(){portfolioElem.isotope("layout")});$scope.find(".lae-taxonomy-filter .lae-filter-item a").on("click",function(e){e.preventDefault();var selector=$(this).attr("data-value");portfolioElem.isotope({filter:selector});$(this).closest(".lae-taxonomy-filter").children().removeClass("lae-active");$(this).closest(".lae-filter-item").addClass("lae-active");return false})};$(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/lae-testimonials-slider.default",WidgetLAETestimonialsSliderHandler);if(elementorFrontend.isEditMode()){elementorFrontend.hooks.addAction("frontend/element_ready/lae-stats-bars.default",WidgetLAEStatsBarHandler);elementorFrontend.hooks.addAction("frontend/element_ready/lae-piecharts.default",WidgetLAEPiechartsHandler);elementorFrontend.hooks.addAction("frontend/element_ready/lae-odometers.default",WidgetLAEOdometersHandler)}else{elementorFrontend.hooks.addAction("frontend/element_ready/lae-stats-bars.default",WidgetLAEStatsBarHandlerOnScroll);elementorFrontend.hooks.addAction("frontend/element_ready/lae-piecharts.default",WidgetLAEPiechartsHandlerOnScroll);elementorFrontend.hooks.addAction("frontend/element_ready/lae-odometers.default",WidgetLAEOdometersHandlerOnScroll)}elementorFrontend.hooks.addAction("frontend/element_ready/lae-tab-slider.default",WidgetLAETabSliderHandler);elementorFrontend.hooks.addAction("frontend/element_ready/lae-posts-carousel.default",WidgetLAECarouselHandler);elementorFrontend.hooks.addAction("frontend/element_ready/lae-portfolio.default",WidgetLAEPortfolioHandler);elementorFrontend.hooks.addAction("frontend/element_ready/lae-carousel.default",WidgetLAECarouselHandler)})})(jQuery);
1
+ (function($){var WidgetLAETestimonialsSliderHandler=function($scope,$){var slider_elem=$scope.find(".lae-testimonials-slider").eq(0);var rtl=slider_elem.attr("dir")==="rtl";var settings=slider_elem.data("settings");slider_elem.flexslider({selector:".lae-slides > .lae-slide",animation:settings["slide_animation"],direction:settings["direction"],slideshowSpeed:settings["slideshow_speed"],animationSpeed:settings["animation_speed"],namespace:"lae-flex-",pauseOnAction:settings["pause_on_action"],pauseOnHover:settings["pause_on_hover"],controlNav:settings["control_nav"],directionNav:settings["direction_nav"],prevText:"Previous<span></span>",nextText:"Next<span></span>",smoothHeight:settings["smooth_height"],animationLoop:true,slideshow:true,rtl:rtl,easing:"swing",controlsContainer:"lae-testimonials-slider"})};var WidgetLAETabSliderHandler=function($scope,$){var slider_elem=$scope.find(".lae-tab-slider").eq(0);if(slider_elem.length>0){var rtl=slider_elem.attr("dir")==="rtl";var settings=slider_elem.data("settings");var autoplay=settings["autoplay"];var adaptive_height=settings["adaptive_height"];var infinite=settings["infinite_looping"];var autoplay_speed=parseInt(settings["autoplay_speed"])||3e3;var animation_speed=parseInt(settings["animation_speed"])||300;var pause_on_hover=settings["pause_on_hover"];var pause_on_focus=settings["pause_on_focus"];slider_elem.slick({arrows:false,dots:true,customPaging:function(slider,index){return $(slider.$slides[index]).find(".lae-tab-slide-nav")},infinite:infinite,autoplay:autoplay,autoplaySpeed:autoplay_speed,speed:animation_speed,fade:false,pauseOnHover:pause_on_hover,pauseOnFocus:pause_on_focus,adaptiveHeight:adaptive_height,slidesToShow:1,slidesToScroll:1,rtl:rtl})}};var WidgetLAEStatsBarHandler=function($scope,$){$scope.find(".lae-stats-bar-content").each(function(){var dataperc=$(this).data("perc");$(this).animate({width:dataperc+"%"},dataperc*20)})};var WidgetLAEStatsBarHandlerOnScroll=function($scope,$){$scope.livemeshWaypoint(function(direction){WidgetLAEStatsBarHandler($(this.element),$);this.destroy()},{offset:(window.innerHeight||document.documentElement.clientHeight)-150})};var WidgetLAEPiechartsHandler=function($scope,$){$scope.find(".lae-piechart .lae-percentage").each(function(){var track_color=$(this).data("track-color");var bar_color=$(this).data("bar-color");$(this).easyPieChart({animate:2e3,lineWidth:10,barColor:bar_color,trackColor:track_color,scaleColor:false,lineCap:"square",size:220})})};var WidgetLAEPiechartsHandlerOnScroll=function($scope,$){$scope.livemeshWaypoint(function(direction){WidgetLAEPiechartsHandler($(this.element),$);this.destroy()},{offset:(window.innerHeight||document.documentElement.clientHeight)-100})};var WidgetLAEOdometersHandler=function($scope,$){$scope.find(".lae-odometer .lae-number").each(function(){var odometer=$(this);setTimeout(function(){var data_stop=odometer.attr("data-stop");$(odometer).text(data_stop)},100)})};var WidgetLAEOdometersHandlerOnScroll=function($scope,$){$scope.livemeshWaypoint(function(direction){WidgetLAEOdometersHandler($(this.element),$);this.destroy()},{offset:(window.innerHeight||document.documentElement.clientHeight)-100})};var WidgetLAECarouselHandler=function($scope,$){var carousel_elem=$scope.find(".lae-carousel, .lae-posts-carousel").eq(0);if(carousel_elem.length>0){var rtl=carousel_elem.attr("dir")==="rtl";var settings=carousel_elem.data("settings");var arrows=settings["arrows"];var dots=settings["dots"];var autoplay=settings["autoplay"];var adaptive_height=settings["adaptive_height"];var autoplay_speed=parseInt(settings["autoplay_speed"])||3e3;var animation_speed=parseInt(settings["animation_speed"])||300;var fade=settings["fade"];var pause_on_hover=settings["pause_on_hover"];var display_columns=parseInt(settings["display_columns"])||4;var scroll_columns=parseInt(settings["scroll_columns"])||4;var tablet_width=parseInt(settings["tablet_width"])||800;var tablet_display_columns=parseInt(settings["tablet_display_columns"])||2;var tablet_scroll_columns=parseInt(settings["tablet_scroll_columns"])||2;var mobile_width=parseInt(settings["mobile_width"])||480;var mobile_display_columns=parseInt(settings["mobile_display_columns"])||1;var mobile_scroll_columns=parseInt(settings["mobile_scroll_columns"])||1;carousel_elem.slick({arrows:arrows,dots:dots,infinite:true,autoplay:autoplay,autoplaySpeed:autoplay_speed,speed:animation_speed,fade:false,pauseOnHover:pause_on_hover,adaptiveHeight:adaptive_height,slidesToShow:display_columns,slidesToScroll:scroll_columns,rtl:rtl,responsive:[{breakpoint:tablet_width,settings:{slidesToShow:tablet_display_columns,slidesToScroll:tablet_scroll_columns}},{breakpoint:mobile_width,settings:{slidesToShow:mobile_display_columns,slidesToScroll:mobile_scroll_columns}}]})}};var WidgetLAEPortfolioHandler=function($scope,$){if($().isotope===undefined){return}var portfolioElem=$scope.find(".lae-portfolio:not(.lae-custom-grid)");if(portfolioElem.length===0){return}var rtl=portfolioElem.attr("dir")==="rtl";var isotopeOptions=portfolioElem.data("isotope-options");portfolioElem.isotope({itemSelector:isotopeOptions["itemSelector"],layoutMode:isotopeOptions["layoutMode"],originLeft:!rtl});portfolioElem.imagesLoaded().progress(function(){portfolioElem.isotope("layout")});$scope.find(".lae-taxonomy-filter .lae-filter-item a").on("click",function(e){e.preventDefault();var selector=$(this).attr("data-value");portfolioElem.isotope({filter:selector});$(this).closest(".lae-taxonomy-filter").children().removeClass("lae-active");$(this).closest(".lae-filter-item").addClass("lae-active");return false})};$(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/lae-testimonials-slider.default",WidgetLAETestimonialsSliderHandler);if(elementorFrontend.isEditMode()){elementorFrontend.hooks.addAction("frontend/element_ready/lae-stats-bars.default",WidgetLAEStatsBarHandler);elementorFrontend.hooks.addAction("frontend/element_ready/lae-piecharts.default",WidgetLAEPiechartsHandler);elementorFrontend.hooks.addAction("frontend/element_ready/lae-odometers.default",WidgetLAEOdometersHandler)}else{elementorFrontend.hooks.addAction("frontend/element_ready/lae-stats-bars.default",WidgetLAEStatsBarHandlerOnScroll);elementorFrontend.hooks.addAction("frontend/element_ready/lae-piecharts.default",WidgetLAEPiechartsHandlerOnScroll);elementorFrontend.hooks.addAction("frontend/element_ready/lae-odometers.default",WidgetLAEOdometersHandlerOnScroll)}elementorFrontend.hooks.addAction("frontend/element_ready/lae-tab-slider.default",WidgetLAETabSliderHandler);elementorFrontend.hooks.addAction("frontend/element_ready/lae-posts-carousel.default",WidgetLAECarouselHandler);elementorFrontend.hooks.addAction("frontend/element_ready/lae-portfolio.default",WidgetLAEPortfolioHandler);elementorFrontend.hooks.addAction("frontend/element_ready/lae-carousel.default",WidgetLAECarouselHandler)})})(jQuery);
includes/widgets/testimonials-slider.php CHANGED
@@ -209,6 +209,19 @@ class LAE_Testimonials_Slider_Widget extends Widget_Base {
209
  ]
210
  );
211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  $this->add_control(
213
  'direction_nav',
214
  [
@@ -452,7 +465,8 @@ class LAE_Testimonials_Slider_Widget extends Widget_Base {
452
  'control_nav' => ('yes' === $settings['control_nav']),
453
  'direction_nav' => ('yes' === $settings['direction_nav']),
454
  'pause_on_hover' => ('yes' === $settings['pause_on_hover']),
455
- 'pause_on_action' => ('yes' === $settings['pause_on_action'])
 
456
  ];
457
 
458
  $output = '<div' . $dir . $style . ' class="lae-testimonials-slider lae-flexslider lae-container" data-settings=\'' . wp_json_encode($slider_options) . '\'>';
209
  ]
210
  );
211
 
212
+ $this->add_control(
213
+ 'smooth_height',
214
+ [
215
+ 'type' => Controls_Manager::SWITCHER,
216
+ 'label_off' => __('No', 'livemesh-el-addons'),
217
+ 'label_on' => __('Yes', 'livemesh-el-addons'),
218
+ 'return_value' => 'yes',
219
+ 'default' => 'no',
220
+ 'label' => __('Smooth Height?', 'livemesh-el-addons'),
221
+ 'description' => __('Animate the height of the slider smoothly for slides of varying height.', 'livemesh-el-addons'),
222
+ ]
223
+ );
224
+
225
  $this->add_control(
226
  'direction_nav',
227
  [
465
  'control_nav' => ('yes' === $settings['control_nav']),
466
  'direction_nav' => ('yes' === $settings['direction_nav']),
467
  'pause_on_hover' => ('yes' === $settings['pause_on_hover']),
468
+ 'pause_on_action' => ('yes' === $settings['pause_on_action']),
469
+ 'smooth_height' => ('yes' === $settings['smooth_height'])
470
  ];
471
 
472
  $output = '<div' . $dir . $style . ' class="lae-testimonials-slider lae-flexslider lae-container" data-settings=\'' . wp_json_encode($slider_options) . '\'>';
plugin.php CHANGED
@@ -45,7 +45,7 @@ if ( !class_exists( 'Livemesh_Elementor_Addons' ) ) {
45
  public function __clone()
46
  {
47
  // Cloning instances of the class is forbidden
48
- _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'livemesh-el-addons' ), '4.3' );
49
  }
50
 
51
  /**
@@ -55,7 +55,7 @@ if ( !class_exists( 'Livemesh_Elementor_Addons' ) ) {
55
  public function __wakeup()
56
  {
57
  // Unserializing instances of the class is forbidden
58
- _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'livemesh-el-addons' ), '4.3' );
59
  }
60
 
61
  private function setup_debug_constants()
45
  public function __clone()
46
  {
47
  // Cloning instances of the class is forbidden
48
+ _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'livemesh-el-addons' ), '4.3.1' );
49
  }
50
 
51
  /**
55
  public function __wakeup()
56
  {
57
  // Unserializing instances of the class is forbidden
58
+ _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'livemesh-el-addons' ), '4.3.1' );
59
  }
60
 
61
  private function setup_debug_constants()
readme.txt CHANGED
@@ -5,7 +5,7 @@ Contributors: livemesh, elementoraddons, freemius
5
  Tags: elementor, elementor addons, elementor extensions, elementor widgets, page builder, woocommerce elementor
6
  Requires at least: 4.5
7
  Tested up to: 5.5
8
- Stable Tag: 4.3
9
  License: GPLv3
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -121,6 +121,9 @@ Pls install and activate the <a href="https://wordpress.org/plugins/portfolio-po
121
 
122
 
123
 
 
 
 
124
  = 4.3 =
125
  * Added - Touch enabled, responsive Tab Slider widget for Elementor
126
  * Added - Three default styles for Tab Slider widget
5
  Tags: elementor, elementor addons, elementor extensions, elementor widgets, page builder, woocommerce elementor
6
  Requires at least: 4.5
7
  Tested up to: 5.5
8
+ Stable Tag: 4.3.1
9
  License: GPLv3
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
121
 
122
 
123
 
124
+ = 4.3.1 =
125
+ * Added - Smooth height option to Testimonials Slider
126
+
127
  = 4.3 =
128
  * Added - Touch enabled, responsive Tab Slider widget for Elementor
129
  * Added - Three default styles for Tab Slider widget