Premium Addons for Elementor - Version 3.12.3

Version Description

  • Tweak: Added Size option for Markers in Google Maps widget.
  • Tweak: Posts comments number compatibility with Disqus plugin.
  • Fixed: Progress Bar widget value applied on all bars on the page.
  • Fixed: Media Grid widget masonry layout issues on the editor on Chrome.
  • Fixed: Blog post content duplicate issue when Full Content option is selected.
  • Fixed: Blog masonry layout issues on the editor on Chrome.
Download this release

Release Info

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

Code changes from version 3.12.2 to 3.12.3

assets/frontend/css/premium-addons.css CHANGED
@@ -1419,11 +1419,6 @@ button.premium-modal-box-modal-close {
1419
  .premium-modal-box-modal-title img {
1420
  vertical-align: middle; }
1421
 
1422
- /*Close Button Container Style*/
1423
- /*.premium-modal-box-close-button-container {
1424
- float: right;
1425
- }
1426
- */
1427
  .premium-modal-box-modal-close {
1428
  position: relative;
1429
  z-index: 99; }
@@ -1720,11 +1715,9 @@ button.premium-modal-box-modal-close {
1720
  padding: 20px;
1721
  text-align: center; }
1722
 
1723
- /*Testimonial Quotes Container Div Style*/
1724
  .premium-testimonial-quotes-wrapper {
1725
  z-index: 1; }
1726
 
1727
- /*Clear Float*/
1728
  .premium-testimonial-clear-float {
1729
  clear: both; }
1730
 
1419
  .premium-modal-box-modal-title img {
1420
  vertical-align: middle; }
1421
 
 
 
 
 
 
1422
  .premium-modal-box-modal-close {
1423
  position: relative;
1424
  z-index: 99; }
1715
  padding: 20px;
1716
  text-align: center; }
1717
 
 
1718
  .premium-testimonial-quotes-wrapper {
1719
  z-index: 1; }
1720
 
 
1721
  .premium-testimonial-clear-float {
1722
  clear: both; }
1723
 
assets/frontend/js/premium-addons.js CHANGED
@@ -1,15 +1,16 @@
1
  (function ($) {
2
  /****** Premium Progress Bar Handler ******/
3
  var PremiumProgressBarWidgetHandler = function ($scope, $) {
4
- var $progressbarContainer = $scope.find(".premium-progressbar-container"),
5
- settings = $progressbarContainer.data("settings"),
 
6
  length = settings.progress_length,
7
  speed = settings.speed,
8
  type = settings.type;
9
 
10
  if ("line" === type) {
11
 
12
- var $progressbar = $(".premium-progressbar-bar");
13
 
14
  if (settings.gradient)
15
  $progressbar.css("background", "linear-gradient(-45deg, " + settings.gradient + ")");
@@ -22,7 +23,7 @@
22
  if (length > 100)
23
  length = 100;
24
 
25
- $progressbarContainer.prop({
26
  'counter': 0
27
  }).animate({
28
  counter: length
@@ -32,17 +33,17 @@
32
  step: function (counter) {
33
  var rotate = (counter * 3.6);
34
 
35
- $progressbarContainer.find(".premium-progressbar-right-label span").text(Math.ceil(counter) + "%");
36
 
37
- $progressbarContainer.find(".premium-progressbar-circle-left").css('transform', "rotate(" + rotate + "deg)");
38
  if (rotate > 180) {
39
 
40
- $progressbarContainer.find(".premium-progressbar-circle").css({
41
  '-webkit-clip-path': 'inset(0)',
42
  'clip-path': 'inset(0)',
43
  });
44
 
45
- $progressbarContainer.find(".premium-progressbar-circle-right").css('visibility', 'visible');
46
  }
47
  }
48
  });
1
  (function ($) {
2
  /****** Premium Progress Bar Handler ******/
3
  var PremiumProgressBarWidgetHandler = function ($scope, $) {
4
+
5
+ var $progressbarElem = $scope.find(".premium-progressbar-container"),
6
+ settings = $progressbarElem.data("settings"),
7
  length = settings.progress_length,
8
  speed = settings.speed,
9
  type = settings.type;
10
 
11
  if ("line" === type) {
12
 
13
+ var $progressbar = $progressbarElem.find(".premium-progressbar-bar");
14
 
15
  if (settings.gradient)
16
  $progressbar.css("background", "linear-gradient(-45deg, " + settings.gradient + ")");
23
  if (length > 100)
24
  length = 100;
25
 
26
+ $progressbarElem.prop({
27
  'counter': 0
28
  }).animate({
29
  counter: length
33
  step: function (counter) {
34
  var rotate = (counter * 3.6);
35
 
36
+ $progressbarElem.find(".premium-progressbar-right-label span").text(Math.ceil(counter) + "%");
37
 
38
+ $progressbarElem.find(".premium-progressbar-circle-left").css('transform', "rotate(" + rotate + "deg)");
39
  if (rotate > 180) {
40
 
41
+ $progressbarElem.find(".premium-progressbar-circle").css({
42
  '-webkit-clip-path': 'inset(0)',
43
  'clip-path': 'inset(0)',
44
  });
45
 
46
+ $progressbarElem.find(".premium-progressbar-circle-right").css('visibility', 'visible');
47
  }
48
  }
49
  });
assets/frontend/js/premium-maps.js CHANGED
@@ -1,7 +1,7 @@
1
- jQuery(window).on("elementor/frontend/init", function() {
2
  elementorFrontend.hooks.addAction(
3
  "frontend/element_ready/premium-addon-maps.default",
4
- function($scope, $) {
5
  var mapElement = $scope.find(".premium_maps_map_height");
6
 
7
  var mapSettings = mapElement.data("settings");
@@ -43,7 +43,7 @@ jQuery(window).on("elementor/frontend/init", function() {
43
 
44
  map.markers = [];
45
  // add markers
46
- markers.each(function() {
47
  add_marker(jQuery(this), map, autoOpen, hoverOpen, hoverClose);
48
  });
49
 
@@ -52,18 +52,29 @@ jQuery(window).on("elementor/frontend/init", function() {
52
 
53
  function add_marker(pin, map, autoOpen, hoverOpen, hoverClose) {
54
  var latlng = new google.maps.LatLng(
55
- pin.attr("data-lat"),
56
- pin.attr("data-lng")
57
- ),
58
  icon_img = pin.attr("data-icon"),
59
- maxWidth = pin.attr("data-max-width");
 
60
 
61
  if (icon_img != "") {
62
  var icon = {
63
  url: pin.attr("data-icon")
64
  };
 
 
 
 
 
 
 
 
65
  }
66
 
 
 
67
  // create marker
68
  var marker = new google.maps.Marker({
69
  position: latlng,
@@ -91,17 +102,17 @@ jQuery(window).on("elementor/frontend/init", function() {
91
  infowindow.open(map, marker);
92
  }
93
  if (hoverOpen) {
94
- google.maps.event.addListener(marker, "mouseover", function() {
95
  infowindow.open(map, marker);
96
  });
97
  if (hoverClose) {
98
- google.maps.event.addListener(marker, "mouseout", function() {
99
  infowindow.close(map, marker);
100
  });
101
  }
102
  }
103
  // show info window when marker is clicked
104
- google.maps.event.addListener(marker, "click", function() {
105
  infowindow.open(map, marker);
106
  });
107
  }
1
+ jQuery(window).on("elementor/frontend/init", function () {
2
  elementorFrontend.hooks.addAction(
3
  "frontend/element_ready/premium-addon-maps.default",
4
+ function ($scope, $) {
5
  var mapElement = $scope.find(".premium_maps_map_height");
6
 
7
  var mapSettings = mapElement.data("settings");
43
 
44
  map.markers = [];
45
  // add markers
46
+ markers.each(function () {
47
  add_marker(jQuery(this), map, autoOpen, hoverOpen, hoverClose);
48
  });
49
 
52
 
53
  function add_marker(pin, map, autoOpen, hoverOpen, hoverClose) {
54
  var latlng = new google.maps.LatLng(
55
+ pin.attr("data-lat"),
56
+ pin.attr("data-lng")
57
+ ),
58
  icon_img = pin.attr("data-icon"),
59
+ maxWidth = pin.attr("data-max-width"),
60
+ iconSize = pin.attr("data-icon-size");
61
 
62
  if (icon_img != "") {
63
  var icon = {
64
  url: pin.attr("data-icon")
65
  };
66
+
67
+ if (iconSize) {
68
+
69
+ icon.scaledSize = new google.maps.Size(iconSize, iconSize);
70
+ icon.origin = new google.maps.Point(0, 0);
71
+ icon.anchor = new google.maps.Point(iconSize / 2, iconSize);
72
+
73
+ }
74
  }
75
 
76
+
77
+
78
  // create marker
79
  var marker = new google.maps.Marker({
80
  position: latlng,
102
  infowindow.open(map, marker);
103
  }
104
  if (hoverOpen) {
105
+ google.maps.event.addListener(marker, "mouseover", function () {
106
  infowindow.open(map, marker);
107
  });
108
  if (hoverClose) {
109
+ google.maps.event.addListener(marker, "mouseout", function () {
110
  infowindow.close(map, marker);
111
  });
112
  }
113
  }
114
  // show info window when marker is clicked
115
+ google.maps.event.addListener(marker, "click", function () {
116
  infowindow.open(map, marker);
117
  });
118
  }
assets/frontend/min-js/premium-addons.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){function i(e,t){var i=e.find(".premium-progressbar-container"),a=i.data("settings"),n=a.progress_length,r=a.speed;if("line"===a.type){var o=t(".premium-progressbar-bar");a.gradient&&o.css("background","linear-gradient(-45deg, "+a.gradient+")"),o.animate({width:n+"%"},r)}else 100<n&&(n=100),i.prop({counter:0}).animate({counter:n},{duration:r,easing:"linear",step:function(e){var t=3.6*e;i.find(".premium-progressbar-right-label span").text(Math.ceil(e)+"%"),i.find(".premium-progressbar-circle-left").css("transform","rotate("+t+"deg)"),180<t&&(i.find(".premium-progressbar-circle").css({"-webkit-clip-path":"inset(0)","clip-path":"inset(0)"}),i.find(".premium-progressbar-circle-right").css("visibility","visible"))}})}function t(e,t){elementorFrontend.waypoint(e,function(){i(t(this),t)},{offset:Waypoint.viewportHeight()-150,triggerOnce:!0})}function a(e,t){var i,a,n=e.find(".premium-video-box-container"),r=n.find(".premium-video-box-video-container"),o=n.data("type");function l(){if(!n.hasClass("playing")){if(n.addClass("playing"),"self"===o)t(i).get(0).play(),r.css({opacity:"1",visibility:"visible"});else{var e=t("<iframe/>");checkRel=a.indexOf("rel=0"),e.attr("src",a),e.attr("frameborder","0"),e.attr("allowfullscreen","1"),e.attr("allow","autoplay;encrypted-media;"),r.css("background","#000"),r.html(e)}n.find(".premium-video-box-image-container, .premium-video-box-play-icon-container, .premium-video-box-description-container").remove(),"vimeo"===o&&n.find(".premium-video-box-vimeo-wrap").remove()}}"self"===o?(i=r.find("video"),a=i.attr("src")):-1!==(a=r.data("src")).indexOf("autoplay=1")?l():a+="&autoplay=1",n.on("click",function(){l()})}function n(t,l){var a=t.find(".premium-gallery-container"),e=a.data("settings"),i=e.img_size,n=elementorFrontend.getCurrentDeviceMode(),r=e.load_more,o=null,s=null,d=!1,m=e.minimum,c=e.click_images,u=m,p=e.ltr_mode,f=e.shuffle;if("metro"===i){var h="";"tablet"===n?h="_tablet":"mobile"===n&&(h="_mobile");var g=a.width(),v=Math.floor(g/12);a.find(".premium-gallery-item").each(function(e,t){var i=l(t).data("metro")["cells"+h],a=l(t).data("metro")["vcells"+h];if(""==i||null==i)i=l(t).data("metro").cells;if(""==a||null==a)a=l(t).data("metro").vcells;l(t).css({width:Math.ceil(i*v),height:Math.ceil(a*v)})}),i="masonry",o=v}if(a.imagesLoaded(function(){}).done(function(){a.isotope({itemSelector:".premium-gallery-item",percentPosition:!0,animationOptions:{duration:750,easing:"linear"},filter:e.active_cat,layoutMode:i,originLeft:p,masonry:{columnWidth:o},sortBy:e.sort_by})}),r&&(a.parent().find(".premium-gallery-load-more div").addClass("premium-gallery-item-hidden"),a.find(".premium-gallery-item").length>m)){function y(e){var t=a.data("isotope");a.find(".premium-gallery-item-hidden").removeClass("premium-gallery-item-hidden"),a.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden");var i=t.filteredItems.slice(e,t.filteredItems.length).map(function(e){return e.element});l(i).addClass("premium-gallery-item-hidden"),a.isotope("layout"),0==i&&a.parent().find(".premium-gallery-load-more").addClass("premium-gallery-item-hidden")}a.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden"),a.find(".premium-gallery-item:gt("+(m-1)+")").addClass("premium-gallery-item-hidden"),a.parent().on("click",".premium-gallery-load-more-btn",function(){d?(u=m,d=!1):u=u,u+=c,l.ajax({url:y(u),beforeSend:function(){a.parent().find(".premium-gallery-load-more div").removeClass("premium-gallery-item-hidden")},success:function(){a.parent().find(".premium-gallery-load-more div").addClass("premium-gallery-item-hidden")}})})}"yes"!==e.light_box&&a.find(".premium-gallery-video-wrap").each(function(e,r){var o=l(r).data("type");l(r).closest(".premium-gallery-item").on("click",function(){var e=l(this);if(e.find(".pa-gallery-img").css("background","#000"),e.find("img, .pa-gallery-icons-caption-container, .pa-gallery-icons-wrapper, .premium-gallery-caption").css("visibility","hidden"),"hosted"!==o){var t=e.find(".premium-gallery-iframe-wrap"),i=t.data("src");i=i.replace("&mute","&autoplay=1&mute");var a=l("<iframe/>");a.attr("src",i),a.attr("frameborder","0"),a.attr("allowfullscreen","1"),a.attr("allow","autoplay;encrypted-media;"),t.html(a),a.css("visibility","visible")}else{var n=l(r).find("video");n.get(0).play(),n.css("visibility","visible")}})}),t.find(".premium-gallery-cats-container li a").click(function(e){return e.preventDefault(),d=!0,t.find(".premium-gallery-cats-container li .active").removeClass("active"),l(this).addClass("active"),s=l(this).attr("data-filter"),a.isotope({filter:s}),f&&a.isotope("shuffle"),r&&y(m),!1}),"default"===e.lightbox_type&&t.find(".premium-img-gallery a[data-rel^='prettyPhoto']").prettyPhoto({theme:e.theme,hook:"data-rel",opacity:.7,show_title:!1,deeplinking:!1,overlay_gallery:e.overlay,custom_markup:"",default_width:900,default_height:506,social_tools:""})}function r(e,a){var n=e.find(".premium-counter");elementorFrontend.waypoint(n,function(){var e=n.data(),t=n.find(".premium-counter-init"),i=n.find(".icon");a(t).numerator(e),a(i).addClass("animated "+i.data("animation"))})}function o(e,t){var n=e.find(".premium-fancy-text-wrapper"),r=n.data("settings");if("typing"===r.effect){var i=[];r.strings.forEach(function(e){i.push(e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"))}),n.find(".premium-fancy-text").typed({strings:i,typeSpeed:r.typeSpeed,backSpeed:r.backSpeed,startDelay:r.startDelay,backDelay:r.backDelay,showCursor:r.showCursor,cursorChar:r.cursorChar,loop:r.loop})}else if("slide"===r.effect)n.find(".premium-fancy-text").vTicker({speed:r.speed,showItems:r.showItems,pause:r.pause,mousePause:r.mousePause,direction:"up"});else{!function(){var e=r.effect,t=n.find(".premium-fancy-list-items"),i=0,a=1e3*(r.delay||2.5);"bar"===e&&n.find(".premium-fancy-text-items-wrapper").addClass("active");setInterval(function(){"bar"===e&&n.find(".premium-fancy-text-items-wrapper").addClass("active"),t.eq(i).addClass("premium-fancy-item-visible").removeClass("premium-fancy-item-hidden"),t.filter(function(e){return e!==i}).addClass("premium-fancy-item-hidden").removeClass("premium-fancy-item-visible"),i++,t.length===i&&(i=0),"bar"===e&&setTimeout(function(){n.find(".premium-fancy-text-items-wrapper").removeClass("active")},a-100)},a)}()}}function l(e,r){e.find(".premium-countdown").each(function(){var e=r(this).data("settings"),t=e.label1,i=e.label2,a=t.split(","),n=i.split(",");"onExpiry"===e.event?r(this).find(".premium-countdown-init").pre_countdown({labels:n,labels1:a,until:new Date(e.until),format:e.format,padZeroes:!0,timeSeparator:e.separator,onExpiry:function(){r(this).html(e.text)},serverSync:function(){return new Date(e.serverSync)}}):"expiryUrl"===e.event&&r(this).find(".premium-countdown-init").pre_countdown({labels:n,labels1:a,until:new Date(e.until),format:e.format,padZeroes:!0,timeSeparator:e.separator,expiryUrl:e.text,serverSync:function(){return new Date(e.serverSync)}}),times=r(this).find(".premium-countdown-init").pre_countdown("getTimes"),times.every(function(e){return 0==e})&&("onExpiry"===e.event&&r(this).find(".premium-countdown-init").html(e.text),"expiryUrl"===e.event&&(0<r("body").find("#elementor").length?r(this).find(".premium-countdown-init").html("<h1>You can not redirect url from elementor Editor!!</h1>"):window.location.href=e.text))})}function s(e,c){var u=e.find(".premium-carousel-wrapper"),p=c(u).data("settings");if(elementorFrontend.isEditMode()&&u.find(".item-wrapper").each(function(e,i){var t=c(i).data("template");void 0!==t&&c.ajax({type:"GET",url:PremiumSettings.ajaxurl,dataType:"html",data:{action:"get_elementor_template_content",templateID:t}}).success(function(e){var t=JSON.parse(e).data;void 0!==t.template_content&&(c(i).html(t.template_content),u.find(".premium-carousel-inner").slick("refresh"))})}),u.on("init",function(e){e.preventDefault(),c(this).find("item-wrapper.slick-active").each(function(){var e=c(this);e.addClass(e.data("animation"))}),c(".slick-track").addClass("translate")}),u.find(".premium-carousel-inner").slick({vertical:p.vertical,slidesToScroll:p.slidesToScroll,slidesToShow:p.slidesToShow,responsive:[{breakpoint:p.tabletBreak,settings:{slidesToShow:p.slidesTab,slidesToScroll:p.slidesTab}},{breakpoint:p.mobileBreak,settings:{slidesToShow:p.slidesMob,slidesToScroll:p.slidesMob}}],useTransform:!0,fade:p.fade,infinite:p.infinite,speed:p.speed,autoplay:p.autoplay,autoplaySpeed:p.autoplaySpeed,draggable:p.draggable,touchMove:p.touchMove,rtl:p.rtl,adaptiveHeight:p.adaptiveHeight,pauseOnHover:p.pauseOnHover,centerMode:p.centerMode,centerPadding:p.centerPadding,arrows:p.arrows,nextArrow:p.nextArrow,prevArrow:p.prevArrow,dots:p.dots,customPaging:function(){return'<i class="'+p.customPaging+'"></i>'}}),u.on("afterChange",function(e,t,i){var a,n,r=t.options.slidesToScroll,o=(a=t.options.slidesToShow,(n=c(window).width())>p.tabletBreak&&(a=p.slidesDesk),n<=p.tabletBreak&&(a=p.slidesTab),n<=p.mobileBreak&&(a=p.slidesMob),a),l=t.options.centerMode,s=i+o-1;if(u.find(".premium-carousel-template").find(".animated").each(function(e,t){var i=c(t).data("settings");if(i&&(i._animation||i.animation)){var a=i._animation||i.animation;c(t).removeClass("animated "+a).addClass("elementor-invisible")}}),u.find(".slick-active .elementor-invisible").each(function(e,t){var i=c(t).data("settings");if(i&&(i._animation||i.animation)){var a=i._animation_delay?i._animation_delay:0,n=i._animation||i.animation;setTimeout(function(){c(t).removeClass("elementor-invisible").addClass(n+" animated")},a)}}),1===r){if(!0==!l){var d=c(this).find("[data-slick-index='"+s+"']");"null"!=p.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(p.animation).removeClass("premium-carousel-content-hidden")}}else for(var m=r+i;0<=m;m--)d=c(this).find("[data-slick-index='"+m+"']"),"null"!=p.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(p.animation).removeClass("premium-carousel-content-hidden")}),u.on("beforeChange",function(e,t,i){var a=c(this).find("[data-slick-index='"+i+"']");"null"!=p.animation&&a.siblings().find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").removeClass(p.animation).addClass("premium-carousel-content-hidden")}),p.vertical){var t=-1;elementorFrontend.elements.$window.on("load",function(){u.find(".slick-slide").each(function(){c(this).height()>t&&(t=c(this).height())}),u.find(".slick-slide").each(function(){c(this).height()<t&&c(this).css("margin",Math.ceil((t-c(this).height())/2)+"px 0")})})}var i={element:c("a.ver-carousel-arrow"),getWidth:function(){return this.element.outerWidth()/2},setWidth:function(e){"vertical"==(e=e||"vertical")?this.element.css("margin-left","-"+this.getWidth()+"px"):this.element.css("margin-top","-"+this.getWidth()+"px")}};i.setWidth(),i.element=c("a.carousel-arrow"),i.setWidth("horizontal")}function d(e,t){var i=e.find(".premium-banner"),a=i.find("img");if(i.data("box-tilt")){var n=i.data("box-tilt-reverse");UniversalTilt.init({elements:i,settings:{reverse:n},callbacks:{onMouseLeave:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0)"},onDeviceMove:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0.3)"}}})}i.find(".premium-banner-ib").hover(function(){a.addClass("active")},function(){a.removeClass("active")})}function m(e,t){var i=e.find(".premium-modal-box-container"),a=i.data("settings");0<i.length&&"pageload"===a.trigger&&t(document).ready(function(e){setTimeout(function(){i.find(".premium-modal-box-modal").modal()},1e3*a.delay)})}function c(i,a){var n=i.find(".premium-blog-wrap"),e=n.find(".premium-blog-post-outer-container"),t=n.data("carousel"),r=n.data("grid"),o=n.data("layout");if(1===e.first().find(".premium-blog-meta-separator").length?e.find(".premium-blog-meta-separator").remove():e.find(".fa-user").length||e.each(function(e,t){a(t).find(".premium-blog-meta-separator").first().remove()}),i.find(".premium-blog-cats-container li a").click(function(e){e.preventDefault(),i.find(".premium-blog-cats-container li .active").removeClass("active"),a(this).addClass("active");var t=a(this).attr("data-filter");return n.isotope({filter:t,layoutMode:"even"===o?"fitRows":"masonry"}),!1}),"masonry"!==o||t||n.imagesLoaded(function(){n.isotope({itemSelector:".premium-blog-post-outer-container",percentPosition:!0,animationOptions:{duration:750,easing:"linear",queue:!1}})}),t&&r){var l=n.data("play"),s=n.data("speed"),d=n.data("fade"),m=n.data("center"),c=n.data("slides-spacing"),u=n.data("arrows"),p=n.data("dots"),f=n.data("col"),h=n.data("col-tablet"),g=n.data("col-mobile"),v=null,y=null;u?(v='<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',y='<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>'):v="",console.log(c),a(n).slick({infinite:!0,slidesToShow:f,slidesToScroll:f,responsive:[{breakpoint:1025,settings:{slidesToShow:h,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:g,slidesToScroll:1}}],autoplay:l,autoplaySpeed:s,nextArrow:y,prevArrow:v,fade:d,centerMode:m,centerPadding:c+"px",draggable:!0,dots:p,customPaging:function(){return'<i class="fas fa-circle"></i>'}})}}function u(e,t){var i=e.find(".premium-image-scroll-container"),a=i.find(".premium-image-scroll-overlay"),n=i.find(".premium-image-scroll-vertical"),r=i.data("settings"),o=i.find("img"),l=r.direction,s=r.reverse,d=null;function m(){o.css("transform",("vertical"===l?"translateY":"translateX")+"( -"+d+"px)")}function c(){o.css("transform",("vertical"===l?"translateY":"translateX")+"(0px)")}function u(){d="vertical"===l?o.height()-i.height():o.width()-i.width()}"scroll"===r.trigger?(i.addClass("premium-container-scroll"),"vertical"===l?n.addClass("premium-image-scroll-ver"):i.imagesLoaded(function(){a.css({width:o.width(),height:o.height()})})):("yes"===s&&i.imagesLoaded(function(){i.addClass("premium-container-scroll-instant"),u(),m()}),"vertical"===l&&n.removeClass("premium-image-scroll-ver"),i.mouseenter(function(){i.removeClass("premium-container-scroll-instant"),u(),("yes"===s?c:m)()}),i.mouseleave(function(){("yes"===s?m:c)()}))}function p(e,t){var i=e.find(".premium-cf7-container").find('input[type="text"], input[type="email"], textarea, input[type="password"], input[type="date"], input[type="number"], input[type="tel"], input[type="file"], input[type="url"]');i.wrap("<span class='wpcf7-span'>"),i.on("focus blur",function(){console.log(i),t(this).closest(".wpcf7-span").toggleClass("is-focused")})}function f(e,i){var t=e.find(".multiple-persons");if(t.length){if(t.data("carousel")){var a=t.data("play"),n=t.data("speed"),r=t.data("rtl"),o=t.data("col");t.slick({infinite:!0,slidesToShow:o,slidesToScroll:o,responsive:[{breakpoint:769,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1}}],autoplay:a,autoplaySpeed:n,rtl:r,nextArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>',prevArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',draggable:!0,pauseOnHover:!0})}if(!t.hasClass("premium-person-style1")&&"yes"===t.data("persons-equal")){var l=new Array;t.find(".premium-person-container").each(function(e,t){i(t).imagesLoaded(function(){}).done(function(){var e=i(t).find(".premium-person-image-container").outerHeight();l.push(e)})}),t.imagesLoaded(function(){}).done(function(){var e=Math.max.apply(null,l);t.find(".premium-person-image-wrap").css("height",e+"px")})}}}e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-video-box.default",a),elementorFrontend.hooks.addAction("frontend/element_ready/premium-img-gallery.default",n),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-fancy-text.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/premium-counter.default",r),elementorFrontend.hooks.addAction("frontend/element_ready/premium-countdown-timer.default",l),elementorFrontend.hooks.addAction("frontend/element_ready/premium-carousel-widget.default",s),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-banner.default",d),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-modal-box.default",m),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-blog.default",c),elementorFrontend.hooks.addAction("frontend/element_ready/premium-image-scroll.default",u),elementorFrontend.hooks.addAction("frontend/element_ready/premium-contact-form.default",p),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-person.default",f),elementorFrontend.isEditMode()?elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",i):elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",t)})}(jQuery);
1
+ !function(e){function i(e,t){var i=e.find(".premium-progressbar-container"),a=i.data("settings"),n=a.progress_length,r=a.speed;if("line"===a.type){var o=i.find(".premium-progressbar-bar");a.gradient&&o.css("background","linear-gradient(-45deg, "+a.gradient+")"),o.animate({width:n+"%"},r)}else 100<n&&(n=100),i.prop({counter:0}).animate({counter:n},{duration:r,easing:"linear",step:function(e){var t=3.6*e;i.find(".premium-progressbar-right-label span").text(Math.ceil(e)+"%"),i.find(".premium-progressbar-circle-left").css("transform","rotate("+t+"deg)"),180<t&&(i.find(".premium-progressbar-circle").css({"-webkit-clip-path":"inset(0)","clip-path":"inset(0)"}),i.find(".premium-progressbar-circle-right").css("visibility","visible"))}})}function t(e,t){elementorFrontend.waypoint(e,function(){i(t(this))},{offset:Waypoint.viewportHeight()-150,triggerOnce:!0})}function a(e,t){var i,a,n=e.find(".premium-video-box-container"),r=n.find(".premium-video-box-video-container"),o=n.data("type");function l(){if(!n.hasClass("playing")){if(n.addClass("playing"),"self"===o)t(i).get(0).play(),r.css({opacity:"1",visibility:"visible"});else{var e=t("<iframe/>");checkRel=a.indexOf("rel=0"),e.attr("src",a),e.attr("frameborder","0"),e.attr("allowfullscreen","1"),e.attr("allow","autoplay;encrypted-media;"),r.css("background","#000"),r.html(e)}n.find(".premium-video-box-image-container, .premium-video-box-play-icon-container, .premium-video-box-description-container").remove(),"vimeo"===o&&n.find(".premium-video-box-vimeo-wrap").remove()}}"self"===o?(i=r.find("video"),a=i.attr("src")):-1!==(a=r.data("src")).indexOf("autoplay=1")?l():a+="&autoplay=1",n.on("click",function(){l()})}function n(t,l){var a=t.find(".premium-gallery-container"),e=a.data("settings"),i=e.img_size,n=elementorFrontend.getCurrentDeviceMode(),r=e.load_more,o=null,s=null,d=!1,m=e.minimum,c=e.click_images,u=m,p=e.ltr_mode,f=e.shuffle;if("metro"===i){var h="";"tablet"===n?h="_tablet":"mobile"===n&&(h="_mobile");var g=a.width(),v=Math.floor(g/12);a.find(".premium-gallery-item").each(function(e,t){var i=l(t).data("metro")["cells"+h],a=l(t).data("metro")["vcells"+h];if(""==i||null==i)i=l(t).data("metro").cells;if(""==a||null==a)a=l(t).data("metro").vcells;l(t).css({width:Math.ceil(i*v),height:Math.ceil(a*v)})}),i="masonry",o=v}if(a.imagesLoaded(function(){}).done(function(){a.isotope({itemSelector:".premium-gallery-item",percentPosition:!0,animationOptions:{duration:750,easing:"linear"},filter:e.active_cat,layoutMode:i,originLeft:p,masonry:{columnWidth:o},sortBy:e.sort_by})}),r&&(a.parent().find(".premium-gallery-load-more div").addClass("premium-gallery-item-hidden"),a.find(".premium-gallery-item").length>m)){function y(e){var t=a.data("isotope");a.find(".premium-gallery-item-hidden").removeClass("premium-gallery-item-hidden"),a.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden");var i=t.filteredItems.slice(e,t.filteredItems.length).map(function(e){return e.element});l(i).addClass("premium-gallery-item-hidden"),a.isotope("layout"),0==i&&a.parent().find(".premium-gallery-load-more").addClass("premium-gallery-item-hidden")}a.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden"),a.find(".premium-gallery-item:gt("+(m-1)+")").addClass("premium-gallery-item-hidden"),a.parent().on("click",".premium-gallery-load-more-btn",function(){d?(u=m,d=!1):u=u,u+=c,l.ajax({url:y(u),beforeSend:function(){a.parent().find(".premium-gallery-load-more div").removeClass("premium-gallery-item-hidden")},success:function(){a.parent().find(".premium-gallery-load-more div").addClass("premium-gallery-item-hidden")}})})}"yes"!==e.light_box&&a.find(".premium-gallery-video-wrap").each(function(e,r){var o=l(r).data("type");l(r).closest(".premium-gallery-item").on("click",function(){var e=l(this);if(e.find(".pa-gallery-img").css("background","#000"),e.find("img, .pa-gallery-icons-caption-container, .pa-gallery-icons-wrapper, .premium-gallery-caption").css("visibility","hidden"),"hosted"!==o){var t=e.find(".premium-gallery-iframe-wrap"),i=t.data("src");i=i.replace("&mute","&autoplay=1&mute");var a=l("<iframe/>");a.attr("src",i),a.attr("frameborder","0"),a.attr("allowfullscreen","1"),a.attr("allow","autoplay;encrypted-media;"),t.html(a),a.css("visibility","visible")}else{var n=l(r).find("video");n.get(0).play(),n.css("visibility","visible")}})}),t.find(".premium-gallery-cats-container li a").click(function(e){return e.preventDefault(),d=!0,t.find(".premium-gallery-cats-container li .active").removeClass("active"),l(this).addClass("active"),s=l(this).attr("data-filter"),a.isotope({filter:s}),f&&a.isotope("shuffle"),r&&y(m),!1}),"default"===e.lightbox_type&&t.find(".premium-img-gallery a[data-rel^='prettyPhoto']").prettyPhoto({theme:e.theme,hook:"data-rel",opacity:.7,show_title:!1,deeplinking:!1,overlay_gallery:e.overlay,custom_markup:"",default_width:900,default_height:506,social_tools:""})}function r(e,a){var n=e.find(".premium-counter");elementorFrontend.waypoint(n,function(){var e=n.data(),t=n.find(".premium-counter-init"),i=n.find(".icon");a(t).numerator(e),a(i).addClass("animated "+i.data("animation"))})}function o(e,t){var n=e.find(".premium-fancy-text-wrapper"),r=n.data("settings");if("typing"===r.effect){var i=[];r.strings.forEach(function(e){i.push(e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"))}),n.find(".premium-fancy-text").typed({strings:i,typeSpeed:r.typeSpeed,backSpeed:r.backSpeed,startDelay:r.startDelay,backDelay:r.backDelay,showCursor:r.showCursor,cursorChar:r.cursorChar,loop:r.loop})}else if("slide"===r.effect)n.find(".premium-fancy-text").vTicker({speed:r.speed,showItems:r.showItems,pause:r.pause,mousePause:r.mousePause,direction:"up"});else{!function(){var e=r.effect,t=n.find(".premium-fancy-list-items"),i=0,a=1e3*(r.delay||2.5);"bar"===e&&n.find(".premium-fancy-text-items-wrapper").addClass("active");setInterval(function(){"bar"===e&&n.find(".premium-fancy-text-items-wrapper").addClass("active"),t.eq(i).addClass("premium-fancy-item-visible").removeClass("premium-fancy-item-hidden"),t.filter(function(e){return e!==i}).addClass("premium-fancy-item-hidden").removeClass("premium-fancy-item-visible"),i++,t.length===i&&(i=0),"bar"===e&&setTimeout(function(){n.find(".premium-fancy-text-items-wrapper").removeClass("active")},a-100)},a)}()}}function l(e,r){e.find(".premium-countdown").each(function(){var e=r(this).data("settings"),t=e.label1,i=e.label2,a=t.split(","),n=i.split(",");"onExpiry"===e.event?r(this).find(".premium-countdown-init").pre_countdown({labels:n,labels1:a,until:new Date(e.until),format:e.format,padZeroes:!0,timeSeparator:e.separator,onExpiry:function(){r(this).html(e.text)},serverSync:function(){return new Date(e.serverSync)}}):"expiryUrl"===e.event&&r(this).find(".premium-countdown-init").pre_countdown({labels:n,labels1:a,until:new Date(e.until),format:e.format,padZeroes:!0,timeSeparator:e.separator,expiryUrl:e.text,serverSync:function(){return new Date(e.serverSync)}}),times=r(this).find(".premium-countdown-init").pre_countdown("getTimes"),times.every(function(e){return 0==e})&&("onExpiry"===e.event&&r(this).find(".premium-countdown-init").html(e.text),"expiryUrl"===e.event&&(0<r("body").find("#elementor").length?r(this).find(".premium-countdown-init").html("<h1>You can not redirect url from elementor Editor!!</h1>"):window.location.href=e.text))})}function s(e,c){var u=e.find(".premium-carousel-wrapper"),p=c(u).data("settings");if(elementorFrontend.isEditMode()&&u.find(".item-wrapper").each(function(e,i){var t=c(i).data("template");void 0!==t&&c.ajax({type:"GET",url:PremiumSettings.ajaxurl,dataType:"html",data:{action:"get_elementor_template_content",templateID:t}}).success(function(e){var t=JSON.parse(e).data;void 0!==t.template_content&&(c(i).html(t.template_content),u.find(".premium-carousel-inner").slick("refresh"))})}),u.on("init",function(e){e.preventDefault(),c(this).find("item-wrapper.slick-active").each(function(){var e=c(this);e.addClass(e.data("animation"))}),c(".slick-track").addClass("translate")}),u.find(".premium-carousel-inner").slick({vertical:p.vertical,slidesToScroll:p.slidesToScroll,slidesToShow:p.slidesToShow,responsive:[{breakpoint:p.tabletBreak,settings:{slidesToShow:p.slidesTab,slidesToScroll:p.slidesTab}},{breakpoint:p.mobileBreak,settings:{slidesToShow:p.slidesMob,slidesToScroll:p.slidesMob}}],useTransform:!0,fade:p.fade,infinite:p.infinite,speed:p.speed,autoplay:p.autoplay,autoplaySpeed:p.autoplaySpeed,draggable:p.draggable,touchMove:p.touchMove,rtl:p.rtl,adaptiveHeight:p.adaptiveHeight,pauseOnHover:p.pauseOnHover,centerMode:p.centerMode,centerPadding:p.centerPadding,arrows:p.arrows,nextArrow:p.nextArrow,prevArrow:p.prevArrow,dots:p.dots,customPaging:function(){return'<i class="'+p.customPaging+'"></i>'}}),u.on("afterChange",function(e,t,i){var a,n,r=t.options.slidesToScroll,o=(a=t.options.slidesToShow,(n=c(window).width())>p.tabletBreak&&(a=p.slidesDesk),n<=p.tabletBreak&&(a=p.slidesTab),n<=p.mobileBreak&&(a=p.slidesMob),a),l=t.options.centerMode,s=i+o-1;if(u.find(".premium-carousel-template").find(".animated").each(function(e,t){var i=c(t).data("settings");if(i&&(i._animation||i.animation)){var a=i._animation||i.animation;c(t).removeClass("animated "+a).addClass("elementor-invisible")}}),u.find(".slick-active .elementor-invisible").each(function(e,t){var i=c(t).data("settings");if(i&&(i._animation||i.animation)){var a=i._animation_delay?i._animation_delay:0,n=i._animation||i.animation;setTimeout(function(){c(t).removeClass("elementor-invisible").addClass(n+" animated")},a)}}),1===r){if(!0==!l){var d=c(this).find("[data-slick-index='"+s+"']");"null"!=p.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(p.animation).removeClass("premium-carousel-content-hidden")}}else for(var m=r+i;0<=m;m--)d=c(this).find("[data-slick-index='"+m+"']"),"null"!=p.animation&&d.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(p.animation).removeClass("premium-carousel-content-hidden")}),u.on("beforeChange",function(e,t,i){var a=c(this).find("[data-slick-index='"+i+"']");"null"!=p.animation&&a.siblings().find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").removeClass(p.animation).addClass("premium-carousel-content-hidden")}),p.vertical){var t=-1;elementorFrontend.elements.$window.on("load",function(){u.find(".slick-slide").each(function(){c(this).height()>t&&(t=c(this).height())}),u.find(".slick-slide").each(function(){c(this).height()<t&&c(this).css("margin",Math.ceil((t-c(this).height())/2)+"px 0")})})}var i={element:c("a.ver-carousel-arrow"),getWidth:function(){return this.element.outerWidth()/2},setWidth:function(e){"vertical"==(e=e||"vertical")?this.element.css("margin-left","-"+this.getWidth()+"px"):this.element.css("margin-top","-"+this.getWidth()+"px")}};i.setWidth(),i.element=c("a.carousel-arrow"),i.setWidth("horizontal")}function d(e,t){var i=e.find(".premium-banner"),a=i.find("img");if(i.data("box-tilt")){var n=i.data("box-tilt-reverse");UniversalTilt.init({elements:i,settings:{reverse:n},callbacks:{onMouseLeave:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0)"},onDeviceMove:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0.3)"}}})}i.find(".premium-banner-ib").hover(function(){a.addClass("active")},function(){a.removeClass("active")})}function m(e,t){var i=e.find(".premium-modal-box-container"),a=i.data("settings");0<i.length&&"pageload"===a.trigger&&t(document).ready(function(e){setTimeout(function(){i.find(".premium-modal-box-modal").modal()},1e3*a.delay)})}function c(i,a){var n=i.find(".premium-blog-wrap"),e=n.find(".premium-blog-post-outer-container"),t=n.data("carousel"),r=n.data("grid"),o=n.data("layout");if(1===e.first().find(".premium-blog-meta-separator").length?e.find(".premium-blog-meta-separator").remove():e.find(".fa-user").length||e.each(function(e,t){a(t).find(".premium-blog-meta-separator").first().remove()}),i.find(".premium-blog-cats-container li a").click(function(e){e.preventDefault(),i.find(".premium-blog-cats-container li .active").removeClass("active"),a(this).addClass("active");var t=a(this).attr("data-filter");return n.isotope({filter:t,layoutMode:"even"===o?"fitRows":"masonry"}),!1}),"masonry"!==o||t||n.imagesLoaded(function(){n.isotope({itemSelector:".premium-blog-post-outer-container",percentPosition:!0,animationOptions:{duration:750,easing:"linear",queue:!1}})}),t&&r){var l=n.data("play"),s=n.data("speed"),d=n.data("fade"),m=n.data("center"),c=n.data("slides-spacing"),u=n.data("arrows"),p=n.data("dots"),f=n.data("col"),h=n.data("col-tablet"),g=n.data("col-mobile"),v=null,y=null;u?(v='<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',y='<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>'):v="",console.log(c),a(n).slick({infinite:!0,slidesToShow:f,slidesToScroll:f,responsive:[{breakpoint:1025,settings:{slidesToShow:h,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:g,slidesToScroll:1}}],autoplay:l,autoplaySpeed:s,nextArrow:y,prevArrow:v,fade:d,centerMode:m,centerPadding:c+"px",draggable:!0,dots:p,customPaging:function(){return'<i class="fas fa-circle"></i>'}})}}function u(e,t){var i=e.find(".premium-image-scroll-container"),a=i.find(".premium-image-scroll-overlay"),n=i.find(".premium-image-scroll-vertical"),r=i.data("settings"),o=i.find("img"),l=r.direction,s=r.reverse,d=null;function m(){o.css("transform",("vertical"===l?"translateY":"translateX")+"( -"+d+"px)")}function c(){o.css("transform",("vertical"===l?"translateY":"translateX")+"(0px)")}function u(){d="vertical"===l?o.height()-i.height():o.width()-i.width()}"scroll"===r.trigger?(i.addClass("premium-container-scroll"),"vertical"===l?n.addClass("premium-image-scroll-ver"):i.imagesLoaded(function(){a.css({width:o.width(),height:o.height()})})):("yes"===s&&i.imagesLoaded(function(){i.addClass("premium-container-scroll-instant"),u(),m()}),"vertical"===l&&n.removeClass("premium-image-scroll-ver"),i.mouseenter(function(){i.removeClass("premium-container-scroll-instant"),u(),("yes"===s?c:m)()}),i.mouseleave(function(){("yes"===s?m:c)()}))}function p(e,t){var i=e.find(".premium-cf7-container").find('input[type="text"], input[type="email"], textarea, input[type="password"], input[type="date"], input[type="number"], input[type="tel"], input[type="file"], input[type="url"]');i.wrap("<span class='wpcf7-span'>"),i.on("focus blur",function(){console.log(i),t(this).closest(".wpcf7-span").toggleClass("is-focused")})}function f(e,i){var t=e.find(".multiple-persons");if(t.length){if(t.data("carousel")){var a=t.data("play"),n=t.data("speed"),r=t.data("rtl"),o=t.data("col");t.slick({infinite:!0,slidesToShow:o,slidesToScroll:o,responsive:[{breakpoint:769,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:481,settings:{slidesToShow:1,slidesToScroll:1}}],autoplay:a,autoplaySpeed:n,rtl:r,nextArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>',prevArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',draggable:!0,pauseOnHover:!0})}if(!t.hasClass("premium-person-style1")&&"yes"===t.data("persons-equal")){var l=new Array;t.find(".premium-person-container").each(function(e,t){i(t).imagesLoaded(function(){}).done(function(){var e=i(t).find(".premium-person-image-container").outerHeight();l.push(e)})}),t.imagesLoaded(function(){}).done(function(){var e=Math.max.apply(null,l);t.find(".premium-person-image-wrap").css("height",e+"px")})}}}e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-video-box.default",a),elementorFrontend.hooks.addAction("frontend/element_ready/premium-img-gallery.default",n),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-fancy-text.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/premium-counter.default",r),elementorFrontend.hooks.addAction("frontend/element_ready/premium-countdown-timer.default",l),elementorFrontend.hooks.addAction("frontend/element_ready/premium-carousel-widget.default",s),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-banner.default",d),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-modal-box.default",m),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-blog.default",c),elementorFrontend.hooks.addAction("frontend/element_ready/premium-image-scroll.default",u),elementorFrontend.hooks.addAction("frontend/element_ready/premium-contact-form.default",p),elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-person.default",f),elementorFrontend.isEditMode()?elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",i):elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",t)})}(jQuery);
assets/frontend/min-js/premium-maps.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-maps.default",function(e,t){var o,a,n,r,p,s,m,i,l,d,c,u,g,f,h,v=e.find(".premium_maps_map_height"),w=v.data("settings"),O=v.data("style"),S=[];if(premiumMap=(o=v,a=w,n=O,r=JSON.parse(a.scrollwheel),p=JSON.parse(a.streetViewControl),s=JSON.parse(a.fullScreen),m=JSON.parse(a.zoomControl),i=JSON.parse(a.typeControl),l=JSON.parse(a.centerlat),d=JSON.parse(a.centerlong),c=JSON.parse(a.automaticOpen),u=JSON.parse(a.hoverOpen),g=JSON.parse(a.hoverClose),f={zoom:a.zoom,mapTypeId:a.maptype,center:{lat:l,lng:d},scrollwheel:r,streetViewControl:p,fullscreenControl:s,zoomControl:m,mapTypeControl:i,styles:n},h=o.find(".premium-pin"),(o=new google.maps.Map(o[0],f)).markers=[],h.each(function(){!function(e,t,o,a,n){var r=new google.maps.LatLng(e.attr("data-lat"),e.attr("data-lng")),p=e.attr("data-icon"),s=e.attr("data-max-width");if(""!=p)var m={url:e.attr("data-icon")};var i=new google.maps.Marker({position:r,map:t,icon:m});if(t.markers.push(i),S.push(i),e.find(".premium-maps-info-title").html()||e.find(".premium-maps-info-desc").html()){var l=new google.maps.InfoWindow({maxWidth:s,content:e.html()});o&&l.open(t,i),a&&(google.maps.event.addListener(i,"mouseover",function(){l.open(t,i)}),n&&google.maps.event.addListener(i,"mouseout",function(){l.close(t,i)})),google.maps.event.addListener(i,"click",function(){l.open(t,i)})}}(jQuery(this),o,c,u,g)}),o),JSON.parse(w.cluster))new MarkerClusterer(premiumMap,S,{imagePath:"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m"})})});
1
+ jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-maps.default",function(e,o){var t,a,n,r,s,i,p,m,l,d,c,g,u,f,h,w=e.find(".premium_maps_map_height"),S=w.data("settings"),v=w.data("style"),O=[];if(premiumMap=(t=w,a=S,n=v,r=JSON.parse(a.scrollwheel),s=JSON.parse(a.streetViewControl),i=JSON.parse(a.fullScreen),p=JSON.parse(a.zoomControl),m=JSON.parse(a.typeControl),l=JSON.parse(a.centerlat),d=JSON.parse(a.centerlong),c=JSON.parse(a.automaticOpen),g=JSON.parse(a.hoverOpen),u=JSON.parse(a.hoverClose),f={zoom:a.zoom,mapTypeId:a.maptype,center:{lat:l,lng:d},scrollwheel:r,streetViewControl:s,fullscreenControl:i,zoomControl:p,mapTypeControl:m,styles:n},h=t.find(".premium-pin"),(t=new google.maps.Map(t[0],f)).markers=[],h.each(function(){!function(e,o,t,a,n){var r=new google.maps.LatLng(e.attr("data-lat"),e.attr("data-lng")),s=e.attr("data-icon"),i=e.attr("data-max-width"),p=e.attr("data-icon-size");if(""!=s){var m={url:e.attr("data-icon")};p&&(m.scaledSize=new google.maps.Size(p,p),m.origin=new google.maps.Point(0,0),m.anchor=new google.maps.Point(p/2,p))}var l=new google.maps.Marker({position:r,map:o,icon:m});if(o.markers.push(l),O.push(l),e.find(".premium-maps-info-title").html()||e.find(".premium-maps-info-desc").html()){var d=new google.maps.InfoWindow({maxWidth:i,content:e.html()});t&&d.open(o,l),a&&(google.maps.event.addListener(l,"mouseover",function(){d.open(o,l)}),n&&google.maps.event.addListener(l,"mouseout",function(){d.close(o,l)})),google.maps.event.addListener(l,"click",function(){d.open(o,l)})}}(jQuery(this),t,c,g,u)}),t),JSON.parse(S.cluster))new MarkerClusterer(premiumMap,O,{imagePath:"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m"})})});
premium-addons-for-elementor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
- Version: 3.12.2
7
  Author: Leap13
8
  Author URI: https://leap13.com/
9
  Text Domain: premium-addons-for-elementor
@@ -14,12 +14,12 @@ License: GNU General Public License v3.0
14
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
15
 
16
  // Define Constants
17
- define('PREMIUM_ADDONS_VERSION', '3.12.2');
18
  define('PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
19
  define('PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
20
  define('PREMIUM_ADDONS_FILE', __FILE__);
21
  define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
22
- define('PREMIUM_ADDONS_STABLE_VERSION', '3.12.1');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
3
  Plugin Name: Premium Addons for Elementor
4
  Description: Premium Addons Plugin Includes 22+ premium widgets for Elementor Page Builder.
5
  Plugin URI: https://premiumaddons.com
6
+ Version: 3.12.3
7
  Author: Leap13
8
  Author URI: https://leap13.com/
9
  Text Domain: premium-addons-for-elementor
14
  if ( ! defined('ABSPATH') ) exit; // No access of directly access
15
 
16
  // Define Constants
17
+ define('PREMIUM_ADDONS_VERSION', '3.12.3');
18
  define('PREMIUM_ADDONS_URL', plugins_url( '/', __FILE__ ) );
19
  define('PREMIUM_ADDONS_PATH', plugin_dir_path( __FILE__ ) );
20
  define('PREMIUM_ADDONS_FILE', __FILE__);
21
  define('PREMIUM_ADDONS_BASENAME', plugin_basename( PREMIUM_ADDONS_FILE ) );
22
+ define('PREMIUM_ADDONS_STABLE_VERSION', '3.12.2');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: Leap13, Rimoun
3
  Tags: Elementor, Elementor Page Builder, Elements, Elementor Addons, Add-ons, Page Builder, Widgets, Elementor Widgets
4
  Donate Link: https://premiumaddons.com/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme
5
  Requires at Least: 4.5
6
- Tested Up To: 5.4
7
  Requires PHP: 5.4
8
- Stable Tag: 3.12.2
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -175,6 +175,15 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
175
 
176
  == Changelog ==
177
 
 
 
 
 
 
 
 
 
 
178
  = 3.12.2 =
179
 
180
  - Tweak: Render Image Alt attribute on Elementor Lightbox in Media Grid widget.
3
  Tags: Elementor, Elementor Page Builder, Elements, Elementor Addons, Add-ons, Page Builder, Widgets, Elementor Widgets
4
  Donate Link: https://premiumaddons.com/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme
5
  Requires at Least: 4.5
6
+ Tested Up To: 5.4.1
7
  Requires PHP: 5.4
8
+ Stable Tag: 3.12.3
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
175
 
176
  == Changelog ==
177
 
178
+ = 3.12.3 =
179
+
180
+ - Tweak: Added `Size` option for Markers in Google Maps widget.
181
+ - Tweak: Posts comments number compatibility with Disqus plugin.
182
+ - Fixed: Progress Bar widget value applied on all bars on the page.
183
+ - Fixed: Media Grid widget masonry layout issues on the editor on Chrome.
184
+ - Fixed: Blog post content duplicate issue when Full Content option is selected.
185
+ - Fixed: Blog masonry layout issues on the editor on Chrome.
186
+
187
  = 3.12.2 =
188
 
189
  - Tweak: Render Image Alt attribute on Elementor Lightbox in Media Grid widget.
widgets/dep/queries.php CHANGED
@@ -59,7 +59,7 @@ function premium_blog_get_excerpt_by_id( $source, $excerpt_length, $cta_type, $r
59
  $excerpt = trim( get_the_excerpt() );
60
 
61
  if( 'full' === $source || empty( $excerpt ) ) {
62
-
63
  the_content();
64
 
65
  if( ! empty( $read_more ) && 'link' === $cta_type ) {
59
  $excerpt = trim( get_the_excerpt() );
60
 
61
  if( 'full' === $source || empty( $excerpt ) ) {
62
+ $excerpt = '';
63
  the_content();
64
 
65
  if( ! empty( $read_more ) && 'link' === $cta_type ) {
widgets/premium-blog.php CHANGED
@@ -820,7 +820,10 @@ class Premium_Blog extends Widget_Base {
820
  'label' => __( 'Slides\' Spacing', 'premium-addons-for-elementor' ),
821
  'description' => __('Set a spacing value in pixels (px)', 'premium-addons-for-elementor'),
822
  'type' => Controls_Manager::NUMBER,
823
- 'default' => '15'
 
 
 
824
  ]
825
  );
826
 
@@ -2224,32 +2227,64 @@ class Premium_Blog extends Widget_Base {
2224
  protected function get_post_meta( $link_target ) {
2225
 
2226
  $settings = $this->get_settings();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2227
 
2228
- $date_format = get_option('date_format');
2229
 
2230
  ?>
2231
 
2232
  <div class="premium-blog-entry-meta" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px'; endif; ?>">
2233
- <?php if( $settings['premium_blog_author_meta'] === 'yes' ) : ?>
 
2234
  <span class="premium-blog-post-author premium-blog-meta-data">
2235
- <i class="fa fa-user fa-fw"></i><?php the_author_posts_link();?>
2236
  </span>
2237
  <?php endif; ?>
2238
- <?php if( $settings['premium_blog_date_meta'] === 'yes' ) : ?>
 
2239
  <span class="premium-blog-meta-separator">|</span>
2240
  <span class="premium-blog-post-time premium-blog-meta-data">
2241
  <i class="fa fa-calendar fa-fw"></i>
2242
  <span><?php the_time( $date_format ); ?></span>
2243
  </span>
2244
  <?php endif; ?>
2245
- <?php if( $settings['premium_blog_categories_meta'] === 'yes' ) : ?>
 
2246
  <span class="premium-blog-meta-separator">|</span>
2247
- <span class="premium-blog-post-categories premium-blog-meta-data"><i class="fa fa-align-left fa-fw"></i><?php the_category(', '); ?></span>
 
 
 
2248
  <?php endif; ?>
2249
- <?php if( $settings['premium_blog_comments_meta'] === 'yes' ) : ?>
 
2250
  <span class="premium-blog-meta-separator">|</span>
2251
- <span class="premium-blog-post-comments premium-blog-meta-data"><i class="fa fa-comments-o fa-fw"></i>
2252
- <span><?php comments_number('No Comments', '1', '%'); ?></span>
 
 
 
2253
  </span>
2254
  <?php endif; ?>
2255
  </div>
@@ -2323,15 +2358,17 @@ class Premium_Blog extends Widget_Base {
2323
  <?php
2324
  }
2325
 
 
 
 
 
 
 
 
 
2326
  protected function render() {
2327
 
2328
- if ( get_query_var('paged') ) {
2329
- $paged = get_query_var('paged');
2330
- } elseif ( get_query_var('page') ) {
2331
- $paged = get_query_var('page');
2332
- } else {
2333
- $paged = 1;
2334
- }
2335
 
2336
  $settings = $this->get_settings();
2337
 
@@ -2389,29 +2426,23 @@ class Premium_Blog extends Widget_Base {
2389
 
2390
  $columns_mobile = intval ( 100 / substr( $settings['premium_blog_columns_number_mobile'], 0, strpos( $settings['premium_blog_columns_number_mobile'], '%') ) );
2391
 
2392
- $this->add_render_attribute('blog', 'data-carousel', $carousel );
2393
-
2394
- $this->add_render_attribute('blog', 'data-grid', $grid );
2395
-
2396
- $this->add_render_attribute('blog', 'data-fade', $fade );
2397
-
2398
- $this->add_render_attribute('blog', 'data-play', $play );
2399
-
2400
- $this->add_render_attribute('blog', 'data-center', $center_mode );
 
 
 
 
 
2401
 
2402
- $this->add_render_attribute('blog', 'data-slides-spacing', $spacing );
2403
-
2404
- $this->add_render_attribute('blog', 'data-speed', $speed );
2405
-
2406
- $this->add_render_attribute('blog', 'data-col', $columns );
2407
-
2408
- $this->add_render_attribute('blog', 'data-col-tablet', $columns_tablet );
2409
-
2410
- $this->add_render_attribute('blog', 'data-col-mobile', $columns_mobile );
2411
-
2412
- $this->add_render_attribute('blog', 'data-arrows', $arrows );
2413
-
2414
- $this->add_render_attribute('blog', 'data-dots', $dots );
2415
 
2416
  }
2417
 
@@ -2452,7 +2483,7 @@ class Premium_Blog extends Widget_Base {
2452
  array(
2453
  'base' => str_replace( $big, '%#%',get_pagenum_link( 999999999, false ) ),
2454
  'format' => '?paged=%#%',
2455
- 'current' => max( 1, $paged ),
2456
  'total' => $page_tot,
2457
  'prev_next' => 'yes' === $settings['pagination_strings'] ? true : false,
2458
  'prev_text' => sprintf( "&lsaquo; %s", $settings['premium_blog_prev_text'] ),
@@ -2465,7 +2496,60 @@ class Premium_Blog extends Widget_Base {
2465
  ?>
2466
  </div>
2467
  <?php endif;
2468
- wp_reset_postdata();
 
 
 
 
 
 
 
 
2469
  }
2470
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2471
  }
820
  'label' => __( 'Slides\' Spacing', 'premium-addons-for-elementor' ),
821
  'description' => __('Set a spacing value in pixels (px)', 'premium-addons-for-elementor'),
822
  'type' => Controls_Manager::NUMBER,
823
+ 'default' => '15',
824
+ 'condition' => [
825
+ 'premium_blog_carousel' => 'yes',
826
+ ]
827
  ]
828
  );
829
 
2227
  protected function get_post_meta( $link_target ) {
2228
 
2229
  $settings = $this->get_settings();
2230
+
2231
+ $author_meta = $settings['premium_blog_author_meta'];
2232
+
2233
+ $data_meta = $settings['premium_blog_date_meta'];
2234
+
2235
+ $categories_meta = $settings['premium_blog_categories_meta'];
2236
+
2237
+ $comments_meta = $settings['premium_blog_comments_meta'];
2238
+
2239
+ if( 'yes' === $data_meta ) {
2240
+ $date_format = get_option('date_format');
2241
+ }
2242
+
2243
+ if( 'yes' === $comments_meta ) {
2244
+
2245
+ $comments_strings = [
2246
+ 'no-comments' => __( 'No Comments', 'premium-addons-for-elementor' ),
2247
+ 'one-comment' => __( '1 Comment', 'premium-addons-for-elementor' ),
2248
+ 'multiple-comments' => __( '% Comments', 'premium-addons-for-elementor' ),
2249
+ ];
2250
+
2251
+ }
2252
+
2253
 
 
2254
 
2255
  ?>
2256
 
2257
  <div class="premium-blog-entry-meta" style="<?php if( $settings['premium_blog_post_format_icon'] !== 'yes' ) : echo 'margin-left:0px'; endif; ?>">
2258
+
2259
+ <?php if( $author_meta === 'yes' ) : ?>
2260
  <span class="premium-blog-post-author premium-blog-meta-data">
2261
+ <i class="fa fa-user fa-fw"></i><?php the_author_posts_link(); ?>
2262
  </span>
2263
  <?php endif; ?>
2264
+
2265
+ <?php if( $data_meta === 'yes' ) : ?>
2266
  <span class="premium-blog-meta-separator">|</span>
2267
  <span class="premium-blog-post-time premium-blog-meta-data">
2268
  <i class="fa fa-calendar fa-fw"></i>
2269
  <span><?php the_time( $date_format ); ?></span>
2270
  </span>
2271
  <?php endif; ?>
2272
+
2273
+ <?php if( $categories_meta === 'yes' ) : ?>
2274
  <span class="premium-blog-meta-separator">|</span>
2275
+ <span class="premium-blog-post-categories premium-blog-meta-data">
2276
+ <i class="fa fa-align-left fa-fw"></i>
2277
+ <?php the_category(', '); ?>
2278
+ </span>
2279
  <?php endif; ?>
2280
+
2281
+ <?php if( $comments_meta === 'yes' ) : ?>
2282
  <span class="premium-blog-meta-separator">|</span>
2283
+ <span class="premium-blog-post-comments premium-blog-meta-data">
2284
+ <i class="fa fa-comments-o fa-fw"></i>
2285
+ <span>
2286
+ <?php comments_popup_link( $comments_strings['no-comments'], $comments_strings['one-comment'], $comments_strings['multiple-comments'] ); ?>
2287
+ </span>
2288
  </span>
2289
  <?php endif; ?>
2290
  </div>
2358
  <?php
2359
  }
2360
 
2361
+ /**
2362
+ * Render Blog output on the frontend.
2363
+ *
2364
+ * Written in PHP and used to generate the final HTML.
2365
+ *
2366
+ * @since 0.0.1
2367
+ * @access protected
2368
+ */
2369
  protected function render() {
2370
 
2371
+ $paged = max( 1, get_query_var( 'paged' ), get_query_var( 'page' ) );
 
 
 
 
 
 
2372
 
2373
  $settings = $this->get_settings();
2374
 
2426
 
2427
  $columns_mobile = intval ( 100 / substr( $settings['premium_blog_columns_number_mobile'], 0, strpos( $settings['premium_blog_columns_number_mobile'], '%') ) );
2428
 
2429
+ $carousel_settings = [
2430
+ 'data-carousel' => $carousel,
2431
+ 'data-grid' => $grid,
2432
+ 'data-fade' => $fade,
2433
+ 'data-play' => $play,
2434
+ 'data-center' => $center_mode,
2435
+ 'data-slides-spacing' => $spacing,
2436
+ 'data-speed' => $speed,
2437
+ 'data-col' => $columns,
2438
+ 'data-col-tablet' => $columns_tablet,
2439
+ 'data-col-mobile' => $columns_mobile,
2440
+ 'data-arrows' => $arrows,
2441
+ 'data-dots' => $dots
2442
+ ];
2443
 
2444
+ $this->add_render_attribute('blog', $carousel_settings );
2445
+
 
 
 
 
 
 
 
 
 
 
 
2446
 
2447
  }
2448
 
2483
  array(
2484
  'base' => str_replace( $big, '%#%',get_pagenum_link( 999999999, false ) ),
2485
  'format' => '?paged=%#%',
2486
+ 'current' => $paged,
2487
  'total' => $page_tot,
2488
  'prev_next' => 'yes' === $settings['pagination_strings'] ? true : false,
2489
  'prev_text' => sprintf( "&lsaquo; %s", $settings['premium_blog_prev_text'] ),
2496
  ?>
2497
  </div>
2498
  <?php endif;
2499
+ wp_reset_postdata();
2500
+
2501
+ if ( \Elementor\Plugin::instance()->editor->is_edit_mode() ) {
2502
+
2503
+ if ( 'masonry' === $settings['premium_blog_layout'] && 'yes' !== $settings['premium_blog_carousel'] ) {
2504
+ $this->render_editor_script();
2505
+ }
2506
+ }
2507
+
2508
  }
2509
  }
2510
+
2511
+ /**
2512
+ * Render Editor Masonry Script.
2513
+ *
2514
+ * @since 3.12.3
2515
+ * @access protected
2516
+ */
2517
+ protected function render_editor_script() {
2518
+
2519
+ ?><script type="text/javascript">
2520
+ jQuery( document ).ready( function( $ ) {
2521
+
2522
+ $( '.premium-blog-wrap' ).each( function() {
2523
+
2524
+ var $node_id = '<?php echo $this->get_id(); ?>',
2525
+ scope = $( '[data-id="' + $node_id + '"]' ),
2526
+ selector = $(this);
2527
+
2528
+ if ( selector.closest( scope ).length < 1 ) {
2529
+ return;
2530
+ }
2531
+
2532
+ var masonryArgs = {
2533
+ itemSelector : '.premium-blog-post-outer-container',
2534
+ percentPosition : true,
2535
+ layoutMode : 'masonry',
2536
+ };
2537
+
2538
+ var $isotopeObj = {};
2539
+
2540
+ selector.imagesLoaded( function() {
2541
+
2542
+ $isotopeObj = selector.isotope( masonryArgs );
2543
+
2544
+ selector.find('.premium-blog-post-outer-container').resize( function() {
2545
+ $isotopeObj.isotope( 'layout' );
2546
+ });
2547
+ });
2548
+
2549
+ });
2550
+ });
2551
+ </script>
2552
+ <?php
2553
+ }
2554
+
2555
  }
widgets/premium-grid.php CHANGED
@@ -82,17 +82,17 @@ class Premium_Grid extends Widget_Base {
82
  ]);
83
 
84
  $this->add_control('premium_gallery_img_size_select',
85
- [
86
- 'label' => __('Grid Layout', 'premium-addons-for-elementor'),
87
- 'type' => Controls_Manager::SELECT,
88
- 'options' => [
89
- 'fitRows' => __('Even', 'premium-addons-for-elementor'),
90
- 'masonry' => __('Masonry', 'premium-addons-for-elementor'),
91
- 'metro' => __('Metro', 'premium-addons-for-elementor'),
92
- ],
93
- 'default' => 'fitRows',
94
- ]
95
- );
96
 
97
  $this->add_responsive_control('pemium_gallery_even_img_height',
98
  [
@@ -694,7 +694,7 @@ class Premium_Grid extends Widget_Base {
694
  ],
695
  ],
696
  'selectors' => [
697
- '{{WRAPPER}} .premium-gallery-item' => 'padding: {{SIZE}}{{UNIT}};'
698
  ]
699
  ]
700
  );
@@ -2332,6 +2332,13 @@ class Premium_Grid extends Widget_Base {
2332
 
2333
  </div>
2334
 
 
 
 
 
 
 
 
2335
  <?php if( 'yes' === $settings['premium_gallery_responsive_switcher'] ) : ?>
2336
  <style>
2337
  @media( min-width: <?php echo $min_size; ?> ) and ( max-width:<?php echo $max_size; ?> ) {
@@ -2698,5 +2705,52 @@ class Premium_Grid extends Widget_Base {
2698
  ]
2699
  );
2700
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2701
  }
2702
  }
82
  ]);
83
 
84
  $this->add_control('premium_gallery_img_size_select',
85
+ [
86
+ 'label' => __('Grid Layout', 'premium-addons-for-elementor'),
87
+ 'type' => Controls_Manager::SELECT,
88
+ 'options' => [
89
+ 'fitRows' => __('Even', 'premium-addons-for-elementor'),
90
+ 'masonry' => __('Masonry', 'premium-addons-for-elementor'),
91
+ 'metro' => __('Metro', 'premium-addons-for-elementor'),
92
+ ],
93
+ 'default' => 'fitRows',
94
+ ]
95
+ );
96
 
97
  $this->add_responsive_control('pemium_gallery_even_img_height',
98
  [
694
  ],
695
  ],
696
  'selectors' => [
697
+ '{{WRAPPER}} .premium-gallery-item' => 'padding: {{SIZE}}{{UNIT}}'
698
  ]
699
  ]
700
  );
2332
 
2333
  </div>
2334
 
2335
+ <?php if ( \Elementor\Plugin::instance()->editor->is_edit_mode() ) {
2336
+
2337
+ if ( 'metro' !== $settings['premium_gallery_img_size_select'] ) {
2338
+ $this->render_editor_script();
2339
+ }
2340
+ } ?>
2341
+
2342
  <?php if( 'yes' === $settings['premium_gallery_responsive_switcher'] ) : ?>
2343
  <style>
2344
  @media( min-width: <?php echo $min_size; ?> ) and ( max-width:<?php echo $max_size; ?> ) {
2705
  ]
2706
  );
2707
 
2708
+ }
2709
+
2710
+ /**
2711
+ * Render Editor Masonry Script.
2712
+ *
2713
+ * @since 3.12.3
2714
+ * @access protected
2715
+ */
2716
+ protected function render_editor_script() {
2717
+
2718
+ ?><script type="text/javascript">
2719
+ jQuery( document ).ready( function( $ ) {
2720
+
2721
+ $( '.premium-gallery-container' ).each( function() {
2722
+
2723
+ var $node_id = '<?php echo $this->get_id(); ?>',
2724
+ scope = $( '[data-id="' + $node_id + '"]' ),
2725
+ settings = $(this).data("settings"),
2726
+ selector = $(this);
2727
+
2728
+ if ( selector.closest( scope ).length < 1 ) {
2729
+ return;
2730
+ }
2731
+
2732
+ var masonryArgs = {
2733
+ // set itemSelector so .grid-sizer is not used in layout
2734
+ filter : settings.active_cat,
2735
+ itemSelector : '.premium-gallery-item',
2736
+ percentPosition : true,
2737
+ layoutMode : settings.img_size,
2738
+ };
2739
+
2740
+ var $isotopeObj = {};
2741
+
2742
+ selector.imagesLoaded( function() {
2743
+
2744
+ $isotopeObj = selector.isotope( masonryArgs );
2745
+
2746
+ selector.find('.premium-gallery-item').resize( function() {
2747
+ $isotopeObj.isotope( 'layout' );
2748
+ });
2749
+ });
2750
+
2751
+ });
2752
+ });
2753
+ </script>
2754
+ <?php
2755
  }
2756
  }
widgets/premium-maps.php CHANGED
@@ -160,6 +160,32 @@ class Premium_Maps extends Widget_Base {
160
  );
161
 
162
  $repeater = new REPEATER();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
 
164
  $repeater->add_control('premium_map_pin_location_finder',
165
  [
@@ -219,14 +245,6 @@ class Premium_Maps extends Widget_Base {
219
  ]
220
  );
221
 
222
- $repeater->add_control('pin_icon',
223
- [
224
- 'label' => __('Custom Icon', 'premium-addons-for-elementor'),
225
- 'type' => Controls_Manager::MEDIA,
226
- 'dynamic' => [ 'active' => true ],
227
- ]
228
- );
229
-
230
  $this->add_control('premium_maps_map_pins',
231
  [
232
  'label' => __('Map Pins', 'premium-addons-for-elementor'),
@@ -721,9 +739,21 @@ class Premium_Maps extends Widget_Base {
721
  <?php if( count( $map_pins ) ) { ?>
722
  <div class="premium_maps_map_height" data-settings='<?php echo wp_json_encode( $map_settings ); ?>' <?php echo $this->get_render_attribute_string('style_wrapper'); ?>>
723
  <?php
724
- foreach( $map_pins as $pin ) {
 
 
 
 
 
 
 
 
 
 
 
 
725
  ?>
726
- <div class="premium-pin" data-lng="<?php echo $pin['map_longitude']; ?>" data-lat="<?php echo $pin['map_latitude']; ?>" data-icon="<?php echo $pin['pin_icon']['url']; ?>" data-max-width="<?php echo $marker_width; ?>">
727
  <?php if( ! empty( $pin['pin_title'] )|| !empty( $pin['pin_desc'] ) ) : ?>
728
  <div class='premium-maps-info-container'><p class='premium-maps-info-title'><?php echo $pin['pin_title']; ?></p><div class='premium-maps-info-desc'><?php echo $pin['pin_desc']; ?></div></div>
729
  <?php endif; ?>
160
  );
161
 
162
  $repeater = new REPEATER();
163
+
164
+ $repeater->add_control('pin_icon',
165
+ [
166
+ 'label' => __('Custom Icon', 'premium-addons-for-elementor'),
167
+ 'type' => Controls_Manager::MEDIA,
168
+ 'dynamic' => [ 'active' => true ],
169
+ ]
170
+ );
171
+
172
+ $repeater->add_control('pin_icon_size',
173
+ [
174
+ 'label' => __( 'Size', 'premium-addons-for-elementor' ),
175
+ 'type' => Controls_Manager::SLIDER,
176
+ 'size_units' => ['px', 'em'],
177
+ 'range' => [
178
+ 'px' => [
179
+ 'min' => 1,
180
+ 'max' => 200,
181
+ ],
182
+ 'em' => [
183
+ 'min' => 1,
184
+ 'max' => 20,
185
+ ]
186
+ ]
187
+ ]
188
+ );
189
 
190
  $repeater->add_control('premium_map_pin_location_finder',
191
  [
245
  ]
246
  );
247
 
 
 
 
 
 
 
 
 
248
  $this->add_control('premium_maps_map_pins',
249
  [
250
  'label' => __('Map Pins', 'premium-addons-for-elementor'),
739
  <?php if( count( $map_pins ) ) { ?>
740
  <div class="premium_maps_map_height" data-settings='<?php echo wp_json_encode( $map_settings ); ?>' <?php echo $this->get_render_attribute_string('style_wrapper'); ?>>
741
  <?php
742
+ foreach( $map_pins as $index => $pin ) {
743
+
744
+ $key = 'map_marker_' . $index;
745
+
746
+ $this->add_render_attribute( $key, [
747
+ 'class' => 'premium-pin',
748
+ 'data-lng' => $pin['map_longitude'],
749
+ 'data-lat' => $pin['map_latitude'],
750
+ 'data-icon' => $pin['pin_icon']['url'],
751
+ 'data-icon-size' => $pin['pin_icon_size']['size'],
752
+ 'data-max-width' => $marker_width
753
+ ]);
754
+
755
  ?>
756
+ <div <?php echo $this->get_render_attribute_string( $key ); ?>>
757
  <?php if( ! empty( $pin['pin_title'] )|| !empty( $pin['pin_desc'] ) ) : ?>
758
  <div class='premium-maps-info-container'><p class='premium-maps-info-title'><?php echo $pin['pin_title']; ?></p><div class='premium-maps-info-desc'><?php echo $pin['pin_desc']; ?></div></div>
759
  <?php endif; ?>