Elementor Addon Elements - Version 1.9.2

Version Description

  • Tweak : Added Compatibility for Elementor 3.1
Download this release

Release Info

Developer wpvibes
Plugin Icon 128x128 Elementor Addon Elements
Version 1.9.2
Comparing to
See all releases

Code changes from version 1.9.1 to 1.9.2

assets/js/eae.js CHANGED
@@ -2809,10 +2809,21 @@ let EAEThumbGallery = function ($scope, $) {
2809
  }
2810
  }
2811
 
 
 
 
 
 
 
 
 
 
 
 
2812
 
2813
  //console.log(sliderData);
2814
- window.sswiper = new Swiper('.elementor-element-' + wid + ' .eae-swiper-outer-wrapper .eae-swiper-container', sliderData);
2815
- $('.elementor-element-' + wid + ' .eae-swiper-outer-wrapper .eae-swiper-container').css('visibility', 'visible');
2816
  };
2817
 
2818
 
2809
  }
2810
  }
2811
 
2812
+ if ( 'undefined' === typeof Swiper ) {
2813
+ const asyncSwiper = elementorFrontend.utils.swiper;
2814
+ new asyncSwiper( '.elementor-element-' + wid + ' .eae-swiper-outer-wrapper .eae-swiper-container', sliderData ).then( ( newSwiperInstance ) => {
2815
+ sswiper = newSwiperInstance;
2816
+ } );
2817
+ } else {
2818
+ window.sswiper = new Swiper('.elementor-element-' + wid + ' .eae-swiper-outer-wrapper .eae-swiper-container', sliderData);
2819
+ $('.elementor-element-' + wid + ' .eae-swiper-outer-wrapper .eae-swiper-container').css('visibility', 'visible');
2820
+ //mySwiper = new Swiper( swiperElement, swiperConfig );
2821
+ }
2822
+
2823
 
2824
  //console.log(sliderData);
2825
+ // window.sswiper = new Swiper('.elementor-element-' + wid + ' .eae-swiper-outer-wrapper .eae-swiper-container', sliderData);
2826
+ // $('.elementor-element-' + wid + ' .eae-swiper-outer-wrapper .eae-swiper-container').css('visibility', 'visible');
2827
  };
2828
 
2829
 
assets/js/eae.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/wts-gmap.default",(function(e){map=function(a){$wrapper=e.find(".eae-markers");var t=$wrapper.data("zoom"),i=a.find(".marker"),n=$wrapper.data("style"),d=($wrapper.data("scroll"),{zoom:t,center:new google.maps.LatLng(0,0),mapTypeId:google.maps.MapTypeId.ROADMAP,styles:n}),r=new google.maps.Map(a[0],d);return r.markers=[],i.each((function(){!function(a,t){var i=$wrapper.data("animate");$wrapper.data("show-info-window-onload");$wrapper=e.find(".eae-markers");var n=new google.maps.LatLng(a.attr("data-lat"),a.attr("data-lng"));if(icon_img=a.attr("data-icon"),""!=icon_img)var d={url:a.attr("data-icon"),scaledSize:new google.maps.Size(a.attr("data-icon-size"),a.attr("data-icon-size"))};var r=new google.maps.Marker({position:n,map:t,icon:d,animation:google.maps.Animation.DROP});"animate-yes"==i&&"yes"!=a.data("info-window")&&r.setAnimation(google.maps.Animation.BOUNCE);"animate-yes"==i&&google.maps.event.addListener(r,"click",(function(){r.setAnimation(null)}));if(t.markers.push(r),a.html()){var s=new google.maps.InfoWindow({content:a.html()});"yes"==a.data("info-window")&&s.open(t,r),google.maps.event.addListener(r,"click",(function(){s.open(t,r)}))}"animate-yes"==i&&google.maps.event.addListener(s,"closeclick",(function(){r.setAnimation(google.maps.Animation.BOUNCE)}))}(jQuery(this),r)})),function(e,a){var t=new google.maps.LatLngBounds;jQuery.each(e.markers,(function(e,a){var i=new google.maps.LatLng(a.position.lat(),a.position.lng());t.extend(i)})),1==e.markers.length?(e.setCenter(t.getCenter()),e.setZoom(a)):e.fitBounds(t)}(r,t),r}(e.find(".eae-markers"))})),elementorFrontend.hooks.addAction("frontend/element_ready/global",(function(e){var a,t,i,n,d,r,s,l=[],o=[],c=e.children(".eae-section-bs").children(".eae-section-bs-inner");c&&c.data("eae-bg-slider")&&(slider_images=c.data("eae-bg-slider"),a=c.data("eae-bg-slider-transition"),t=c.data("eae-bg-slider-animation"),n=("yes"==(i=c.data("eae-bg-custom-overlay"))||c.data("eae-bg-slider-overlay"),eae_editor.plugin_url+"assets/lib/vegas/overlays/"+c.data("eae-bg-slider-overlay")),d=c.data("eae-bg-slider-cover"),r=c.data("eae-bs-slider-delay"),s=c.data("eae-bs-slider-timer"),"undefined"!=typeof slider_images&&(l=slider_images.split(","),jQuery.each(l,(function(e,a){var t=[];t.src=a,o.push(t)})),c.vegas({slides:o,transition:a,animation:t,overlay:n,cover:d,delay:r,timer:s,init:function(){"yes"==i&&c.children(".vegas-overlay").css("background-image","")}})))}))}));var isEditMode=!1,breakpoints=eae.breakpoints;!function(e){e(window).on("elementor/frontend/init",(function(){var a=function(e,a){function t(e){$icons=a(document).find(e).find(".eae-ic-icon-wrap"),window.innerWidth<767?$icons.each((function(e,t){a(t).css("top",a(t).height()/2+8+"px"),a(t).next(".eae-info-circle-item__content-wrap").css("padding-top",a(t).height()/2+8+"px")})):$icons.each((function(e,t){a(t).css("margin-left",-.5*a(t).outerWidth()),a(t).css("margin-top",-.5*a(t).outerHeight()),$a=function(e){return e=(e-90)*Math.PI/180,{x:50+45*Math.cos(e),y:50+45*Math.sin(e)}}($angle),$b=360/$icons.length,a(t).css("left",$a.x+"%"),a(t).css("top",$a.y+"%"),$angle+=$b}))}$wrap_class=".elementor-element-"+e.data("id"),$angle=0,t(e);var i=null;function n(){"yes"==e.find(".eae-info-circle").data("autoplay")&&(i=setInterval(d,$autoplayDuration))}function d(){e.find(".eae-active").next().length>0?e.find(".eae-active").next().addClass("eae-active").siblings().removeClass("eae-active"):e.find(".eae-info-circle-item").eq(0).addClass("eae-active").siblings().removeClass("eae-active")}$autoplayDuration=e.find(".eae-info-circle").data("delay"),n(),e.find(".eae-ic-icon-wrap").hover((function(){clearInterval(i)}),(function(){n()})),e.find(".eae-info-circle-item").length>0&&a(e.find(".eae-info-circle-item")[0]).addClass("eae-active"),e.find(".eae-ic-icon-wrap").on("click",(function(){e.find(".eae-info-circle-item").removeClass("eae-active"),a(this).parent().addClass("eae-active")})),e.hasClass("eae-mouseenter-yes")&&e.find(".eae-ic-icon-wrap").on("mouseenter",(function(){e.find(".eae-info-circle-item").removeClass("eae-active"),a(this).parent().addClass("eae-active")})),window.addEventListener("resize",t.bind(this,$wrap_class))},t=function(e,a){function t(){var t=e.find(".eae-timline-progress-bar"),i=e.find(".eae-timeline-item"),n=e.find(".eae-timeline");const d=n.data("top-offset");var r=a(n).height(),s=a(i).last().find(".eae-tl-icon-wrapper").offset().top-a(i[0]).parent().offset().top,l=e.find(".eae-tl-icon-wrapper");a(t).css("top",a(i[0]).find(".eae-tl-icon-wrapper").offset().top-a(i[0]).parent().offset().top),a(t).css("bottom",r-s),a(t).css("left",l.eq(0)[0].offsetLeft+l.eq(0).width()/2),a(t).css("display","block"),i.each((function(e,t){new Waypoint({element:a(t),handler:function(e){"down"==e?a(t).addClass("eae-tl-item-focused"):a(t).removeClass("eae-tl-item-focused")},offset:d})}))}t(),window.addEventListener("resize",t),window.addEventListener("scroll",(function(){e.find(".eae-timline-progress-bar");const t=e.find(".eae-timeline").data("top-offset");e.find(".eae-pb-inner-line").css("height",a(window).scrollTop()-e.find(".eae-timeline").offset().top+t),e.find(".eae-pb-inner-line").css("max-height",e.find(".eae-pb-inner-line").parent().height())}))};function i(e,a,t){var i=new Date;i.setTime(i.getTime()+60*t*60*1e3);var n="expires="+i.toUTCString();document.cookie=e+"="+a+";"+n+";path=/"}function n(e){for(var a=e+"=",t=decodeURIComponent(document.cookie).split(";"),i=0;i<t.length;i++){for(var n=t[i];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(a))return n.substring(a.length,n.length)}return""}var d=function(e,a){$is_rtl=jQuery("body").hasClass("rtl"),$wrapper=e.find(".eae-progress-bar");$wrapper.attr("data-skill");var t=$wrapper.attr("data-value"),i=$wrapper.attr("data-skin"),n=$wrapper.find(".eae-pb-bar-skill"),d=$wrapper.find(".eae-pb-bar-value"),r=$wrapper.find(".eae-pb-bar"),s=$wrapper.find(".eae-pb-bar-inner");"skin1"===i&&a(s).attr("style","width : "+t+"%"),"skin2"===i&&a(s).attr("style","width : "+t+"%"),"skin3"===i&&(a(d).addClass("eae-pb-bar-value--aligned-value"),$is_rtl?a(d).attr("style","right :"+t+"%"):a(d).attr("style","left :"+t+"%"),a(s).attr("style","width :"+t+"%")),"skin4"===i&&(a(d).addClass("eae-pb-bar-value--aligned-value"),$is_rtl?a(d).attr("style","right :"+t+"%"):a(d).attr("style","left :"+t+"%"),a(s).attr("style","width :"+t+"%"),a(r).addClass("eae-pb-bar--no-overflow")),"skin5"===i&&(a(d).addClass("eae-pb-bar-value--aligned-value"),$is_rtl?a(d).attr("style","right :"+t+"%"):a(d).attr("style","left :"+t+"%"),a(s).attr("style","width :"+t+"%")),$wrapper.each((function(e,t){new Waypoint({element:t,skill_value:a(t).find(".eae-pb-bar-skill"),valueElem:a(t).find(".eae-pb-bar-value"),prgBar:a(t).find(".eae-pb-bar-bar"),prgInner:a(t).find(".eae-pb-bar-inner"),handler:function(e){"down"==e&&(a(d).hasClass("js-animated")||a(d).addClass("js-animated"),a(s).hasClass("js-animated")||a(s).addClass("js-animated"),a(n).hasClass("js-animated")||a(n).addClass("js-animated"))},offset:"bottom-in-view"})}))},r=function(e,a){var t=e.find(".eae-content-switcher-wrapper"),i=(e.data("id"),t.find(".eae-content-switch-button"));i.each((function(e,n){a(this).on("click",(function(e){e.preventDefault();let n=a(this).find(".eae-content-switch-label");if(!a(this).hasClass("active")){a(i).removeClass("active");let e=a(n).attr("id");a(this).addClass("active");var d=a(t).find(".eae-cs-content-section");a(d).removeClass("active");let r=a(t).find(".eae-content-section-"+e);a(r).addClass("active")}}))}))},s=function(e,a){let t=e.find(".eae-content-switcher-wrapper"),i=(e.data("id"),t.find(".eae-cs-switch-label")),n=t.find(".eae-content-switch-label.primary-label");const d=a(n).attr("item_id");let r=t.find(".eae-content-switch-label.secondary-label");const s=a(r).attr("item_id");let l=t.find(".eae-cs-content-section.eae-content-section-"+d),o=t.find(".eae-cs-content-section.eae-content-section-"+s);a(i).on("click",(function(e){a(this).find("input.eae-content-toggle-switch").is(":checked")?(r.addClass("active"),o.addClass("active"),n.removeClass("active"),l.removeClass("active")):(n.addClass("active"),l.addClass("active"),r.removeClass("active"),o.removeClass("active"))}))};e.fn.EAEHoverDirection=function(a){var t=e.extend({inaccuracy:30,speed:200},a);this.find(".overlay").css({top:-9999999}),this.mouseenter((function(a){container=e(this),overlay=container.find(".overlay"),parentOffset=container.offset(),relX=a.pageX-parentOffset.left,relY=a.pageY-parentOffset.top,overlay.css({top:0,left:0,width:container.width(),height:container.height()}),relX>container.width()-t.inaccuracy?overlay.css({top:0,left:container.width()}):relX<t.inaccuracy?overlay.css({top:0,left:-container.width()}):relY>container.height()-t.inaccuracy?overlay.css({top:container.width(),left:0}):relY<t.inaccuracy&&overlay.css({top:-container.width(),left:0}),overlay.animate({top:0,left:0},t.speed)})),this.mouseleave((function(a){container=e(this),overlay=container.find(".overlay"),parentOffset=container.offset(),relX=a.pageX-parentOffset.left,relY=a.pageY-parentOffset.top,relX<=0&&overlay.animate({top:0,left:-container.width()},t.speed),relX>=container.width()&&overlay.animate({top:0,left:container.width()},t.speed),relY<=0&&overlay.animate({left:0,top:-container.height()},t.speed),relY>=container.height()&&overlay.animate({left:0,top:container.height()},t.speed)}))};elementorFrontend.hooks.addAction("frontend/element_ready/wts-ab-image.default",(function(e,a){e.find(".eae-img-comp-container").imagesLoaded().done((function(){ab_style=e.find(".eae-img-comp-container").data("ab-style"),slider_pos=e.find(".eae-img-comp-container").data("slider-pos"),"horizontal"===ab_style?(separator_width=parseInt(e.find(".eae-img-comp-overlay").css("border-right-width")),function(e){var a,t;a=e.find(".eae-img-comp-overlay"),t=(t=a.width())*slider_pos/100,function(a){var i,n,d,r=0;function s(e){e.preventDefault(),r=1,window.addEventListener("mousemove",o),i.addEventListener("touchmove",c)}function l(){r=0}function o(e){var t;if(0==r)return!1;(t=function(e){var t;return e=e||window.event,t=a.getBoundingClientRect(),e.pageX-t.left}(e))<0&&(t=0),t>n&&(t=n),f(t)}function c(e){var t;if(0==r)return!1;(t=function(e){var t;return t=a.getBoundingClientRect(),e.changedTouches[0].clientX-t.left}(e))<0&&(t=0),t>n&&(t=n),f(t)}function f(e){a.style.width=e+"px",i.style.left=a.offsetWidth-i.offsetWidth/2-separator_width/2+"px"}n=a.offsetWidth,d=a.offsetHeight,a.style.width=t+"px",(i=(i=e.find(".eae-img-comp-slider"))[0]).style.top=d/2-i.offsetHeight/2+"px",i.style.left=t-i.offsetWidth/2-separator_width/2+"px",e.hasClass("elementor-element-edit-mode")||(i.addEventListener("mousedown",s),window.addEventListener("mouseup",l),i.addEventListener("touchstart",s),window.addEventListener("touchstop",l))}(a[0])}(e)):(separator_width=parseInt(e.find(".eae-img-comp-overlay").css("border-bottom-width")),function(e){var a;a=e.find(".eae-img-comp-overlay"),start_pos=a.height(),start_pos=start_pos*slider_pos/100,function(a){var t,i,n,d=0;function r(e){e.preventDefault(),d=1,window.addEventListener("mousemove",l),t.addEventListener("touchmove",o)}function s(){d=0}function l(e){var t;if(0==d)return!1;(t=function(e){var t,i=0;return e=e||window.event,t=a.getBoundingClientRect(),i=e.pageY-t.top,i-=window.pageYOffset}(e))<0&&(t=0),t>n&&(t=n),c(t)}function o(e){var t;if(0==d)return!1;(t=function(e){var t;return t=a.getBoundingClientRect(),e.changedTouches[0].clientY-t.top}(e))<0&&(t=0),t>n&&(t=n),c(t)}function c(e){a.style.height=e+"px",t.style.top=a.offsetHeight-t.offsetHeight/2-separator_width/2+"px"}i=a.offsetWidth,n=a.offsetHeight,a.style.height=start_pos+"px",(t=(t=e.find(".eae-img-comp-slider"))[0]).style.top=start_pos-t.offsetHeight/2-separator_width/2+"px",t.style.left=i/2-t.offsetWidth/2+"px",e.hasClass("elementor-element-edit-mode")||(t.addEventListener("mousedown",r),window.addEventListener("mouseup",s),t.addEventListener("touchstart",r),window.addEventListener("touchstop",s))}(a[0])}(e))}))})),elementorFrontend.hooks.addAction("frontend/element_ready/global",(function(e,a){e.hasClass("eae-particle-yes")&&(id=e.data("id"),element_type=e.data("element_type"),pdata=e.data("eae-particle"),pdata_wrapper=e.find(".eae-particle-wrapper").data("eae-pdata"),"undefined"!=typeof pdata&&""!=pdata?e.find(".eae-section-bs").length>0?(e.find(".eae-section-bs").after('<div class="eae-particle-wrapper" id="eae-particle-'+id+'"></div>'),particlesJS("eae-particle-"+id,pdata)):("column"==element_type?e.prepend('<div class="eae-particle-wrapper" id="eae-particle-'+id+'"></div>'):e.prepend('<div class="eae-particle-wrapper " id="eae-particle-'+id+'"></div>'),particlesJS("eae-particle-"+id,pdata)):"undefined"!=typeof pdata_wrapper&&""!=pdata_wrapper&&(element_type,e.prepend('<div class="eae-particle-wrapper eae-particle-area" id="eae-particle-'+id+'"></div>'),particlesJS("eae-particle-"+id,JSON.parse(pdata_wrapper))))})),elementorFrontend.hooks.addAction("frontend/element_ready/global",(function(e,a){if(e.hasClass("eae-animated-gradient-yes")){id=e.data("id"),color=e.data("color"),angle=e.data("angle");var t="linear-gradient("+angle+","+color+")";heading=e.find(".elementor-heading-title"),e.css("background-image",t),e.hasClass("elementor-element-edit-mode")&&(color=e.find(".animated-gradient").data("color"),angle=e.find(".animated-gradient").data("angle"),gradient_color_editor="linear-gradient("+angle+","+color+")",e.prepend('<div class="animated-gradient" style="background-image : '+gradient_color_editor+' "></div>'))}})),elementorFrontend.hooks.addAction("frontend/element_ready/wts-modal-popup.default",(function(e,a){$preview_modal=e.find(".eae-popup-wrapper").data("preview-modal"),$close_btn_type=e.find(".eae-popup-wrapper").data("close-button-type"),$close_btn=e.find(".eae-popup-wrapper").data("close-btn"),"icon"==$close_btn_type?$close_btn_html='<i class="eae-close '+$close_btn+'"> </i>':$close_btn_html='<svg class="eae-close" style="-webkit-mask: url('+$close_btn+"); mask: url("+$close_btn+'); "></svg>',$magnific=e.find(".eae-popup-link").eaePopup({type:"inline",disableOn:0,key:null,midClick:!1,mainClass:"eae-popup eae-popup-"+e.find(".eae-popup-link").data("id")+" eae-wrap-"+e.find(".eae-popup-link").data("ctrl-id"),preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:e.find(".eae-popup-wrapper").data("close-in-out"),showCloseBtn:!0,enableEscapeKey:!1,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:$close_btn_html,tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}),"yes"==$preview_modal&&e.hasClass("elementor-element-edit-mode")&&e.find(".eae-popup-link").click()})),elementorFrontend.hooks.addAction("frontend/element_ready/wts-testimonial-slider.default",(function(e,a){if(e.find(".eae-grid-wrapper").hasClass("eae-masonry-yes")){var t=e.find(".eae-grid").masonry({});t.imagesLoaded().progress((function(){t.masonry("layout")}))}if(e.find(".eae-layout-carousel").length){outer_wrapper=e.find(".eae-swiper-outer-wrapper"),wid=e.data("id"),wclass=".elementor-element-"+wid;var i=outer_wrapper.data("direction"),n=outer_wrapper.data("speed"),d=outer_wrapper.data("autoplay"),r=outer_wrapper.data("duration"),s=outer_wrapper.data("effect"),l=outer_wrapper.data("space"),o=outer_wrapper.data("loop");o="yes"==o;var c=outer_wrapper.data("slides-per-view"),f=outer_wrapper.data("slides-per-group"),p=outer_wrapper.data("ptype"),m=outer_wrapper.data("navigation"),u=outer_wrapper.data("clickable"),g=outer_wrapper.data("keyboard"),v=outer_wrapper.data("scrollbar");adata={direction:i,effect:s,spaceBetween:l.desktop,loop:o,speed:n,slidesPerView:c.desktop,slidesPerGroup:f.desktop,observer:!0,mousewheel:{invert:!0},breakpoints:{1024:{spaceBetween:l.tablet,slidesPerView:c.tablet,slidesPerGroup:f.tablet},767:{spaceBetween:l.mobile,slidesPerView:c.mobile,slidesPerGroup:f.mobile}}},"fade"==s&&(adata.fadeEffect={crossFade:!1}),adata.autoplay="yes"==d&&{delay:r,disableOnInteraction:!1},"yes"==m&&(adata.navigation={nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}),""!=p&&(adata.pagination={el:".swiper-pagination",type:p}),"bullets"==p&&"yes"==u&&(adata.pagination={el:".swiper-pagination",clickable:!0,type:p}),"yes"==v&&(adata.scrollbar={el:".swiper-scrollbar",draggable:!0}),"yes"==g&&(adata.keyboard={enabled:!0,onlyInViewport:!0}),0==o&&(adata.autoplay={delay:r,stopOnLastSlide:!0,disableOnInteraction:!1}),window.mswiper=new Swiper(".elementor-element-"+wid+" .eae-swiper-outer-wrapper .swiper-container",adata),a(".elementor-element-"+wid+" .eae-swiper-outer-wrapper .swiper-container").css("visibility","visible")}})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-info-circle.skin1",a),elementorFrontend.hooks.addAction("frontend/element_ready/eae-info-circle.skin2",a),elementorFrontend.hooks.addAction("frontend/element_ready/eae-info-circle.skin3",a),elementorFrontend.hooks.addAction("frontend/element_ready/eae-info-circle.skin4",a),elementorFrontend.hooks.addAction("frontend/element_ready/eae-timeline.skin1",t),elementorFrontend.hooks.addAction("frontend/element_ready/eae-timeline.skin2",t),elementorFrontend.hooks.addAction("frontend/element_ready/eae-timeline.skin3",t),elementorFrontend.hooks.addAction("frontend/element_ready/eae-timeline.skin4",t),elementorFrontend.hooks.addAction("frontend/element_ready/eae-evergreen-timer.skin1",(function(e,a){var t=e.find(".eae-evergreen-wrapper").data("egtime"),d=e.find(".eae-evergreen-wrapper").data("egt-expire"),r=e.find(".eae-evergreen-wrapper").data("element-type"),s="eae-"+e.find(".eae-evergreen-wrapper").data("id"),l="eae-temp-"+e.find(".eae-evergreen-wrapper").data("id"),o=e.find(".eae-evergreen-wrapper").data("actions"),c=e.find(".eae-evergreen-wrapper").data("unqid"),f=(new Date).getTime();if(!e.hasClass("elementor-element-edit-mode"))if("countdown"===r){u=new Date(t),t=u.getTime();var p="expires="+u.toUTCString();document.cookie=l+"="+u.getTime()+";"+p+";path=/"}else{var m=n(s),u="";if(""!==m){(u=new Date(parseInt(m))).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime();var g=new Date(parseInt(m));g.setTime(g.getTime()+60*d*60*1e3);var v="expires="+g.toUTCString();document.cookie=s+"="+m+";"+v+";path=/";var h=new Date(parseInt(m));h.setTime(h.getTime()+1e3*e.find(".eae-evergreen-wrapper").data("egtime"));p="expires="+h.toUTCString();t-f>0&&(document.cookie=l+"="+m+";"+p+";path=/")}else{temp_date=t,(u=new Date).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime(),i(s,(new Date).getTime(),d);var w=new Date;w.setTime(w.getTime()+1e3*temp_date);var y="expires="+w.toUTCString();document.cookie=l+"="+(new Date).getTime()+";"+y+";path=/"}}if(!e.hasClass("elementor-element-edit-mode")&&t-f<0)return o.length>0&&o.forEach((function(t){"redirect"===t&&($url=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==a.trim($url)&&(window.location.href=$url1)),"hide"===t&&(e.hasClass("elementor-element-edit-mode")||(e.find("#eaeclockdiv").css("display","none"),e.find(".egt-title").css("display","none"))),"message"===t&&e.find(".eae-egt-message").css("display","block"),"hide_parent"===t&&(e.hasClass("elementor-element-edit-mode")||($p_secs=e.closest("section"),$p_secs.css("display","none")))})),days="00",hours="00",minutes="00",seconds="00",e.find("."+c).find("#eaedivDays").html(days),e.find("."+c).find("#eaedivHours").html(hours.slice(-2)),e.find("."+c).find("#eaedivMinutes").html(minutes.slice(-2)),void e.find("."+c).find("#eaedivSeconds").html(seconds.slice(-2));e.hasClass("elementor-element-edit-mode")&&("countdown"===r?(u=new Date(t),t=u.getTime()):((u=new Date).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime()));var k=setInterval((function(){var i=(new Date).getTime(),n=t-i,d=0,r=0,s=0,l=0;n>0?(d=Math.floor(n/864e5),r="0"+Math.floor(n%864e5/36e5),s="0"+Math.floor(n%36e5/6e4),l="0"+Math.floor(n%6e4/1e3)):(o.length>0&&(e.hasClass("elementor-element-edit-mode")||o.forEach((function(t){"redirect"===t&&($url1=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==a.trim($url1)&&(window.location.href=$url1)),"hide"===t&&(e.find("#eaeclockdiv").css("display","none"),e.find(".egt-title").css("display","none")),"message"===t&&e.find(".eae-egt-message").css("display","block"),"hide_parent"===t&&(e.hasClass("elementor-element-edit-mode")||($p_secs=e.closest("section"),$p_secs.css("display","none")))}))),clearInterval(k),d="0",r="00",s="00",l="00"),d<10&&(d="0"+d),e.find("."+c).find("#eaedivDays").html(d),e.find("."+c).find("#eaedivHours").html(r.slice(-2)),e.find("."+c).find("#eaedivMinutes").html(s.slice(-2)),e.find("."+c).find("#eaedivSeconds").html(l.slice(-2))}),1e3)})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-evergreen-timer.skin2",(function(e,a){var t=e.find(".eae-evergreen-wrapper").data("egtime"),d=e.find(".eae-evergreen-wrapper").data("egt-expire"),r=e.find(".eae-evergreen-wrapper").data("element-type"),s="eae-"+e.find(".eae-evergreen-wrapper").data("id"),l="eae-temp-"+e.find(".eae-evergreen-wrapper").data("id"),o=e.find(".eae-evergreen-wrapper").data("actions"),c=e.find(".eae-evergreen-wrapper").data("unqid"),f=(new Date).getTime();if(!e.hasClass("elementor-element-edit-mode"))if("countdown"===r){u=new Date(t),t=u.getTime();var p="expires="+u.toUTCString();document.cookie=l+"="+u.getTime()+";"+p+";path=/"}else{var m=n(s),u="";if(""!==m){(u=new Date(parseInt(m))).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime();var g=new Date(parseInt(m));g.setTime(g.getTime()+60*d*60*1e3);var v="expires="+g.toUTCString();document.cookie=s+"="+m+";"+v+";path=/";var h=new Date(parseInt(m));h.setTime(h.getTime()+1e3*e.find(".eae-evergreen-wrapper").data("egtime"));p="expires="+h.toUTCString();t-f>0&&(document.cookie=l+"="+m+";"+p+";path=/")}else{temp_date=t,(u=new Date).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime(),i(s,(new Date).getTime(),d);var w=new Date;w.setTime(w.getTime()+1e3*temp_date);var y="expires="+w.toUTCString();document.cookie=l+"="+(new Date).getTime()+";"+y+";path=/"}}if(!e.hasClass("elementor-element-edit-mode")&&t-f<0)return void(o.length>0&&o.forEach((function(t){"redirect"===t&&($url=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==a.trim($url)&&(window.location.href=$url)),"hide"===t&&(e.find("."+c).find(".timer-container").css("display","none"),e.find("."+c).find(".egt-title").css("display","none")),"message"===t&&e.find("."+c).find(".eae-egt-message").css("display","block"),"hide_parent"===t&&(e.hasClass("elementor-element-edit-mode")||($p_secs=e.closest("section"),$p_secs.css("display","none")))})));e.hasClass("elementor-element-edit-mode")&&("countdown"===r?(u=new Date(t),t=u.getTime()):((u=new Date).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime()));var k=setInterval((function(){var i=(new Date).getTime(),n=t-i,d=Math.floor(n/864e5),r=Math.floor(n%864e5/36e5),s=Math.floor(n%36e5/6e4),l=Math.floor(n%6e4/1e3);if(e.find("."+c).find("#eaeulSec1").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulSec1").find(".flip-clock-before").removeClass("flip-clock-before"),e.find("."+c).find("#eaeulSec").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulSec").find(".flip-clock-before").removeClass("flip-clock-before"),n<0)return clearInterval(k),void(o.length>0&&o.forEach((function(t){"redirect"===t&&(e.hasClass("elementor-element-edit-mode")||($url1=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==a.trim($url1)&&(window.location.href=$url1))),"hide"===t&&(e.hasClass("elementor-element-edit-mode")||(e.find("."+c).find(".timer-container").css("display","none"),e.find("."+c).find(".egt-title").css("display","none"))),"message"===t&&(e.hasClass("elementor-element-edit-mode")||e.find("."+c).find(".eae-egt-message").css("display","block")),"hide_parent"===t&&(e.hasClass("elementor-element-edit-mode")||($p_secs=e.closest("section"),$p_secs.css("display","none")))})));if(2===a.trim(l).length){var f="#eaeulSec1 li:eq( "+a.trim(l).charAt(1)+" )",p="#eaeulSec li:eq( "+a.trim(l).charAt(0)+" )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulSec1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulSec1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulSec li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulSec li:first-child").addClass("flip-clock-before"))}else{f="#eaeulSec1 li:eq( "+a.trim(l).charAt(0)+" )",p="#eaeulSec li:eq( 0 )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulSec1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulSec1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulSec li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulSec li:first-child").addClass("flip-clock-before"))}if(e.find("."+c).find("#eaeulMin1").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulMin1").find(".flip-clock-before").removeClass("flip-clock-before"),e.find("."+c).find("#eaeulMin").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulMin").find(".flip-clock-before").removeClass("flip-clock-before"),2==a.trim(s).length){f="#eaeulMin1 li:eq( "+a.trim(s).charAt(1)+" )",p="#eaeulMin li:eq( "+a.trim(s).charAt(0)+" )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulMin1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulMin1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulMin li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulMin li:first-child").addClass("flip-clock-before"))}else{f="#eaeulMin1 li:eq( "+a.trim(s).charAt(0)+" )",p="#eaeulMin li:eq( 0 )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulMin1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulMin1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulMin li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulMin li:first-child").addClass("flip-clock-before"))}if(e.find("."+c).find("#eaeulHour1").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulHour1").find(".flip-clock-before").removeClass("flip-clock-before"),e.find("."+c).find("#eaeulHour").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulHour").find(".flip-clock-before").removeClass("flip-clock-before"),2==a.trim(r).length){f="#eaeulHour1 li:eq( "+a.trim(r).charAt(1)+" )",p="#eaeulHour li:eq( "+a.trim(r).charAt(0)+" )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulHour1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulHour1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulHour li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulHour li:first-child").addClass("flip-clock-before"))}else{f="#eaeulHour1 li:eq( "+a.trim(r).charAt(0)+" )",p="#eaeulHour li:eq( 0 )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulHour1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulHour li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulHour li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulHour li:first-child").addClass("flip-clock-before"))}if(e.find("."+c).find("#eaeulDay1").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulDay1").find(".flip-clock-before").removeClass("flip-clock-before"),e.find("."+c).find("#eaeulDay").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulDay").find(".flip-clock-before").removeClass("flip-clock-before"),2==a.trim(d).length){f="#eaeulDay1 li:eq( "+a.trim(d).charAt(1)+" )",p="#eaeulDay li:eq( "+a.trim(d).charAt(0)+" )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulDay1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulDay1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulDay li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulDay li:first-child").addClass("flip-clock-before"))}else{f="#eaeulDay1 li:eq( "+a.trim(d).charAt(0)+" )",p="#eaeulDay li:eq( 0 )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulDay1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulDay li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulDay li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulDay li:first-child").addClass("flip-clock-before"))}}),1e3)})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-evergreen-timer.skin3",(function(e,a){var t,d=e.find(".eae-evergreen-wrapper").data("egtime"),r=e.find(".eae-evergreen-wrapper").data("egt-expire"),s=e.find(".eae-evergreen-wrapper").data("element-type"),l="eae-"+e.find(".eae-evergreen-wrapper").data("id"),o="eae-temp-"+e.find(".eae-evergreen-wrapper").data("id"),c=e.find(".eae-evergreen-wrapper").data("actions"),f=e.find(".eae-evergreen-wrapper").data("days"),p=e.find(".eae-evergreen-wrapper").data("hours"),m=e.find(".eae-evergreen-wrapper").data("mins"),u=e.find(".eae-evergreen-wrapper").data("seconds"),g=e.find(".eae-evergreen-wrapper").data("unqid"),v=(new Date).getTime();if(!e.hasClass("elementor-element-edit-mode"))if("countdown"===s){y=new Date(d),d=y.getTime();var h="expires="+y.toUTCString();document.cookie=o+"="+y.getTime()+";"+h+";path=/"}else{var w=n(l),y="";if(""!==w){(y=new Date(parseInt(w))).setSeconds(y.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),d=y.getTime();var k=new Date(parseInt(w));k.setTime(k.getTime()+60*r*60*1e3);var b="expires="+k.toUTCString();document.cookie=l+"="+w+";"+b+";path=/";var C=new Date(parseInt(w));C.setTime(C.getTime()+1e3*e.find(".eae-evergreen-wrapper").data("egtime"));h="expires="+C.toUTCString();d-v>0&&(document.cookie=o+"="+w+";"+h+";path=/")}else{temp_date=d,(y=new Date).setSeconds(y.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),d=y.getTime(),i(l,(new Date).getTime(),r);var _=new Date;_.setTime(_.getTime()+1e3*temp_date);var x="expires="+_.toUTCString();document.cookie=o+"="+(new Date).getTime()+";"+x+";path=/"}}if(!e.hasClass("elementor-element-edit-mode")){var T=D(d);if(parseInt(T.all)<1){if(c.length>0&&(c.forEach((function(a){"redirect"===a&&(e.hasClass("elementor-element-edit-mode")||($url=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==$url&&(window.location.href=$url))),"hide_parent"===a&&(e.hasClass("elementor-element-edit-mode")||($p_secs=e.closest("section"),$p_secs.css("display","none"))),"hide"===a&&(e.find("#timer").css("display","none"),e.find(".egt-title").css("display","none"),e.find(".desc").css("display","none")),"message"===a&&e.find(".eae-egt-message").css("display","block")})),1===c.length&&(""===c[0]||"message"===c[0]))){var $=e.find("."+g).find("#timer")[0];"yes"===f&&($.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===p&&("yes"===f?a($).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):$.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===m&&("yes"===f||"yes"===p?a($).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):$.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===u&&("yes"===f||"yes"===p||"yes"===m?a($).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):$.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>")}return}}function D(e){var a=d-new Date;return{days:Math.floor(a/864e5),hours:"0"+Math.floor(a/36e5%24),minutes:"0"+Math.floor(a/6e4%60),seconds:"0"+Math.floor(a/1e3%60),all:a}}function S(e){e.classList.add("fade"),setTimeout((function(){e.classList.remove("fade")}),700)}e.hasClass("elementor-element-edit-mode")&&("countdown"===s?(y=new Date(d),d=y.getTime()):((y=new Date).setSeconds(y.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),d=y.getTime())),D(d).all>1&&(t=setInterval((function(){var i=e.find("."+g).find("#timer")[0],n=D(d);"yes"===f&&(n.days<10&&(n.days="0"+n.days),i.innerHTML="<span class='egt-time eae-time-wrapper'><div>"+n.days+"</div></span>"),"yes"===p&&("yes"===f?a(i).append("<span class='egt-time eae-time-wrapper'><div>"+n.hours.slice(-2)+"</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>"+n.hours.slice(-2)+"</div></span>"),"yes"===m&&("yes"===f||"yes"===p?a(i).append("<span class='egt-time eae-time-wrapper'><div>"+n.minutes.slice(-2)+"</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>"+n.minutes.slice(-2)+"</div></span>"),"yes"===u&&("yes"===f||"yes"===p||"yes"===m?a(i).append("<span class='egt-time eae-time-wrapper'><div>"+n.seconds.slice(-2)+"</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>"+n.seconds.slice(-2)+"</div></span>");var r=i.getElementsByTagName("span");"yes"===f&&59==n.hours&&59==n.minutes&&59==n.seconds&&S(r[0]),"yes"===p&&("yes"===f?59==n.minutes&&59==n.seconds&&S(r[1]):59==n.minutes&&59==n.seconds&&S(r[0])),"yes"===m&&("yes"===f?"yes"===p?59==n.seconds&&S(r[2]):59==n.seconds&&S(r[1]):"yes"===p?59==n.seconds&&S(r[1]):59==n.seconds&&S(r[0])),"yes"===u&&("yes"===f?"yes"===p?"yes"===m&&S(r[3]):S("yes"===m?r[2]:r[1]):"yes"===p?"yes"===m&&S(r[2]):S("yes"===m?r[1]:r[0])),n.all<=1&&(clearInterval(t),"yes"===f&&(i.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===p&&("yes"===f?a(i).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===m&&("yes"===f||"yes"===p?a(i).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===u&&("yes"===f||"yes"===p||"yes"===m?a(i).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),e.hasClass("elementor-element-edit-mode")||c.length>0&&c.forEach((function(a){"redirect"===a&&($url1=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==$url1&&(window.location.href=$url1)),"hide"===a&&(e.find("#timer").css("display","none"),e.find(".egt-title").css("display","none"),e.find(".desc").css("display","none")),"message"===a&&e.find(".eae-egt-message").css("display","block"),"hide_parent"===a&&($p_secs=e.closest("section"),$p_secs.css("display","none"))})))}),1e3))})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-comparisontable.default",(function(e,a){a(e.find(".eae-ct-heading")[0]).addClass("active"),e.find("ul").on("click","li",(function(){var t=a(this).index()+2;e.find("tr").find("td:not(:eq(0))").hide(),e.find("td:nth-child("+t+")").css("display","table-cell"),e.find("tr").find("th:not(:eq(0))").hide(),e.find("li").removeClass("active"),a(this).addClass("active")}));var t=window.matchMedia("(min-width: 767px)");function i(a){a.matches?e.find(".sep").attr("colspan",5):e.find(".sep").attr("colspan",2)}t.addListener(i),i(t)})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-progress-bar.skin1",d),elementorFrontend.hooks.addAction("frontend/element_ready/eae-progress-bar.skin2",d),elementorFrontend.hooks.addAction("frontend/element_ready/eae-progress-bar.skin3",d),elementorFrontend.hooks.addAction("frontend/element_ready/eae-progress-bar.skin4",d),elementorFrontend.hooks.addAction("frontend/element_ready/eae-progress-bar.skin5",d),elementorFrontend.hooks.addAction("frontend/element_ready/eae-filterableGallery.default",(function(e,a){var t=e.find(".eae-fg-wrapper"),i=e.data("id"),n=t.attr("data-maxtilt"),d=t.attr("data-perspective"),r=t.attr("data-speed"),s=t.attr("data-tilt-axis"),l=t.attr("data-glare"),o=parseInt(t.attr("data-overlay-speed"));if(s="x"===s?"y":"y"===s?"x":"both","yes"===l)var c=t.attr("data-max-glare");l="yes"===l;var f=a(".elementor-element-"+i+" .eae-fg-image"),p=t.hasClass("masonry-yes")?"masonry":"fitRows";let m=f.outerHeight();adata={percentPosition:!0,animationOptions:{duration:750,easing:"linear",queue:!1}},"fitRows"===p&&(adata.layoutMode="fitRows"),"masonry"===p&&(adata.masonry={columnWidth:".eae-gallery-item",horizontalOrder:!0}),e.hasClass("eae-show-all-yes")||(e.find(".eae-gallery-filter a").first().addClass("current"),adata.filter=e.find(".eae-gallery-filter a").first().attr("data-filter"));var u=f.isotope(adata);u.imagesLoaded().progress((function(){u.isotope("layout"),e.find(".eae-fg-image").css({"min-height":"300px",height:m})})),e.find(".eae-tilt-yes")&&(atilt={maxTilt:n,perspective:d,easing:"linear",scale:1,speed:r,disableAxis:s,transition:!0,reset:!0,glare:l,maxGlare:c},e.find(".el-tilt").tilt(atilt)),a(".elementor-element-"+i+" .eae-gallery-filter a").on("click",(function(){e.find(".eae-gallery-filter .current").removeClass("current"),a(this).addClass("current");var t=a(this).attr("data-filter");adata.filter=t;var i=f.isotope(adata);return i.imagesLoaded().progress((function(){if(i.isotope("layout"),isEditMode)return!1;e.find(".eae-tilt-yes")&&(e.find(".el-tilt").tilt(atilt),e.find(".el-tilt").tilt.reset.call(e.find(".el-tilt")))})),!1})),t.hasClass("eae-hover-direction-effect")||e.find(".eae-gallery-item-inner").hover((function(){a(this).find(".eae-grid-overlay").addClass("animated")})),t.hasClass("eae-hover-direction-effect")&&(e.find(".eae-gallery-item-inner").hover((function(){a(this).find(".eae-grid-overlay").addClass("overlay")})),t.find(".eae-gallery-item-inner").EAEHoverDirection({speed:o}))})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-content-switcher.skin1",r),elementorFrontend.hooks.addAction("frontend/element_ready/eae-content-switcher.skin2",r),elementorFrontend.hooks.addAction("frontend/element_ready/eae-content-switcher.skin3",s),elementorFrontend.hooks.addAction("frontend/element_ready/eae-content-switcher.skin4",s),elementorFrontend.hooks.addAction("frontend/element_ready/global",(function(e,a){isEditMode||e.data("wts-url")&&"yes"==e.data("wts-link")&&e.on("click",(function(a){e.data("wts-url")&&"yes"==e.data("wts-new-window")?window.open(e.data("wts-url")):location.href=e.data("wts-url")}))})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-thumbgallery.default",(function(e,a){swiper_outer_wrapper=e.find(".eae-swiper-outer-wrapper"),wid=e.data("id"),wClass=".elementor-element-"+wid,thumb_outer_wrapper=e.find(".eae-gallery-thumbs");let t=swiper_outer_wrapper.data("swiper-settings"),i=swiper_outer_wrapper.data("slides-per-view"),n=swiper_outer_wrapper.data("space");const d=eae.breakpoints;let r={};r[d.lg-1]={slidesPerView:i.desktop,spaceBetween:n.desktop},r[d.md-1]={slidesPerView:i.tablet,spaceBetween:n.tablet};const s=eae.breakpoints;let l={};l[s.lg-1]={spaceBetween:t.spaceBetween.desktop},l[s.md-1]={spaceBetween:t.spaceBetween.tablet},sliderData={direction:"horizontal",effect:t.effect,keyboard:{enabled:t.keyboard},spaceBetween:t.spaceBetween.mobile,breakpoints:l,speed:t.speed,loop:"yes"===t.loop,thumbs:{swiper:{el:thumb_outer_wrapper,direction:"horizontal",spaceBetween:n.mobile,slidesPerView:i.mobile,navigation:{nextEl:wClass+" .eae-swiper-button-next",prevEl:wClass+" .eae-swiper-button-prev"},speed:t.speed,loop:"yes"===t.loop,freeMode:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0,breakpoints:r,slideToClickedSlide:!0}}},void 0!==t.autoplay&&(sliderData.thumbs.swiper.autoplay={delay:t.autoplay.duration,disableOnInteraction:t.autoplay.disableOnInteraction,reverseDirection:t.autoplay.reverseDirection}),"yes"==t.navigation&&(sliderData.navigation={nextEl:wClass+" .eae-swiper-button-next",prevEl:wClass+" .eae-swiper-button-prev"}),""!==t.pagination&&(sliderData.pagination={type:t.pagination,el:wClass+" .swiper-pagination",clickable:t.clickable}),void 0!==t.autoplay&&(sliderData.autoplay={delay:t.autoplay.duration,disableOnInteraction:t.autoplay.disableOnInteraction,reverseDirection:t.autoplay.reverseDirection}),window.sswiper=new Swiper(".elementor-element-"+wid+" .eae-swiper-outer-wrapper .eae-swiper-container",sliderData),a(".elementor-element-"+wid+" .eae-swiper-outer-wrapper .eae-swiper-container").css("visibility","visible")}))}))}(jQuery);
1
+ jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/wts-gmap.default",(function(e){map=function(a){$wrapper=e.find(".eae-markers");var t=$wrapper.data("zoom"),i=a.find(".marker"),n=$wrapper.data("style"),d=($wrapper.data("scroll"),{zoom:t,center:new google.maps.LatLng(0,0),mapTypeId:google.maps.MapTypeId.ROADMAP,styles:n}),r=new google.maps.Map(a[0],d);return r.markers=[],i.each((function(){!function(a,t){var i=$wrapper.data("animate");$wrapper.data("show-info-window-onload");$wrapper=e.find(".eae-markers");var n=new google.maps.LatLng(a.attr("data-lat"),a.attr("data-lng"));if(icon_img=a.attr("data-icon"),""!=icon_img)var d={url:a.attr("data-icon"),scaledSize:new google.maps.Size(a.attr("data-icon-size"),a.attr("data-icon-size"))};var r=new google.maps.Marker({position:n,map:t,icon:d,animation:google.maps.Animation.DROP});"animate-yes"==i&&"yes"!=a.data("info-window")&&r.setAnimation(google.maps.Animation.BOUNCE);"animate-yes"==i&&google.maps.event.addListener(r,"click",(function(){r.setAnimation(null)}));if(t.markers.push(r),a.html()){var s=new google.maps.InfoWindow({content:a.html()});"yes"==a.data("info-window")&&s.open(t,r),google.maps.event.addListener(r,"click",(function(){s.open(t,r)}))}"animate-yes"==i&&google.maps.event.addListener(s,"closeclick",(function(){r.setAnimation(google.maps.Animation.BOUNCE)}))}(jQuery(this),r)})),function(e,a){var t=new google.maps.LatLngBounds;jQuery.each(e.markers,(function(e,a){var i=new google.maps.LatLng(a.position.lat(),a.position.lng());t.extend(i)})),1==e.markers.length?(e.setCenter(t.getCenter()),e.setZoom(a)):e.fitBounds(t)}(r,t),r}(e.find(".eae-markers"))})),elementorFrontend.hooks.addAction("frontend/element_ready/global",(function(e){var a,t,i,n,d,r,s,l=[],o=[],c=e.children(".eae-section-bs").children(".eae-section-bs-inner");c&&c.data("eae-bg-slider")&&(slider_images=c.data("eae-bg-slider"),a=c.data("eae-bg-slider-transition"),t=c.data("eae-bg-slider-animation"),n=("yes"==(i=c.data("eae-bg-custom-overlay"))||c.data("eae-bg-slider-overlay"),eae_editor.plugin_url+"assets/lib/vegas/overlays/"+c.data("eae-bg-slider-overlay")),d=c.data("eae-bg-slider-cover"),r=c.data("eae-bs-slider-delay"),s=c.data("eae-bs-slider-timer"),"undefined"!=typeof slider_images&&(l=slider_images.split(","),jQuery.each(l,(function(e,a){var t=[];t.src=a,o.push(t)})),c.vegas({slides:o,transition:a,animation:t,overlay:n,cover:d,delay:r,timer:s,init:function(){"yes"==i&&c.children(".vegas-overlay").css("background-image","")}})))}))}));var isEditMode=!1,breakpoints=eae.breakpoints;!function(e){e(window).on("elementor/frontend/init",(function(){var a=function(e,a){function t(e){$icons=a(document).find(e).find(".eae-ic-icon-wrap"),window.innerWidth<767?$icons.each((function(e,t){a(t).css("top",a(t).height()/2+8+"px"),a(t).next(".eae-info-circle-item__content-wrap").css("padding-top",a(t).height()/2+8+"px")})):$icons.each((function(e,t){a(t).css("margin-left",-.5*a(t).outerWidth()),a(t).css("margin-top",-.5*a(t).outerHeight()),$a=function(e){return e=(e-90)*Math.PI/180,{x:50+45*Math.cos(e),y:50+45*Math.sin(e)}}($angle),$b=360/$icons.length,a(t).css("left",$a.x+"%"),a(t).css("top",$a.y+"%"),$angle+=$b}))}$wrap_class=".elementor-element-"+e.data("id"),$angle=0,t(e);var i=null;function n(){"yes"==e.find(".eae-info-circle").data("autoplay")&&(i=setInterval(d,$autoplayDuration))}function d(){e.find(".eae-active").next().length>0?e.find(".eae-active").next().addClass("eae-active").siblings().removeClass("eae-active"):e.find(".eae-info-circle-item").eq(0).addClass("eae-active").siblings().removeClass("eae-active")}$autoplayDuration=e.find(".eae-info-circle").data("delay"),n(),e.find(".eae-ic-icon-wrap").hover((function(){clearInterval(i)}),(function(){n()})),e.find(".eae-info-circle-item").length>0&&a(e.find(".eae-info-circle-item")[0]).addClass("eae-active"),e.find(".eae-ic-icon-wrap").on("click",(function(){e.find(".eae-info-circle-item").removeClass("eae-active"),a(this).parent().addClass("eae-active")})),e.hasClass("eae-mouseenter-yes")&&e.find(".eae-ic-icon-wrap").on("mouseenter",(function(){e.find(".eae-info-circle-item").removeClass("eae-active"),a(this).parent().addClass("eae-active")})),window.addEventListener("resize",t.bind(this,$wrap_class))},t=function(e,a){function t(){var t=e.find(".eae-timline-progress-bar"),i=e.find(".eae-timeline-item"),n=e.find(".eae-timeline");const d=n.data("top-offset");var r=a(n).height(),s=a(i).last().find(".eae-tl-icon-wrapper").offset().top-a(i[0]).parent().offset().top,l=e.find(".eae-tl-icon-wrapper");a(t).css("top",a(i[0]).find(".eae-tl-icon-wrapper").offset().top-a(i[0]).parent().offset().top),a(t).css("bottom",r-s),a(t).css("left",l.eq(0)[0].offsetLeft+l.eq(0).width()/2),a(t).css("display","block"),i.each((function(e,t){new Waypoint({element:a(t),handler:function(e){"down"==e?a(t).addClass("eae-tl-item-focused"):a(t).removeClass("eae-tl-item-focused")},offset:d})}))}t(),window.addEventListener("resize",t),window.addEventListener("scroll",(function(){e.find(".eae-timline-progress-bar");const t=e.find(".eae-timeline").data("top-offset");e.find(".eae-pb-inner-line").css("height",a(window).scrollTop()-e.find(".eae-timeline").offset().top+t),e.find(".eae-pb-inner-line").css("max-height",e.find(".eae-pb-inner-line").parent().height())}))};function i(e,a,t){var i=new Date;i.setTime(i.getTime()+60*t*60*1e3);var n="expires="+i.toUTCString();document.cookie=e+"="+a+";"+n+";path=/"}function n(e){for(var a=e+"=",t=decodeURIComponent(document.cookie).split(";"),i=0;i<t.length;i++){for(var n=t[i];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(a))return n.substring(a.length,n.length)}return""}var d=function(e,a){$is_rtl=jQuery("body").hasClass("rtl"),$wrapper=e.find(".eae-progress-bar");$wrapper.attr("data-skill");var t=$wrapper.attr("data-value"),i=$wrapper.attr("data-skin"),n=$wrapper.find(".eae-pb-bar-skill"),d=$wrapper.find(".eae-pb-bar-value"),r=$wrapper.find(".eae-pb-bar"),s=$wrapper.find(".eae-pb-bar-inner");"skin1"===i&&a(s).attr("style","width : "+t+"%"),"skin2"===i&&a(s).attr("style","width : "+t+"%"),"skin3"===i&&(a(d).addClass("eae-pb-bar-value--aligned-value"),$is_rtl?a(d).attr("style","right :"+t+"%"):a(d).attr("style","left :"+t+"%"),a(s).attr("style","width :"+t+"%")),"skin4"===i&&(a(d).addClass("eae-pb-bar-value--aligned-value"),$is_rtl?a(d).attr("style","right :"+t+"%"):a(d).attr("style","left :"+t+"%"),a(s).attr("style","width :"+t+"%"),a(r).addClass("eae-pb-bar--no-overflow")),"skin5"===i&&(a(d).addClass("eae-pb-bar-value--aligned-value"),$is_rtl?a(d).attr("style","right :"+t+"%"):a(d).attr("style","left :"+t+"%"),a(s).attr("style","width :"+t+"%")),$wrapper.each((function(e,t){new Waypoint({element:t,skill_value:a(t).find(".eae-pb-bar-skill"),valueElem:a(t).find(".eae-pb-bar-value"),prgBar:a(t).find(".eae-pb-bar-bar"),prgInner:a(t).find(".eae-pb-bar-inner"),handler:function(e){"down"==e&&(a(d).hasClass("js-animated")||a(d).addClass("js-animated"),a(s).hasClass("js-animated")||a(s).addClass("js-animated"),a(n).hasClass("js-animated")||a(n).addClass("js-animated"))},offset:"bottom-in-view"})}))},r=function(e,a){var t=e.find(".eae-content-switcher-wrapper"),i=(e.data("id"),t.find(".eae-content-switch-button"));i.each((function(e,n){a(this).on("click",(function(e){e.preventDefault();let n=a(this).find(".eae-content-switch-label");if(!a(this).hasClass("active")){a(i).removeClass("active");let e=a(n).attr("id");a(this).addClass("active");var d=a(t).find(".eae-cs-content-section");a(d).removeClass("active");let r=a(t).find(".eae-content-section-"+e);a(r).addClass("active")}}))}))},s=function(e,a){let t=e.find(".eae-content-switcher-wrapper"),i=(e.data("id"),t.find(".eae-cs-switch-label")),n=t.find(".eae-content-switch-label.primary-label");const d=a(n).attr("item_id");let r=t.find(".eae-content-switch-label.secondary-label");const s=a(r).attr("item_id");let l=t.find(".eae-cs-content-section.eae-content-section-"+d),o=t.find(".eae-cs-content-section.eae-content-section-"+s);a(i).on("click",(function(e){a(this).find("input.eae-content-toggle-switch").is(":checked")?(r.addClass("active"),o.addClass("active"),n.removeClass("active"),l.removeClass("active")):(n.addClass("active"),l.addClass("active"),r.removeClass("active"),o.removeClass("active"))}))};e.fn.EAEHoverDirection=function(a){var t=e.extend({inaccuracy:30,speed:200},a);this.find(".overlay").css({top:-9999999}),this.mouseenter((function(a){container=e(this),overlay=container.find(".overlay"),parentOffset=container.offset(),relX=a.pageX-parentOffset.left,relY=a.pageY-parentOffset.top,overlay.css({top:0,left:0,width:container.width(),height:container.height()}),relX>container.width()-t.inaccuracy?overlay.css({top:0,left:container.width()}):relX<t.inaccuracy?overlay.css({top:0,left:-container.width()}):relY>container.height()-t.inaccuracy?overlay.css({top:container.width(),left:0}):relY<t.inaccuracy&&overlay.css({top:-container.width(),left:0}),overlay.animate({top:0,left:0},t.speed)})),this.mouseleave((function(a){container=e(this),overlay=container.find(".overlay"),parentOffset=container.offset(),relX=a.pageX-parentOffset.left,relY=a.pageY-parentOffset.top,relX<=0&&overlay.animate({top:0,left:-container.width()},t.speed),relX>=container.width()&&overlay.animate({top:0,left:container.width()},t.speed),relY<=0&&overlay.animate({left:0,top:-container.height()},t.speed),relY>=container.height()&&overlay.animate({left:0,top:container.height()},t.speed)}))};elementorFrontend.hooks.addAction("frontend/element_ready/wts-ab-image.default",(function(e,a){e.find(".eae-img-comp-container").imagesLoaded().done((function(){ab_style=e.find(".eae-img-comp-container").data("ab-style"),slider_pos=e.find(".eae-img-comp-container").data("slider-pos"),"horizontal"===ab_style?(separator_width=parseInt(e.find(".eae-img-comp-overlay").css("border-right-width")),function(e){var a,t;a=e.find(".eae-img-comp-overlay"),t=(t=a.width())*slider_pos/100,function(a){var i,n,d,r=0;function s(e){e.preventDefault(),r=1,window.addEventListener("mousemove",o),i.addEventListener("touchmove",c)}function l(){r=0}function o(e){var t;if(0==r)return!1;(t=function(e){var t;return e=e||window.event,t=a.getBoundingClientRect(),e.pageX-t.left}(e))<0&&(t=0),t>n&&(t=n),f(t)}function c(e){var t;if(0==r)return!1;(t=function(e){var t;return t=a.getBoundingClientRect(),e.changedTouches[0].clientX-t.left}(e))<0&&(t=0),t>n&&(t=n),f(t)}function f(e){a.style.width=e+"px",i.style.left=a.offsetWidth-i.offsetWidth/2-separator_width/2+"px"}n=a.offsetWidth,d=a.offsetHeight,a.style.width=t+"px",(i=(i=e.find(".eae-img-comp-slider"))[0]).style.top=d/2-i.offsetHeight/2+"px",i.style.left=t-i.offsetWidth/2-separator_width/2+"px",e.hasClass("elementor-element-edit-mode")||(i.addEventListener("mousedown",s),window.addEventListener("mouseup",l),i.addEventListener("touchstart",s),window.addEventListener("touchstop",l))}(a[0])}(e)):(separator_width=parseInt(e.find(".eae-img-comp-overlay").css("border-bottom-width")),function(e){var a;a=e.find(".eae-img-comp-overlay"),start_pos=a.height(),start_pos=start_pos*slider_pos/100,function(a){var t,i,n,d=0;function r(e){e.preventDefault(),d=1,window.addEventListener("mousemove",l),t.addEventListener("touchmove",o)}function s(){d=0}function l(e){var t;if(0==d)return!1;(t=function(e){var t,i=0;return e=e||window.event,t=a.getBoundingClientRect(),i=e.pageY-t.top,i-=window.pageYOffset}(e))<0&&(t=0),t>n&&(t=n),c(t)}function o(e){var t;if(0==d)return!1;(t=function(e){var t;return t=a.getBoundingClientRect(),e.changedTouches[0].clientY-t.top}(e))<0&&(t=0),t>n&&(t=n),c(t)}function c(e){a.style.height=e+"px",t.style.top=a.offsetHeight-t.offsetHeight/2-separator_width/2+"px"}i=a.offsetWidth,n=a.offsetHeight,a.style.height=start_pos+"px",(t=(t=e.find(".eae-img-comp-slider"))[0]).style.top=start_pos-t.offsetHeight/2-separator_width/2+"px",t.style.left=i/2-t.offsetWidth/2+"px",e.hasClass("elementor-element-edit-mode")||(t.addEventListener("mousedown",r),window.addEventListener("mouseup",s),t.addEventListener("touchstart",r),window.addEventListener("touchstop",s))}(a[0])}(e))}))})),elementorFrontend.hooks.addAction("frontend/element_ready/global",(function(e,a){e.hasClass("eae-particle-yes")&&(id=e.data("id"),element_type=e.data("element_type"),pdata=e.data("eae-particle"),pdata_wrapper=e.find(".eae-particle-wrapper").data("eae-pdata"),"undefined"!=typeof pdata&&""!=pdata?e.find(".eae-section-bs").length>0?(e.find(".eae-section-bs").after('<div class="eae-particle-wrapper" id="eae-particle-'+id+'"></div>'),particlesJS("eae-particle-"+id,pdata)):("column"==element_type?e.prepend('<div class="eae-particle-wrapper" id="eae-particle-'+id+'"></div>'):e.prepend('<div class="eae-particle-wrapper " id="eae-particle-'+id+'"></div>'),particlesJS("eae-particle-"+id,pdata)):"undefined"!=typeof pdata_wrapper&&""!=pdata_wrapper&&(element_type,e.prepend('<div class="eae-particle-wrapper eae-particle-area" id="eae-particle-'+id+'"></div>'),particlesJS("eae-particle-"+id,JSON.parse(pdata_wrapper))))})),elementorFrontend.hooks.addAction("frontend/element_ready/global",(function(e,a){if(e.hasClass("eae-animated-gradient-yes")){id=e.data("id"),color=e.data("color"),angle=e.data("angle");var t="linear-gradient("+angle+","+color+")";heading=e.find(".elementor-heading-title"),e.css("background-image",t),e.hasClass("elementor-element-edit-mode")&&(color=e.find(".animated-gradient").data("color"),angle=e.find(".animated-gradient").data("angle"),gradient_color_editor="linear-gradient("+angle+","+color+")",e.prepend('<div class="animated-gradient" style="background-image : '+gradient_color_editor+' "></div>'))}})),elementorFrontend.hooks.addAction("frontend/element_ready/wts-modal-popup.default",(function(e,a){$preview_modal=e.find(".eae-popup-wrapper").data("preview-modal"),$close_btn_type=e.find(".eae-popup-wrapper").data("close-button-type"),$close_btn=e.find(".eae-popup-wrapper").data("close-btn"),"icon"==$close_btn_type?$close_btn_html='<i class="eae-close '+$close_btn+'"> </i>':$close_btn_html='<svg class="eae-close" style="-webkit-mask: url('+$close_btn+"); mask: url("+$close_btn+'); "></svg>',$magnific=e.find(".eae-popup-link").eaePopup({type:"inline",disableOn:0,key:null,midClick:!1,mainClass:"eae-popup eae-popup-"+e.find(".eae-popup-link").data("id")+" eae-wrap-"+e.find(".eae-popup-link").data("ctrl-id"),preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:e.find(".eae-popup-wrapper").data("close-in-out"),showCloseBtn:!0,enableEscapeKey:!1,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:$close_btn_html,tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}),"yes"==$preview_modal&&e.hasClass("elementor-element-edit-mode")&&e.find(".eae-popup-link").click()})),elementorFrontend.hooks.addAction("frontend/element_ready/wts-testimonial-slider.default",(function(e,a){if(e.find(".eae-grid-wrapper").hasClass("eae-masonry-yes")){var t=e.find(".eae-grid").masonry({});t.imagesLoaded().progress((function(){t.masonry("layout")}))}if(e.find(".eae-layout-carousel").length){outer_wrapper=e.find(".eae-swiper-outer-wrapper"),wid=e.data("id"),wclass=".elementor-element-"+wid;var i=outer_wrapper.data("direction"),n=outer_wrapper.data("speed"),d=outer_wrapper.data("autoplay"),r=outer_wrapper.data("duration"),s=outer_wrapper.data("effect"),l=outer_wrapper.data("space"),o=outer_wrapper.data("loop");o="yes"==o;var c=outer_wrapper.data("slides-per-view"),f=outer_wrapper.data("slides-per-group"),p=outer_wrapper.data("ptype"),m=outer_wrapper.data("navigation"),u=outer_wrapper.data("clickable"),g=outer_wrapper.data("keyboard"),v=outer_wrapper.data("scrollbar");adata={direction:i,effect:s,spaceBetween:l.desktop,loop:o,speed:n,slidesPerView:c.desktop,slidesPerGroup:f.desktop,observer:!0,mousewheel:{invert:!0},breakpoints:{1024:{spaceBetween:l.tablet,slidesPerView:c.tablet,slidesPerGroup:f.tablet},767:{spaceBetween:l.mobile,slidesPerView:c.mobile,slidesPerGroup:f.mobile}}},"fade"==s&&(adata.fadeEffect={crossFade:!1}),adata.autoplay="yes"==d&&{delay:r,disableOnInteraction:!1},"yes"==m&&(adata.navigation={nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}),""!=p&&(adata.pagination={el:".swiper-pagination",type:p}),"bullets"==p&&"yes"==u&&(adata.pagination={el:".swiper-pagination",clickable:!0,type:p}),"yes"==v&&(adata.scrollbar={el:".swiper-scrollbar",draggable:!0}),"yes"==g&&(adata.keyboard={enabled:!0,onlyInViewport:!0}),0==o&&(adata.autoplay={delay:r,stopOnLastSlide:!0,disableOnInteraction:!1}),window.mswiper=new Swiper(".elementor-element-"+wid+" .eae-swiper-outer-wrapper .swiper-container",adata),a(".elementor-element-"+wid+" .eae-swiper-outer-wrapper .swiper-container").css("visibility","visible")}})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-info-circle.skin1",a),elementorFrontend.hooks.addAction("frontend/element_ready/eae-info-circle.skin2",a),elementorFrontend.hooks.addAction("frontend/element_ready/eae-info-circle.skin3",a),elementorFrontend.hooks.addAction("frontend/element_ready/eae-info-circle.skin4",a),elementorFrontend.hooks.addAction("frontend/element_ready/eae-timeline.skin1",t),elementorFrontend.hooks.addAction("frontend/element_ready/eae-timeline.skin2",t),elementorFrontend.hooks.addAction("frontend/element_ready/eae-timeline.skin3",t),elementorFrontend.hooks.addAction("frontend/element_ready/eae-timeline.skin4",t),elementorFrontend.hooks.addAction("frontend/element_ready/eae-evergreen-timer.skin1",(function(e,a){var t=e.find(".eae-evergreen-wrapper").data("egtime"),d=e.find(".eae-evergreen-wrapper").data("egt-expire"),r=e.find(".eae-evergreen-wrapper").data("element-type"),s="eae-"+e.find(".eae-evergreen-wrapper").data("id"),l="eae-temp-"+e.find(".eae-evergreen-wrapper").data("id"),o=e.find(".eae-evergreen-wrapper").data("actions"),c=e.find(".eae-evergreen-wrapper").data("unqid"),f=(new Date).getTime();if(!e.hasClass("elementor-element-edit-mode"))if("countdown"===r){u=new Date(t),t=u.getTime();var p="expires="+u.toUTCString();document.cookie=l+"="+u.getTime()+";"+p+";path=/"}else{var m=n(s),u="";if(""!==m){(u=new Date(parseInt(m))).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime();var g=new Date(parseInt(m));g.setTime(g.getTime()+60*d*60*1e3);var v="expires="+g.toUTCString();document.cookie=s+"="+m+";"+v+";path=/";var h=new Date(parseInt(m));h.setTime(h.getTime()+1e3*e.find(".eae-evergreen-wrapper").data("egtime"));p="expires="+h.toUTCString();t-f>0&&(document.cookie=l+"="+m+";"+p+";path=/")}else{temp_date=t,(u=new Date).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime(),i(s,(new Date).getTime(),d);var w=new Date;w.setTime(w.getTime()+1e3*temp_date);var y="expires="+w.toUTCString();document.cookie=l+"="+(new Date).getTime()+";"+y+";path=/"}}if(!e.hasClass("elementor-element-edit-mode")&&t-f<0)return o.length>0&&o.forEach((function(t){"redirect"===t&&($url=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==a.trim($url)&&(window.location.href=$url1)),"hide"===t&&(e.hasClass("elementor-element-edit-mode")||(e.find("#eaeclockdiv").css("display","none"),e.find(".egt-title").css("display","none"))),"message"===t&&e.find(".eae-egt-message").css("display","block"),"hide_parent"===t&&(e.hasClass("elementor-element-edit-mode")||($p_secs=e.closest("section"),$p_secs.css("display","none")))})),days="00",hours="00",minutes="00",seconds="00",e.find("."+c).find("#eaedivDays").html(days),e.find("."+c).find("#eaedivHours").html(hours.slice(-2)),e.find("."+c).find("#eaedivMinutes").html(minutes.slice(-2)),void e.find("."+c).find("#eaedivSeconds").html(seconds.slice(-2));e.hasClass("elementor-element-edit-mode")&&("countdown"===r?(u=new Date(t),t=u.getTime()):((u=new Date).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime()));var k=setInterval((function(){var i=(new Date).getTime(),n=t-i,d=0,r=0,s=0,l=0;n>0?(d=Math.floor(n/864e5),r="0"+Math.floor(n%864e5/36e5),s="0"+Math.floor(n%36e5/6e4),l="0"+Math.floor(n%6e4/1e3)):(o.length>0&&(e.hasClass("elementor-element-edit-mode")||o.forEach((function(t){"redirect"===t&&($url1=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==a.trim($url1)&&(window.location.href=$url1)),"hide"===t&&(e.find("#eaeclockdiv").css("display","none"),e.find(".egt-title").css("display","none")),"message"===t&&e.find(".eae-egt-message").css("display","block"),"hide_parent"===t&&(e.hasClass("elementor-element-edit-mode")||($p_secs=e.closest("section"),$p_secs.css("display","none")))}))),clearInterval(k),d="0",r="00",s="00",l="00"),d<10&&(d="0"+d),e.find("."+c).find("#eaedivDays").html(d),e.find("."+c).find("#eaedivHours").html(r.slice(-2)),e.find("."+c).find("#eaedivMinutes").html(s.slice(-2)),e.find("."+c).find("#eaedivSeconds").html(l.slice(-2))}),1e3)})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-evergreen-timer.skin2",(function(e,a){var t=e.find(".eae-evergreen-wrapper").data("egtime"),d=e.find(".eae-evergreen-wrapper").data("egt-expire"),r=e.find(".eae-evergreen-wrapper").data("element-type"),s="eae-"+e.find(".eae-evergreen-wrapper").data("id"),l="eae-temp-"+e.find(".eae-evergreen-wrapper").data("id"),o=e.find(".eae-evergreen-wrapper").data("actions"),c=e.find(".eae-evergreen-wrapper").data("unqid"),f=(new Date).getTime();if(!e.hasClass("elementor-element-edit-mode"))if("countdown"===r){u=new Date(t),t=u.getTime();var p="expires="+u.toUTCString();document.cookie=l+"="+u.getTime()+";"+p+";path=/"}else{var m=n(s),u="";if(""!==m){(u=new Date(parseInt(m))).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime();var g=new Date(parseInt(m));g.setTime(g.getTime()+60*d*60*1e3);var v="expires="+g.toUTCString();document.cookie=s+"="+m+";"+v+";path=/";var h=new Date(parseInt(m));h.setTime(h.getTime()+1e3*e.find(".eae-evergreen-wrapper").data("egtime"));p="expires="+h.toUTCString();t-f>0&&(document.cookie=l+"="+m+";"+p+";path=/")}else{temp_date=t,(u=new Date).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime(),i(s,(new Date).getTime(),d);var w=new Date;w.setTime(w.getTime()+1e3*temp_date);var y="expires="+w.toUTCString();document.cookie=l+"="+(new Date).getTime()+";"+y+";path=/"}}if(!e.hasClass("elementor-element-edit-mode")&&t-f<0)return void(o.length>0&&o.forEach((function(t){"redirect"===t&&($url=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==a.trim($url)&&(window.location.href=$url)),"hide"===t&&(e.find("."+c).find(".timer-container").css("display","none"),e.find("."+c).find(".egt-title").css("display","none")),"message"===t&&e.find("."+c).find(".eae-egt-message").css("display","block"),"hide_parent"===t&&(e.hasClass("elementor-element-edit-mode")||($p_secs=e.closest("section"),$p_secs.css("display","none")))})));e.hasClass("elementor-element-edit-mode")&&("countdown"===r?(u=new Date(t),t=u.getTime()):((u=new Date).setSeconds(u.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),t=u.getTime()));var k=setInterval((function(){var i=(new Date).getTime(),n=t-i,d=Math.floor(n/864e5),r=Math.floor(n%864e5/36e5),s=Math.floor(n%36e5/6e4),l=Math.floor(n%6e4/1e3);if(e.find("."+c).find("#eaeulSec1").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulSec1").find(".flip-clock-before").removeClass("flip-clock-before"),e.find("."+c).find("#eaeulSec").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulSec").find(".flip-clock-before").removeClass("flip-clock-before"),n<0)return clearInterval(k),void(o.length>0&&o.forEach((function(t){"redirect"===t&&(e.hasClass("elementor-element-edit-mode")||($url1=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==a.trim($url1)&&(window.location.href=$url1))),"hide"===t&&(e.hasClass("elementor-element-edit-mode")||(e.find("."+c).find(".timer-container").css("display","none"),e.find("."+c).find(".egt-title").css("display","none"))),"message"===t&&(e.hasClass("elementor-element-edit-mode")||e.find("."+c).find(".eae-egt-message").css("display","block")),"hide_parent"===t&&(e.hasClass("elementor-element-edit-mode")||($p_secs=e.closest("section"),$p_secs.css("display","none")))})));if(2===a.trim(l).length){var f="#eaeulSec1 li:eq( "+a.trim(l).charAt(1)+" )",p="#eaeulSec li:eq( "+a.trim(l).charAt(0)+" )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulSec1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulSec1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulSec li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulSec li:first-child").addClass("flip-clock-before"))}else{f="#eaeulSec1 li:eq( "+a.trim(l).charAt(0)+" )",p="#eaeulSec li:eq( 0 )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulSec1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulSec1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulSec li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulSec li:first-child").addClass("flip-clock-before"))}if(e.find("."+c).find("#eaeulMin1").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulMin1").find(".flip-clock-before").removeClass("flip-clock-before"),e.find("."+c).find("#eaeulMin").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulMin").find(".flip-clock-before").removeClass("flip-clock-before"),2==a.trim(s).length){f="#eaeulMin1 li:eq( "+a.trim(s).charAt(1)+" )",p="#eaeulMin li:eq( "+a.trim(s).charAt(0)+" )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulMin1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulMin1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulMin li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulMin li:first-child").addClass("flip-clock-before"))}else{f="#eaeulMin1 li:eq( "+a.trim(s).charAt(0)+" )",p="#eaeulMin li:eq( 0 )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulMin1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulMin1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulMin li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulMin li:first-child").addClass("flip-clock-before"))}if(e.find("."+c).find("#eaeulHour1").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulHour1").find(".flip-clock-before").removeClass("flip-clock-before"),e.find("."+c).find("#eaeulHour").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulHour").find(".flip-clock-before").removeClass("flip-clock-before"),2==a.trim(r).length){f="#eaeulHour1 li:eq( "+a.trim(r).charAt(1)+" )",p="#eaeulHour li:eq( "+a.trim(r).charAt(0)+" )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulHour1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulHour1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulHour li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulHour li:first-child").addClass("flip-clock-before"))}else{f="#eaeulHour1 li:eq( "+a.trim(r).charAt(0)+" )",p="#eaeulHour li:eq( 0 )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulHour1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulHour li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulHour li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulHour li:first-child").addClass("flip-clock-before"))}if(e.find("."+c).find("#eaeulDay1").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulDay1").find(".flip-clock-before").removeClass("flip-clock-before"),e.find("."+c).find("#eaeulDay").find(".flip-clock-active").removeClass("flip-clock-active"),e.find("."+c).find("#eaeulDay").find(".flip-clock-before").removeClass("flip-clock-before"),2==a.trim(d).length){f="#eaeulDay1 li:eq( "+a.trim(d).charAt(1)+" )",p="#eaeulDay li:eq( "+a.trim(d).charAt(0)+" )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulDay1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulDay1 li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulDay li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulDay li:first-child").addClass("flip-clock-before"))}else{f="#eaeulDay1 li:eq( "+a.trim(d).charAt(0)+" )",p="#eaeulDay li:eq( 0 )";e.find("."+c).find(f).next().length>0?(e.find("."+c).find(f).addClass("flip-clock-active"),e.find("."+c).find(f).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulDay1 li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulDay li:first-child").addClass("flip-clock-before")),e.find("."+c).find(p).next().length>0?(e.find("."+c).find(p).addClass("flip-clock-active"),e.find("."+c).find(p).next().addClass("flip-clock-before")):(e.find("."+c).find("#eaeulDay li:last-child").addClass("flip-clock-active"),e.find("."+c).find("#eaeulDay li:first-child").addClass("flip-clock-before"))}}),1e3)})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-evergreen-timer.skin3",(function(e,a){var t,d=e.find(".eae-evergreen-wrapper").data("egtime"),r=e.find(".eae-evergreen-wrapper").data("egt-expire"),s=e.find(".eae-evergreen-wrapper").data("element-type"),l="eae-"+e.find(".eae-evergreen-wrapper").data("id"),o="eae-temp-"+e.find(".eae-evergreen-wrapper").data("id"),c=e.find(".eae-evergreen-wrapper").data("actions"),f=e.find(".eae-evergreen-wrapper").data("days"),p=e.find(".eae-evergreen-wrapper").data("hours"),m=e.find(".eae-evergreen-wrapper").data("mins"),u=e.find(".eae-evergreen-wrapper").data("seconds"),g=e.find(".eae-evergreen-wrapper").data("unqid"),v=(new Date).getTime();if(!e.hasClass("elementor-element-edit-mode"))if("countdown"===s){y=new Date(d),d=y.getTime();var h="expires="+y.toUTCString();document.cookie=o+"="+y.getTime()+";"+h+";path=/"}else{var w=n(l),y="";if(""!==w){(y=new Date(parseInt(w))).setSeconds(y.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),d=y.getTime();var k=new Date(parseInt(w));k.setTime(k.getTime()+60*r*60*1e3);var b="expires="+k.toUTCString();document.cookie=l+"="+w+";"+b+";path=/";var C=new Date(parseInt(w));C.setTime(C.getTime()+1e3*e.find(".eae-evergreen-wrapper").data("egtime"));h="expires="+C.toUTCString();d-v>0&&(document.cookie=o+"="+w+";"+h+";path=/")}else{temp_date=d,(y=new Date).setSeconds(y.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),d=y.getTime(),i(l,(new Date).getTime(),r);var _=new Date;_.setTime(_.getTime()+1e3*temp_date);var x="expires="+_.toUTCString();document.cookie=o+"="+(new Date).getTime()+";"+x+";path=/"}}if(!e.hasClass("elementor-element-edit-mode")){var T=D(d);if(parseInt(T.all)<1){if(c.length>0&&(c.forEach((function(a){"redirect"===a&&(e.hasClass("elementor-element-edit-mode")||($url=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==$url&&(window.location.href=$url))),"hide_parent"===a&&(e.hasClass("elementor-element-edit-mode")||($p_secs=e.closest("section"),$p_secs.css("display","none"))),"hide"===a&&(e.find("#timer").css("display","none"),e.find(".egt-title").css("display","none"),e.find(".desc").css("display","none")),"message"===a&&e.find(".eae-egt-message").css("display","block")})),1===c.length&&(""===c[0]||"message"===c[0]))){var $=e.find("."+g).find("#timer")[0];"yes"===f&&($.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===p&&("yes"===f?a($).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):$.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===m&&("yes"===f||"yes"===p?a($).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):$.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===u&&("yes"===f||"yes"===p||"yes"===m?a($).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):$.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>")}return}}function D(e){var a=d-new Date;return{days:Math.floor(a/864e5),hours:"0"+Math.floor(a/36e5%24),minutes:"0"+Math.floor(a/6e4%60),seconds:"0"+Math.floor(a/1e3%60),all:a}}function S(e){e.classList.add("fade"),setTimeout((function(){e.classList.remove("fade")}),700)}e.hasClass("elementor-element-edit-mode")&&("countdown"===s?(y=new Date(d),d=y.getTime()):((y=new Date).setSeconds(y.getSeconds()+e.find(".eae-evergreen-wrapper").data("egtime")),d=y.getTime())),D(d).all>1&&(t=setInterval((function(){var i=e.find("."+g).find("#timer")[0],n=D(d);"yes"===f&&(n.days<10&&(n.days="0"+n.days),i.innerHTML="<span class='egt-time eae-time-wrapper'><div>"+n.days+"</div></span>"),"yes"===p&&("yes"===f?a(i).append("<span class='egt-time eae-time-wrapper'><div>"+n.hours.slice(-2)+"</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>"+n.hours.slice(-2)+"</div></span>"),"yes"===m&&("yes"===f||"yes"===p?a(i).append("<span class='egt-time eae-time-wrapper'><div>"+n.minutes.slice(-2)+"</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>"+n.minutes.slice(-2)+"</div></span>"),"yes"===u&&("yes"===f||"yes"===p||"yes"===m?a(i).append("<span class='egt-time eae-time-wrapper'><div>"+n.seconds.slice(-2)+"</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>"+n.seconds.slice(-2)+"</div></span>");var r=i.getElementsByTagName("span");"yes"===f&&59==n.hours&&59==n.minutes&&59==n.seconds&&S(r[0]),"yes"===p&&("yes"===f?59==n.minutes&&59==n.seconds&&S(r[1]):59==n.minutes&&59==n.seconds&&S(r[0])),"yes"===m&&("yes"===f?"yes"===p?59==n.seconds&&S(r[2]):59==n.seconds&&S(r[1]):"yes"===p?59==n.seconds&&S(r[1]):59==n.seconds&&S(r[0])),"yes"===u&&("yes"===f?"yes"===p?"yes"===m&&S(r[3]):S("yes"===m?r[2]:r[1]):"yes"===p?"yes"===m&&S(r[2]):S("yes"===m?r[1]:r[0])),n.all<=1&&(clearInterval(t),"yes"===f&&(i.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===p&&("yes"===f?a(i).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===m&&("yes"===f||"yes"===p?a(i).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),"yes"===u&&("yes"===f||"yes"===p||"yes"===m?a(i).append("<span class='egt-time eae-time-wrapper'><div>00</div></span>"):i.innerHTML="<span class='egt-time eae-time-wrapper'><div>00</div></span>"),e.hasClass("elementor-element-edit-mode")||c.length>0&&c.forEach((function(a){"redirect"===a&&($url1=e.find(".eae-evergreen-wrapper").data("redirected-url"),""!==$url1&&(window.location.href=$url1)),"hide"===a&&(e.find("#timer").css("display","none"),e.find(".egt-title").css("display","none"),e.find(".desc").css("display","none")),"message"===a&&e.find(".eae-egt-message").css("display","block"),"hide_parent"===a&&($p_secs=e.closest("section"),$p_secs.css("display","none"))})))}),1e3))})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-comparisontable.default",(function(e,a){a(e.find(".eae-ct-heading")[0]).addClass("active"),e.find("ul").on("click","li",(function(){var t=a(this).index()+2;e.find("tr").find("td:not(:eq(0))").hide(),e.find("td:nth-child("+t+")").css("display","table-cell"),e.find("tr").find("th:not(:eq(0))").hide(),e.find("li").removeClass("active"),a(this).addClass("active")}));var t=window.matchMedia("(min-width: 767px)");function i(a){a.matches?e.find(".sep").attr("colspan",5):e.find(".sep").attr("colspan",2)}t.addListener(i),i(t)})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-progress-bar.skin1",d),elementorFrontend.hooks.addAction("frontend/element_ready/eae-progress-bar.skin2",d),elementorFrontend.hooks.addAction("frontend/element_ready/eae-progress-bar.skin3",d),elementorFrontend.hooks.addAction("frontend/element_ready/eae-progress-bar.skin4",d),elementorFrontend.hooks.addAction("frontend/element_ready/eae-progress-bar.skin5",d),elementorFrontend.hooks.addAction("frontend/element_ready/eae-filterableGallery.default",(function(e,a){var t=e.find(".eae-fg-wrapper"),i=e.data("id"),n=t.attr("data-maxtilt"),d=t.attr("data-perspective"),r=t.attr("data-speed"),s=t.attr("data-tilt-axis"),l=t.attr("data-glare"),o=parseInt(t.attr("data-overlay-speed"));if(s="x"===s?"y":"y"===s?"x":"both","yes"===l)var c=t.attr("data-max-glare");l="yes"===l;var f=a(".elementor-element-"+i+" .eae-fg-image"),p=t.hasClass("masonry-yes")?"masonry":"fitRows";let m=f.outerHeight();adata={percentPosition:!0,animationOptions:{duration:750,easing:"linear",queue:!1}},"fitRows"===p&&(adata.layoutMode="fitRows"),"masonry"===p&&(adata.masonry={columnWidth:".eae-gallery-item",horizontalOrder:!0}),e.hasClass("eae-show-all-yes")||(e.find(".eae-gallery-filter a").first().addClass("current"),adata.filter=e.find(".eae-gallery-filter a").first().attr("data-filter"));var u=f.isotope(adata);u.imagesLoaded().progress((function(){u.isotope("layout"),e.find(".eae-fg-image").css({"min-height":"300px",height:m})})),e.find(".eae-tilt-yes")&&(atilt={maxTilt:n,perspective:d,easing:"linear",scale:1,speed:r,disableAxis:s,transition:!0,reset:!0,glare:l,maxGlare:c},e.find(".el-tilt").tilt(atilt)),a(".elementor-element-"+i+" .eae-gallery-filter a").on("click",(function(){e.find(".eae-gallery-filter .current").removeClass("current"),a(this).addClass("current");var t=a(this).attr("data-filter");adata.filter=t;var i=f.isotope(adata);return i.imagesLoaded().progress((function(){if(i.isotope("layout"),isEditMode)return!1;e.find(".eae-tilt-yes")&&(e.find(".el-tilt").tilt(atilt),e.find(".el-tilt").tilt.reset.call(e.find(".el-tilt")))})),!1})),t.hasClass("eae-hover-direction-effect")||e.find(".eae-gallery-item-inner").hover((function(){a(this).find(".eae-grid-overlay").addClass("animated")})),t.hasClass("eae-hover-direction-effect")&&(e.find(".eae-gallery-item-inner").hover((function(){a(this).find(".eae-grid-overlay").addClass("overlay")})),t.find(".eae-gallery-item-inner").EAEHoverDirection({speed:o}))})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-content-switcher.skin1",r),elementorFrontend.hooks.addAction("frontend/element_ready/eae-content-switcher.skin2",r),elementorFrontend.hooks.addAction("frontend/element_ready/eae-content-switcher.skin3",s),elementorFrontend.hooks.addAction("frontend/element_ready/eae-content-switcher.skin4",s),elementorFrontend.hooks.addAction("frontend/element_ready/global",(function(e,a){isEditMode||e.data("wts-url")&&"yes"==e.data("wts-link")&&e.on("click",(function(a){e.data("wts-url")&&"yes"==e.data("wts-new-window")?window.open(e.data("wts-url")):location.href=e.data("wts-url")}))})),elementorFrontend.hooks.addAction("frontend/element_ready/eae-thumbgallery.default",(function(e,a){swiper_outer_wrapper=e.find(".eae-swiper-outer-wrapper"),wid=e.data("id"),wClass=".elementor-element-"+wid,thumb_outer_wrapper=e.find(".eae-gallery-thumbs");let t=swiper_outer_wrapper.data("swiper-settings"),i=swiper_outer_wrapper.data("slides-per-view"),n=swiper_outer_wrapper.data("space");const d=eae.breakpoints;let r={};r[d.lg-1]={slidesPerView:i.desktop,spaceBetween:n.desktop},r[d.md-1]={slidesPerView:i.tablet,spaceBetween:n.tablet};const s=eae.breakpoints;let l={};if(l[s.lg-1]={spaceBetween:t.spaceBetween.desktop},l[s.md-1]={spaceBetween:t.spaceBetween.tablet},sliderData={direction:"horizontal",effect:t.effect,keyboard:{enabled:t.keyboard},spaceBetween:t.spaceBetween.mobile,breakpoints:l,speed:t.speed,loop:"yes"===t.loop,thumbs:{swiper:{el:thumb_outer_wrapper,direction:"horizontal",spaceBetween:n.mobile,slidesPerView:i.mobile,navigation:{nextEl:wClass+" .eae-swiper-button-next",prevEl:wClass+" .eae-swiper-button-prev"},speed:t.speed,loop:"yes"===t.loop,freeMode:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0,breakpoints:r,slideToClickedSlide:!0}}},void 0!==t.autoplay&&(sliderData.thumbs.swiper.autoplay={delay:t.autoplay.duration,disableOnInteraction:t.autoplay.disableOnInteraction,reverseDirection:t.autoplay.reverseDirection}),"yes"==t.navigation&&(sliderData.navigation={nextEl:wClass+" .eae-swiper-button-next",prevEl:wClass+" .eae-swiper-button-prev"}),""!==t.pagination&&(sliderData.pagination={type:t.pagination,el:wClass+" .swiper-pagination",clickable:t.clickable}),void 0!==t.autoplay&&(sliderData.autoplay={delay:t.autoplay.duration,disableOnInteraction:t.autoplay.disableOnInteraction,reverseDirection:t.autoplay.reverseDirection}),"undefined"==typeof Swiper){new(0,elementorFrontend.utils.swiper)(".elementor-element-"+wid+" .eae-swiper-outer-wrapper .eae-swiper-container",sliderData).then(e=>{sswiper=e})}else window.sswiper=new Swiper(".elementor-element-"+wid+" .eae-swiper-outer-wrapper .eae-swiper-container",sliderData),a(".elementor-element-"+wid+" .eae-swiper-outer-wrapper .eae-swiper-container").css("visibility","visible")}))}))}(jQuery);
elementor-addon-elements.php CHANGED
@@ -5,10 +5,10 @@
5
  * Description: Add new elements to Elementor page builder plugin.
6
  * Plugin URI: https://www.elementoraddons.com/elements-addon-elements/
7
  * Author: WP Vibes
8
- * Version: 1.9.1
9
  * Author URI: https://wpvibes.com/
10
  * Elementor tested up to: 3.1.0
11
- * Elementor Pro tested up to: 3.0.9
12
  * Text Domain: wts-eae
13
  * @package WTS_EAE
14
  */
@@ -16,7 +16,7 @@ define('EAE_FILE', __FILE__);
16
  define('EAE_URL', plugins_url('/', __FILE__));
17
  define('EAE_PATH', plugin_dir_path(__FILE__));
18
  define('EAE_SCRIPT_SUFFIX', defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min');
19
- define('EAE_VERSION', '1.9.1');
20
 
21
 
22
  if (!function_exists('_is_elementor_installed')) {
5
  * Description: Add new elements to Elementor page builder plugin.
6
  * Plugin URI: https://www.elementoraddons.com/elements-addon-elements/
7
  * Author: WP Vibes
8
+ * Version: 1.9.2
9
  * Author URI: https://wpvibes.com/
10
  * Elementor tested up to: 3.1.0
11
+ * Elementor Pro tested up to: 3.0.10
12
  * Text Domain: wts-eae
13
  * @package WTS_EAE
14
  */
16
  define('EAE_URL', plugins_url('/', __FILE__));
17
  define('EAE_PATH', plugin_dir_path(__FILE__));
18
  define('EAE_SCRIPT_SUFFIX', defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min');
19
+ define('EAE_VERSION', '1.9.2');
20
 
21
 
22
  if (!function_exists('_is_elementor_installed')) {
inc/bootstrap.php CHANGED
@@ -191,8 +191,8 @@ class Plugin
191
 
192
  wp_register_style('vegas-css', EAE_URL . 'assets/lib/vegas/vegas' . EAE_SCRIPT_SUFFIX . '.css');
193
  wp_register_script('vegas', EAE_URL . 'assets/lib/vegas/vegas' . EAE_SCRIPT_SUFFIX . '.js', array('jquery'), '2.4.0', true);
194
- wp_register_script('wts-swiper-script', EAE_URL . 'assets/lib/swiper/js/swiper' . EAE_SCRIPT_SUFFIX . '.js', array('jquery'), '4.4.6', true);
195
- wp_register_script('wts-swiper-style', EAE_URL . 'assets/lib/swiper/css/swiper' . EAE_SCRIPT_SUFFIX . '.css');
196
 
197
  wp_register_script('wts-magnific', EAE_URL . 'assets/lib/magnific' . EAE_SCRIPT_SUFFIX . '.js', array('jquery'), '1.9', true);
198
  wp_register_script('wts-isotope', EAE_URL . 'assets/lib/isotope/isotope.pkgd' . EAE_SCRIPT_SUFFIX . '.js', array('jquery'), '2.6.2', true);
@@ -410,14 +410,15 @@ class Plugin
410
  update_option('eae_review', $review, false);
411
  }
412
 
413
- function fv_download_box(){
 
414
  if (isset($_GET['fv_download_later'])) {
415
- add_action('admin_notices', [$this, 'fv_download_later']);
416
- } else if (isset($_GET['fv_not_interested'])) {
417
- add_action('admin_notices', [$this, 'fv_not_interested']);
418
- } else {
419
- $this->check_form_used();
420
- }
421
  }
422
  function check_form_used()
423
  {
@@ -447,12 +448,12 @@ class Plugin
447
  $download_later = get_transient('fv_download_later');
448
 
449
  $fv_downloaded = get_option('fv_downloaded');
450
-
451
  //echo 'notice '. self::$show_notice;
452
- if($fv_downloaded === 'done' || $download_later){
453
  return;
454
  }
455
- if(!self::$show_notice){
456
  return;
457
  }
458
  self::$show_notice = false;
@@ -495,16 +496,16 @@ class Plugin
495
  }
496
 
497
  function fv_download_later()
498
- {
499
- set_transient('fv_download_later', 'show again', WEEK_IN_SECONDS);
500
- }
501
 
502
- function fv_not_interested()
503
- {
504
- //set_transient( 'fv_review_done', 'Already Reviewed !', 3 * MONTH_IN_SECONDS );
505
 
506
- update_option('fv_downloaded', 'done', false);
507
- }
508
  }
509
 
510
  Plugin::get_instance();
191
 
192
  wp_register_style('vegas-css', EAE_URL . 'assets/lib/vegas/vegas' . EAE_SCRIPT_SUFFIX . '.css');
193
  wp_register_script('vegas', EAE_URL . 'assets/lib/vegas/vegas' . EAE_SCRIPT_SUFFIX . '.js', array('jquery'), '2.4.0', true);
194
+ //wp_register_script('wts-swiper-script', EAE_URL . 'assets/lib/swiper/js/swiper' . EAE_SCRIPT_SUFFIX . '.js', array('jquery'), '4.4.6', true);
195
+ //wp_register_script('wts-swiper-style', EAE_URL . 'assets/lib/swiper/css/swiper' . EAE_SCRIPT_SUFFIX . '.css');
196
 
197
  wp_register_script('wts-magnific', EAE_URL . 'assets/lib/magnific' . EAE_SCRIPT_SUFFIX . '.js', array('jquery'), '1.9', true);
198
  wp_register_script('wts-isotope', EAE_URL . 'assets/lib/isotope/isotope.pkgd' . EAE_SCRIPT_SUFFIX . '.js', array('jquery'), '2.6.2', true);
410
  update_option('eae_review', $review, false);
411
  }
412
 
413
+ function fv_download_box()
414
+ {
415
  if (isset($_GET['fv_download_later'])) {
416
+ add_action('admin_notices', [$this, 'fv_download_later']);
417
+ } else if (isset($_GET['fv_not_interested'])) {
418
+ add_action('admin_notices', [$this, 'fv_not_interested']);
419
+ } else {
420
+ $this->check_form_used();
421
+ }
422
  }
423
  function check_form_used()
424
  {
448
  $download_later = get_transient('fv_download_later');
449
 
450
  $fv_downloaded = get_option('fv_downloaded');
451
+
452
  //echo 'notice '. self::$show_notice;
453
+ if ($fv_downloaded === 'done' || $download_later) {
454
  return;
455
  }
456
+ if (!self::$show_notice) {
457
  return;
458
  }
459
  self::$show_notice = false;
496
  }
497
 
498
  function fv_download_later()
499
+ {
500
+ set_transient('fv_download_later', 'show again', WEEK_IN_SECONDS);
501
+ }
502
 
503
+ function fv_not_interested()
504
+ {
505
+ //set_transient( 'fv_review_done', 'Already Reviewed !', 3 * MONTH_IN_SECONDS );
506
 
507
+ update_option('fv_downloaded', 'done', false);
508
+ }
509
  }
510
 
511
  Plugin::get_instance();
modules/thumb-gallery/widgets/thumb-gallery.php CHANGED
@@ -15,105 +15,115 @@ use Elementor\Repeater;
15
  use Elementor\Utils;
16
 
17
 
18
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
19
 
20
- class ThumbGallery extends EAE_Widget_Base {
 
21
 
22
- public function get_name() {
 
23
  return 'eae-thumbgallery';
24
  }
25
 
26
- public function get_title() {
 
27
  return __('EAE - Thumbnail Slider', 'wts-eae');
28
  }
29
 
30
- public function get_icon() {
 
31
  return 'eicon-slides';
32
  }
33
 
34
- public function get_categories() {
35
- return [ 'wts-eae' ];
36
- }
 
 
 
 
 
 
37
 
38
- public function get_keywords()
39
- {
40
  return [
41
  'gallery',
42
  'ea thumb gallery',
43
- 'slider',
44
- 'thumbnail slider',
45
- 'media carousel',
46
- 'carousel',
47
- ];
48
- }
49
-
50
- protected function _register_controls()
51
  {
52
- $this->start_controls_section(
53
  'section_gallery',
54
  [
55
  'label' => __('Slides', 'wts-eae')
56
  ]
57
- );
58
-
59
- $repeater = new Repeater();
60
 
61
- $repeater->start_controls_tabs( 'gallery_repeater' );
62
 
63
- $repeater->start_controls_tab(
64
- 'slide_background',
65
- [
66
- 'label' => __( 'Image', 'wts-eae' )
67
- ]
68
- );
 
 
69
 
70
- $repeater->add_control(
71
  'slide_image',
72
  [
73
- 'label' => _x( 'Image', 'wts-eae' ),
74
- 'type' => Controls_Manager::MEDIA,
75
- 'dynamic' => [
76
- 'active' => true,
77
- ],
78
- 'default' => [
79
- 'url' => Utils::get_placeholder_image_src(),
80
- ],
81
- 'show_label' => false,
82
- 'selectors' => [
83
- '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}}' => 'background-image: url({{URL}})',
84
  ],
85
  'render_type' => 'template'
86
  ]
87
- );
88
 
89
- $repeater->add_control(
90
  'slide_thumb_image',
91
  [
92
- 'label' => __( 'Custom Thumbnail Image', 'wts-eae' ),
93
  'type' => Controls_Manager::SWITCHER,
94
  'default' => '',
95
- 'label_on' => __( 'Yes', 'wts-eae' ),
96
- 'label_off' => __( 'No', 'wts-eae' ),
97
  'return_value' => 'yes',
98
  ]
99
- );
100
 
101
- $repeater->add_control(
102
  'thumb_image',
103
  [
104
- 'label' => _x( 'Image', 'wts-eae' ),
105
- 'type' => Controls_Manager::MEDIA,
106
- 'dynamic' => [
107
- 'active' => true,
108
- ],
109
- 'default' => [
110
- 'url' => Utils::get_placeholder_image_src(),
111
- ],
112
- 'show_label' => false,
113
  'selectors' => [
114
  '{{WRAPPER}} .eae-thumb-slide{{CURRENT_ITEM}}' => 'background-image: url({{URL}})',
115
- ],
116
- 'conditions' => [
117
  'terms' => [
118
  [
119
  'name' => 'slide_thumb_image',
@@ -123,75 +133,75 @@ class ThumbGallery extends EAE_Widget_Base {
123
  ],
124
  'render_type' => 'template'
125
  ]
126
- );
127
 
128
- $repeater->end_controls_tab();
129
 
130
- $repeater->start_controls_tab(
131
- 'content',
132
- [
133
- 'label' => __( 'Content', 'wts-eae' )
134
- ]
135
- );
136
 
137
- $repeater->add_control(
138
  'slide_heading',
139
  [
140
- 'label' => __( 'Heading & Description', 'wts-eae' ),
141
  'type' => Controls_Manager::TEXT,
142
  'dynamic' => [
143
- 'active' => true,
144
- ],
145
- 'default' => __( 'Slide Heading', 'wts-eae' ),
146
  'label_block' => true,
147
  ]
148
- );
149
-
150
- $repeater->add_control(
151
  'slide_description',
152
  [
153
- 'label' => __( 'Description', 'wts-eae' ),
154
  'type' => Controls_Manager::TEXTAREA,
155
  'dynamic' => [
156
- 'active' => true,
157
- ],
158
- 'default' => __( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit Ut elit tellus.', 'wts-eae' ),
159
  'show_label' => false,
160
  ]
161
- );
162
-
163
- $repeater->add_control(
164
  'slide_button_text',
165
  [
166
- 'label' => __( 'Button Text', 'wts-eae' ),
167
  'type' => Controls_Manager::TEXT,
168
  'dynamic' => [
169
- 'active' => true,
170
- ],
171
- 'default' => __( 'Click Here', 'wts-eae' ),
172
  ]
173
- );
174
-
175
- $repeater->add_control(
176
  'slide_link',
177
  [
178
- 'label' => __( 'Link', 'wts-eae' ),
179
  'type' => Controls_Manager::URL,
180
  'dynamic' => [
181
- 'active' => true,
182
- ],
183
- 'placeholder' => __( 'https://your-link.com', 'wts-eae' ),
184
  ]
185
- );
186
-
187
- $repeater->add_control(
188
  'slide_link_click',
189
  [
190
- 'label' => __( 'Apply Link On', 'wts-eae' ),
191
  'type' => Controls_Manager::SELECT,
192
  'options' => [
193
- 'slide' => __( 'Whole Slide', 'wts-eae' ),
194
- 'button' => __( 'Button Only', 'wts-eae' ),
195
  ],
196
  'default' => 'slide',
197
  'conditions' => [
@@ -206,40 +216,40 @@ class ThumbGallery extends EAE_Widget_Base {
206
  ]
207
  );
208
 
209
- $repeater->end_controls_tab();
210
 
211
- $repeater->start_controls_tab(
212
- 'style',
213
- [
214
- 'label' => __( 'Style', 'wts-eae' )
215
- ]
216
- );
217
 
218
- $repeater->add_control(
219
  'slide_custom_style',
220
  [
221
- 'label' => __( 'Custom', 'wts-eae' ),
222
  'type' => Controls_Manager::SWITCHER,
223
- 'description' => __( 'Set custom style that will only affect this specific slide.', 'wts-eae' ),
224
  ]
225
- );
226
 
227
- $repeater->add_control(
228
  'slide_horizontal_position',
229
  [
230
- 'label' => __( 'Horizontal Position', 'wts-eae' ),
231
  'type' => Controls_Manager::CHOOSE,
232
  'options' => [
233
  'left' => [
234
- 'title' => __( 'Left', 'wts-eae' ),
235
  'icon' => 'eicon-h-align-left',
236
  ],
237
  'center' => [
238
- 'title' => __( 'Center', 'wts-eae' ),
239
  'icon' => 'eicon-h-align-center',
240
  ],
241
  'right' => [
242
- 'title' => __( 'Right', 'wts-eae' ),
243
  'icon' => 'eicon-h-align-right',
244
  ],
245
  ],
@@ -260,24 +270,24 @@ class ThumbGallery extends EAE_Widget_Base {
260
  ],
261
  ],
262
  ]
263
- );
264
 
265
- $repeater->add_control(
266
  'slide_vertical_position',
267
  [
268
- 'label' => __( 'Vertical Position', 'wts-eae' ),
269
  'type' => Controls_Manager::CHOOSE,
270
  'options' => [
271
  'top' => [
272
- 'title' => __( 'Top', 'wts-eae' ),
273
  'icon' => 'eicon-v-align-top',
274
  ],
275
  'middle' => [
276
- 'title' => __( 'Middle', 'wts-eae' ),
277
  'icon' => 'eicon-v-align-middle',
278
  ],
279
  'bottom' => [
280
- 'title' => __( 'Bottom', 'wts-eae' ),
281
  'icon' => 'eicon-v-align-bottom',
282
  ],
283
  ],
@@ -298,24 +308,24 @@ class ThumbGallery extends EAE_Widget_Base {
298
  ],
299
  ],
300
  ]
301
- );
302
 
303
- $repeater->add_control(
304
  'slide_text_align',
305
  [
306
- 'label' => __( 'Text Align', 'wts-eae' ),
307
  'type' => Controls_Manager::CHOOSE,
308
  'options' => [
309
  'left' => [
310
- 'title' => __( 'Left', 'wts-eae' ),
311
  'icon' => 'eicon-text-align-left',
312
  ],
313
  'center' => [
314
- 'title' => __( 'Center', 'wts-eae' ),
315
  'icon' => 'eicon-text-align-center',
316
  ],
317
  'right' => [
318
- 'title' => __( 'Right', 'wts-eae' ),
319
  'icon' => 'eicon-text-align-right',
320
  ],
321
  ],
@@ -331,9 +341,9 @@ class ThumbGallery extends EAE_Widget_Base {
331
  ],
332
  ],
333
  ]
334
- );
335
 
336
- // $repeater->add_control(
337
  // 'slide_content_color',
338
  // [
339
  // 'label' => __( 'Content Color', 'wts-eae' ),
@@ -341,7 +351,7 @@ class ThumbGallery extends EAE_Widget_Base {
341
  // 'selectors' => [
342
  // '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-inner .eae-slide-heading' => 'color: {{VALUE}}',
343
  // '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-inner .eae-slide-text' => 'color: {{VALUE}}',
344
- // '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-inner .eae-slide-button .eae-slide-btn' => 'color: {{VALUE}}; border-color: {{VALUE}}',
345
  // ],
346
  // 'conditions' => [
347
  // 'terms' => [
@@ -357,7 +367,7 @@ class ThumbGallery extends EAE_Widget_Base {
357
  $repeater->add_control(
358
  'slide_content_bgcolor',
359
  [
360
- 'label' => __( 'Content Background Color', 'wts-eae' ),
361
  'type' => Controls_Manager::COLOR,
362
  'selectors' => [
363
  '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-content' => 'background-color: {{VALUE}}',
@@ -373,11 +383,11 @@ class ThumbGallery extends EAE_Widget_Base {
373
  'separator' => 'after',
374
  ]
375
  );
376
-
377
  $repeater->add_control(
378
  'repeater_heading_color',
379
  [
380
- 'label' => __( 'Heading Color', 'wts-eae' ),
381
  'type' => Controls_Manager::COLOR,
382
  'selectors' => [
383
  '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-inner .eae-slide-heading' => 'color: {{VALUE}}',
@@ -392,12 +402,12 @@ class ThumbGallery extends EAE_Widget_Base {
392
  ],
393
  ],
394
  ]
395
- );
396
-
397
  $repeater->add_group_control(
398
  Group_Control_Typography::get_type(),
399
  [
400
- 'label' => __( 'Heading Typography', 'wts-eae' ),
401
  'name' => 'repeater_heading_typography',
402
  'global' => [
403
  'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
@@ -417,7 +427,7 @@ class ThumbGallery extends EAE_Widget_Base {
417
  $repeater->add_control(
418
  'repeater_description_color',
419
  [
420
- 'label' => __( 'Description Color', 'wts-eae' ),
421
  'type' => Controls_Manager::COLOR,
422
  'selectors' => [
423
  '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-inner .eae-slide-text' => 'color: {{VALUE}}',
@@ -433,12 +443,12 @@ class ThumbGallery extends EAE_Widget_Base {
433
  ],
434
  'separator' => 'before',
435
  ]
436
- );
437
-
438
  $repeater->add_group_control(
439
  Group_Control_Typography::get_type(),
440
  [
441
- 'label' => __( 'Description Typography', 'wts-eae' ),
442
  'name' => 'repeater_description_typography',
443
  'global' => [
444
  'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
@@ -455,7 +465,7 @@ class ThumbGallery extends EAE_Widget_Base {
455
  'separator' => 'after',
456
  ]
457
  );
458
-
459
  $repeater->add_control(
460
  'repeater_button_color',
461
  [
@@ -475,12 +485,12 @@ class ThumbGallery extends EAE_Widget_Base {
475
  ],
476
  'separator' => 'before',
477
  ]
478
- );
479
 
480
  $repeater->add_group_control(
481
  Group_Control_Typography::get_type(),
482
  [
483
- 'label' => __( 'Button Typography', 'wts-eae' ),
484
  'name' => 'repeater_button_typography',
485
  'global' => [
486
  'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
@@ -495,15 +505,15 @@ class ThumbGallery extends EAE_Widget_Base {
495
  ],
496
  ],
497
  ]
498
- );
499
 
500
- $repeater->add_control(
501
  'slide_overlay',
502
  [
503
- 'label' => __( 'Overlay', 'wts-eae' ),
504
  'type' => Controls_Manager::SWITCHER,
505
- 'default' => '',
506
- 'conditions' => [
507
  'terms' => [
508
  [
509
  'name' => 'slide_custom_style',
@@ -513,21 +523,21 @@ class ThumbGallery extends EAE_Widget_Base {
513
  ],
514
  'separator' => 'before',
515
  ]
516
- );
517
 
518
- $repeater->add_control(
519
  'slide_overlay_color',
520
  [
521
- 'label' => __( 'Overlay Color', 'wts-eae' ),
522
  'type' => Controls_Manager::COLOR,
523
  'default' => 'rgba(0,0,0,0.5)',
524
  'conditions' => [
525
  'relation' => 'and',
526
  'terms' => [
527
  [
528
- 'name' => 'slide_custom_style',
529
- 'value' => 'yes',
530
- ],
531
  [
532
  'name' => 'slide_overlay',
533
  'value' => 'yes',
@@ -538,15 +548,15 @@ class ThumbGallery extends EAE_Widget_Base {
538
  '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-background-overlay' => 'background-color: {{VALUE}}',
539
  ],
540
  ]
541
- );
542
 
543
- $repeater->add_control(
544
  'slide_overlay_blend_mode',
545
  [
546
- 'label' => __( 'Blend Mode', 'wts-eae' ),
547
  'type' => Controls_Manager::SELECT,
548
  'options' => [
549
- '' => __( 'Normal', 'wts-eae' ),
550
  'multiply' => 'Multiply',
551
  'screen' => 'Screen',
552
  'overlay' => 'Overlay',
@@ -564,9 +574,9 @@ class ThumbGallery extends EAE_Widget_Base {
564
  'relation' => 'and',
565
  'terms' => [
566
  [
567
- 'name' => 'slide_custom_style',
568
- 'value' => 'yes',
569
- ],
570
  [
571
  'name' => 'slide_overlay',
572
  'value' => 'yes',
@@ -579,7 +589,7 @@ class ThumbGallery extends EAE_Widget_Base {
579
  ]
580
  );
581
 
582
- $repeater->add_group_control(
583
  Group_Control_Text_Shadow::get_type(),
584
  [
585
  'name' => 'repeater_text_shadow',
@@ -596,45 +606,45 @@ class ThumbGallery extends EAE_Widget_Base {
596
  );
597
 
598
 
599
- $repeater->end_controls_tab();
600
 
601
- $repeater->end_controls_tabs();
602
 
603
- $this->add_control(
604
  'slides',
605
- [
606
- 'label' => __( 'Slides', 'wts-eae' ),
607
- 'type' => Controls_Manager::REPEATER,
608
- 'show_label' => true,
609
- 'fields' => $repeater->get_controls(),
610
- 'default' => [
611
- [
612
- // 'slide_image' => '',
613
- 'slide_heading' => __( 'Slide 1 Heading', 'wts-eae' ),
614
- 'slide_description' => __( 'Lorem ipsum dolor sit amet consectetur adipiscing elit dolor.', 'wts-eae' ),
615
- 'slide_button_text' => __( 'Click Here', 'wts-eae' ),
616
- ],
617
- [
618
- // 'slide_image' => '',
619
- 'slide_heading' => __( 'Slide 2 Heading', 'wts-eae' ),
620
- 'slide_description' => __( 'Lorem ipsum dolor sit amet consectetur adipiscing elit dolor', 'wts-eae' ),
621
- 'slide_button_text' => __( 'Click Here', 'wts-eae' ),
622
- ],
623
- [
624
- // 'slide_image' => '',
625
- 'slide_heading' => __( 'Slide 3 Heading', 'wts-eae' ),
626
- 'slide_description' => __( 'Lorem ipsum dolor sit amet consectetur adipiscing elit dolor', 'wts-eae' ),
627
- 'slide_button_text' => __( 'Click Here', 'wts-eae' ),
628
- ],
629
- ],
630
- 'title_field' => '{{{ slide_heading }}}',
631
- ]
632
- );
633
-
634
- $this->add_responsive_control(
635
  'slide_height',
636
  [
637
- 'label' => __( 'Height', 'wts-eae' ),
638
  'type' => Controls_Manager::SLIDER,
639
  'range' => [
640
  'px' => [
@@ -649,79 +659,79 @@ class ThumbGallery extends EAE_Widget_Base {
649
  'default' => [
650
  'size' => 400,
651
  ],
652
- 'size_units' => [ 'px', 'vh', 'em' ],
653
  'selectors' => [
654
- '{{WRAPPER}} .eae-swiper-slide' => 'height: {{SIZE}}{{UNIT}};',
655
  ],
656
  'separator' => 'before',
657
  ]
658
- );
659
-
660
- $this->add_control(
661
  'slide_background_size',
662
  [
663
- 'label' => _x( 'Image Fit', 'wts-eae' ),
664
  'type' => Controls_Manager::SELECT,
665
  'default' => 'cover',
666
  'options' => [
667
- 'cover' => _x( 'Cover', 'Background Control', 'wts-eae' ),
668
- 'contain' => _x( 'Contain', 'Background Control', 'wts-eae' ),
669
- 'auto' => _x( 'Auto', 'Background Control', 'wts-eae' ),
670
  ],
671
  'selectors' => [
672
  '{{WRAPPER}} .eae-swiper-outer-wrapper .eae-swiper-slide' => 'background-size: {{VALUE}}',
673
  ],
674
  ]
675
  );
676
-
677
  $this->add_control(
678
  'slide_background_position',
679
  [
680
- 'label' => _x( 'Image Position', 'wts-eae' ),
681
  'type' => Controls_Manager::SELECT,
682
  'default' => 'center center',
683
  'options' => [
684
- '' => __( 'Default', 'wts-eae' ),
685
- 'center center' => __( 'Center Center', 'wts-eae' ),
686
- 'center left' => __( 'Center Left', 'wts-eae' ),
687
- 'center right' => __( 'Center Right', 'wts-eae' ),
688
- 'top center' => __( 'Top Center', 'wts-eae' ),
689
- 'top left' => __( 'Top Left', 'wts-eae' ),
690
- 'top right' => __( 'Top Right', 'wts-eae' ),
691
- 'bottom center' => __( 'Bottom Center', 'wts-eae' ),
692
- 'bottom left' => __( 'Bottom Left', 'wts-eae' ),
693
- 'bottom right' => __( 'Bottom Right', 'wts-eae' ),
694
  ],
695
  'selectors' => [
696
  '{{WRAPPER}} .eae-swiper-outer-wrapper .eae-swiper-slide' => 'background-position: {{VALUE}}',
697
  ],
698
  ]
699
- );
700
 
701
- $this->add_group_control(
702
  Group_Control_Image_Size::get_type(),
703
  [
704
  'name' => 'eae_slide_image',
705
- 'default' => 'full',
706
- 'exclude' => ['custom'],
707
  'separator' => 'none',
708
  ]
709
- );
710
-
711
 
712
- $this->add_control(
 
713
  'slides_background_overlay',
714
  [
715
- 'label' => __( 'Slide Overlay', 'wts-eae' ),
716
  'type' => Controls_Manager::SWITCHER,
717
  'default' => '',
718
  ]
719
- );
720
-
721
- $this->add_control(
722
  'slides_background_overlay_color',
723
  [
724
- 'label' => __( 'Color', 'wts-eae' ),
725
  'type' => Controls_Manager::COLOR,
726
  'default' => 'rgba(0,0,0,0.5)',
727
  'conditions' => [
@@ -736,15 +746,15 @@ class ThumbGallery extends EAE_Widget_Base {
736
  '{{WRAPPER}} .eae-background-overlay' => 'background-color: {{VALUE}}',
737
  ],
738
  ]
739
- );
740
-
741
- $this->add_control(
742
  'background_overlay_blend_mode',
743
  [
744
- 'label' => __( 'Blend Mode', 'wts-eae' ),
745
  'type' => Controls_Manager::SELECT,
746
  'options' => [
747
- '' => __( 'Normal', 'wts-eae' ),
748
  'multiply' => 'Multiply',
749
  'screen' => 'Screen',
750
  'overlay' => 'Overlay',
@@ -770,348 +780,348 @@ class ThumbGallery extends EAE_Widget_Base {
770
  '{{WRAPPER}} .eae-background-overlay' => 'mix-blend-mode: {{VALUE}}',
771
  ],
772
  ]
773
- );
774
 
775
- $this->end_controls_section();
776
 
777
- $this->start_controls_section(
778
- 'section_thumb_setting',
779
- [
780
- 'label' => __( 'Thumbnails', 'wts-eae' ),
781
- 'type' => Controls_Manager::SECTION,
782
- ]
783
  );
784
-
785
  $this->add_responsive_control(
786
  'thumb_slides_per_view',
787
  [
788
- 'label' => __( 'Thumbs Per View', 'wts-eae' ),
789
  'type' => Controls_Manager::NUMBER,
790
  'default' => 3,
791
  'tablet_default' => 3,
792
  'mobile_default' => 2,
793
  ]
794
- );
795
 
796
- $this->add_responsive_control(
797
  'thumb_space_between',
798
  [
799
- 'label' => __( 'Space Between Thumbs', 'wts-eae' ),
800
  'type' => Controls_Manager::NUMBER,
801
  'default' => 10,
802
  'tablet_default' => 10,
803
- 'mobile_default' => 5,
804
- // 'selectors' => [
805
- // '{{WRAPPER}} .eae-swiper-container' => 'margin-bottom: {{VALUE}}px;',
806
- // ],
807
- // 'render_type' => 'template'
808
  ]
809
- );
810
 
811
- $this->add_control(
812
  'thumb_navigation',
813
  [
814
- 'label' => __('Arrows', 'wts-eae'),
815
  'type' => Controls_Manager::SWITCHER,
816
  'default' => '',
817
  ]
818
- );
819
 
820
- $this->add_group_control(
821
  Group_Control_Image_Size::get_type(),
822
  [
823
- 'label' => __( 'Size', 'wts-eae' ),
824
- 'name' => 'eae_thumb_image',
825
- 'default' => 'full',
826
- 'exclude' => ['custom'],
827
- 'separator' => 'before',
828
- ]
829
- );
830
-
831
- $this->add_responsive_control(
832
- 'thumb_ratio',
833
- [
834
- 'label' => __('Ratio', 'wts-eae'),
835
- 'type' => Controls_Manager::SLIDER,
836
- 'default' => [
837
- 'size' => 0.42,
838
- ],
839
- 'tablet_default' => [
840
- 'size' => '',
841
- ],
842
- 'mobile_default' => [
843
- 'size' => 0.5,
844
- ],
845
- 'range' => [
846
- 'px' => [
847
- 'min' => 0.1,
848
- 'max' => 2,
849
- 'step' => 0.01,
850
- ],
851
- ],
852
- 'selectors' => [
853
- '{{WRAPPER}} .eae-thumb-slide .eae-fit-aspect-ratio' => 'padding-bottom: calc( {{SIZE}} * 100% );',
854
- ],
855
- ]
856
- );
857
-
858
- // $this->add_control(
859
- // 'thumb_image_ratio',
860
- // [
861
- // 'label' => __('Ratio', 'wts-eae'),
862
- // 'type' => Controls_Manager::SELECT,
863
- // 'default' => '219',
864
- // 'options' => [
865
  // '169' => '16:9',
866
  // '219' => '21:9',
867
  // '43' => '4:3',
868
  // '11' => '1:1',
869
- // ],
870
- // 'prefix_class' => 'eae-aspect-ratio-',
871
- // 'separator' => 'after',
872
- // ]
873
- // );
874
 
875
- $this->add_control(
876
  'thumb_horizontal_align',
877
  [
878
- 'label' => __( 'Position', 'wts-eae' ),
879
  'type' => Controls_Manager::SELECT,
880
  'options' => [
881
- 'top' => __( 'Top', 'wts-eae' ),
882
- 'bottom' => __( 'Bottom', 'wts-eae' ),
883
  ],
884
- 'default' => 'bottom',
885
  ]
886
- );
887
 
888
 
889
- $this->end_controls_section();
890
 
891
- $this->start_controls_section(
892
- 'section_slider_setting',
893
- [
894
- 'label' => __( 'Slider Options', 'wts-eae' ),
895
- 'type' => Controls_Manager::SECTION,
896
- ]
897
- );
898
 
899
- $this->add_control(
900
  'slider_effect',
901
  [
902
- 'label' => __( 'Effect', 'wts-eae' ),
903
  'type' => Controls_Manager::SELECT,
904
  'default' => 'slide',
905
  'options' => [
906
- 'slide' => __( 'Slide', 'wts-eae' ),
907
- 'fade' => __( 'Fade', 'wts-eae' ),
908
- ],
909
- 'separator' => 'after'
910
- ]
911
- );
912
-
913
- $this->add_control(
914
- 'slider_speed',
915
- [
916
- 'label' => __('Speed', 'wts-eae'),
917
- 'type' => Controls_Manager::NUMBER,
918
- 'default' => 500,
919
- 'description' => __('Duration of transition between slides (in ms)', 'wts-eae'),
920
- 'range' => [
921
- 'px' => [
922
- 'min' => 1000,
923
- 'max' => 10000,
924
- 'step' => 500
925
- ]
926
- ],
927
- ]
928
- );
929
-
930
- $this->add_control(
931
  'slider_autoplay',
932
  [
933
- 'label' => __( 'Autoplay', 'wts-eae' ),
934
  'type' => Controls_Manager::SWITCHER,
935
- 'default' => 'yes',
936
- 'label_on'=>__('Yes', 'wts-eae'),
937
- 'label_off' =>__('No' , 'wts-eae'),
938
- ]
939
- );
940
-
941
- $this->add_control(
942
- 'slider_autoplay_duration',
943
- [
944
- 'label' => __('Duration', 'wts-eae'),
945
- 'type' => Controls_Manager::NUMBER,
946
- 'default' => 5000,
947
- 'description' => __('Delay between transitions (in ms)', 'wts-eae'),
948
- 'range' => [
949
- 'px' =>[
950
- 'min' => 300,
951
- 'max' => 3000,
952
- 'step' => 300,
953
- ]
954
- ],
955
- 'condition' => [
956
- 'slider_autoplay' => 'yes',
957
- ]
958
- ]
959
- );
960
-
961
- $this->add_control(
962
- 'slider_pause_on_interaction',
963
- [
964
- 'label' => __('Pause on Interaction', 'wts-eae'),
965
- 'type' => Controls_Manager::SWITCHER,
966
- 'default' => 'yes',
967
- 'label_on'=>__('Yes', 'wts-eae'),
968
- 'label_off' =>__('No' , 'wts-eae'),
969
- 'condition' => [
970
- 'slider_autoplay' => 'yes',
971
- ],
972
-
973
- ]
974
- );
975
-
976
  $this->add_control(
977
  'slider_direction',
978
  [
979
- 'label' => __( 'Direction', 'wts-eae' ),
980
  'type' => Controls_Manager::SELECT,
981
  'default' => 'ltr',
982
  'options' => [
983
- 'ltr' => __( 'Left', 'wts-eae' ),
984
- 'rtl' => __( 'Right', 'wts-eae' ),
985
  ],
986
  ]
987
  );
988
-
989
-
990
- $this->add_responsive_control(
991
  'slider_space_between',
992
  [
993
  'label' => __('Space Between Slides', 'wts-eae'),
994
  'type' => Controls_Manager::SLIDER,
995
- 'default' =>[
996
  'size' => 10,
997
  ],
998
- 'tablet_default' =>[
999
  'size' => 15,
1000
  ],
1001
- 'mobile_default' =>[
1002
  'size' => 10,
1003
  ],
1004
  'range' => [
1005
- 'px'=>[
1006
- 'min'=> 0,
1007
- 'max'=> 50,
1008
- 'step'=> 5,
1009
  ]
1010
- ],
1011
- ]
1012
- );
1013
-
1014
- $this->add_control(
1015
- 'slider_loop',
1016
- [
1017
- 'label' => __('Loop', 'wts-eae'),
1018
- 'type' => Controls_Manager::SWITCHER,
1019
- 'default' => 'yes',
1020
- 'label_on'=>__('Yes', 'wts-eae'),
1021
- 'label_off' =>__('No' , 'wts-eae'),
1022
- 'separator' => 'after'
1023
- ]
1024
- );
1025
-
1026
- $this->add_control(
1027
  'slider_navigation',
1028
  [
1029
- 'label' => __('Arrows', 'wts-eae'),
1030
  'type' => Controls_Manager::SWITCHER,
1031
  'default' => 'yes',
1032
- 'label_on' => __('Yes' , 'wts-eae'),
1033
- 'label_off' => __('No' , 'wts-eae'),
1034
- 'return_value' => 'yes',
1035
  ]
1036
  );
1037
-
1038
  $this->add_control(
1039
- 'navigation_icon_left',
1040
- [
1041
- 'label' => __( 'Icon Prev', 'wts-eae' ),
1042
- 'type' => Controls_Manager::ICONS,
1043
- 'fa4compatibility' => 'icon',
1044
- 'default' => [
1045
- 'value' => 'fa fa-angle-left',
1046
- 'library' => 'fa-solid',
1047
- ],
1048
- 'condition'=> [
1049
- 'slider_navigation' => 'yes'
1050
- ],
1051
- ]
1052
- );
1053
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1054
  $this->add_control(
1055
- 'navigation_icon_right',
1056
- [
1057
- 'label' => __( 'Icon Next', 'wts-eae' ),
1058
- 'type' => Controls_Manager::ICONS,
1059
- 'fa4compatibility' => 'icon',
1060
- 'default' => [
1061
- 'value' => 'fa fa-angle-right',
1062
- 'library' => 'fa-solid',
1063
- ],
1064
- 'condition'=> [
1065
- 'slider_navigation' => 'yes'
1066
- ],
1067
- ]
1068
- );
1069
-
1070
- $this -> add_control(
1071
  'slider_pagination',
1072
  [
1073
- 'label' => __('Pagination' , 'wts-eae'),
1074
  'type' => Controls_Manager::SELECT,
1075
  'options' =>
1076
- [
1077
- '' => __('None', 'wts-eae'),
1078
- 'bullets' => __( 'Bullets' , 'wts-eae'),
1079
- 'fraction' =>__( 'Fraction' , 'wts-eae'),
1080
- 'progressbar' =>__('Progress' , 'wts-eae'),
1081
- ],
1082
- 'default'=>'',
1083
- ]
1084
- );
1085
-
1086
- $this->add_control(
1087
- 'slider_clickable',
1088
- [
1089
- 'label' =>__('Clickable' , 'wts-eae'),
1090
- 'type' =>Controls_Manager::SWITCHER,
1091
- 'default' => 'yes',
1092
- 'label_on'=>__('Yes', 'wts-eae'),
1093
- 'label_off' =>__('No' , 'wts-eae'),
1094
- 'condition'=> [
1095
- 'slider_pagination' => 'bullets'
1096
- ],
1097
- ]
1098
- );
1099
-
1100
- $this->add_control(
1101
- 'slider_keyboard',
1102
- [
1103
- 'label' => __('Keyboard Control' , 'wts-eae'),
1104
- 'type' =>Controls_Manager::SWITCHER,
1105
- 'default'=> 'yes',
1106
- 'label_on'=>__('Yes', 'wts-eae'),
1107
- 'label_off' =>__('No' , 'wts-eae'),
1108
- 'return_value'=>'yes',
1109
- ]
1110
- );
1111
-
1112
- $this->end_controls_section();
1113
-
1114
- $this->start_controls_section(
1115
  'slides_style_section',
1116
  [
1117
  'label' => __('Slides', 'wts-eae'),
@@ -1124,41 +1134,41 @@ class ThumbGallery extends EAE_Widget_Base {
1124
  [
1125
  'label' => __('Space Between', 'wts-eae'),
1126
  'type' => Controls_Manager::SLIDER,
1127
- 'default' =>[
1128
  'size' => 10,
1129
  ],
1130
- 'tablet_default' =>[
1131
  'size' => 10,
1132
  ],
1133
- 'mobile_default' =>[
1134
  'size' => 5,
1135
  ],
1136
  'range' => [
1137
- 'px'=>[
1138
- 'min'=> 0,
1139
- 'max'=> 50,
1140
- 'step'=> 5,
1141
  ]
1142
  ],
1143
  'selectors' => [
1144
  '{{WRAPPER}} .eae-thumb-horizontal-bottom' => 'margin-top: {{SIZE}}{{UNIT}};',
1145
  '{{WRAPPER}} .eae-thumb-horizontal-top' => 'margin-bottom: {{SIZE}}{{UNIT}};',
1146
- ],
1147
  ]
1148
  );
1149
 
1150
- $this->add_control(
1151
  'slider_bgcolor',
1152
  [
1153
- 'label' => __( 'Background Color', 'wts-eae' ),
1154
  'type' => Controls_Manager::COLOR,
1155
  'selectors' => [
1156
  '{{WRAPPER}} .eae-swiper-slide' => 'background-color: {{VALUE}}',
1157
- ],
1158
  ]
1159
- );
1160
 
1161
- $this->add_group_control(
1162
  Group_Control_Border::get_type(),
1163
  [
1164
  'name' => 'slide_border',
@@ -1181,9 +1191,9 @@ class ThumbGallery extends EAE_Widget_Base {
1181
  ],
1182
  'selector' => '{{WRAPPER}} .eae-swiper-container',
1183
  ]
1184
- );
1185
 
1186
- $this->add_control(
1187
  'slider_border_radius',
1188
  [
1189
  'label' => __('Border Radius', 'wts-eae'),
@@ -1194,84 +1204,84 @@ class ThumbGallery extends EAE_Widget_Base {
1194
  ],
1195
  ]
1196
  );
1197
-
1198
  $this->add_responsive_control(
1199
  'slides_padding',
1200
  [
1201
- 'label' => __( 'Padding', 'wts-eae' ),
1202
  'type' => Controls_Manager::DIMENSIONS,
1203
- 'size_units' => [ 'px', 'em', '%' ],
1204
  'selectors' => [
1205
  '{{WRAPPER}} .eae-slide-inner' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1206
- ],
1207
- //'separator' => 'before',
1208
  ]
1209
  );
1210
-
1211
  $this->add_control(
1212
  'slides_horizontal_position',
1213
  [
1214
- 'label' => __( 'Horizontal Position', 'wts-eae' ),
1215
  'type' => Controls_Manager::CHOOSE,
1216
  'default' => 'center',
1217
  'options' => [
1218
  'left' => [
1219
- 'title' => __( 'Left', 'wts-eae' ),
1220
  'icon' => 'eicon-h-align-left',
1221
  ],
1222
  'center' => [
1223
- 'title' => __( 'Center', 'wts-eae' ),
1224
  'icon' => 'eicon-h-align-center',
1225
  ],
1226
  'right' => [
1227
- 'title' => __( 'Right', 'wts-eae' ),
1228
  'icon' => 'eicon-h-align-right',
1229
  ],
1230
  ],
1231
  'prefix_class' => 'eae--hr-position-',
1232
  ]
1233
  );
1234
-
1235
  $this->add_control(
1236
  'slides_vertical_position',
1237
  [
1238
- 'label' => __( 'Vertical Position', 'wts-eae' ),
1239
  'type' => Controls_Manager::CHOOSE,
1240
  'default' => 'middle',
1241
  'options' => [
1242
  'top' => [
1243
- 'title' => __( 'Top', 'wts-eae' ),
1244
  'icon' => 'eicon-v-align-top',
1245
  ],
1246
  'middle' => [
1247
- 'title' => __( 'Middle', 'wts-eae' ),
1248
  'icon' => 'eicon-v-align-middle',
1249
  ],
1250
  'bottom' => [
1251
- 'title' => __( 'Bottom', 'wts-eae' ),
1252
  'icon' => 'eicon-v-align-bottom',
1253
  ],
1254
  ],
1255
  'prefix_class' => 'eae--vr-position-',
1256
  ]
1257
  );
1258
-
1259
  $this->add_control(
1260
  'slides_text_align',
1261
  [
1262
- 'label' => __( 'Text Align', 'wts-eae' ),
1263
  'type' => Controls_Manager::CHOOSE,
1264
  'options' => [
1265
  'left' => [
1266
- 'title' => __( 'Left', 'wts-eae' ),
1267
  'icon' => 'eicon-text-align-left',
1268
  ],
1269
  'center' => [
1270
- 'title' => __( 'Center', 'wts-eae' ),
1271
  'icon' => 'eicon-text-align-center',
1272
  ],
1273
  'right' => [
1274
- 'title' => __( 'Right', 'wts-eae' ),
1275
  'icon' => 'eicon-text-align-right',
1276
  ],
1277
  ],
@@ -1286,16 +1296,16 @@ class ThumbGallery extends EAE_Widget_Base {
1286
  Group_Control_Text_Shadow::get_type(),
1287
  [
1288
  'name' => 'text_shadow',
1289
- 'selector' => '{{WRAPPER}} .eae-slide-content',
1290
  ]
1291
- );
1292
 
1293
- $this-> add_responsive_control(
1294
- 'slide_content_width',
1295
- [
1296
- 'label' => __('Content Width', 'wts-eae'),
1297
- 'type' => Controls_Manager::SLIDER,
1298
- 'range' => [
1299
  'px' => [
1300
  'min' => 0,
1301
  'max' => 1000,
@@ -1304,71 +1314,71 @@ class ThumbGallery extends EAE_Widget_Base {
1304
  'min' => 0,
1305
  'max' => 100,
1306
  ],
1307
- ],
1308
- 'size_units' => [ '%', 'px' ],
1309
  'default' => [
1310
  'size' => '66',
1311
  'unit' => '%',
1312
- ],
1313
- 'tablet_default' => [
1314
- 'unit' => '%',
1315
- ],
1316
- 'mobile_default' => [
1317
- 'unit' => '%',
1318
- ],
1319
- 'selectors' => [
1320
  '{{WRAPPER}} .eae-slide-content' => 'max-width: {{SIZE}}{{UNIT}};',
1321
- ],
1322
- 'separator' => 'before',
1323
- ]
1324
  );
1325
-
1326
  $this->add_control(
1327
  'content_bgcolor',
1328
  [
1329
- 'label' => __( 'Content Background Color', 'wts-eae' ),
1330
  'type' => Controls_Manager::COLOR,
1331
  'selectors' => [
1332
  '{{WRAPPER}} .eae-slide-content' => 'background-color: {{VALUE}}',
1333
  ],
1334
  ]
1335
- );
1336
 
1337
- $this->add_responsive_control(
1338
  'content_padding',
1339
  [
1340
- 'label' => __( 'Content Padding', 'wts-eae' ),
1341
  'type' => Controls_Manager::DIMENSIONS,
1342
- 'size_units' => [ 'px', 'em', '%' ],
1343
  'selectors' => [
1344
  '{{WRAPPER}} .eae-slide-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1345
  ],
1346
  ]
1347
- );
1348
 
1349
- $this->end_controls_section();
1350
 
1351
- $this->start_controls_section(
1352
  'slides_style_title',
1353
  [
1354
- 'label' => __( 'Heading', 'wts-eae' ),
1355
  'tab' => Controls_Manager::TAB_STYLE,
1356
  ]
1357
- );
1358
-
1359
- $this->add_control(
1360
  'title_color',
1361
  [
1362
- 'label' => __( 'Text Color', 'wts-eae' ),
1363
  'type' => Controls_Manager::COLOR,
1364
  'selectors' => [
1365
  '{{WRAPPER}} .eae-slide-heading' => 'color: {{VALUE}}',
1366
 
1367
  ],
1368
  ]
1369
- );
1370
 
1371
- $this->add_group_control(
1372
  Group_Control_Typography::get_type(),
1373
  [
1374
  'name' => 'title_typography',
@@ -1377,48 +1387,48 @@ class ThumbGallery extends EAE_Widget_Base {
1377
  ],
1378
  'selector' => '{{WRAPPER}} .eae-slide-heading',
1379
  ]
1380
- );
1381
-
1382
- $this->add_control(
1383
- 'title_spacing',
1384
- [
1385
- 'label' => __('Spacing', 'wts-eae'),
1386
- 'type' => Controls_Manager::SLIDER,
1387
- 'range' => [
1388
  'px' => [
1389
  'min' => 0,
1390
  'max' => 100,
1391
  ],
1392
- ],
1393
  'selectors' => [
1394
  '{{WRAPPER}} .eae-slide-inner .eae-slide-heading:not(:last-child)' => 'margin-bottom: {{SIZE}}{{UNIT}}',
1395
  ],
1396
- ]
1397
- );
1398
-
1399
- $this->end_controls_section();
1400
 
1401
- $this->start_controls_section(
 
 
1402
  'slides_style_description',
1403
  [
1404
- 'label' => __( 'Description', 'wts-eae' ),
1405
  'tab' => Controls_Manager::TAB_STYLE,
1406
  ]
1407
- );
1408
 
1409
- $this->add_control(
1410
  'description_color',
1411
  [
1412
- 'label' => __( 'Text Color', 'wts-eae' ),
1413
  'type' => Controls_Manager::COLOR,
1414
  'selectors' => [
1415
  '{{WRAPPER}} .eae-slide-text' => 'color: {{VALUE}}',
1416
 
1417
  ],
1418
  ]
1419
- );
1420
-
1421
- $this->add_group_control(
1422
  Group_Control_Typography::get_type(),
1423
  [
1424
  'name' => 'description_typography',
@@ -1427,13 +1437,13 @@ class ThumbGallery extends EAE_Widget_Base {
1427
  ],
1428
  'selector' => '{{WRAPPER}} .eae-slide-text',
1429
  ]
1430
- );
1431
 
1432
- $this->add_control(
1433
  'description_spacing',
1434
  [
1435
- 'label' => __( 'Spacing', 'wts-eae' ),
1436
- 'type' => Controls_Manager::SLIDER,
1437
  'range' => [
1438
  'px' => [
1439
  'min' => 0,
@@ -1444,19 +1454,19 @@ class ThumbGallery extends EAE_Widget_Base {
1444
  '{{WRAPPER}} .eae-slide-inner .eae-slide-text:not(:last-child)' => 'margin-bottom: {{SIZE}}{{UNIT}}',
1445
  ],
1446
  ]
1447
- );
1448
 
1449
- $this->end_controls_section();
1450
 
1451
- $this->start_controls_section(
1452
  'slides_style_button',
1453
  [
1454
- 'label' => __( 'Button', 'wts-eae' ),
1455
  'tab' => Controls_Manager::TAB_STYLE,
1456
  ]
1457
- );
1458
 
1459
- $this->add_group_control(
1460
  Group_Control_Typography::get_type(),
1461
  [
1462
  'name' => 'button_typography',
@@ -1465,18 +1475,18 @@ class ThumbGallery extends EAE_Widget_Base {
1465
  ],
1466
  'selector' => '{{WRAPPER}} .eae-slide-button .eae-slide-btn',
1467
  ]
1468
- );
1469
-
1470
- $this->start_controls_tabs('slides_button_style_tabs');
1471
 
1472
- $this->start_controls_tab(
1473
  'tab_button_normal_style',
1474
  [
1475
  'label' => __('Normal', 'wts-eae'),
1476
  ]
1477
- );
1478
-
1479
- $this->add_control(
1480
  'button_color',
1481
  [
1482
  'label' => __('Text Color', 'wts-eae'),
@@ -1486,29 +1496,29 @@ class ThumbGallery extends EAE_Widget_Base {
1486
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn' => 'color: {{VALUE}};',
1487
  ],
1488
  ]
1489
- );
1490
 
1491
- $this->add_control(
1492
  'button_background_color',
1493
  [
1494
- 'label' => __( 'Background Color', 'wts-eae' ),
1495
  'type' => Controls_Manager::COLOR,
1496
  'selectors' => [
1497
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn' => 'background-color: {{VALUE}}',
1498
- ],
1499
  ]
1500
- );
1501
 
1502
- $this->end_controls_tab();
1503
 
1504
- $this->start_controls_tab(
1505
  'tab_button_hover_style',
1506
  [
1507
  'label' => __('Hover', 'wts-eae'),
1508
  ]
1509
- );
1510
-
1511
- $this->add_control(
1512
  'button_hover_color',
1513
  [
1514
  'label' => __('Text Color', 'wts-eae'),
@@ -1517,36 +1527,36 @@ class ThumbGallery extends EAE_Widget_Base {
1517
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn:hover' => 'color: {{VALUE}};',
1518
  ],
1519
  ]
1520
- );
1521
 
1522
- $this->add_control(
1523
  'button_border_hover_color',
1524
  [
1525
  'label' => __('Border Color', 'wts-eae'),
1526
  'type' => Controls_Manager::COLOR,
1527
  'condition' => [
1528
  'button_border_border!' => '',
1529
- ],
1530
  'selectors' => [
1531
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn:hover' => 'border-color: {{VALUE}};',
1532
  ],
1533
  ]
1534
- );
1535
-
1536
- $this->add_control(
1537
  'button_bg_hover_color',
1538
  [
1539
- 'label' => __( 'Background Color', 'wts-eae' ),
1540
  'type' => Controls_Manager::COLOR,
1541
  'selectors' => [
1542
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn:hover' => 'background-color: {{VALUE}}',
1543
- ],
1544
  ]
1545
- );
1546
 
1547
- $this->end_controls_tabs();
1548
 
1549
- $this->add_group_control(
1550
  Group_Control_Border::get_type(),
1551
  [
1552
  'name' => 'button_border',
@@ -1567,9 +1577,9 @@ class ThumbGallery extends EAE_Widget_Base {
1567
  'selector' => '{{WRAPPER}} .eae-slide-button .eae-slide-btn',
1568
  'separator' => 'before',
1569
  ]
1570
- );
1571
-
1572
- $this->add_control(
1573
  'button_border_radius',
1574
  [
1575
  'label' => __('Border Radius', 'wts-eae'),
@@ -1580,13 +1590,13 @@ class ThumbGallery extends EAE_Widget_Base {
1580
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1581
  ],
1582
  ]
1583
- );
1584
-
1585
- $this->add_responsive_control(
1586
  'button_padding',
1587
  [
1588
  'label' => __('Padding', 'wts-eae'),
1589
- 'type' => Controls_Manager::DIMENSIONS,
1590
  'size_units' => ['px', 'em', '%'],
1591
  'selectors' => [
1592
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
@@ -1594,72 +1604,72 @@ class ThumbGallery extends EAE_Widget_Base {
1594
  ]
1595
  );
1596
 
1597
- $this->end_controls_section();
1598
 
1599
- $this->start_controls_section(
1600
  'navigation_style_section',
1601
  [
1602
- 'label' => __( 'Slider Navigation', 'wts-eae' ),
1603
- 'tab' => Controls_Manager::TAB_STYLE,
1604
- 'conditions' => [
1605
- 'relation' => 'or',
1606
  'terms' => [
1607
- [
1608
- 'name' => 'slider_pagination',
1609
- 'operator' => '!=',
1610
- 'value' => '',
1611
- ],
1612
  [
1613
- 'name' => 'slider_navigation',
1614
- 'operator' => '!=',
 
 
 
 
 
1615
  'value' => '',
1616
- ],
1617
  ],
1618
  ],
1619
  ]
1620
- );
1621
 
1622
- $this->add_control(
1623
  'arrows_heading',
1624
  [
1625
- 'label' => __( 'Arrows', 'wts-eae' ),
1626
- 'type' => Controls_Manager::HEADING,
1627
- 'conditions' => [
1628
  'terms' => [
1629
  [
1630
- 'name' => 'slider_navigation',
1631
- 'operator' => '!=',
1632
  'value' => '',
1633
- ],
1634
  ],
1635
  ],
1636
  ]
1637
- );
1638
-
1639
- $this->add_control(
1640
  'arrows_color',
1641
  [
1642
- 'label' => __( 'Color', 'wts-eae' ),
1643
  'type' => Controls_Manager::COLOR,
1644
  'selectors' => [
1645
  '{{WRAPPER}} .eae-slider-nav-button' => 'color: {{VALUE}}',
1646
- ],
1647
- 'conditions' => [
1648
  'terms' => [
1649
  [
1650
- 'name' => 'slider_navigation',
1651
- 'operator' => '!=',
1652
  'value' => '',
1653
- ],
1654
  ],
1655
  ],
1656
  ]
1657
- );
1658
-
1659
- $this->add_control(
1660
  'arrows_size',
1661
  [
1662
- 'label' => __( 'Size', 'wts-eae' ),
1663
  'type' => Controls_Manager::SLIDER,
1664
  'range' => [
1665
  'px' => [
@@ -1669,110 +1679,110 @@ class ThumbGallery extends EAE_Widget_Base {
1669
  ],
1670
  'selectors' => [
1671
  '{{WRAPPER}} .eae-slider-nav-button' => 'font-size: {{SIZE}}{{UNIT}}',
1672
- ],
1673
- 'conditions' => [
1674
  'terms' => [
1675
  [
1676
- 'name' => 'slider_navigation',
1677
- 'operator' => '!=',
1678
  'value' => '',
1679
- ],
1680
  ],
1681
  ],
1682
- 'separator' => 'after',
1683
  ]
1684
- );
1685
-
1686
- $this->add_control(
1687
  'pagination_bullets_heading',
1688
  [
1689
- 'label' => __( 'Bullets', 'wts-eae' ),
1690
- 'type' => Controls_Manager::HEADING,
1691
- 'conditions' => [
1692
  'terms' => [
1693
  [
1694
- 'name' => 'slider_pagination',
1695
- 'operator' => '==',
1696
  'value' => 'bullets',
1697
  ],
1698
  ],
1699
- ],
1700
- //'separator' => 'before',
1701
  ]
1702
- );
1703
 
1704
- $this->add_control(
1705
  'pagination_fraction_heading',
1706
  [
1707
- 'label' => __( 'Fraction', 'wts-eae' ),
1708
- 'type' => Controls_Manager::HEADING,
1709
- 'conditions' => [
1710
  'terms' => [
1711
  [
1712
- 'name' => 'slider_pagination',
1713
- 'operator' => '==',
1714
  'value' => 'fraction',
1715
  ],
1716
  ],
1717
- ],
1718
- //'separator' => 'before',
1719
  ]
1720
- );
1721
 
1722
- $this->add_control(
1723
  'pagination_progressbar_heading',
1724
  [
1725
- 'label' => __( 'ProgressBar', 'wts-eae' ),
1726
- 'type' => Controls_Manager::HEADING,
1727
- 'conditions' => [
1728
  'terms' => [
1729
  [
1730
- 'name' => 'slider_pagination',
1731
- 'operator' => '==',
1732
  'value' => 'progressbar',
1733
  ],
1734
  ],
1735
- ],
1736
- //'separator' => 'before',
1737
  ]
1738
- );
1739
 
1740
- $this->add_control(
1741
  'pagination_color',
1742
  [
1743
- 'label' => __( 'Color', 'wts-eae' ),
1744
  'type' => Controls_Manager::COLOR,
1745
  'selectors' => [
1746
- '{{WRAPPER}} .swiper-pagination-bullet' => 'background-color: {{VALUE}};',
1747
- '{{WRAPPER}} .swiper-pagination-fraction' => 'color: {{VALUE}};',
1748
- '{{WRAPPER}} .swiper-pagination-progressbar' => 'background-color: {{VALUE}};',
1749
- ],
1750
- 'condition' => [
1751
  'slider_pagination!' => '',
1752
- ],
1753
  ]
1754
- );
1755
-
1756
- $this->add_control(
1757
  'pagination_active_color',
1758
  [
1759
- 'label' => __( 'Active Color', 'wts-eae' ),
1760
  'type' => Controls_Manager::COLOR,
1761
  'selectors' => [
1762
- '{{WRAPPER}} .swiper-pagination-bullet-active' => 'background-color: {{VALUE}};',
1763
- '{{WRAPPER}} .swiper-pagination-current' => 'color: {{VALUE}};',
1764
- '{{WRAPPER}} .swiper-pagination-progressbar-fill' => 'background-color: {{VALUE}};',
1765
- ],
1766
- 'condition' => [
1767
  'slider_pagination!' => '',
1768
- ],
1769
  ]
1770
- );
1771
-
1772
- $this->add_control(
1773
  'pagination_size',
1774
  [
1775
- 'label' => __( 'Size', 'wts-eae' ),
1776
  'type' => Controls_Manager::SLIDER,
1777
  'range' => [
1778
  'px' => [
@@ -1781,27 +1791,27 @@ class ThumbGallery extends EAE_Widget_Base {
1781
  ],
1782
  ],
1783
  'selectors' => [
1784
- '{{WRAPPER}} .swiper-pagination-bullet' => 'height: {{SIZE}}{{UNIT}}; width: {{SIZE}}{{UNIT}}',
1785
- '{{WRAPPER}} .swiper-pagination-fraction' => 'font-size: {{SIZE}}{{UNIT}}',
1786
  '{{WRAPPER}} .swiper-pagination-progressbar' => 'height: {{SIZE}}{{UNIT}}', //.swiper-container-horizontal
1787
  ],
1788
  'condition' => [
1789
  'slider_pagination!' => '',
1790
- ],
1791
  ]
1792
- );
1793
-
1794
- $this->end_controls_section();
1795
 
1796
- $this->start_controls_section(
 
 
1797
  'thumbnails_style_section',
1798
  [
1799
- 'label' => __( 'Thumbnails', 'wts-eae' ),
1800
  'tab' => Controls_Manager::TAB_STYLE,
1801
  ]
1802
- );
1803
 
1804
- $this->add_group_control(
1805
  Group_Control_Border::get_type(),
1806
  [
1807
  'name' => 'thumbnail_border',
@@ -1824,9 +1834,9 @@ class ThumbGallery extends EAE_Widget_Base {
1824
  ],
1825
  'selector' => '{{WRAPPER}} .eae-thumb-slide',
1826
  ]
1827
- );
1828
 
1829
- $this->add_control(
1830
  'thumbnail_border_radius',
1831
  [
1832
  'label' => __('Border Radius', 'wts-eae'),
@@ -1837,50 +1847,50 @@ class ThumbGallery extends EAE_Widget_Base {
1837
  '{{WRAPPER}} .eae-thumb-slide:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1838
  ],
1839
  ]
1840
- );
1841
 
1842
- $this->add_control(
1843
  'thumb_arrows_heading',
1844
  [
1845
- 'label' => __( 'Arrows', 'wts-eae' ),
1846
- 'type' => Controls_Manager::HEADING,
1847
- 'conditions' => [
1848
  'terms' => [
1849
  [
1850
- 'name' => 'thumb_navigation',
1851
- 'operator' => '!=',
1852
  'value' => '',
1853
- ],
1854
  ],
1855
- ],
1856
- 'separator' => 'before',
1857
  ]
1858
- );
1859
 
1860
- $this->add_control(
1861
  'thumb_arrows_color',
1862
  [
1863
- 'label' => __( 'Color', 'wts-eae' ),
1864
  'type' => Controls_Manager::COLOR,
1865
  'selectors' => [
1866
  '{{WRAPPER}} .eae-thumb-button' => 'color: {{VALUE}}',
1867
- ],
1868
- 'conditions' => [
1869
  'terms' => [
1870
  [
1871
- 'name' => 'thumb_navigation',
1872
- 'operator' => '!=',
1873
  'value' => '',
1874
- ],
1875
  ],
1876
  ],
1877
  ]
1878
- );
1879
-
1880
- $this->add_control(
1881
  'thumb_arrows_size',
1882
  [
1883
- 'label' => __( 'Size', 'wts-eae' ),
1884
  'type' => Controls_Manager::SLIDER,
1885
  'range' => [
1886
  'px' => [
@@ -1890,281 +1900,285 @@ class ThumbGallery extends EAE_Widget_Base {
1890
  ],
1891
  'selectors' => [
1892
  '{{WRAPPER}} .eae-thumb-button' => 'font-size: {{SIZE}}{{UNIT}}',
1893
- ],
1894
- 'conditions' => [
1895
  'terms' => [
1896
  [
1897
- 'name' => 'thumb_navigation',
1898
- 'operator' => '!=',
1899
  'value' => '',
1900
- ],
1901
  ],
1902
  ],
1903
- ]
1904
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1905
 
1906
- $this->end_controls_section();
1907
- }
1908
 
1909
- protected function render() {
1910
 
1911
- $settings = $this->get_settings();
1912
- $slides = $settings['slides'];
1913
-
1914
- $slides_per_view['desktop'] = $settings['thumb_slides_per_view'] != "" ? $settings['thumb_slides_per_view'] : 1;
1915
- $slides_per_view['tablet'] = $settings['thumb_slides_per_view_tablet'] != "" ? $settings['thumb_slides_per_view_tablet'] : 1;
1916
- $slides_per_view['mobile'] = $settings['thumb_slides_per_view_mobile'] != "" ? $settings['thumb_slides_per_view_mobile'] : 1;
1917
-
1918
- $space_between['desktop'] = $settings['thumb_space_between'] != "" ? $settings['thumb_space_between'] : 5;
1919
- $space_between['tablet'] = $settings['thumb_space_between_tablet'] != "" ? $settings['thumb_space_between_tablet'] : 15;
1920
- $space_between['mobile'] = $settings['thumb_space_between_mobile'] != "" ? $settings['thumb_space_between_mobile'] : 10;
1921
-
1922
- //$thumb_navigation = $settings['thumb_navigation'];
1923
-
1924
- $slider_data = $this->get_swiper_settings($settings);
1925
-
1926
- //echo '<pre>'; print_r($settings); echo '</pre>';
1927
-
1928
- $this->add_render_attribute('outer-wrapper', 'class', ['eae-swiper-outer-wrapper', 'eae-swiper']);
1929
-
1930
- $this->add_render_attribute('outer-wrapper', 'data-swiper-settings', json_encode($slider_data));
1931
-
1932
- if (!empty($slides_per_view)) {
1933
- $this->add_render_attribute('outer-wrapper', 'data-slides-per-view', json_encode($slides_per_view, JSON_NUMERIC_CHECK));
1934
- }
1935
-
1936
- if (!empty($space_between)) {
1937
- $this->add_render_attribute('outer-wrapper', 'data-space', json_encode($space_between, JSON_NUMERIC_CHECK));
1938
- }
1939
-
1940
- // if ($thumb_navigation == 'yes') {
1941
- // $this->add_render_attribute('outer-wrapper', 'data-navigation', $thumb_navigation);
1942
- // }
1943
-
1944
- ?>
1945
-
1946
- <div <?php echo $this->get_render_attribute_string('outer-wrapper');?>>
1947
- <?php
1948
-
1949
- if($settings['thumb_horizontal_align'] == 'top'){
1950
- $this->render_thumbslider($slides, $settings);
1951
- }
1952
-
1953
- $this->render_slider($slides, $settings);
1954
-
1955
- if($settings['thumb_horizontal_align'] == 'bottom'){
1956
- $this->render_thumbslider($slides, $settings);
1957
- }
1958
-
1959
- ?>
1960
- </div>
1961
-
1962
- <?php
1963
-
1964
- }
1965
-
1966
- function render_slider($slides, $settings){
1967
-
1968
- $this->add_render_attribute('slider-container', 'class', ['eae-swiper-container', 'swiper-container']);
1969
-
1970
- $this->add_render_attribute('slider-wrapper', 'class', ['eae-swiper-wrapper', 'swiper-wrapper', 'slider_vertical_wrapper']);
1971
-
1972
- $slider_data = $this->get_swiper_settings($settings);
1973
-
1974
- ?>
1975
-
1976
- <div <?php echo $this->get_render_attribute_string('slider-container');?>>
1977
- <div <?php echo $this->get_render_attribute_string('slider-wrapper');?>>
1978
-
1979
- <?php
1980
- foreach($slides as $slide){
1981
-
1982
- $id = $slide['_id'];
1983
- $heading = $slide['slide_heading'];
1984
- $description = $slide['slide_description'];
1985
- $button_text = $slide['slide_button_text'];
1986
- $link = $slide['slide_link']['url'];
1987
-
1988
- $slide_element = 'div';
1989
-
1990
- $this->set_render_attribute('swiper-repeater-item', 'class', ['elementor-repeater-item-'.$id, 'eae-swiper-slide', 'swiper-slide']);
1991
- $image_url = Group_Control_Image_Size::get_attachment_image_src( $slide['slide_image']['id'], 'eae_slide_image', $settings );
1992
-
1993
- if(!empty($slide['slide_image']['id'])){
1994
- $this->set_render_attribute('swiper-repeater-item', 'style', 'background-image : url('. $image_url . ');' );
1995
- }else{
1996
- $this->remove_render_attribute('swiper-repeater-item', 'style');
1997
- }
1998
-
1999
- $this->set_render_attribute('slide-inner', 'class', 'eae-slide-inner');
2000
- if($link != '' && $slide['slide_link_click'] === 'slide'){
2001
- $slide_element = 'a';
2002
- $this->set_render_attribute('slide-inner', 'href', $link);
2003
- }
2004
- ?>
2005
-
2006
-
2007
- <div <?php echo $this->get_render_attribute_string('swiper-repeater-item'); ?>>
2008
-
2009
- <?php if( $settings['slides_background_overlay'] == 'yes' || $slide['slide_overlay'] == 'yes'){ ?>
2010
- <div class="eae-background-overlay"></div>
2011
- <?php } ?>
2012
-
2013
- <<?php echo $slide_element; ?> <?php echo $this->get_render_attribute_string('slide-inner'); ?>>
2014
- <?php if(!empty($heading || $description || $button_text)){ ?>
2015
  <div class="eae-slide-content">
2016
- <?php if(!empty($heading)){?>
2017
  <div class="eae-slide-heading"><?php echo $heading; ?></div>
2018
  <?php } ?>
2019
 
2020
- <?php if(!empty($description)){?>
2021
- <div class="eae-slide-text"><?php echo $description; ?></div>
2022
  <?php } ?>
2023
 
2024
- <?php if(!empty($button_text)){?>
2025
- <div class="eae-slide-button">
2026
- <?php if($link != '' && $slide['slide_link_click'] == 'button'){ ?>
2027
- <a class="eae-slide-btn" href="<?php echo $link ?>"><?php echo $button_text; ?></a>
2028
- <?php } else{ ?>
2029
- <span class="eae-slide-btn"><?php echo $button_text; ?></span>
2030
- <?php } ?>
2031
- </div>
2032
  <?php } ?>
2033
  </div>
2034
  <?php } ?>
2035
- </<?php echo $slide_element; ?>>
2036
-
2037
- </div>
2038
-
2039
- <?php } ?>
2040
- </div>
2041
-
2042
- <?php if(!empty($slider_data['pagination'])){ ?>
2043
- <div class = "eae-swiper-pagination swiper-pagination"></div>
2044
  <?php } ?>
2045
-
2046
- <?php if(!empty($slider_data['navigation'])){ ?>
2047
-
2048
- <div class = " eae-swiper-button eae-slider-nav-button eae-swiper-button-prev">
2049
- <?php Icons_Manager::render_icon($settings['navigation_icon_left']) ?>
2050
- </div>
2051
-
2052
- <div class = "eae-swiper-button eae-slider-nav-button eae-swiper-button-next">
2053
- <?php Icons_Manager::render_icon($settings['navigation_icon_right']) ?>
2054
- </div>
2055
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2056
  <?php } ?>
2057
-
2058
- </div>
2059
-
2060
- <?php
2061
-
2062
- }
2063
-
2064
- function render_thumbslider($slides, $settings){
2065
-
2066
- $this->add_render_attribute('thumb-container', 'class', ['eae-thumb-container', 'swiper-container', 'eae-gallery-thumbs']);
2067
- $this->add_render_attribute('thumb-wrapper', 'class', ['eae-thumb-wrapper', 'swiper-wrapper']);
2068
-
2069
- $thumb_navigation = $settings['thumb_navigation'];
2070
-
2071
- if($settings['thumb_horizontal_align'] == 'top'){
2072
- $this->add_render_attribute('thumb-container', 'class', ['eae-thumb-horizontal-top']);
2073
- }
2074
- if($settings['thumb_horizontal_align'] == 'bottom'){
2075
- $this->add_render_attribute('thumb-container', 'class', ['eae-thumb-horizontal-bottom']);
2076
- }
2077
-
2078
- ?>
2079
-
2080
- <div <?php echo $this->get_render_attribute_string('thumb-container');?>>
2081
- <div <?php echo $this->get_render_attribute_string('thumb-wrapper');?>>
2082
- <?php
2083
- foreach($slides as $slide){
2084
-
2085
- $thumb_image_id = $slide['thumb_image']['id'];
2086
-
2087
- if($slide['slide_thumb_image'] === ''){
2088
- $thumb_image_id = $slide['slide_image']['id'];
2089
- }
2090
-
2091
- $id = $slide['_id'];
2092
- $this->set_render_attribute('thumb-repeater-item', 'class', ['elementor-repeater-item-'.$id, 'eae-thumb-slide', 'swiper-slide']);
2093
-
2094
- if(!empty($thumb_image_id)){
2095
- $thumb_image_url = Group_Control_Image_Size::get_attachment_image_src( $thumb_image_id, 'eae_thumb_image', $settings );
2096
- }else{
2097
- $thumb_image_url = Utils::get_placeholder_image_src();
2098
- }
2099
-
2100
- $this->set_render_attribute('thumb-repeater-item', 'style', 'background-image : url('. $thumb_image_url . ');' );
2101
-
2102
- ?>
2103
-
2104
- <div <?php echo $this->get_render_attribute_string('thumb-repeater-item'); ?>>
2105
- <div class='eae-fit-aspect-ratio'></div>
2106
- </div>
2107
- <?php } ?>
2108
- </div>
2109
-
2110
- <?php if($thumb_navigation == 'yes'){ ?>
2111
- <div class = " eae-thumb-button eae-swiper-button eae-swiper-button-prev">
2112
- <i class="eicon-chevron-left"></i>
2113
- </div>
2114
-
2115
- <div class = "eae-thumb-button eae-swiper-button eae-swiper-button-next">
2116
- <i class="eicon-chevron-right"></i>
2117
- </div>
2118
- <?php } ?>
2119
-
2120
- </div>
2121
-
2122
- <?php
2123
- }
2124
-
2125
- function get_swiper_settings($settings){
2126
-
2127
- $slider_data['effect'] = $settings['slider_effect'];
2128
-
2129
- $slider_data['speed'] = $settings['slider_speed'];
2130
-
2131
- if($settings['slider_autoplay'] === 'yes'){
2132
  $slider_data['autoplay']['duration'] = $settings['slider_autoplay_duration'];
2133
 
2134
- if($settings['slider_direction'] === 'rtl'){
2135
  $slider_data['autoplay']['reverseDirection'] = true;
2136
  }
2137
- if($settings['slider_direction'] === 'ltr'){
2138
  $slider_data['autoplay']['reverseDirection'] = false;
2139
  }
2140
-
2141
  $slider_data['autoplay']['slider_direction'] = $settings['slider_direction'];
2142
-
2143
- $settings['slider_pause_on_interaction'] == 'yes' ? $slider_data['autoplay']['disableOnInteraction'] = true : $slider_data['autoplay']['disableOnInteraction'] = false;
2144
- }else{
2145
- $swiper_data['autoplay'] = false;
2146
- }
2147
-
2148
- $slider_data['spaceBetween']['desktop'] = $settings['slider_space_between']['size'];
2149
- $slider_data['spaceBetween']['tablet'] = $settings['slider_space_between_tablet']['size'];
2150
- $slider_data['spaceBetween']['mobile'] = $settings['slider_space_between_mobile']['size'];
2151
-
2152
- if(!empty($settings['slider_loop'])){
2153
- $slider_data['loop'] = $settings['slider_loop'];
2154
- }
2155
-
2156
- if(!empty($settings['slider_navigation'])){
2157
- $slider_data['navigation'] = $settings['slider_navigation'];
2158
- }
2159
-
2160
- if(!empty($settings['slider_pagination'])){
2161
- $slider_data['pagination'] = $settings['slider_pagination'];
2162
- }
2163
-
2164
- $settings['slider_clickable'] == 'yes' ? $slider_data['clickable'] = true : $slider_data['clickable'] = false;
2165
-
2166
- $settings['slider_keyboard'] == 'yes' ? $slider_data['keyboard'] = true : $slider_data['keyboard'] = false;
2167
-
2168
- return $slider_data;
2169
- }
2170
- }
15
  use Elementor\Utils;
16
 
17
 
18
+ if (!defined('ABSPATH')) exit; // Exit if accessed directly
19
 
20
+ class ThumbGallery extends EAE_Widget_Base
21
+ {
22
 
23
+ public function get_name()
24
+ {
25
  return 'eae-thumbgallery';
26
  }
27
 
28
+ public function get_title()
29
+ {
30
  return __('EAE - Thumbnail Slider', 'wts-eae');
31
  }
32
 
33
+ public function get_icon()
34
+ {
35
  return 'eicon-slides';
36
  }
37
 
38
+ public function get_categories()
39
+ {
40
+ return ['wts-eae'];
41
+ }
42
+
43
+ // public function get_script_depends()
44
+ // {
45
+ // return ['swiper'];
46
+ // }
47
 
48
+ public function get_keywords()
49
+ {
50
  return [
51
  'gallery',
52
  'ea thumb gallery',
53
+ 'slider',
54
+ 'thumbnail slider',
55
+ 'media carousel',
56
+ 'carousel',
57
+ ];
58
+ }
59
+
60
+ protected function _register_controls()
61
  {
62
+ $this->start_controls_section(
63
  'section_gallery',
64
  [
65
  'label' => __('Slides', 'wts-eae')
66
  ]
67
+ );
 
 
68
 
69
+ $repeater = new Repeater();
70
 
71
+ $repeater->start_controls_tabs('gallery_repeater');
72
+
73
+ $repeater->start_controls_tab(
74
+ 'slide_background',
75
+ [
76
+ 'label' => __('Image', 'wts-eae')
77
+ ]
78
+ );
79
 
80
+ $repeater->add_control(
81
  'slide_image',
82
  [
83
+ 'label' => _x('Image', 'wts-eae'),
84
+ 'type' => Controls_Manager::MEDIA,
85
+ 'dynamic' => [
86
+ 'active' => true,
87
+ ],
88
+ 'default' => [
89
+ 'url' => Utils::get_placeholder_image_src(),
90
+ ],
91
+ 'show_label' => false,
92
+ 'selectors' => [
93
+ '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}}' => 'background-image: url({{URL}})',
94
  ],
95
  'render_type' => 'template'
96
  ]
97
+ );
98
 
99
+ $repeater->add_control(
100
  'slide_thumb_image',
101
  [
102
+ 'label' => __('Custom Thumbnail Image', 'wts-eae'),
103
  'type' => Controls_Manager::SWITCHER,
104
  'default' => '',
105
+ 'label_on' => __('Yes', 'wts-eae'),
106
+ 'label_off' => __('No', 'wts-eae'),
107
  'return_value' => 'yes',
108
  ]
109
+ );
110
 
111
+ $repeater->add_control(
112
  'thumb_image',
113
  [
114
+ 'label' => _x('Image', 'wts-eae'),
115
+ 'type' => Controls_Manager::MEDIA,
116
+ 'dynamic' => [
117
+ 'active' => true,
118
+ ],
119
+ 'default' => [
120
+ 'url' => Utils::get_placeholder_image_src(),
121
+ ],
122
+ 'show_label' => false,
123
  'selectors' => [
124
  '{{WRAPPER}} .eae-thumb-slide{{CURRENT_ITEM}}' => 'background-image: url({{URL}})',
125
+ ],
126
+ 'conditions' => [
127
  'terms' => [
128
  [
129
  'name' => 'slide_thumb_image',
133
  ],
134
  'render_type' => 'template'
135
  ]
136
+ );
137
 
138
+ $repeater->end_controls_tab();
139
 
140
+ $repeater->start_controls_tab(
141
+ 'content',
142
+ [
143
+ 'label' => __('Content', 'wts-eae')
144
+ ]
145
+ );
146
 
147
+ $repeater->add_control(
148
  'slide_heading',
149
  [
150
+ 'label' => __('Heading & Description', 'wts-eae'),
151
  'type' => Controls_Manager::TEXT,
152
  'dynamic' => [
153
+ 'active' => true,
154
+ ],
155
+ 'default' => __('Slide Heading', 'wts-eae'),
156
  'label_block' => true,
157
  ]
158
+ );
159
+
160
+ $repeater->add_control(
161
  'slide_description',
162
  [
163
+ 'label' => __('Description', 'wts-eae'),
164
  'type' => Controls_Manager::TEXTAREA,
165
  'dynamic' => [
166
+ 'active' => true,
167
+ ],
168
+ 'default' => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit Ut elit tellus.', 'wts-eae'),
169
  'show_label' => false,
170
  ]
171
+ );
172
+
173
+ $repeater->add_control(
174
  'slide_button_text',
175
  [
176
+ 'label' => __('Button Text', 'wts-eae'),
177
  'type' => Controls_Manager::TEXT,
178
  'dynamic' => [
179
+ 'active' => true,
180
+ ],
181
+ 'default' => __('Click Here', 'wts-eae'),
182
  ]
183
+ );
184
+
185
+ $repeater->add_control(
186
  'slide_link',
187
  [
188
+ 'label' => __('Link', 'wts-eae'),
189
  'type' => Controls_Manager::URL,
190
  'dynamic' => [
191
+ 'active' => true,
192
+ ],
193
+ 'placeholder' => __('https://your-link.com', 'wts-eae'),
194
  ]
195
+ );
196
+
197
+ $repeater->add_control(
198
  'slide_link_click',
199
  [
200
+ 'label' => __('Apply Link On', 'wts-eae'),
201
  'type' => Controls_Manager::SELECT,
202
  'options' => [
203
+ 'slide' => __('Whole Slide', 'wts-eae'),
204
+ 'button' => __('Button Only', 'wts-eae'),
205
  ],
206
  'default' => 'slide',
207
  'conditions' => [
216
  ]
217
  );
218
 
219
+ $repeater->end_controls_tab();
220
 
221
+ $repeater->start_controls_tab(
222
+ 'style',
223
+ [
224
+ 'label' => __('Style', 'wts-eae')
225
+ ]
226
+ );
227
 
228
+ $repeater->add_control(
229
  'slide_custom_style',
230
  [
231
+ 'label' => __('Custom', 'wts-eae'),
232
  'type' => Controls_Manager::SWITCHER,
233
+ 'description' => __('Set custom style that will only affect this specific slide.', 'wts-eae'),
234
  ]
235
+ );
236
 
237
+ $repeater->add_control(
238
  'slide_horizontal_position',
239
  [
240
+ 'label' => __('Horizontal Position', 'wts-eae'),
241
  'type' => Controls_Manager::CHOOSE,
242
  'options' => [
243
  'left' => [
244
+ 'title' => __('Left', 'wts-eae'),
245
  'icon' => 'eicon-h-align-left',
246
  ],
247
  'center' => [
248
+ 'title' => __('Center', 'wts-eae'),
249
  'icon' => 'eicon-h-align-center',
250
  ],
251
  'right' => [
252
+ 'title' => __('Right', 'wts-eae'),
253
  'icon' => 'eicon-h-align-right',
254
  ],
255
  ],
270
  ],
271
  ],
272
  ]
273
+ );
274
 
275
+ $repeater->add_control(
276
  'slide_vertical_position',
277
  [
278
+ 'label' => __('Vertical Position', 'wts-eae'),
279
  'type' => Controls_Manager::CHOOSE,
280
  'options' => [
281
  'top' => [
282
+ 'title' => __('Top', 'wts-eae'),
283
  'icon' => 'eicon-v-align-top',
284
  ],
285
  'middle' => [
286
+ 'title' => __('Middle', 'wts-eae'),
287
  'icon' => 'eicon-v-align-middle',
288
  ],
289
  'bottom' => [
290
+ 'title' => __('Bottom', 'wts-eae'),
291
  'icon' => 'eicon-v-align-bottom',
292
  ],
293
  ],
308
  ],
309
  ],
310
  ]
311
+ );
312
 
313
+ $repeater->add_control(
314
  'slide_text_align',
315
  [
316
+ 'label' => __('Text Align', 'wts-eae'),
317
  'type' => Controls_Manager::CHOOSE,
318
  'options' => [
319
  'left' => [
320
+ 'title' => __('Left', 'wts-eae'),
321
  'icon' => 'eicon-text-align-left',
322
  ],
323
  'center' => [
324
+ 'title' => __('Center', 'wts-eae'),
325
  'icon' => 'eicon-text-align-center',
326
  ],
327
  'right' => [
328
+ 'title' => __('Right', 'wts-eae'),
329
  'icon' => 'eicon-text-align-right',
330
  ],
331
  ],
341
  ],
342
  ],
343
  ]
344
+ );
345
 
346
+ // $repeater->add_control(
347
  // 'slide_content_color',
348
  // [
349
  // 'label' => __( 'Content Color', 'wts-eae' ),
351
  // 'selectors' => [
352
  // '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-inner .eae-slide-heading' => 'color: {{VALUE}}',
353
  // '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-inner .eae-slide-text' => 'color: {{VALUE}}',
354
+ // '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-inner .eae-slide-button .eae-slide-btn' => 'color: {{VALUE}}; border-color: {{VALUE}}',
355
  // ],
356
  // 'conditions' => [
357
  // 'terms' => [
367
  $repeater->add_control(
368
  'slide_content_bgcolor',
369
  [
370
+ 'label' => __('Content Background Color', 'wts-eae'),
371
  'type' => Controls_Manager::COLOR,
372
  'selectors' => [
373
  '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-content' => 'background-color: {{VALUE}}',
383
  'separator' => 'after',
384
  ]
385
  );
386
+
387
  $repeater->add_control(
388
  'repeater_heading_color',
389
  [
390
+ 'label' => __('Heading Color', 'wts-eae'),
391
  'type' => Controls_Manager::COLOR,
392
  'selectors' => [
393
  '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-inner .eae-slide-heading' => 'color: {{VALUE}}',
402
  ],
403
  ],
404
  ]
405
+ );
406
+
407
  $repeater->add_group_control(
408
  Group_Control_Typography::get_type(),
409
  [
410
+ 'label' => __('Heading Typography', 'wts-eae'),
411
  'name' => 'repeater_heading_typography',
412
  'global' => [
413
  'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
427
  $repeater->add_control(
428
  'repeater_description_color',
429
  [
430
+ 'label' => __('Description Color', 'wts-eae'),
431
  'type' => Controls_Manager::COLOR,
432
  'selectors' => [
433
  '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-slide-inner .eae-slide-text' => 'color: {{VALUE}}',
443
  ],
444
  'separator' => 'before',
445
  ]
446
+ );
447
+
448
  $repeater->add_group_control(
449
  Group_Control_Typography::get_type(),
450
  [
451
+ 'label' => __('Description Typography', 'wts-eae'),
452
  'name' => 'repeater_description_typography',
453
  'global' => [
454
  'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
465
  'separator' => 'after',
466
  ]
467
  );
468
+
469
  $repeater->add_control(
470
  'repeater_button_color',
471
  [
485
  ],
486
  'separator' => 'before',
487
  ]
488
+ );
489
 
490
  $repeater->add_group_control(
491
  Group_Control_Typography::get_type(),
492
  [
493
+ 'label' => __('Button Typography', 'wts-eae'),
494
  'name' => 'repeater_button_typography',
495
  'global' => [
496
  'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
505
  ],
506
  ],
507
  ]
508
+ );
509
 
510
+ $repeater->add_control(
511
  'slide_overlay',
512
  [
513
+ 'label' => __('Overlay', 'wts-eae'),
514
  'type' => Controls_Manager::SWITCHER,
515
+ 'default' => '',
516
+ 'conditions' => [
517
  'terms' => [
518
  [
519
  'name' => 'slide_custom_style',
523
  ],
524
  'separator' => 'before',
525
  ]
526
+ );
527
 
528
+ $repeater->add_control(
529
  'slide_overlay_color',
530
  [
531
+ 'label' => __('Overlay Color', 'wts-eae'),
532
  'type' => Controls_Manager::COLOR,
533
  'default' => 'rgba(0,0,0,0.5)',
534
  'conditions' => [
535
  'relation' => 'and',
536
  'terms' => [
537
  [
538
+ 'name' => 'slide_custom_style',
539
+ 'value' => 'yes',
540
+ ],
541
  [
542
  'name' => 'slide_overlay',
543
  'value' => 'yes',
548
  '{{WRAPPER}} .eae-swiper-slide{{CURRENT_ITEM}} .eae-background-overlay' => 'background-color: {{VALUE}}',
549
  ],
550
  ]
551
+ );
552
 
553
+ $repeater->add_control(
554
  'slide_overlay_blend_mode',
555
  [
556
+ 'label' => __('Blend Mode', 'wts-eae'),
557
  'type' => Controls_Manager::SELECT,
558
  'options' => [
559
+ '' => __('Normal', 'wts-eae'),
560
  'multiply' => 'Multiply',
561
  'screen' => 'Screen',
562
  'overlay' => 'Overlay',
574
  'relation' => 'and',
575
  'terms' => [
576
  [
577
+ 'name' => 'slide_custom_style',
578
+ 'value' => 'yes',
579
+ ],
580
  [
581
  'name' => 'slide_overlay',
582
  'value' => 'yes',
589
  ]
590
  );
591
 
592
+ $repeater->add_group_control(
593
  Group_Control_Text_Shadow::get_type(),
594
  [
595
  'name' => 'repeater_text_shadow',
606
  );
607
 
608
 
609
+ $repeater->end_controls_tab();
610
 
611
+ $repeater->end_controls_tabs();
612
 
613
+ $this->add_control(
614
  'slides',
615
+ [
616
+ 'label' => __('Slides', 'wts-eae'),
617
+ 'type' => Controls_Manager::REPEATER,
618
+ 'show_label' => true,
619
+ 'fields' => $repeater->get_controls(),
620
+ 'default' => [
621
+ [
622
+ // 'slide_image' => '',
623
+ 'slide_heading' => __('Slide 1 Heading', 'wts-eae'),
624
+ 'slide_description' => __('Lorem ipsum dolor sit amet consectetur adipiscing elit dolor.', 'wts-eae'),
625
+ 'slide_button_text' => __('Click Here', 'wts-eae'),
626
+ ],
627
+ [
628
+ // 'slide_image' => '',
629
+ 'slide_heading' => __('Slide 2 Heading', 'wts-eae'),
630
+ 'slide_description' => __('Lorem ipsum dolor sit amet consectetur adipiscing elit dolor', 'wts-eae'),
631
+ 'slide_button_text' => __('Click Here', 'wts-eae'),
632
+ ],
633
+ [
634
+ // 'slide_image' => '',
635
+ 'slide_heading' => __('Slide 3 Heading', 'wts-eae'),
636
+ 'slide_description' => __('Lorem ipsum dolor sit amet consectetur adipiscing elit dolor', 'wts-eae'),
637
+ 'slide_button_text' => __('Click Here', 'wts-eae'),
638
+ ],
639
+ ],
640
+ 'title_field' => '{{{ slide_heading }}}',
641
+ ]
642
+ );
643
+
644
+ $this->add_responsive_control(
645
  'slide_height',
646
  [
647
+ 'label' => __('Height', 'wts-eae'),
648
  'type' => Controls_Manager::SLIDER,
649
  'range' => [
650
  'px' => [
659
  'default' => [
660
  'size' => 400,
661
  ],
662
+ 'size_units' => ['px', 'vh', 'em'],
663
  'selectors' => [
664
+ '{{WRAPPER}} .eae-swiper-slide' => 'height: {{SIZE}}{{UNIT}};',
665
  ],
666
  'separator' => 'before',
667
  ]
668
+ );
669
+
670
+ $this->add_control(
671
  'slide_background_size',
672
  [
673
+ 'label' => _x('Image Fit', 'wts-eae'),
674
  'type' => Controls_Manager::SELECT,
675
  'default' => 'cover',
676
  'options' => [
677
+ 'cover' => _x('Cover', 'Background Control', 'wts-eae'),
678
+ 'contain' => _x('Contain', 'Background Control', 'wts-eae'),
679
+ 'auto' => _x('Auto', 'Background Control', 'wts-eae'),
680
  ],
681
  'selectors' => [
682
  '{{WRAPPER}} .eae-swiper-outer-wrapper .eae-swiper-slide' => 'background-size: {{VALUE}}',
683
  ],
684
  ]
685
  );
686
+
687
  $this->add_control(
688
  'slide_background_position',
689
  [
690
+ 'label' => _x('Image Position', 'wts-eae'),
691
  'type' => Controls_Manager::SELECT,
692
  'default' => 'center center',
693
  'options' => [
694
+ '' => __('Default', 'wts-eae'),
695
+ 'center center' => __('Center Center', 'wts-eae'),
696
+ 'center left' => __('Center Left', 'wts-eae'),
697
+ 'center right' => __('Center Right', 'wts-eae'),
698
+ 'top center' => __('Top Center', 'wts-eae'),
699
+ 'top left' => __('Top Left', 'wts-eae'),
700
+ 'top right' => __('Top Right', 'wts-eae'),
701
+ 'bottom center' => __('Bottom Center', 'wts-eae'),
702
+ 'bottom left' => __('Bottom Left', 'wts-eae'),
703
+ 'bottom right' => __('Bottom Right', 'wts-eae'),
704
  ],
705
  'selectors' => [
706
  '{{WRAPPER}} .eae-swiper-outer-wrapper .eae-swiper-slide' => 'background-position: {{VALUE}}',
707
  ],
708
  ]
709
+ );
710
 
711
+ $this->add_group_control(
712
  Group_Control_Image_Size::get_type(),
713
  [
714
  'name' => 'eae_slide_image',
715
+ 'default' => 'full',
716
+ 'exclude' => ['custom'],
717
  'separator' => 'none',
718
  ]
719
+ );
 
720
 
721
+
722
+ $this->add_control(
723
  'slides_background_overlay',
724
  [
725
+ 'label' => __('Slide Overlay', 'wts-eae'),
726
  'type' => Controls_Manager::SWITCHER,
727
  'default' => '',
728
  ]
729
+ );
730
+
731
+ $this->add_control(
732
  'slides_background_overlay_color',
733
  [
734
+ 'label' => __('Color', 'wts-eae'),
735
  'type' => Controls_Manager::COLOR,
736
  'default' => 'rgba(0,0,0,0.5)',
737
  'conditions' => [
746
  '{{WRAPPER}} .eae-background-overlay' => 'background-color: {{VALUE}}',
747
  ],
748
  ]
749
+ );
750
+
751
+ $this->add_control(
752
  'background_overlay_blend_mode',
753
  [
754
+ 'label' => __('Blend Mode', 'wts-eae'),
755
  'type' => Controls_Manager::SELECT,
756
  'options' => [
757
+ '' => __('Normal', 'wts-eae'),
758
  'multiply' => 'Multiply',
759
  'screen' => 'Screen',
760
  'overlay' => 'Overlay',
780
  '{{WRAPPER}} .eae-background-overlay' => 'mix-blend-mode: {{VALUE}}',
781
  ],
782
  ]
783
+ );
784
 
785
+ $this->end_controls_section();
786
 
787
+ $this->start_controls_section(
788
+ 'section_thumb_setting',
789
+ [
790
+ 'label' => __('Thumbnails', 'wts-eae'),
791
+ 'type' => Controls_Manager::SECTION,
792
+ ]
793
  );
794
+
795
  $this->add_responsive_control(
796
  'thumb_slides_per_view',
797
  [
798
+ 'label' => __('Thumbs Per View', 'wts-eae'),
799
  'type' => Controls_Manager::NUMBER,
800
  'default' => 3,
801
  'tablet_default' => 3,
802
  'mobile_default' => 2,
803
  ]
804
+ );
805
 
806
+ $this->add_responsive_control(
807
  'thumb_space_between',
808
  [
809
+ 'label' => __('Space Between Thumbs', 'wts-eae'),
810
  'type' => Controls_Manager::NUMBER,
811
  'default' => 10,
812
  'tablet_default' => 10,
813
+ 'mobile_default' => 5,
814
+ // 'selectors' => [
815
+ // '{{WRAPPER}} .eae-swiper-container' => 'margin-bottom: {{VALUE}}px;',
816
+ // ],
817
+ // 'render_type' => 'template'
818
  ]
819
+ );
820
 
821
+ $this->add_control(
822
  'thumb_navigation',
823
  [
824
+ 'label' => __('Arrows', 'wts-eae'),
825
  'type' => Controls_Manager::SWITCHER,
826
  'default' => '',
827
  ]
828
+ );
829
 
830
+ $this->add_group_control(
831
  Group_Control_Image_Size::get_type(),
832
  [
833
+ 'label' => __('Size', 'wts-eae'),
834
+ 'name' => 'eae_thumb_image',
835
+ 'default' => 'full',
836
+ 'exclude' => ['custom'],
837
+ 'separator' => 'before',
838
+ ]
839
+ );
840
+
841
+ $this->add_responsive_control(
842
+ 'thumb_ratio',
843
+ [
844
+ 'label' => __('Ratio', 'wts-eae'),
845
+ 'type' => Controls_Manager::SLIDER,
846
+ 'default' => [
847
+ 'size' => 0.42,
848
+ ],
849
+ 'tablet_default' => [
850
+ 'size' => '',
851
+ ],
852
+ 'mobile_default' => [
853
+ 'size' => 0.5,
854
+ ],
855
+ 'range' => [
856
+ 'px' => [
857
+ 'min' => 0.1,
858
+ 'max' => 2,
859
+ 'step' => 0.01,
860
+ ],
861
+ ],
862
+ 'selectors' => [
863
+ '{{WRAPPER}} .eae-thumb-slide .eae-fit-aspect-ratio' => 'padding-bottom: calc( {{SIZE}} * 100% );',
864
+ ],
865
+ ]
866
+ );
867
+
868
+ // $this->add_control(
869
+ // 'thumb_image_ratio',
870
+ // [
871
+ // 'label' => __('Ratio', 'wts-eae'),
872
+ // 'type' => Controls_Manager::SELECT,
873
+ // 'default' => '219',
874
+ // 'options' => [
875
  // '169' => '16:9',
876
  // '219' => '21:9',
877
  // '43' => '4:3',
878
  // '11' => '1:1',
879
+ // ],
880
+ // 'prefix_class' => 'eae-aspect-ratio-',
881
+ // 'separator' => 'after',
882
+ // ]
883
+ // );
884
 
885
+ $this->add_control(
886
  'thumb_horizontal_align',
887
  [
888
+ 'label' => __('Position', 'wts-eae'),
889
  'type' => Controls_Manager::SELECT,
890
  'options' => [
891
+ 'top' => __('Top', 'wts-eae'),
892
+ 'bottom' => __('Bottom', 'wts-eae'),
893
  ],
894
+ 'default' => 'bottom',
895
  ]
896
+ );
897
 
898
 
899
+ $this->end_controls_section();
900
 
901
+ $this->start_controls_section(
902
+ 'section_slider_setting',
903
+ [
904
+ 'label' => __('Slider Options', 'wts-eae'),
905
+ 'type' => Controls_Manager::SECTION,
906
+ ]
907
+ );
908
 
909
+ $this->add_control(
910
  'slider_effect',
911
  [
912
+ 'label' => __('Effect', 'wts-eae'),
913
  'type' => Controls_Manager::SELECT,
914
  'default' => 'slide',
915
  'options' => [
916
+ 'slide' => __('Slide', 'wts-eae'),
917
+ 'fade' => __('Fade', 'wts-eae'),
918
+ ],
919
+ 'separator' => 'after'
920
+ ]
921
+ );
922
+
923
+ $this->add_control(
924
+ 'slider_speed',
925
+ [
926
+ 'label' => __('Speed', 'wts-eae'),
927
+ 'type' => Controls_Manager::NUMBER,
928
+ 'default' => 500,
929
+ 'description' => __('Duration of transition between slides (in ms)', 'wts-eae'),
930
+ 'range' => [
931
+ 'px' => [
932
+ 'min' => 1000,
933
+ 'max' => 10000,
934
+ 'step' => 500
935
+ ]
936
+ ],
937
+ ]
938
+ );
939
+
940
+ $this->add_control(
941
  'slider_autoplay',
942
  [
943
+ 'label' => __('Autoplay', 'wts-eae'),
944
  'type' => Controls_Manager::SWITCHER,
945
+ 'default' => 'yes',
946
+ 'label_on' => __('Yes', 'wts-eae'),
947
+ 'label_off' => __('No', 'wts-eae'),
948
+ ]
949
+ );
950
+
951
+ $this->add_control(
952
+ 'slider_autoplay_duration',
953
+ [
954
+ 'label' => __('Duration', 'wts-eae'),
955
+ 'type' => Controls_Manager::NUMBER,
956
+ 'default' => 5000,
957
+ 'description' => __('Delay between transitions (in ms)', 'wts-eae'),
958
+ 'range' => [
959
+ 'px' => [
960
+ 'min' => 300,
961
+ 'max' => 3000,
962
+ 'step' => 300,
963
+ ]
964
+ ],
965
+ 'condition' => [
966
+ 'slider_autoplay' => 'yes',
967
+ ]
968
+ ]
969
+ );
970
+
971
+ $this->add_control(
972
+ 'slider_pause_on_interaction',
973
+ [
974
+ 'label' => __('Pause on Interaction', 'wts-eae'),
975
+ 'type' => Controls_Manager::SWITCHER,
976
+ 'default' => 'yes',
977
+ 'label_on' => __('Yes', 'wts-eae'),
978
+ 'label_off' => __('No', 'wts-eae'),
979
+ 'condition' => [
980
+ 'slider_autoplay' => 'yes',
981
+ ],
982
+
983
+ ]
984
+ );
985
+
986
  $this->add_control(
987
  'slider_direction',
988
  [
989
+ 'label' => __('Direction', 'wts-eae'),
990
  'type' => Controls_Manager::SELECT,
991
  'default' => 'ltr',
992
  'options' => [
993
+ 'ltr' => __('Left', 'wts-eae'),
994
+ 'rtl' => __('Right', 'wts-eae'),
995
  ],
996
  ]
997
  );
998
+
999
+
1000
+ $this->add_responsive_control(
1001
  'slider_space_between',
1002
  [
1003
  'label' => __('Space Between Slides', 'wts-eae'),
1004
  'type' => Controls_Manager::SLIDER,
1005
+ 'default' => [
1006
  'size' => 10,
1007
  ],
1008
+ 'tablet_default' => [
1009
  'size' => 15,
1010
  ],
1011
+ 'mobile_default' => [
1012
  'size' => 10,
1013
  ],
1014
  'range' => [
1015
+ 'px' => [
1016
+ 'min' => 0,
1017
+ 'max' => 50,
1018
+ 'step' => 5,
1019
  ]
1020
+ ],
1021
+ ]
1022
+ );
1023
+
1024
+ $this->add_control(
1025
+ 'slider_loop',
1026
+ [
1027
+ 'label' => __('Loop', 'wts-eae'),
1028
+ 'type' => Controls_Manager::SWITCHER,
1029
+ 'default' => 'yes',
1030
+ 'label_on' => __('Yes', 'wts-eae'),
1031
+ 'label_off' => __('No', 'wts-eae'),
1032
+ 'separator' => 'after'
1033
+ ]
1034
+ );
1035
+
1036
+ $this->add_control(
1037
  'slider_navigation',
1038
  [
1039
+ 'label' => __('Arrows', 'wts-eae'),
1040
  'type' => Controls_Manager::SWITCHER,
1041
  'default' => 'yes',
1042
+ 'label_on' => __('Yes', 'wts-eae'),
1043
+ 'label_off' => __('No', 'wts-eae'),
1044
+ 'return_value' => 'yes',
1045
  ]
1046
  );
1047
+
1048
  $this->add_control(
1049
+ 'navigation_icon_left',
1050
+ [
1051
+ 'label' => __('Icon Prev', 'wts-eae'),
1052
+ 'type' => Controls_Manager::ICONS,
1053
+ 'fa4compatibility' => 'icon',
1054
+ 'default' => [
1055
+ 'value' => 'fa fa-angle-left',
1056
+ 'library' => 'fa-solid',
1057
+ ],
1058
+ 'condition' => [
1059
+ 'slider_navigation' => 'yes'
1060
+ ],
1061
+ ]
1062
+ );
1063
+
1064
+ $this->add_control(
1065
+ 'navigation_icon_right',
1066
+ [
1067
+ 'label' => __('Icon Next', 'wts-eae'),
1068
+ 'type' => Controls_Manager::ICONS,
1069
+ 'fa4compatibility' => 'icon',
1070
+ 'default' => [
1071
+ 'value' => 'fa fa-angle-right',
1072
+ 'library' => 'fa-solid',
1073
+ ],
1074
+ 'condition' => [
1075
+ 'slider_navigation' => 'yes'
1076
+ ],
1077
+ ]
1078
+ );
1079
+
1080
  $this->add_control(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1081
  'slider_pagination',
1082
  [
1083
+ 'label' => __('Pagination', 'wts-eae'),
1084
  'type' => Controls_Manager::SELECT,
1085
  'options' =>
1086
+ [
1087
+ '' => __('None', 'wts-eae'),
1088
+ 'bullets' => __('Bullets', 'wts-eae'),
1089
+ 'fraction' => __('Fraction', 'wts-eae'),
1090
+ 'progressbar' => __('Progress', 'wts-eae'),
1091
+ ],
1092
+ 'default' => '',
1093
+ ]
1094
+ );
1095
+
1096
+ $this->add_control(
1097
+ 'slider_clickable',
1098
+ [
1099
+ 'label' => __('Clickable', 'wts-eae'),
1100
+ 'type' => Controls_Manager::SWITCHER,
1101
+ 'default' => 'yes',
1102
+ 'label_on' => __('Yes', 'wts-eae'),
1103
+ 'label_off' => __('No', 'wts-eae'),
1104
+ 'condition' => [
1105
+ 'slider_pagination' => 'bullets'
1106
+ ],
1107
+ ]
1108
+ );
1109
+
1110
+ $this->add_control(
1111
+ 'slider_keyboard',
1112
+ [
1113
+ 'label' => __('Keyboard Control', 'wts-eae'),
1114
+ 'type' => Controls_Manager::SWITCHER,
1115
+ 'default' => 'yes',
1116
+ 'label_on' => __('Yes', 'wts-eae'),
1117
+ 'label_off' => __('No', 'wts-eae'),
1118
+ 'return_value' => 'yes',
1119
+ ]
1120
+ );
1121
+
1122
+ $this->end_controls_section();
1123
+
1124
+ $this->start_controls_section(
1125
  'slides_style_section',
1126
  [
1127
  'label' => __('Slides', 'wts-eae'),
1134
  [
1135
  'label' => __('Space Between', 'wts-eae'),
1136
  'type' => Controls_Manager::SLIDER,
1137
+ 'default' => [
1138
  'size' => 10,
1139
  ],
1140
+ 'tablet_default' => [
1141
  'size' => 10,
1142
  ],
1143
+ 'mobile_default' => [
1144
  'size' => 5,
1145
  ],
1146
  'range' => [
1147
+ 'px' => [
1148
+ 'min' => 0,
1149
+ 'max' => 50,
1150
+ 'step' => 5,
1151
  ]
1152
  ],
1153
  'selectors' => [
1154
  '{{WRAPPER}} .eae-thumb-horizontal-bottom' => 'margin-top: {{SIZE}}{{UNIT}};',
1155
  '{{WRAPPER}} .eae-thumb-horizontal-top' => 'margin-bottom: {{SIZE}}{{UNIT}};',
1156
+ ],
1157
  ]
1158
  );
1159
 
1160
+ $this->add_control(
1161
  'slider_bgcolor',
1162
  [
1163
+ 'label' => __('Background Color', 'wts-eae'),
1164
  'type' => Controls_Manager::COLOR,
1165
  'selectors' => [
1166
  '{{WRAPPER}} .eae-swiper-slide' => 'background-color: {{VALUE}}',
1167
+ ],
1168
  ]
1169
+ );
1170
 
1171
+ $this->add_group_control(
1172
  Group_Control_Border::get_type(),
1173
  [
1174
  'name' => 'slide_border',
1191
  ],
1192
  'selector' => '{{WRAPPER}} .eae-swiper-container',
1193
  ]
1194
+ );
1195
 
1196
+ $this->add_control(
1197
  'slider_border_radius',
1198
  [
1199
  'label' => __('Border Radius', 'wts-eae'),
1204
  ],
1205
  ]
1206
  );
1207
+
1208
  $this->add_responsive_control(
1209
  'slides_padding',
1210
  [
1211
+ 'label' => __('Padding', 'wts-eae'),
1212
  'type' => Controls_Manager::DIMENSIONS,
1213
+ 'size_units' => ['px', 'em', '%'],
1214
  'selectors' => [
1215
  '{{WRAPPER}} .eae-slide-inner' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1216
+ ],
1217
+ //'separator' => 'before',
1218
  ]
1219
  );
1220
+
1221
  $this->add_control(
1222
  'slides_horizontal_position',
1223
  [
1224
+ 'label' => __('Horizontal Position', 'wts-eae'),
1225
  'type' => Controls_Manager::CHOOSE,
1226
  'default' => 'center',
1227
  'options' => [
1228
  'left' => [
1229
+ 'title' => __('Left', 'wts-eae'),
1230
  'icon' => 'eicon-h-align-left',
1231
  ],
1232
  'center' => [
1233
+ 'title' => __('Center', 'wts-eae'),
1234
  'icon' => 'eicon-h-align-center',
1235
  ],
1236
  'right' => [
1237
+ 'title' => __('Right', 'wts-eae'),
1238
  'icon' => 'eicon-h-align-right',
1239
  ],
1240
  ],
1241
  'prefix_class' => 'eae--hr-position-',
1242
  ]
1243
  );
1244
+
1245
  $this->add_control(
1246
  'slides_vertical_position',
1247
  [
1248
+ 'label' => __('Vertical Position', 'wts-eae'),
1249
  'type' => Controls_Manager::CHOOSE,
1250
  'default' => 'middle',
1251
  'options' => [
1252
  'top' => [
1253
+ 'title' => __('Top', 'wts-eae'),
1254
  'icon' => 'eicon-v-align-top',
1255
  ],
1256
  'middle' => [
1257
+ 'title' => __('Middle', 'wts-eae'),
1258
  'icon' => 'eicon-v-align-middle',
1259
  ],
1260
  'bottom' => [
1261
+ 'title' => __('Bottom', 'wts-eae'),
1262
  'icon' => 'eicon-v-align-bottom',
1263
  ],
1264
  ],
1265
  'prefix_class' => 'eae--vr-position-',
1266
  ]
1267
  );
1268
+
1269
  $this->add_control(
1270
  'slides_text_align',
1271
  [
1272
+ 'label' => __('Text Align', 'wts-eae'),
1273
  'type' => Controls_Manager::CHOOSE,
1274
  'options' => [
1275
  'left' => [
1276
+ 'title' => __('Left', 'wts-eae'),
1277
  'icon' => 'eicon-text-align-left',
1278
  ],
1279
  'center' => [
1280
+ 'title' => __('Center', 'wts-eae'),
1281
  'icon' => 'eicon-text-align-center',
1282
  ],
1283
  'right' => [
1284
+ 'title' => __('Right', 'wts-eae'),
1285
  'icon' => 'eicon-text-align-right',
1286
  ],
1287
  ],
1296
  Group_Control_Text_Shadow::get_type(),
1297
  [
1298
  'name' => 'text_shadow',
1299
+ 'selector' => '{{WRAPPER}} .eae-slide-content',
1300
  ]
1301
+ );
1302
 
1303
+ $this->add_responsive_control(
1304
+ 'slide_content_width',
1305
+ [
1306
+ 'label' => __('Content Width', 'wts-eae'),
1307
+ 'type' => Controls_Manager::SLIDER,
1308
+ 'range' => [
1309
  'px' => [
1310
  'min' => 0,
1311
  'max' => 1000,
1314
  'min' => 0,
1315
  'max' => 100,
1316
  ],
1317
+ ],
1318
+ 'size_units' => ['%', 'px'],
1319
  'default' => [
1320
  'size' => '66',
1321
  'unit' => '%',
1322
+ ],
1323
+ 'tablet_default' => [
1324
+ 'unit' => '%',
1325
+ ],
1326
+ 'mobile_default' => [
1327
+ 'unit' => '%',
1328
+ ],
1329
+ 'selectors' => [
1330
  '{{WRAPPER}} .eae-slide-content' => 'max-width: {{SIZE}}{{UNIT}};',
1331
+ ],
1332
+ 'separator' => 'before',
1333
+ ]
1334
  );
1335
+
1336
  $this->add_control(
1337
  'content_bgcolor',
1338
  [
1339
+ 'label' => __('Content Background Color', 'wts-eae'),
1340
  'type' => Controls_Manager::COLOR,
1341
  'selectors' => [
1342
  '{{WRAPPER}} .eae-slide-content' => 'background-color: {{VALUE}}',
1343
  ],
1344
  ]
1345
+ );
1346
 
1347
+ $this->add_responsive_control(
1348
  'content_padding',
1349
  [
1350
+ 'label' => __('Content Padding', 'wts-eae'),
1351
  'type' => Controls_Manager::DIMENSIONS,
1352
+ 'size_units' => ['px', 'em', '%'],
1353
  'selectors' => [
1354
  '{{WRAPPER}} .eae-slide-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1355
  ],
1356
  ]
1357
+ );
1358
 
1359
+ $this->end_controls_section();
1360
 
1361
+ $this->start_controls_section(
1362
  'slides_style_title',
1363
  [
1364
+ 'label' => __('Heading', 'wts-eae'),
1365
  'tab' => Controls_Manager::TAB_STYLE,
1366
  ]
1367
+ );
1368
+
1369
+ $this->add_control(
1370
  'title_color',
1371
  [
1372
+ 'label' => __('Text Color', 'wts-eae'),
1373
  'type' => Controls_Manager::COLOR,
1374
  'selectors' => [
1375
  '{{WRAPPER}} .eae-slide-heading' => 'color: {{VALUE}}',
1376
 
1377
  ],
1378
  ]
1379
+ );
1380
 
1381
+ $this->add_group_control(
1382
  Group_Control_Typography::get_type(),
1383
  [
1384
  'name' => 'title_typography',
1387
  ],
1388
  'selector' => '{{WRAPPER}} .eae-slide-heading',
1389
  ]
1390
+ );
1391
+
1392
+ $this->add_control(
1393
+ 'title_spacing',
1394
+ [
1395
+ 'label' => __('Spacing', 'wts-eae'),
1396
+ 'type' => Controls_Manager::SLIDER,
1397
+ 'range' => [
1398
  'px' => [
1399
  'min' => 0,
1400
  'max' => 100,
1401
  ],
1402
+ ],
1403
  'selectors' => [
1404
  '{{WRAPPER}} .eae-slide-inner .eae-slide-heading:not(:last-child)' => 'margin-bottom: {{SIZE}}{{UNIT}}',
1405
  ],
1406
+ ]
1407
+ );
 
 
1408
 
1409
+ $this->end_controls_section();
1410
+
1411
+ $this->start_controls_section(
1412
  'slides_style_description',
1413
  [
1414
+ 'label' => __('Description', 'wts-eae'),
1415
  'tab' => Controls_Manager::TAB_STYLE,
1416
  ]
1417
+ );
1418
 
1419
+ $this->add_control(
1420
  'description_color',
1421
  [
1422
+ 'label' => __('Text Color', 'wts-eae'),
1423
  'type' => Controls_Manager::COLOR,
1424
  'selectors' => [
1425
  '{{WRAPPER}} .eae-slide-text' => 'color: {{VALUE}}',
1426
 
1427
  ],
1428
  ]
1429
+ );
1430
+
1431
+ $this->add_group_control(
1432
  Group_Control_Typography::get_type(),
1433
  [
1434
  'name' => 'description_typography',
1437
  ],
1438
  'selector' => '{{WRAPPER}} .eae-slide-text',
1439
  ]
1440
+ );
1441
 
1442
+ $this->add_control(
1443
  'description_spacing',
1444
  [
1445
+ 'label' => __('Spacing', 'wts-eae'),
1446
+ 'type' => Controls_Manager::SLIDER,
1447
  'range' => [
1448
  'px' => [
1449
  'min' => 0,
1454
  '{{WRAPPER}} .eae-slide-inner .eae-slide-text:not(:last-child)' => 'margin-bottom: {{SIZE}}{{UNIT}}',
1455
  ],
1456
  ]
1457
+ );
1458
 
1459
+ $this->end_controls_section();
1460
 
1461
+ $this->start_controls_section(
1462
  'slides_style_button',
1463
  [
1464
+ 'label' => __('Button', 'wts-eae'),
1465
  'tab' => Controls_Manager::TAB_STYLE,
1466
  ]
1467
+ );
1468
 
1469
+ $this->add_group_control(
1470
  Group_Control_Typography::get_type(),
1471
  [
1472
  'name' => 'button_typography',
1475
  ],
1476
  'selector' => '{{WRAPPER}} .eae-slide-button .eae-slide-btn',
1477
  ]
1478
+ );
1479
+
1480
+ $this->start_controls_tabs('slides_button_style_tabs');
1481
 
1482
+ $this->start_controls_tab(
1483
  'tab_button_normal_style',
1484
  [
1485
  'label' => __('Normal', 'wts-eae'),
1486
  ]
1487
+ );
1488
+
1489
+ $this->add_control(
1490
  'button_color',
1491
  [
1492
  'label' => __('Text Color', 'wts-eae'),
1496
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn' => 'color: {{VALUE}};',
1497
  ],
1498
  ]
1499
+ );
1500
 
1501
+ $this->add_control(
1502
  'button_background_color',
1503
  [
1504
+ 'label' => __('Background Color', 'wts-eae'),
1505
  'type' => Controls_Manager::COLOR,
1506
  'selectors' => [
1507
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn' => 'background-color: {{VALUE}}',
1508
+ ],
1509
  ]
1510
+ );
1511
 
1512
+ $this->end_controls_tab();
1513
 
1514
+ $this->start_controls_tab(
1515
  'tab_button_hover_style',
1516
  [
1517
  'label' => __('Hover', 'wts-eae'),
1518
  ]
1519
+ );
1520
+
1521
+ $this->add_control(
1522
  'button_hover_color',
1523
  [
1524
  'label' => __('Text Color', 'wts-eae'),
1527
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn:hover' => 'color: {{VALUE}};',
1528
  ],
1529
  ]
1530
+ );
1531
 
1532
+ $this->add_control(
1533
  'button_border_hover_color',
1534
  [
1535
  'label' => __('Border Color', 'wts-eae'),
1536
  'type' => Controls_Manager::COLOR,
1537
  'condition' => [
1538
  'button_border_border!' => '',
1539
+ ],
1540
  'selectors' => [
1541
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn:hover' => 'border-color: {{VALUE}};',
1542
  ],
1543
  ]
1544
+ );
1545
+
1546
+ $this->add_control(
1547
  'button_bg_hover_color',
1548
  [
1549
+ 'label' => __('Background Color', 'wts-eae'),
1550
  'type' => Controls_Manager::COLOR,
1551
  'selectors' => [
1552
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn:hover' => 'background-color: {{VALUE}}',
1553
+ ],
1554
  ]
1555
+ );
1556
 
1557
+ $this->end_controls_tabs();
1558
 
1559
+ $this->add_group_control(
1560
  Group_Control_Border::get_type(),
1561
  [
1562
  'name' => 'button_border',
1577
  'selector' => '{{WRAPPER}} .eae-slide-button .eae-slide-btn',
1578
  'separator' => 'before',
1579
  ]
1580
+ );
1581
+
1582
+ $this->add_control(
1583
  'button_border_radius',
1584
  [
1585
  'label' => __('Border Radius', 'wts-eae'),
1590
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1591
  ],
1592
  ]
1593
+ );
1594
+
1595
+ $this->add_responsive_control(
1596
  'button_padding',
1597
  [
1598
  'label' => __('Padding', 'wts-eae'),
1599
+ 'type' => Controls_Manager::DIMENSIONS,
1600
  'size_units' => ['px', 'em', '%'],
1601
  'selectors' => [
1602
  '{{WRAPPER}} .eae-slide-button .eae-slide-btn' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1604
  ]
1605
  );
1606
 
1607
+ $this->end_controls_section();
1608
 
1609
+ $this->start_controls_section(
1610
  'navigation_style_section',
1611
  [
1612
+ 'label' => __('Slider Navigation', 'wts-eae'),
1613
+ 'tab' => Controls_Manager::TAB_STYLE,
1614
+ 'conditions' => [
1615
+ 'relation' => 'or',
1616
  'terms' => [
 
 
 
 
 
1617
  [
1618
+ 'name' => 'slider_pagination',
1619
+ 'operator' => '!=',
1620
+ 'value' => '',
1621
+ ],
1622
+ [
1623
+ 'name' => 'slider_navigation',
1624
+ 'operator' => '!=',
1625
  'value' => '',
1626
+ ],
1627
  ],
1628
  ],
1629
  ]
1630
+ );
1631
 
1632
+ $this->add_control(
1633
  'arrows_heading',
1634
  [
1635
+ 'label' => __('Arrows', 'wts-eae'),
1636
+ 'type' => Controls_Manager::HEADING,
1637
+ 'conditions' => [
1638
  'terms' => [
1639
  [
1640
+ 'name' => 'slider_navigation',
1641
+ 'operator' => '!=',
1642
  'value' => '',
1643
+ ],
1644
  ],
1645
  ],
1646
  ]
1647
+ );
1648
+
1649
+ $this->add_control(
1650
  'arrows_color',
1651
  [
1652
+ 'label' => __('Color', 'wts-eae'),
1653
  'type' => Controls_Manager::COLOR,
1654
  'selectors' => [
1655
  '{{WRAPPER}} .eae-slider-nav-button' => 'color: {{VALUE}}',
1656
+ ],
1657
+ 'conditions' => [
1658
  'terms' => [
1659
  [
1660
+ 'name' => 'slider_navigation',
1661
+ 'operator' => '!=',
1662
  'value' => '',
1663
+ ],
1664
  ],
1665
  ],
1666
  ]
1667
+ );
1668
+
1669
+ $this->add_control(
1670
  'arrows_size',
1671
  [
1672
+ 'label' => __('Size', 'wts-eae'),
1673
  'type' => Controls_Manager::SLIDER,
1674
  'range' => [
1675
  'px' => [
1679
  ],
1680
  'selectors' => [
1681
  '{{WRAPPER}} .eae-slider-nav-button' => 'font-size: {{SIZE}}{{UNIT}}',
1682
+ ],
1683
+ 'conditions' => [
1684
  'terms' => [
1685
  [
1686
+ 'name' => 'slider_navigation',
1687
+ 'operator' => '!=',
1688
  'value' => '',
1689
+ ],
1690
  ],
1691
  ],
1692
+ 'separator' => 'after',
1693
  ]
1694
+ );
1695
+
1696
+ $this->add_control(
1697
  'pagination_bullets_heading',
1698
  [
1699
+ 'label' => __('Bullets', 'wts-eae'),
1700
+ 'type' => Controls_Manager::HEADING,
1701
+ 'conditions' => [
1702
  'terms' => [
1703
  [
1704
+ 'name' => 'slider_pagination',
1705
+ 'operator' => '==',
1706
  'value' => 'bullets',
1707
  ],
1708
  ],
1709
+ ],
1710
+ //'separator' => 'before',
1711
  ]
1712
+ );
1713
 
1714
+ $this->add_control(
1715
  'pagination_fraction_heading',
1716
  [
1717
+ 'label' => __('Fraction', 'wts-eae'),
1718
+ 'type' => Controls_Manager::HEADING,
1719
+ 'conditions' => [
1720
  'terms' => [
1721
  [
1722
+ 'name' => 'slider_pagination',
1723
+ 'operator' => '==',
1724
  'value' => 'fraction',
1725
  ],
1726
  ],
1727
+ ],
1728
+ //'separator' => 'before',
1729
  ]
1730
+ );
1731
 
1732
+ $this->add_control(
1733
  'pagination_progressbar_heading',
1734
  [
1735
+ 'label' => __('ProgressBar', 'wts-eae'),
1736
+ 'type' => Controls_Manager::HEADING,
1737
+ 'conditions' => [
1738
  'terms' => [
1739
  [
1740
+ 'name' => 'slider_pagination',
1741
+ 'operator' => '==',
1742
  'value' => 'progressbar',
1743
  ],
1744
  ],
1745
+ ],
1746
+ //'separator' => 'before',
1747
  ]
1748
+ );
1749
 
1750
+ $this->add_control(
1751
  'pagination_color',
1752
  [
1753
+ 'label' => __('Color', 'wts-eae'),
1754
  'type' => Controls_Manager::COLOR,
1755
  'selectors' => [
1756
+ '{{WRAPPER}} .swiper-pagination-bullet' => 'background-color: {{VALUE}};',
1757
+ '{{WRAPPER}} .swiper-pagination-fraction' => 'color: {{VALUE}};',
1758
+ '{{WRAPPER}} .swiper-pagination-progressbar' => 'background-color: {{VALUE}};',
1759
+ ],
1760
+ 'condition' => [
1761
  'slider_pagination!' => '',
1762
+ ],
1763
  ]
1764
+ );
1765
+
1766
+ $this->add_control(
1767
  'pagination_active_color',
1768
  [
1769
+ 'label' => __('Active Color', 'wts-eae'),
1770
  'type' => Controls_Manager::COLOR,
1771
  'selectors' => [
1772
+ '{{WRAPPER}} .swiper-pagination-bullet-active' => 'background-color: {{VALUE}};',
1773
+ '{{WRAPPER}} .swiper-pagination-current' => 'color: {{VALUE}};',
1774
+ '{{WRAPPER}} .swiper-pagination-progressbar-fill' => 'background-color: {{VALUE}};',
1775
+ ],
1776
+ 'condition' => [
1777
  'slider_pagination!' => '',
1778
+ ],
1779
  ]
1780
+ );
1781
+
1782
+ $this->add_control(
1783
  'pagination_size',
1784
  [
1785
+ 'label' => __('Size', 'wts-eae'),
1786
  'type' => Controls_Manager::SLIDER,
1787
  'range' => [
1788
  'px' => [
1791
  ],
1792
  ],
1793
  'selectors' => [
1794
+ '{{WRAPPER}} .swiper-pagination-bullet' => 'height: {{SIZE}}{{UNIT}}; width: {{SIZE}}{{UNIT}}',
1795
+ '{{WRAPPER}} .swiper-pagination-fraction' => 'font-size: {{SIZE}}{{UNIT}}',
1796
  '{{WRAPPER}} .swiper-pagination-progressbar' => 'height: {{SIZE}}{{UNIT}}', //.swiper-container-horizontal
1797
  ],
1798
  'condition' => [
1799
  'slider_pagination!' => '',
1800
+ ],
1801
  ]
1802
+ );
 
 
1803
 
1804
+ $this->end_controls_section();
1805
+
1806
+ $this->start_controls_section(
1807
  'thumbnails_style_section',
1808
  [
1809
+ 'label' => __('Thumbnails', 'wts-eae'),
1810
  'tab' => Controls_Manager::TAB_STYLE,
1811
  ]
1812
+ );
1813
 
1814
+ $this->add_group_control(
1815
  Group_Control_Border::get_type(),
1816
  [
1817
  'name' => 'thumbnail_border',
1834
  ],
1835
  'selector' => '{{WRAPPER}} .eae-thumb-slide',
1836
  ]
1837
+ );
1838
 
1839
+ $this->add_control(
1840
  'thumbnail_border_radius',
1841
  [
1842
  'label' => __('Border Radius', 'wts-eae'),
1847
  '{{WRAPPER}} .eae-thumb-slide:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1848
  ],
1849
  ]
1850
+ );
1851
 
1852
+ $this->add_control(
1853
  'thumb_arrows_heading',
1854
  [
1855
+ 'label' => __('Arrows', 'wts-eae'),
1856
+ 'type' => Controls_Manager::HEADING,
1857
+ 'conditions' => [
1858
  'terms' => [
1859
  [
1860
+ 'name' => 'thumb_navigation',
1861
+ 'operator' => '!=',
1862
  'value' => '',
1863
+ ],
1864
  ],
1865
+ ],
1866
+ 'separator' => 'before',
1867
  ]
1868
+ );
1869
 
1870
+ $this->add_control(
1871
  'thumb_arrows_color',
1872
  [
1873
+ 'label' => __('Color', 'wts-eae'),
1874
  'type' => Controls_Manager::COLOR,
1875
  'selectors' => [
1876
  '{{WRAPPER}} .eae-thumb-button' => 'color: {{VALUE}}',
1877
+ ],
1878
+ 'conditions' => [
1879
  'terms' => [
1880
  [
1881
+ 'name' => 'thumb_navigation',
1882
+ 'operator' => '!=',
1883
  'value' => '',
1884
+ ],
1885
  ],
1886
  ],
1887
  ]
1888
+ );
1889
+
1890
+ $this->add_control(
1891
  'thumb_arrows_size',
1892
  [
1893
+ 'label' => __('Size', 'wts-eae'),
1894
  'type' => Controls_Manager::SLIDER,
1895
  'range' => [
1896
  'px' => [
1900
  ],
1901
  'selectors' => [
1902
  '{{WRAPPER}} .eae-thumb-button' => 'font-size: {{SIZE}}{{UNIT}}',
1903
+ ],
1904
+ 'conditions' => [
1905
  'terms' => [
1906
  [
1907
+ 'name' => 'thumb_navigation',
1908
+ 'operator' => '!=',
1909
  'value' => '',
1910
+ ],
1911
  ],
1912
  ],
1913
+ ]
1914
+ );
1915
+
1916
+ $this->end_controls_section();
1917
+ }
1918
+
1919
+ protected function render()
1920
+ {
1921
+
1922
+ $settings = $this->get_settings();
1923
+ $slides = $settings['slides'];
1924
+
1925
+ $slides_per_view['desktop'] = $settings['thumb_slides_per_view'] != "" ? $settings['thumb_slides_per_view'] : 1;
1926
+ $slides_per_view['tablet'] = $settings['thumb_slides_per_view_tablet'] != "" ? $settings['thumb_slides_per_view_tablet'] : 1;
1927
+ $slides_per_view['mobile'] = $settings['thumb_slides_per_view_mobile'] != "" ? $settings['thumb_slides_per_view_mobile'] : 1;
1928
+
1929
+ $space_between['desktop'] = $settings['thumb_space_between'] != "" ? $settings['thumb_space_between'] : 5;
1930
+ $space_between['tablet'] = $settings['thumb_space_between_tablet'] != "" ? $settings['thumb_space_between_tablet'] : 15;
1931
+ $space_between['mobile'] = $settings['thumb_space_between_mobile'] != "" ? $settings['thumb_space_between_mobile'] : 10;
1932
 
1933
+ //$thumb_navigation = $settings['thumb_navigation'];
 
1934
 
1935
+ $slider_data = $this->get_swiper_settings($settings);
1936
 
1937
+ //echo '<pre>'; print_r($settings); echo '</pre>';
1938
+
1939
+ $this->add_render_attribute('outer-wrapper', 'class', ['eae-swiper-outer-wrapper', 'eae-swiper']);
1940
+
1941
+ $this->add_render_attribute('outer-wrapper', 'data-swiper-settings', json_encode($slider_data));
1942
+
1943
+ if (!empty($slides_per_view)) {
1944
+ $this->add_render_attribute('outer-wrapper', 'data-slides-per-view', json_encode($slides_per_view, JSON_NUMERIC_CHECK));
1945
+ }
1946
+
1947
+ if (!empty($space_between)) {
1948
+ $this->add_render_attribute('outer-wrapper', 'data-space', json_encode($space_between, JSON_NUMERIC_CHECK));
1949
+ }
1950
+
1951
+ // if ($thumb_navigation == 'yes') {
1952
+ // $this->add_render_attribute('outer-wrapper', 'data-navigation', $thumb_navigation);
1953
+ // }
1954
+
1955
+ ?>
1956
+
1957
+ <div <?php echo $this->get_render_attribute_string('outer-wrapper'); ?>>
1958
+ <?php
1959
+
1960
+ if ($settings['thumb_horizontal_align'] == 'top') {
1961
+ $this->render_thumbslider($slides, $settings);
1962
+ }
1963
+
1964
+ $this->render_slider($slides, $settings);
1965
+
1966
+ if ($settings['thumb_horizontal_align'] == 'bottom') {
1967
+ $this->render_thumbslider($slides, $settings);
1968
+ }
1969
+
1970
+ ?>
1971
+ </div>
1972
+
1973
+ <?php
1974
+
1975
+ }
1976
+
1977
+ function render_slider($slides, $settings)
1978
+ {
1979
+
1980
+ $this->add_render_attribute('slider-container', 'class', ['eae-swiper-container', 'swiper-container']);
1981
+
1982
+ $this->add_render_attribute('slider-wrapper', 'class', ['eae-swiper-wrapper', 'swiper-wrapper', 'slider_vertical_wrapper']);
1983
+
1984
+ $slider_data = $this->get_swiper_settings($settings);
1985
+
1986
+ ?>
1987
+
1988
+ <div <?php echo $this->get_render_attribute_string('slider-container'); ?>>
1989
+ <div <?php echo $this->get_render_attribute_string('slider-wrapper'); ?>>
1990
+
1991
+ <?php
1992
+ foreach ($slides as $slide) {
1993
+
1994
+ $id = $slide['_id'];
1995
+ $heading = $slide['slide_heading'];
1996
+ $description = $slide['slide_description'];
1997
+ $button_text = $slide['slide_button_text'];
1998
+ $link = $slide['slide_link']['url'];
1999
+
2000
+ $slide_element = 'div';
2001
+
2002
+ $this->set_render_attribute('swiper-repeater-item', 'class', ['elementor-repeater-item-' . $id, 'eae-swiper-slide', 'swiper-slide']);
2003
+ $image_url = Group_Control_Image_Size::get_attachment_image_src($slide['slide_image']['id'], 'eae_slide_image', $settings);
2004
+
2005
+ if (!empty($slide['slide_image']['id'])) {
2006
+ $this->set_render_attribute('swiper-repeater-item', 'style', 'background-image : url(' . $image_url . ');');
2007
+ } else {
2008
+ $this->remove_render_attribute('swiper-repeater-item', 'style');
2009
+ }
2010
+
2011
+ $this->set_render_attribute('slide-inner', 'class', 'eae-slide-inner');
2012
+ if ($link != '' && $slide['slide_link_click'] === 'slide') {
2013
+ $slide_element = 'a';
2014
+ $this->set_render_attribute('slide-inner', 'href', $link);
2015
+ }
2016
+ ?>
2017
+
2018
+
2019
+ <div <?php echo $this->get_render_attribute_string('swiper-repeater-item'); ?>>
2020
+
2021
+ <?php if ($settings['slides_background_overlay'] == 'yes' || $slide['slide_overlay'] == 'yes') { ?>
2022
+ <div class="eae-background-overlay"></div>
2023
+ <?php } ?>
2024
+
2025
+ <<?php echo $slide_element; ?> <?php echo $this->get_render_attribute_string('slide-inner'); ?>>
2026
+ <?php if (!empty($heading || $description || $button_text)) { ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2027
  <div class="eae-slide-content">
2028
+ <?php if (!empty($heading)) { ?>
2029
  <div class="eae-slide-heading"><?php echo $heading; ?></div>
2030
  <?php } ?>
2031
 
2032
+ <?php if (!empty($description)) { ?>
2033
+ <div class="eae-slide-text"><?php echo $description; ?></div>
2034
  <?php } ?>
2035
 
2036
+ <?php if (!empty($button_text)) { ?>
2037
+ <div class="eae-slide-button">
2038
+ <?php if ($link != '' && $slide['slide_link_click'] == 'button') { ?>
2039
+ <a class="eae-slide-btn" href="<?php echo $link ?>"><?php echo $button_text; ?></a>
2040
+ <?php } else { ?>
2041
+ <span class="eae-slide-btn"><?php echo $button_text; ?></span>
2042
+ <?php } ?>
2043
+ </div>
2044
  <?php } ?>
2045
  </div>
2046
  <?php } ?>
2047
+ </<?php echo $slide_element; ?>>
2048
+
2049
+ </div>
2050
+
 
 
 
 
 
2051
  <?php } ?>
2052
+ </div>
2053
+
2054
+ <?php if (!empty($slider_data['pagination'])) { ?>
2055
+ <div class="eae-swiper-pagination swiper-pagination"></div>
2056
+ <?php } ?>
2057
+
2058
+ <?php if (!empty($slider_data['navigation'])) { ?>
2059
+
2060
+ <div class=" eae-swiper-button eae-slider-nav-button eae-swiper-button-prev">
2061
+ <?php Icons_Manager::render_icon($settings['navigation_icon_left']) ?>
2062
+ </div>
2063
+
2064
+ <div class="eae-swiper-button eae-slider-nav-button eae-swiper-button-next">
2065
+ <?php Icons_Manager::render_icon($settings['navigation_icon_right']) ?>
2066
+ </div>
2067
+
2068
+ <?php } ?>
2069
+
2070
+ </div>
2071
+
2072
+ <?php
2073
+
2074
+ }
2075
+
2076
+ function render_thumbslider($slides, $settings)
2077
+ {
2078
+
2079
+ $this->add_render_attribute('thumb-container', 'class', ['eae-thumb-container', 'swiper-container', 'eae-gallery-thumbs']);
2080
+ $this->add_render_attribute('thumb-wrapper', 'class', ['eae-thumb-wrapper', 'swiper-wrapper']);
2081
+
2082
+ $thumb_navigation = $settings['thumb_navigation'];
2083
+
2084
+ if ($settings['thumb_horizontal_align'] == 'top') {
2085
+ $this->add_render_attribute('thumb-container', 'class', ['eae-thumb-horizontal-top']);
2086
+ }
2087
+ if ($settings['thumb_horizontal_align'] == 'bottom') {
2088
+ $this->add_render_attribute('thumb-container', 'class', ['eae-thumb-horizontal-bottom']);
2089
+ }
2090
+
2091
+ ?>
2092
+
2093
+ <div <?php echo $this->get_render_attribute_string('thumb-container'); ?>>
2094
+ <div <?php echo $this->get_render_attribute_string('thumb-wrapper'); ?>>
2095
+ <?php
2096
+ foreach ($slides as $slide) {
2097
+
2098
+ $thumb_image_id = $slide['thumb_image']['id'];
2099
+
2100
+ if ($slide['slide_thumb_image'] === '') {
2101
+ $thumb_image_id = $slide['slide_image']['id'];
2102
+ }
2103
+
2104
+ $id = $slide['_id'];
2105
+ $this->set_render_attribute('thumb-repeater-item', 'class', ['elementor-repeater-item-' . $id, 'eae-thumb-slide', 'swiper-slide']);
2106
+
2107
+ if (!empty($thumb_image_id)) {
2108
+ $thumb_image_url = Group_Control_Image_Size::get_attachment_image_src($thumb_image_id, 'eae_thumb_image', $settings);
2109
+ } else {
2110
+ $thumb_image_url = Utils::get_placeholder_image_src();
2111
+ }
2112
+
2113
+ $this->set_render_attribute('thumb-repeater-item', 'style', 'background-image : url(' . $thumb_image_url . ');');
2114
+
2115
+ ?>
2116
+
2117
+ <div <?php echo $this->get_render_attribute_string('thumb-repeater-item'); ?>>
2118
+ <div class='eae-fit-aspect-ratio'></div>
2119
+ </div>
2120
  <?php } ?>
2121
+ </div>
2122
+
2123
+ <?php if ($thumb_navigation == 'yes') { ?>
2124
+ <div class=" eae-thumb-button eae-swiper-button eae-swiper-button-prev">
2125
+ <i class="eicon-chevron-left"></i>
2126
+ </div>
2127
+
2128
+ <div class="eae-thumb-button eae-swiper-button eae-swiper-button-next">
2129
+ <i class="eicon-chevron-right"></i>
2130
+ </div>
2131
+ <?php } ?>
2132
+
2133
+ </div>
2134
+
2135
+ <?php
2136
+ }
2137
+
2138
+ function get_swiper_settings($settings)
2139
+ {
2140
+
2141
+ $slider_data['effect'] = $settings['slider_effect'];
2142
+
2143
+ $slider_data['speed'] = $settings['slider_speed'];
2144
+
2145
+ if ($settings['slider_autoplay'] === 'yes') {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2146
  $slider_data['autoplay']['duration'] = $settings['slider_autoplay_duration'];
2147
 
2148
+ if ($settings['slider_direction'] === 'rtl') {
2149
  $slider_data['autoplay']['reverseDirection'] = true;
2150
  }
2151
+ if ($settings['slider_direction'] === 'ltr') {
2152
  $slider_data['autoplay']['reverseDirection'] = false;
2153
  }
2154
+
2155
  $slider_data['autoplay']['slider_direction'] = $settings['slider_direction'];
2156
+
2157
+ $settings['slider_pause_on_interaction'] == 'yes' ? $slider_data['autoplay']['disableOnInteraction'] = true : $slider_data['autoplay']['disableOnInteraction'] = false;
2158
+ } else {
2159
+ $swiper_data['autoplay'] = false;
2160
+ }
2161
+
2162
+ $slider_data['spaceBetween']['desktop'] = $settings['slider_space_between']['size'];
2163
+ $slider_data['spaceBetween']['tablet'] = $settings['slider_space_between_tablet']['size'];
2164
+ $slider_data['spaceBetween']['mobile'] = $settings['slider_space_between_mobile']['size'];
2165
+
2166
+ if (!empty($settings['slider_loop'])) {
2167
+ $slider_data['loop'] = $settings['slider_loop'];
2168
+ }
2169
+
2170
+ if (!empty($settings['slider_navigation'])) {
2171
+ $slider_data['navigation'] = $settings['slider_navigation'];
2172
+ }
2173
+
2174
+ if (!empty($settings['slider_pagination'])) {
2175
+ $slider_data['pagination'] = $settings['slider_pagination'];
2176
+ }
2177
+
2178
+ $settings['slider_clickable'] == 'yes' ? $slider_data['clickable'] = true : $slider_data['clickable'] = false;
2179
+
2180
+ $settings['slider_keyboard'] == 'yes' ? $slider_data['keyboard'] = true : $slider_data['keyboard'] = false;
2181
+
2182
+ return $slider_data;
2183
+ }
2184
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: elementor, elements, addons, elementor addon, elementor widget, page-build
4
  Requires at least: 5.0
5
  Requires PHP: 5.6
6
  Tested up to: 5.6
7
- Stable tag: 1.9.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -98,6 +98,10 @@ Column gap => No gap
98
 
99
  == Changelog ==
100
 
 
 
 
 
101
  = 1.9.1 =
102
  * Fixed: Admin notice issue
103
 
@@ -167,7 +171,7 @@ Column gap => No gap
167
  * Masonry dependencies issue bug fix to filterable gallery.
168
  * Section Column cursor css added.
169
 
170
- = 1.6
171
  * New Widget: Filterable Gallery
172
  * New Widget: Wrapper Link
173
  * Fix : Dual Button Padding
4
  Requires at least: 5.0
5
  Requires PHP: 5.6
6
  Tested up to: 5.6
7
+ Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
98
 
99
  == Changelog ==
100
 
101
+ = 1.9.2 =
102
+ * Tweak : Added Compatibility for Elementor 3.1
103
+
104
+
105
  = 1.9.1 =
106
  * Fixed: Admin notice issue
107
 
171
  * Masonry dependencies issue bug fix to filterable gallery.
172
  * Section Column cursor css added.
173
 
174
+ = 1.6 =
175
  * New Widget: Filterable Gallery
176
  * New Widget: Wrapper Link
177
  * Fix : Dual Button Padding