Premium Addons for Elementor - Version 3.8.9

Version Description

  • Tweak: Added Digits Separator option in Countdown widget.
  • Tweak: Added Alignment option for categories in Media Grid widget.
  • Fixed: Outline type box shadow not appearing in Person widget Style 2.
Download this release

Release Info

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

Code changes from version 3.8.8 to 3.8.9

assets/frontend/css/premium-addons.css CHANGED
@@ -673,6 +673,10 @@
673
  display: inline-block;
674
  max-width: 100%;
675
  margin-bottom: 15px;
 
 
 
 
676
  }
677
  .countdown .pre_countdown-section:last-child {
678
  margin-right: 0;
@@ -684,6 +688,14 @@
684
  .countdown .pre_time-mid {
685
  display: block;
686
  }
 
 
 
 
 
 
 
 
687
  /************************************ * Digit and unit styles *************************************/
688
  .side .pre_countdown-section .pre_countdown-period {
689
  vertical-align: bottom;
@@ -2028,11 +2040,16 @@
2028
  /**************************************************/
2029
  .premium-person-container {
2030
  position: relative;
2031
- overflow: hidden;
 
 
2032
  }
2033
  .premium-person-image-container {
2034
  position: relative;
2035
  text-align: center;
 
 
 
2036
  }
2037
  .premium-person-zoomout-effect .premium-person-image-container img, .premium-person-scale-effect .premium-person-image-container img {
2038
  -webkit-transform: scale(1.2);
@@ -2966,6 +2983,9 @@
2966
  z-index: 2;
2967
  width: 100%;
2968
  text-align: center;
 
 
 
2969
  display: flex;
2970
  align-items: center;
2971
  justify-content: center;
@@ -3129,6 +3149,9 @@
3129
  /**************** Premium Grid *******************/
3130
  /*************************************************/
3131
  .premium-img-gallery-filter, .premium-blog-filter {
 
 
 
3132
  display: flex;
3133
  align-items: center;
3134
  justify-content: center;
@@ -3146,6 +3169,7 @@
3146
  width: 33.33%;
3147
  }
3148
  .premium-img-gallery-filter .premium-gallery-cats-container li a.category, .premium-blog-filter .premium-blog-cats-container li a.category {
 
3149
  border-radius: 75px;
3150
  margin: 15px 5px 20px;
3151
  padding: 7px 20px;
@@ -3241,21 +3265,28 @@
3241
  .pa-gallery-img:hover .pa-gallery-magnific-image span, .pa-gallery-img:hover .pa-gallery-img-link span, .premium-gallery-icon-show a.pa-gallery-video-icon span {
3242
  opacity: 1;
3243
  }
3244
- .premium-img-gallery-filter .premium-gallery-cats-container, .premium-blog-filter .premium-blog-cats-container {
3245
  text-align: center;
3246
  margin: 0;
 
3247
  }
3248
  .premium-img-gallery-filter .premium-gallery-cats-container li, .premium-blog-filter .premium-blog-cats-container li {
3249
  list-style: none;
3250
  display: inline-flex;
3251
  }
3252
  .premium-img-gallery.zoomin .pa-gallery-img:hover img {
 
 
3253
  transform: scale(1.1);
3254
  }
3255
  .premium-img-gallery.zoomout .pa-gallery-img:hover img {
 
 
3256
  transform: scale(1);
3257
  }
3258
  .premium-img-gallery.scale .pa-gallery-img:hover img {
 
 
3259
  transform: scale(1.3) rotate(5deg);
3260
  }
3261
  .premium-img-gallery.gray .pa-gallery-img:hover img {
@@ -3355,6 +3386,9 @@
3355
  transition: transform 0.3s, opacity 0.3s;
3356
  z-index: 1;
3357
  background-color: rgba(108,191,226,0.68);
 
 
 
3358
  display: flex;
3359
  text-align: center;
3360
  align-items: center;
673
  display: inline-block;
674
  max-width: 100%;
675
  margin-bottom: 15px;
676
+ }
677
+ .countdown .pre_countdown-section {
678
+ display: inline-flex;
679
+ align-items: center;
680
  }
681
  .countdown .pre_countdown-section:last-child {
682
  margin-right: 0;
688
  .countdown .pre_time-mid {
689
  display: block;
690
  }
691
+ .premium-countdown-separator-yes .pre-countdown_separator {
692
+ display: block;
693
+ margin: 0 50px;
694
+ font-size: 30px;
695
+ }
696
+ .premium-countdown-separator-yes .pre_countdown-row .pre_countdown-section:last-child .pre-countdown_separator {
697
+ display: none;
698
+ }
699
  /************************************ * Digit and unit styles *************************************/
700
  .side .pre_countdown-section .pre_countdown-period {
701
  vertical-align: bottom;
2040
  /**************************************************/
2041
  .premium-person-container {
2042
  position: relative;
2043
+ }
2044
+ .premium-person-style1 {
2045
+ overflow: hidden;
2046
  }
2047
  .premium-person-image-container {
2048
  position: relative;
2049
  text-align: center;
2050
+ }
2051
+ .premium-person-image-container .premium-person-image-wrap {
2052
+ overflow: hidden;
2053
  }
2054
  .premium-person-zoomout-effect .premium-person-image-container img, .premium-person-scale-effect .premium-person-image-container img {
2055
  -webkit-transform: scale(1.2);
2983
  z-index: 2;
2984
  width: 100%;
2985
  text-align: center;
2986
+ display: -webkit-box;
2987
+ display: -webkit-flex;
2988
+ display: -ms-flexbox;
2989
  display: flex;
2990
  align-items: center;
2991
  justify-content: center;
3149
  /**************** Premium Grid *******************/
3150
  /*************************************************/
3151
  .premium-img-gallery-filter, .premium-blog-filter {
3152
+ display: -webkit-box;
3153
+ display: -webkit-flex;
3154
+ display: -ms-flexbox;
3155
  display: flex;
3156
  align-items: center;
3157
  justify-content: center;
3169
  width: 33.33%;
3170
  }
3171
  .premium-img-gallery-filter .premium-gallery-cats-container li a.category, .premium-blog-filter .premium-blog-cats-container li a.category {
3172
+ text-decoration: none;
3173
  border-radius: 75px;
3174
  margin: 15px 5px 20px;
3175
  padding: 7px 20px;
3265
  .pa-gallery-img:hover .pa-gallery-magnific-image span, .pa-gallery-img:hover .pa-gallery-img-link span, .premium-gallery-icon-show a.pa-gallery-video-icon span {
3266
  opacity: 1;
3267
  }
3268
+ .premium-img-gallery-filter ul.premium-gallery-cats-container, .premium-blog-filter ul.premium-blog-cats-container {
3269
  text-align: center;
3270
  margin: 0;
3271
+ padding: 0;
3272
  }
3273
  .premium-img-gallery-filter .premium-gallery-cats-container li, .premium-blog-filter .premium-blog-cats-container li {
3274
  list-style: none;
3275
  display: inline-flex;
3276
  }
3277
  .premium-img-gallery.zoomin .pa-gallery-img:hover img {
3278
+ -webkit-transform: scale(1.1);
3279
+ -ms-transform: scale(1.1);
3280
  transform: scale(1.1);
3281
  }
3282
  .premium-img-gallery.zoomout .pa-gallery-img:hover img {
3283
+ -webkit-transform: scale(1);
3284
+ -ms-transform: scale(1);
3285
  transform: scale(1);
3286
  }
3287
  .premium-img-gallery.scale .pa-gallery-img:hover img {
3288
+ -webkit-transform: scale(1.3) rotate(5deg);
3289
+ -ms-transform: scale(1.3) rotate(5deg);
3290
  transform: scale(1.3) rotate(5deg);
3291
  }
3292
  .premium-img-gallery.gray .pa-gallery-img:hover img {
3386
  transition: transform 0.3s, opacity 0.3s;
3387
  z-index: 1;
3388
  background-color: rgba(108,191,226,0.68);
3389
+ display: -webkit-box;
3390
+ display: -webkit-flex;
3391
+ display: -ms-flexbox;
3392
  display: flex;
3393
  text-align: center;
3394
  align-items: center;
assets/frontend/js/lib/jquerycountdown.js CHANGED
@@ -1 +1 @@
1
- !function(){var a=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function t(e){var n=this.prototype;a=!0;var i=new this;for(var s in a=!1,e)i[s]="function"==typeof e[s]&&"function"==typeof n[s]?function(i,s){return function(){var t=this._super;this._super=function(t){return n[i].apply(this,t)};var e=s.apply(this,arguments);return this._super=t,e}}(s,e[s]):e[s];function o(){!a&&this._init&&this._init.apply(this,arguments)}return((o.prototype=i).constructor=o).extend=t,o}}(),function($){function camelCase(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var i=camelCase(this.name);$[i]=this,$.fn[i]=function(t){var e=Array.prototype.slice.call(arguments,1);return $[i]._isNotChained(t,e)?$[i][t].apply($[i],[this[0]].concat(e)):this.each(function(){if("string"==typeof t){if("_"===t[0]||!$[i][t])throw"Unknown method: "+t;$[i][t].apply($[i],[this].concat(e))}else $[i]._attach(this,t)})}},setDefaults:function(t){$.extend(this.defaultOptions,t||{})},_isNotChained:function(t,e){return"option"===t&&(0===e.length||1===e.length&&"string"==typeof e[0])||-1<$.inArray(t,this._getters)},_attach:function(t,e){if(!(t=$(t)).hasClass(this._getMarker())){t.addClass(this._getMarker()),e=$.extend({},this.defaultOptions,this._getMetadata(t),e||{});var i=$.extend({name:this.name,elem:t,options:e},this._instSettings(t,e));t.data(this.name,i),this._postAttach(t,i),this.option(t,e)}},_instSettings:function(t,e){return{}},_postAttach:function(t,e){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||"";for(var g in f=f.replace(/'/g,'"'),f=f.replace(/([a-zA-Z0-9]+):/g,function(t,e,i){var s=f.substring(0,i).match(/"/g);return s&&s.length%2!=0?e+":":'"'+e+'":'}),f=$.parseJSON("{"+f+"}"),f){var h=f[g];"string"==typeof h&&h.match(/^new Date\((.*)\)$/)&&(f[g]=eval(h))}return f}catch(t){return{}}},_getInst:function(t){return $(t).data(this.name)||{}},option:function(t,e,i){var s=(t=$(t)).data(this.name);if(!e||"string"==typeof e&&null==i)return(n=(s||{}).options)&&e?n[e]:n;if(t.hasClass(this._getMarker())){var n=e||{};"string"==typeof e&&((n={})[e]=i),this._optionsChanged(t,s,n),$.extend(s.options,n)}},_optionsChanged:function(t,e,i){},destroy:function(t){(t=$(t)).hasClass(this._getMarker())&&(this._preDestroy(t,this._getInst(t)),t.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(t,e){}}),$.JQPlugin={createPlugin:function(t,e){"object"==typeof t&&(e=t,t="JQPlugin"),t=camelCase(t);var i=camelCase(e.name);JQClass.classes[i]=JQClass.classes[t].extend(e),new JQClass.classes[i]}}}(jQuery),function(m){var t="pre_countdown";m.JQPlugin.createPlugin({name:t,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_getters:["getTimes"],_rtlClass:t+"-rtl",_sectionClass:t+"-section",_amountClass:t+"-amount",_periodClass:t+"-period",_rowClass:t+"-row",_holdingClass:t+"-holding",_showClass:t+"-show",_descrClass:t+"-descr",_timerElems:[],_init:function(){var s=this;this._super(),this._serverSyncs=[];var n="function"==typeof Date.now?Date.now:function(){return(new Date).getTime()},o=window.performance&&"function"==typeof window.performance.now;var a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,r=0;!a||m.noRequestAnimationFrame?(m.noRequestAnimationFrame=null,setInterval(function(){s._updateElems()},980)):(r=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||n(),a(function t(e){var i=e<1e12?o?performance.now()+performance.timing.navigationStart:n():e||n();1e3<=i-r&&(s._updateElems(),r=i),a(t)}))},UTCDate:function(t,e,i,s,n,o,a,r){"object"==typeof e&&e.constructor==Date&&(r=e.getMilliseconds(),a=e.getSeconds(),o=e.getMinutes(),n=e.getHours(),s=e.getDate(),i=e.getMonth(),e=e.getFullYear());var l=new Date;return l.setUTCFullYear(e),l.setUTCDate(1),l.setUTCMonth(i||0),l.setUTCDate(s||1),l.setUTCHours(n||0),l.setUTCMinutes((o||0)-(Math.abs(t)<30?60*t:t)),l.setUTCSeconds(a||0),l.setUTCMilliseconds(r||0),l},periodsToSeconds:function(t){return 31557600*t[0]+2629800*t[1]+604800*t[2]+86400*t[3]+3600*t[4]+60*t[5]+t[6]},_instSettings:function(t,e){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(t){this._hasElem(t)||this._timerElems.push(t)},_hasElem:function(t){return-1<m.inArray(t,this._timerElems)},_removeElem:function(e){this._timerElems=m.map(this._timerElems,function(t){return t==e?null:t})},_updateElems:function(){for(var t=this._timerElems.length-1;0<=t;t--)this._updateCountdown(this._timerElems[t])},_optionsChanged:function(t,e,i){i.layout&&(i.layout=i.layout.replace(/&lt;/g,"<").replace(/&gt;/g,">")),this._resetExtraLabels(e.options,i);var s=e.options.timezone!=i.timezone;m.extend(e.options,i),this._adjustSettings(t,e,null!=i.until||null!=i.since||s);var n=new Date;(e._since&&e._since<n||e._until&&e._until>n)&&this._addElem(t[0]),this._updateCountdown(t,e)},_updateCountdown:function(t,e){if(t=t.jquery?t:m(t),e=e||t.data(this.name)){if(t.html(this._generateHTML(e)).toggleClass(this._rtlClass,e.options.isRTL),m.isFunction(e.options.onTick)){var i="lap"!=e._hold?e._periods:this._calculatePeriods(e,e._show,e.options.significant,new Date);1!=e.options.tickInterval&&this.periodsToSeconds(i)%e.options.tickInterval!=0||e.options.onTick.apply(t[0],[i])}if("pause"!=e._hold&&(e._since?e._now.getTime()<e._since.getTime():e._now.getTime()>=e._until.getTime())&&!e._expiring){if(e._expiring=!0,this._hasElem(t[0])||e.options.alwaysExpire){if(this._removeElem(t[0]),m.isFunction(e.options.onExpiry)&&e.options.onExpiry.apply(t[0],[]),e.options.expiryText){var s=e.options.layout;e.options.layout=e.options.expiryText,this._updateCountdown(t[0],e),e.options.layout=s}e.options.expiryUrl&&(window.location=e.options.expiryUrl)}e._expiring=!1}else"pause"==e._hold&&this._removeElem(t[0])}},_resetExtraLabels:function(t,e){var i=!1;for(var s in e)if("whichLabels"!=s&&s.match(/[Ll]abels/)){i=!0;break}if(i)for(var s in t)s.match(/[Ll]abels[02-9]|compactLabels1/)&&(t[s]=null)},_adjustSettings:function(t,e,i){for(var s,n=0,o=null,a=0;a<this._serverSyncs.length;a++)if(this._serverSyncs[a][0]==e.options.serverSync){o=this._serverSyncs[a][1];break}if(null!=o)n=e.options.serverSync?o:0,s=new Date;else{var r=m.isFunction(e.options.serverSync)?e.options.serverSync.apply(t[0],[]):null;s=new Date,n=r?s.getTime()-r.getTime():0,this._serverSyncs.push([e.options.serverSync,n])}var l=e.options.timezone;l=null==l?-s.getTimezoneOffset():l,(i||!i&&null==e._until&&null==e._since)&&(e._since=e.options.since,null!=e._since&&(e._since=this.UTCDate(l,this._determineTime(e._since,null)),e._since&&n&&e._since.setMilliseconds(e._since.getMilliseconds()+n)),e._until=this.UTCDate(l,this._determineTime(e.options.until,s)),n&&e._until.setMilliseconds(e._until.getMilliseconds()+n)),e._show=this._determineShow(e)},_preDestroy:function(t,e){this._removeElem(t[0]),t.empty()},pause:function(t){this._hold(t,"pause")},lap:function(t){this._hold(t,"lap")},resume:function(t){this._hold(t,null)},toggle:function(t){this[(m.data(t,this.name)||{})._hold?"resume":"pause"](t)},toggleLap:function(t){this[(m.data(t,this.name)||{})._hold?"resume":"lap"](t)},_hold:function(t,e){var i=m.data(t,this.name);if(i){if("pause"==i._hold&&!e){i._periods=i._savePeriods;var s=i._since?"-":"+";i[i._since?"_since":"_until"]=this._determineTime(s+i._periods[0]+"y"+s+i._periods[1]+"o"+s+i._periods[2]+"w"+s+i._periods[3]+"d"+s+i._periods[4]+"h"+s+i._periods[5]+"m"+s+i._periods[6]+"s"),this._addElem(t)}i._hold=e,i._savePeriods="pause"==e?i._periods:null,m.data(t,this.name,i),this._updateCountdown(t,i)}},getTimes:function(t){var e=m.data(t,this.name);return e?"pause"==e._hold?e._savePeriods:e._hold?this._calculatePeriods(e,e._show,e.options.significant,new Date):e._periods:null},_determineTime:function(t,e){var i,s,_=this,n=null==t?e:"string"==typeof t?function(t){t=t.toLowerCase();for(var e=new Date,i=e.getFullYear(),s=e.getMonth(),n=e.getDate(),o=e.getHours(),a=e.getMinutes(),r=e.getSeconds(),l=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,p=l.exec(t);p;){switch(p[2]||"s"){case"s":r+=parseInt(p[1],10);break;case"m":a+=parseInt(p[1],10);break;case"h":o+=parseInt(p[1],10);break;case"d":n+=parseInt(p[1],10);break;case"w":n+=7*parseInt(p[1],10);break;case"o":s+=parseInt(p[1],10),n=Math.min(n,_._getDaysInMonth(i,s));break;case"y":i+=parseInt(p[1],10),n=Math.min(n,_._getDaysInMonth(i,s))}p=l.exec(t)}return new Date(i,s,n,o,a,r,0)}(t):"number"==typeof t?(i=t,(s=new Date).setTime(s.getTime()+1e3*i),s):t;return n&&n.setMilliseconds(0),n},_getDaysInMonth:function(t,e){return 32-new Date(t,e,32).getDate()},_normalLabels:function(t){return t},_generateHTML:function(i){var s=this;i._periods=i._hold?i._periods:this._calculatePeriods(i,i._show,i.options.significant,new Date);for(var t=!1,e=0,n=i.options.significant,o=m.extend({},i._show),a=0;a<=6;a++)t|="?"==i._show[a]&&0<i._periods[a],o[a]="?"!=i._show[a]||t?i._show[a]:null,e+=o[a]?1:0,n-=0<i._periods[a]?1:0;var r=[!1,!1,!1,!1,!1,!1,!1];for(a=6;0<=a;a--)i._show[a]&&(i._periods[a]?r[a]=!0:(r[a]=0<n,n--));var l=i.options.compact?i.options.compactLabels:i.options.labels,p=i.options.whichLabels||this._normalLabels,_=function(t){var e=i.options["compactLabels"+p(i._periods[t])];return o[t]?s._translateDigits(i,i._periods[t])+(e?e[t]:l[t])+" ":""},h=i.options.padZeroes?2:1,u=function(t){var e=i.options["labels"+p(i._periods[t])];return!i.options.significant&&o[t]||i.options.significant&&r[t]?'<span class="'+s._sectionClass+'"><span class="pre_time-mid"><span class="'+s._amountClass+'">'+s._minDigits(i,i._periods[t],h)+'</span><span class="'+s._periodClass+'">'+(e?e[t]:l[t])+"</span></span></span>":""};return i.options.layout?this._buildLayout(i,o,i.options.layout,i.options.compact,i.options.significant,r):(i.options.compact?'<span class="'+this._rowClass+" "+this._amountClass+(i._hold?" "+this._holdingClass:"")+'">'+_(0)+_(1)+_(2)+_(3)+(o[4]?this._minDigits(i,i._periods[4],2):"")+(o[5]?(o[4]?i.options.timeSeparator:"")+this._minDigits(i,i._periods[5],2):"")+(o[6]?(o[4]||o[5]?i.options.timeSeparator:"")+this._minDigits(i,i._periods[6],2):""):'<span class="'+this._rowClass+" "+this._showClass+(i.options.significant||e)+(i._hold?" "+this._holdingClass:"")+'">'+u(0)+u(1)+u(2)+u(3)+u(4)+u(5)+u(6))+"</span>"+(i.options.description?'<span class="'+this._rowClass+" "+this._descrClass+'">'+i.options.description+"</span>":"")},_buildLayout:function(i,t,e,s,n,o){for(var a=i.options[s?"compactLabels":"labels"],r=i.options.whichLabels||this._normalLabels,l=function(t){return(i.options[(s?"compactLabels":"labels")+r(i._periods[t])]||a)[t]},p=function(t,e){return i.options.digits[Math.floor(t/e)%10]},_={desc:i.options.description,sep:i.options.timeSeparator,yl:l(0),yn:this._minDigits(i,i._periods[0],1),ynn:this._minDigits(i,i._periods[0],2),ynnn:this._minDigits(i,i._periods[0],3),y1:p(i._periods[0],1),y10:p(i._periods[0],10),y100:p(i._periods[0],100),y1000:p(i._periods[0],1e3),ol:l(1),on:this._minDigits(i,i._periods[1],1),onn:this._minDigits(i,i._periods[1],2),onnn:this._minDigits(i,i._periods[1],3),o1:p(i._periods[1],1),o10:p(i._periods[1],10),o100:p(i._periods[1],100),o1000:p(i._periods[1],1e3),wl:l(2),wn:this._minDigits(i,i._periods[2],1),wnn:this._minDigits(i,i._periods[2],2),wnnn:this._minDigits(i,i._periods[2],3),w1:p(i._periods[2],1),w10:p(i._periods[2],10),w100:p(i._periods[2],100),w1000:p(i._periods[2],1e3),dl:l(3),dn:this._minDigits(i,i._periods[3],1),dnn:this._minDigits(i,i._periods[3],2),dnnn:this._minDigits(i,i._periods[3],3),d1:p(i._periods[3],1),d10:p(i._periods[3],10),d100:p(i._periods[3],100),d1000:p(i._periods[3],1e3),hl:l(4),hn:this._minDigits(i,i._periods[4],1),hnn:this._minDigits(i,i._periods[4],2),hnnn:this._minDigits(i,i._periods[4],3),h1:p(i._periods[4],1),h10:p(i._periods[4],10),h100:p(i._periods[4],100),h1000:p(i._periods[4],1e3),ml:l(5),mn:this._minDigits(i,i._periods[5],1),mnn:this._minDigits(i,i._periods[5],2),mnnn:this._minDigits(i,i._periods[5],3),m1:p(i._periods[5],1),m10:p(i._periods[5],10),m100:p(i._periods[5],100),m1000:p(i._periods[5],1e3),sl:l(6),sn:this._minDigits(i,i._periods[6],1),snn:this._minDigits(i,i._periods[6],2),snnn:this._minDigits(i,i._periods[6],3),s1:p(i._periods[6],1),s10:p(i._periods[6],10),s100:p(i._periods[6],100),s1000:p(i._periods[6],1e3)},h=e,u=0;u<=6;u++){var c="yowdhms".charAt(u),d=new RegExp("\\{"+c+"<\\}([\\s\\S]*)\\{"+c+">\\}","g");h=h.replace(d,!n&&t[u]||n&&o[u]?"$1":"")}return m.each(_,function(t,e){var i=new RegExp("\\{"+t+"\\}","g");h=h.replace(i,e)}),h},_minDigits:function(t,e,i){return(e=""+e).length>=i?this._translateDigits(t,e):(e="0000000000"+e,this._translateDigits(t,e.substr(e.length-i)))},_translateDigits:function(e,t){return(""+t).replace(/[0-9]/g,function(t){return e.options.digits[t]})},_determineShow:function(t){var e=t.options.format,i=[];return i[0]=e.match("y")?"?":e.match("Y")?"!":null,i[1]=e.match("o")?"?":e.match("O")?"!":null,i[2]=e.match("w")?"?":e.match("W")?"!":null,i[3]=e.match("d")?"?":e.match("D")?"!":null,i[4]=e.match("h")?"?":e.match("H")?"!":null,i[5]=e.match("m")?"?":e.match("M")?"!":null,i[6]=e.match("s")?"?":e.match("S")?"!":null,i},_calculatePeriods:function(t,i,e,s){t._now=s,t._now.setMilliseconds(0);var n=new Date(t._now.getTime());t._since?s.getTime()<t._since.getTime()?t._now=s=n:s=t._since:(n.setTime(t._until.getTime()),s.getTime()>t._until.getTime()&&(t._now=s=n));var o=[0,0,0,0,0,0,0];if(i[0]||i[1]){var a=this._getDaysInMonth(s.getFullYear(),s.getMonth()),r=this._getDaysInMonth(n.getFullYear(),n.getMonth()),l=n.getDate()==s.getDate()||n.getDate()>=Math.min(a,r)&&s.getDate()>=Math.min(a,r),p=function(t){return 60*(60*t.getHours()+t.getMinutes())+t.getSeconds()},_=Math.max(0,12*(n.getFullYear()-s.getFullYear())+n.getMonth()-s.getMonth()+(n.getDate()<s.getDate()&&!l||l&&p(n)<p(s)?-1:0));o[0]=i[0]?Math.floor(_/12):0,o[1]=i[1]?_-12*o[0]:0;var h=(s=new Date(s.getTime())).getDate()==a,u=this._getDaysInMonth(s.getFullYear()+o[0],s.getMonth()+o[1]);s.getDate()>u&&s.setDate(u),s.setFullYear(s.getFullYear()+o[0]),s.setMonth(s.getMonth()+o[1]),h&&s.setDate(u)}var c=Math.floor((n.getTime()-s.getTime())/1e3),d=function(t,e){o[t]=i[t]?Math.floor(c/e):0,c-=o[t]*e};if(d(2,604800),d(3,86400),d(4,3600),d(5,60),d(6,1),0<c&&!t._since)for(var m=[1,12,4.3482,7,24,60,60],g=6,f=1,w=6;0<=w;w--)i[w]&&(o[g]>=f&&(o[g]=0,c=1),0<c&&(o[w]++,c=0,g=w,f=1)),f*=m[w];if(e)for(w=0;w<=6;w++)e&&o[w]?e--:e||(o[w]=0);return o}})}(jQuery);
1
+ !function(){var t=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function e(i){var n=this.prototype;t=!0;var s=new this;for(var o in t=!1,i)s[o]="function"==typeof i[o]&&"function"==typeof n[o]?function(t,e){return function(){var i=this._super;this._super=function(e){return n[t].apply(this,e)};var s=e.apply(this,arguments);return this._super=i,s}}(o,i[o]):i[o];function a(){!t&&this._init&&this._init.apply(this,arguments)}return((a.prototype=s).constructor=a).extend=e,a}}(),function($){function camelCase(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var t=camelCase(this.name);$[t]=this,$.fn[t]=function(e){var i=Array.prototype.slice.call(arguments,1);return $[t]._isNotChained(e,i)?$[t][e].apply($[t],[this[0]].concat(i)):this.each(function(){if("string"==typeof e){if("_"===e[0]||!$[t][e])throw"Unknown method: "+e;$[t][e].apply($[t],[this].concat(i))}else $[t]._attach(this,e)})}},setDefaults:function(t){$.extend(this.defaultOptions,t||{})},_isNotChained:function(t,e){return"option"===t&&(0===e.length||1===e.length&&"string"==typeof e[0])||-1<$.inArray(t,this._getters)},_attach:function(t,e){if(!(t=$(t)).hasClass(this._getMarker())){t.addClass(this._getMarker()),e=$.extend({},this.defaultOptions,this._getMetadata(t),e||{});var i=$.extend({name:this.name,elem:t,options:e},this._instSettings(t,e));t.data(this.name,i),this._postAttach(t,i),this.option(t,e)}},_instSettings:function(t,e){return{}},_postAttach:function(t,e){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||"";for(var g in f=f.replace(/'/g,'"'),f=f.replace(/([a-zA-Z0-9]+):/g,function(t,e,i){var n=f.substring(0,i).match(/"/g);return n&&n.length%2!=0?e+":":'"'+e+'":'}),f=$.parseJSON("{"+f+"}"),f){var h=f[g];"string"==typeof h&&h.match(/^new Date\((.*)\)$/)&&(f[g]=eval(h))}return f}catch(t){return{}}},_getInst:function(t){return $(t).data(this.name)||{}},option:function(t,e,i){var n=(t=$(t)).data(this.name);if(!e||"string"==typeof e&&null==i)return(s=(n||{}).options)&&e?s[e]:s;if(t.hasClass(this._getMarker())){var s=e||{};"string"==typeof e&&((s={})[e]=i),this._optionsChanged(t,n,s),$.extend(n.options,s)}},_optionsChanged:function(t,e,i){},destroy:function(t){(t=$(t)).hasClass(this._getMarker())&&(this._preDestroy(t,this._getInst(t)),t.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(t,e){}}),$.JQPlugin={createPlugin:function(t,e){"object"==typeof t&&(e=t,t="JQPlugin"),t=camelCase(t);var i=camelCase(e.name);JQClass.classes[i]=JQClass.classes[t].extend(e),new JQClass.classes[i]}}}(jQuery),function(t){var e="pre_countdown";t.JQPlugin.createPlugin({name:e,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_getters:["getTimes"],_rtlClass:e+"-rtl",_sectionClass:e+"-section",_amountClass:e+"-amount",_periodClass:e+"-period",_rowClass:e+"-row",_holdingClass:e+"-holding",_showClass:e+"-show",_descrClass:e+"-descr",_timerElems:[],_init:function(){var e=this;this._super(),this._serverSyncs=[];var i="function"==typeof Date.now?Date.now:function(){return(new Date).getTime()},n=window.performance&&"function"==typeof window.performance.now,s=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,o=0;!s||t.noRequestAnimationFrame?(t.noRequestAnimationFrame=null,setInterval(function(){e._updateElems()},980)):(o=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||i(),s(function t(a){var r=a<1e12?n?performance.now()+performance.timing.navigationStart:i():a||i();1e3<=r-o&&(e._updateElems(),o=r),s(t)}))},UTCDate:function(t,e,i,n,s,o,a,r){"object"==typeof e&&e.constructor==Date&&(r=e.getMilliseconds(),a=e.getSeconds(),o=e.getMinutes(),s=e.getHours(),n=e.getDate(),i=e.getMonth(),e=e.getFullYear());var l=new Date;return l.setUTCFullYear(e),l.setUTCDate(1),l.setUTCMonth(i||0),l.setUTCDate(n||1),l.setUTCHours(s||0),l.setUTCMinutes((o||0)-(Math.abs(t)<30?60*t:t)),l.setUTCSeconds(a||0),l.setUTCMilliseconds(r||0),l},periodsToSeconds:function(t){return 31557600*t[0]+2629800*t[1]+604800*t[2]+86400*t[3]+3600*t[4]+60*t[5]+t[6]},_instSettings:function(t,e){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(t){this._hasElem(t)||this._timerElems.push(t)},_hasElem:function(e){return-1<t.inArray(e,this._timerElems)},_removeElem:function(e){this._timerElems=t.map(this._timerElems,function(t){return t==e?null:t})},_updateElems:function(){for(var t=this._timerElems.length-1;0<=t;t--)this._updateCountdown(this._timerElems[t])},_optionsChanged:function(e,i,n){n.layout&&(n.layout=n.layout.replace(/&lt;/g,"<").replace(/&gt;/g,">")),this._resetExtraLabels(i.options,n);var s=i.options.timezone!=n.timezone;t.extend(i.options,n),this._adjustSettings(e,i,null!=n.until||null!=n.since||s);var o=new Date;(i._since&&i._since<o||i._until&&i._until>o)&&this._addElem(e[0]),this._updateCountdown(e,i)},_updateCountdown:function(e,i){if(e=e.jquery?e:t(e),i=i||e.data(this.name)){if(e.html(this._generateHTML(i)).toggleClass(this._rtlClass,i.options.isRTL),t.isFunction(i.options.onTick)){var n="lap"!=i._hold?i._periods:this._calculatePeriods(i,i._show,i.options.significant,new Date);1!=i.options.tickInterval&&this.periodsToSeconds(n)%i.options.tickInterval!=0||i.options.onTick.apply(e[0],[n])}if("pause"!=i._hold&&(i._since?i._now.getTime()<i._since.getTime():i._now.getTime()>=i._until.getTime())&&!i._expiring){if(i._expiring=!0,this._hasElem(e[0])||i.options.alwaysExpire){if(this._removeElem(e[0]),t.isFunction(i.options.onExpiry)&&i.options.onExpiry.apply(e[0],[]),i.options.expiryText){var s=i.options.layout;i.options.layout=i.options.expiryText,this._updateCountdown(e[0],i),i.options.layout=s}i.options.expiryUrl&&(window.location=i.options.expiryUrl)}i._expiring=!1}else"pause"==i._hold&&this._removeElem(e[0])}},_resetExtraLabels:function(t,e){var i=!1;for(var n in e)if("whichLabels"!=n&&n.match(/[Ll]abels/)){i=!0;break}if(i)for(var n in t)n.match(/[Ll]abels[02-9]|compactLabels1/)&&(t[n]=null)},_adjustSettings:function(e,i,n){for(var s,o=0,a=null,r=0;r<this._serverSyncs.length;r++)if(this._serverSyncs[r][0]==i.options.serverSync){a=this._serverSyncs[r][1];break}if(null!=a)o=i.options.serverSync?a:0,s=new Date;else{var l=t.isFunction(i.options.serverSync)?i.options.serverSync.apply(e[0],[]):null;s=new Date,o=l?s.getTime()-l.getTime():0,this._serverSyncs.push([i.options.serverSync,o])}var p=i.options.timezone;p=null==p?-s.getTimezoneOffset():p,(n||!n&&null==i._until&&null==i._since)&&(i._since=i.options.since,null!=i._since&&(i._since=this.UTCDate(p,this._determineTime(i._since,null)),i._since&&o&&i._since.setMilliseconds(i._since.getMilliseconds()+o)),i._until=this.UTCDate(p,this._determineTime(i.options.until,s)),o&&i._until.setMilliseconds(i._until.getMilliseconds()+o)),i._show=this._determineShow(i)},_preDestroy:function(t,e){this._removeElem(t[0]),t.empty()},pause:function(t){this._hold(t,"pause")},lap:function(t){this._hold(t,"lap")},resume:function(t){this._hold(t,null)},toggle:function(e){this[(t.data(e,this.name)||{})._hold?"resume":"pause"](e)},toggleLap:function(e){this[(t.data(e,this.name)||{})._hold?"resume":"lap"](e)},_hold:function(e,i){var n=t.data(e,this.name);if(n){if("pause"==n._hold&&!i){n._periods=n._savePeriods;var s=n._since?"-":"+";n[n._since?"_since":"_until"]=this._determineTime(s+n._periods[0]+"y"+s+n._periods[1]+"o"+s+n._periods[2]+"w"+s+n._periods[3]+"d"+s+n._periods[4]+"h"+s+n._periods[5]+"m"+s+n._periods[6]+"s"),this._addElem(e)}n._hold=i,n._savePeriods="pause"==i?n._periods:null,t.data(e,this.name,n),this._updateCountdown(e,n)}},getTimes:function(e){var i=t.data(e,this.name);return i?"pause"==i._hold?i._savePeriods:i._hold?this._calculatePeriods(i,i._show,i.options.significant,new Date):i._periods:null},_determineTime:function(t,e){var i,n,s=this,o=null==t?e:"string"==typeof t?function(t){t=t.toLowerCase();for(var e=new Date,i=e.getFullYear(),n=e.getMonth(),o=e.getDate(),a=e.getHours(),r=e.getMinutes(),l=e.getSeconds(),p=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,_=p.exec(t);_;){switch(_[2]||"s"){case"s":l+=parseInt(_[1],10);break;case"m":r+=parseInt(_[1],10);break;case"h":a+=parseInt(_[1],10);break;case"d":o+=parseInt(_[1],10);break;case"w":o+=7*parseInt(_[1],10);break;case"o":n+=parseInt(_[1],10),o=Math.min(o,s._getDaysInMonth(i,n));break;case"y":i+=parseInt(_[1],10),o=Math.min(o,s._getDaysInMonth(i,n))}_=p.exec(t)}return new Date(i,n,o,a,r,l,0)}(t):"number"==typeof t?(i=t,(n=new Date).setTime(n.getTime()+1e3*i),n):t;return o&&o.setMilliseconds(0),o},_getDaysInMonth:function(t,e){return 32-new Date(t,e,32).getDate()},_normalLabels:function(t){return t},_generateHTML:function(e){var i=this;e._periods=e._hold?e._periods:this._calculatePeriods(e,e._show,e.options.significant,new Date);for(var n=!1,s=0,o=e.options.significant,a=t.extend({},e._show),r=0;r<=6;r++)n|="?"==e._show[r]&&0<e._periods[r],a[r]="?"!=e._show[r]||n?e._show[r]:null,s+=a[r]?1:0,o-=0<e._periods[r]?1:0;var l=[!1,!1,!1,!1,!1,!1,!1];for(r=6;0<=r;r--)e._show[r]&&(e._periods[r]?l[r]=!0:(l[r]=0<o,o--));var p=e.options.compact?e.options.compactLabels:e.options.labels,_=e.options.whichLabels||this._normalLabels,h=e.options.padZeroes?2:1,u=function(t){var n=e.options["labels"+_(e._periods[t])];return!e.options.significant&&a[t]||e.options.significant&&l[t]?'<span class="'+i._sectionClass+'"><span class="pre_time-mid"><span class="'+i._amountClass+'">'+i._minDigits(e,e._periods[t],h)+'</span><span class="'+i._periodClass+'">'+(n?n[t]:p[t])+"</span></span><span class='pre-countdown_separator'>"+e.options.timeSeparator+"</span></span>":""};return'<span class="'+this._rowClass+" "+this._showClass+(e.options.significant||s)+(e._hold?" "+this._holdingClass:"")+'">'+u(0)+u(1)+u(2)+u(3)+u(4)+u(5)+u(6)+"</span>"+(e.options.description?'<span class="'+this._rowClass+" "+this._descrClass+'">'+e.options.description+"</span>":"")},_buildLayout:function(e,i,n,s,o,a){for(var r=e.options[s?"compactLabels":"labels"],l=e.options.whichLabels||this._normalLabels,p=function(t){return(e.options[(s?"compactLabels":"labels")+l(e._periods[t])]||r)[t]},_=function(t,i){return e.options.digits[Math.floor(t/i)%10]},h={desc:e.options.description,sep:e.options.timeSeparator,yl:p(0),yn:this._minDigits(e,e._periods[0],1),ynn:this._minDigits(e,e._periods[0],2),ynnn:this._minDigits(e,e._periods[0],3),y1:_(e._periods[0],1),y10:_(e._periods[0],10),y100:_(e._periods[0],100),y1000:_(e._periods[0],1e3),ol:p(1),on:this._minDigits(e,e._periods[1],1),onn:this._minDigits(e,e._periods[1],2),onnn:this._minDigits(e,e._periods[1],3),o1:_(e._periods[1],1),o10:_(e._periods[1],10),o100:_(e._periods[1],100),o1000:_(e._periods[1],1e3),wl:p(2),wn:this._minDigits(e,e._periods[2],1),wnn:this._minDigits(e,e._periods[2],2),wnnn:this._minDigits(e,e._periods[2],3),w1:_(e._periods[2],1),w10:_(e._periods[2],10),w100:_(e._periods[2],100),w1000:_(e._periods[2],1e3),dl:p(3),dn:this._minDigits(e,e._periods[3],1),dnn:this._minDigits(e,e._periods[3],2),dnnn:this._minDigits(e,e._periods[3],3),d1:_(e._periods[3],1),d10:_(e._periods[3],10),d100:_(e._periods[3],100),d1000:_(e._periods[3],1e3),hl:p(4),hn:this._minDigits(e,e._periods[4],1),hnn:this._minDigits(e,e._periods[4],2),hnnn:this._minDigits(e,e._periods[4],3),h1:_(e._periods[4],1),h10:_(e._periods[4],10),h100:_(e._periods[4],100),h1000:_(e._periods[4],1e3),ml:p(5),mn:this._minDigits(e,e._periods[5],1),mnn:this._minDigits(e,e._periods[5],2),mnnn:this._minDigits(e,e._periods[5],3),m1:_(e._periods[5],1),m10:_(e._periods[5],10),m100:_(e._periods[5],100),m1000:_(e._periods[5],1e3),sl:p(6),sn:this._minDigits(e,e._periods[6],1),snn:this._minDigits(e,e._periods[6],2),snnn:this._minDigits(e,e._periods[6],3),s1:_(e._periods[6],1),s10:_(e._periods[6],10),s100:_(e._periods[6],100),s1000:_(e._periods[6],1e3)},u=n,c=0;c<=6;c++){var d="yowdhms".charAt(c),m=new RegExp("\\{"+d+"<\\}([\\s\\S]*)\\{"+d+">\\}","g");u=u.replace(m,!o&&i[c]||o&&a[c]?"$1":"")}return t.each(h,function(t,e){var i=new RegExp("\\{"+t+"\\}","g");u=u.replace(i,e)}),u},_minDigits:function(t,e,i){return(e=""+e).length>=i?this._translateDigits(t,e):(e="0000000000"+e,this._translateDigits(t,e.substr(e.length-i)))},_translateDigits:function(t,e){return(""+e).replace(/[0-9]/g,function(e){return t.options.digits[e]})},_determineShow:function(t){var e=t.options.format,i=[];return i[0]=e.match("y")?"?":e.match("Y")?"!":null,i[1]=e.match("o")?"?":e.match("O")?"!":null,i[2]=e.match("w")?"?":e.match("W")?"!":null,i[3]=e.match("d")?"?":e.match("D")?"!":null,i[4]=e.match("h")?"?":e.match("H")?"!":null,i[5]=e.match("m")?"?":e.match("M")?"!":null,i[6]=e.match("s")?"?":e.match("S")?"!":null,i},_calculatePeriods:function(t,e,i,n){t._now=n,t._now.setMilliseconds(0);var s=new Date(t._now.getTime());t._since?n.getTime()<t._since.getTime()?t._now=n=s:n=t._since:(s.setTime(t._until.getTime()),n.getTime()>t._until.getTime()&&(t._now=n=s));var o=[0,0,0,0,0,0,0];if(e[0]||e[1]){var a=this._getDaysInMonth(n.getFullYear(),n.getMonth()),r=this._getDaysInMonth(s.getFullYear(),s.getMonth()),l=s.getDate()==n.getDate()||s.getDate()>=Math.min(a,r)&&n.getDate()>=Math.min(a,r),p=function(t){return 60*(60*t.getHours()+t.getMinutes())+t.getSeconds()},_=Math.max(0,12*(s.getFullYear()-n.getFullYear())+s.getMonth()-n.getMonth()+(s.getDate()<n.getDate()&&!l||l&&p(s)<p(n)?-1:0));o[0]=e[0]?Math.floor(_/12):0,o[1]=e[1]?_-12*o[0]:0;var h=(n=new Date(n.getTime())).getDate()==a,u=this._getDaysInMonth(n.getFullYear()+o[0],n.getMonth()+o[1]);n.getDate()>u&&n.setDate(u),n.setFullYear(n.getFullYear()+o[0]),n.setMonth(n.getMonth()+o[1]),h&&n.setDate(u)}var c=Math.floor((s.getTime()-n.getTime())/1e3),d=function(t,i){o[t]=e[t]?Math.floor(c/i):0,c-=o[t]*i};if(d(2,604800),d(3,86400),d(4,3600),d(5,60),d(6,1),0<c&&!t._since)for(var m=[1,12,4.3482,7,24,60,60],g=6,f=1,w=6;0<=w;w--)e[w]&&(o[g]>=f&&(o[g]=0,c=1),0<c&&(o[w]++,c=0,g=w,f=1)),f*=m[w];if(i)for(w=0;w<=6;w++)i&&o[w]?i--:i||(o[w]=0);return o}})}(jQuery);
assets/frontend/js/premium-addons.js CHANGED
@@ -361,6 +361,7 @@
361
  until: new Date(countDownSettings["until"]),
362
  format: countDownSettings["format"],
363
  padZeroes: true,
 
364
  onExpiry: function() {
365
  $(this).html(countDownSettings["text"]);
366
  },
@@ -379,6 +380,7 @@
379
  until: new Date(countDownSettings["until"]),
380
  format: countDownSettings["format"],
381
  padZeroes: true,
 
382
  expiryUrl: countDownSettings["text"],
383
  serverSync: function() {
384
  return new Date(
361
  until: new Date(countDownSettings["until"]),
362
  format: countDownSettings["format"],
363
  padZeroes: true,
364
+ timeSeparator: countDownSettings["separator"],
365
  onExpiry: function() {
366
  $(this).html(countDownSettings["text"]);
367
  },
380
  until: new Date(countDownSettings["until"]),
381
  format: countDownSettings["format"],
382
  padZeroes: true,
383
+ timeSeparator: countDownSettings["separator"],
384
  expiryUrl: countDownSettings["text"],
385
  serverSync: function() {
386
  return new Date(
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.8.8
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.8.8');
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.8.7');
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.8.9
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.8.9');
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.8.8');
23
 
24
  if( ! class_exists('Premium_Addons_Elementor') ) {
25
 
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
- === Premium Addons for Elementor ===
2
  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.3
7
  Requires PHP: 5.4
8
- Stable Tag: 3.8.8
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
@@ -175,6 +175,12 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
175
 
176
  == Changelog ==
177
 
 
 
 
 
 
 
178
  = 3.8.8 =
179
 
180
  - Tweak: Added new style `Style 4` in Media Grid widget.
1
+ === Premium Addons for Elementor ===
2
  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.3
7
  Requires PHP: 5.4
8
+ Stable Tag: 3.8.9
9
  License: GPL v3.0
10
  License URI: https://opensource.org/licenses/GPL-3.0
11
 
175
 
176
  == Changelog ==
177
 
178
+ = 3.8.9 =
179
+
180
+ - Tweak: Added `Digits Separator` option in Countdown widget.
181
+ - Tweak: Added `Alignment` option for categories in Media Grid widget.
182
+ - Fixed: Outline type box shadow not appearing in Person widget `Style 2`.
183
+
184
  = 3.8.8 =
185
 
186
  - Tweak: Added new style `Style 4` in Media Grid widget.
widgets/premium-countdown.php CHANGED
@@ -38,7 +38,10 @@ class Premium_Countdown extends Widget_Base {
38
  }
39
 
40
  public function get_script_depends() {
41
- return [ 'premium-addons-js','count-down-timer-js' ];
 
 
 
42
  }
43
 
44
  public function get_categories() {
@@ -116,6 +119,30 @@ class Premium_Countdown extends Widget_Base {
116
  ]
117
  );
118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  $this->add_responsive_control(
120
  'premium_countdown_align',
121
  [
@@ -505,11 +532,71 @@ class Premium_Countdown extends Widget_Base {
505
  ],
506
  'selectors' => [
507
  '{{WRAPPER}} .countdown .pre_countdown-section' => 'margin-right: calc( {{SIZE}}{{UNIT}} / 2 ); margin-left: calc( {{SIZE}}{{UNIT}} / 2 );'
508
- ]
 
 
 
509
  ]
510
  );
511
 
512
  $this->end_controls_section();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
513
  }
514
 
515
  protected function render( ) {
@@ -521,7 +608,7 @@ class Premium_Countdown extends Widget_Base {
521
  $formats = $settings['premium_countdown_units'];
522
  $format = implode('', $formats );
523
  $time = str_replace('-', '/', current_time('mysql') );
524
- $serverSync = '';
525
  if( $settings['premium_countdown_s_u_time'] == 'wp-time' ) :
526
  $sent_time = $time;
527
  else:
@@ -563,6 +650,9 @@ class Premium_Countdown extends Widget_Base {
563
  $event = 'expiryUrl';
564
  $text = $redirect;
565
  }
 
 
 
566
  $countdown_settings = [
567
  'label1' => $label,
568
  'label2' => $labels1,
@@ -571,10 +661,11 @@ class Premium_Countdown extends Widget_Base {
571
  'event' => $event,
572
  'text' => $text,
573
  'serverSync'=> $sent_time,
 
574
  ];
575
 
576
  ?>
577
- <div id="countDownContiner-<?php echo esc_attr($this->get_id()); ?>" class="premium-countdown" data-settings='<?php echo wp_json_encode($countdown_settings); ?>'>
578
  <div id="countdown-<?php echo esc_attr( $this->get_id() ); ?>" class="premium-countdown-init countdown<?php echo $pcdt_style; ?>"></div>
579
  </div>
580
  <?php
38
  }
39
 
40
  public function get_script_depends() {
41
+ return [
42
+ 'count-down-timer-js',
43
+ 'premium-addons-js'
44
+ ];
45
  }
46
 
47
  public function get_categories() {
119
  ]
120
  );
121
 
122
+ $this->add_control('premium_countdown_separator',
123
+ [
124
+ 'label' => __('Digits Separator', 'premium-addons-for-elementor'),
125
+ 'description' => __('Enable or disable digits separator','premium-addons-for-elementor'),
126
+ 'type' => Controls_Manager::SWITCHER,
127
+ 'condition' => [
128
+ 'premium_countdown_style' => 'd-u-u'
129
+ ]
130
+ ]
131
+ );
132
+
133
+ $this->add_control(
134
+ 'premium_countdown_separator_text',
135
+ [
136
+ 'label' => __('Separator Text', 'premium-addons-for-elementor'),
137
+ 'type' => Controls_Manager::TEXT,
138
+ 'condition' => [
139
+ 'premium_countdown_style' => 'd-u-u',
140
+ 'premium_countdown_separator' => 'yes'
141
+ ],
142
+ 'default' => ':'
143
+ ]
144
+ );
145
+
146
  $this->add_responsive_control(
147
  'premium_countdown_align',
148
  [
532
  ],
533
  'selectors' => [
534
  '{{WRAPPER}} .countdown .pre_countdown-section' => 'margin-right: calc( {{SIZE}}{{UNIT}} / 2 ); margin-left: calc( {{SIZE}}{{UNIT}} / 2 );'
535
+ ],
536
+ 'condition' => [
537
+ 'premium_countdown_separator!' => 'yes'
538
+ ],
539
  ]
540
  );
541
 
542
  $this->end_controls_section();
543
+
544
+ $this->start_controls_section('premium_countdown_separator_style',
545
+ [
546
+ 'label' => __('Separator', 'premium-addons-for-elementor'),
547
+ 'tab' => Controls_Manager::TAB_STYLE,
548
+ 'condition' => [
549
+ 'premium_countdown_style' => 'd-u-u',
550
+ 'premium_countdown_separator' => 'yes'
551
+ ],
552
+ ]
553
+ );
554
+
555
+ $this->add_responsive_control(
556
+ 'premium_countdown_separator_size',
557
+ [
558
+ 'label' => __( 'Size', 'premium-addons-for-elementor' ),
559
+ 'type' => Controls_Manager::SLIDER,
560
+ 'range' => [
561
+ 'px' => [
562
+ 'min' => 1,
563
+ 'max' => 100,
564
+ ]
565
+ ],
566
+ 'selectors' => [
567
+ '{{WRAPPER}} .pre-countdown_separator' => 'font-size: {{SIZE}}px;'
568
+ ]
569
+ ]
570
+ );
571
+
572
+ $this->add_control(
573
+ 'premium_countdown_separator_color',
574
+ [
575
+ 'label' => __( 'Color', 'premium-addons-for-elementor' ),
576
+ 'type' => Controls_Manager::COLOR,
577
+ 'scheme' => [
578
+ 'type' => Scheme_Color::get_type(),
579
+ 'value' => Scheme_Color::COLOR_2,
580
+ ],
581
+ 'selectors' => [
582
+ '{{WRAPPER}} .pre-countdown_separator' => 'color: {{VALUE}};'
583
+ ]
584
+ ]
585
+ );
586
+
587
+ $this->add_responsive_control('premium_countdown_separator_margin',
588
+ [
589
+ 'label' => __('Margin', 'premium-addons-for-elementor'),
590
+ 'type' => Controls_Manager::DIMENSIONS,
591
+ 'size_units' => ['px', 'em'],
592
+ 'selectors' => [
593
+ '{{WRAPPER}} .pre-countdown_separator' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
594
+ ]
595
+ ]
596
+ );
597
+
598
+ $this->end_controls_section();
599
+
600
  }
601
 
602
  protected function render( ) {
608
  $formats = $settings['premium_countdown_units'];
609
  $format = implode('', $formats );
610
  $time = str_replace('-', '/', current_time('mysql') );
611
+
612
  if( $settings['premium_countdown_s_u_time'] == 'wp-time' ) :
613
  $sent_time = $time;
614
  else:
650
  $event = 'expiryUrl';
651
  $text = $redirect;
652
  }
653
+
654
+ $separator_text = ! empty ( $settings['premium_countdown_separator_text'] ) ? $settings['premium_countdown_separator_text'] : '';
655
+
656
  $countdown_settings = [
657
  'label1' => $label,
658
  'label2' => $labels1,
661
  'event' => $event,
662
  'text' => $text,
663
  'serverSync'=> $sent_time,
664
+ 'separator' => $separator_text
665
  ];
666
 
667
  ?>
668
+ <div id="countDownContiner-<?php echo esc_attr($this->get_id()); ?>" class="premium-countdown premium-countdown-separator-<?php echo $settings['premium_countdown_separator']; ?>" data-settings='<?php echo wp_json_encode( $countdown_settings ); ?>'>
669
  <div id="countdown-<?php echo esc_attr( $this->get_id() ); ?>" class="premium-countdown-init countdown<?php echo $pcdt_style; ?>"></div>
670
  </div>
671
  <?php
widgets/premium-grid.php CHANGED
@@ -345,6 +345,32 @@ class Premium_Grid extends Widget_Base {
345
  ]
346
  );
347
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
  $this->end_controls_section();
349
 
350
  $this->start_controls_section('premium_gallery_content',
345
  ]
346
  );
347
 
348
+ $this->add_responsive_control('premium_gallery_filters_align',
349
+ [
350
+ 'label' => __( 'Alignment', 'premium-addons-for-elementor' ),
351
+ 'type' => Controls_Manager::CHOOSE,
352
+ 'options' => [
353
+ 'flex-start' => [
354
+ 'title'=> __( 'Left', 'premium-addons-for-elementor' ),
355
+ 'icon' => 'fa fa-align-left',
356
+ ],
357
+ 'center' => [
358
+ 'title'=> __( 'Center', 'premium-addons-for-elementor' ),
359
+ 'icon' => 'fa fa-align-center',
360
+ ],
361
+ 'flex-end' => [
362
+ 'title'=> __( 'Right', 'premium-addons-for-elementor' ),
363
+ 'icon' => 'fa fa-align-right',
364
+ ],
365
+ ],
366
+ 'default' => 'center',
367
+ 'selectors' => [
368
+ '{{WRAPPER}} .premium-img-gallery-filter' => 'justify-content: {{VALUE}}'
369
+ ],
370
+ 'condition' => $condition
371
+ ]
372
+ );
373
+
374
  $this->end_controls_section();
375
 
376
  $this->start_controls_section('premium_gallery_content',
widgets/premium-person.php CHANGED
@@ -843,8 +843,10 @@ class Premium_Person extends Widget_Base {
843
 
844
  <div <?php echo $this->get_render_attribute_string( 'container' ) ?>>
845
  <div class="premium-person-image-container">
846
- <?php echo $image_html;
847
- if( 'style2' === $settings['premium_person_style'] && 'yes' === $settings['premium_person_social_enable'] ) : ?>
 
 
848
  <div class="premium-person-social">
849
  <?php $this->get_social_icons(); ?>
850
  </div>
@@ -1021,7 +1023,9 @@ class Premium_Person extends Widget_Base {
1021
 
1022
  <div {{{ view.getRenderAttributeString('container') }}} >
1023
  <div class="premium-person-image-container">
1024
- {{{imageHtml}}}
 
 
1025
  <# if ( 'style2' === settings.premium_person_style && 'yes' === settings.premium_person_social_enable ) { #>
1026
  <div class="premium-person-social">
1027
  <# getSocialIcons(); #>
843
 
844
  <div <?php echo $this->get_render_attribute_string( 'container' ) ?>>
845
  <div class="premium-person-image-container">
846
+ <div class="premium-person-image-wrap">
847
+ <?php echo $image_html; ?>
848
+ </div>
849
+ <?php if( 'style2' === $settings['premium_person_style'] && 'yes' === $settings['premium_person_social_enable'] ) : ?>
850
  <div class="premium-person-social">
851
  <?php $this->get_social_icons(); ?>
852
  </div>
1023
 
1024
  <div {{{ view.getRenderAttributeString('container') }}} >
1025
  <div class="premium-person-image-container">
1026
+ <div class="premium-person-image-wrap">
1027
+ {{{imageHtml}}}
1028
+ </div>
1029
  <# if ( 'style2' === settings.premium_person_style && 'yes' === settings.premium_person_social_enable ) { #>
1030
  <div class="premium-person-social">
1031
  <# getSocialIcons(); #>