Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram - Version 3.0.11

Version Description

  • Enhancement: Gallery Templates for Halloween
  • Update: UI improvements

=

Download this release

Release Info

Developer Icegram
Plugin Icon 128x128 Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram
Version 3.0.11
Comparing to
See all releases

Code changes from version 3.0.10 to 3.0.11

icegram.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Icegram - Popups, Optins, CTAs & lot more...
4
  * Plugin URI: https://www.icegram.com/
5
  * Description: All in one solution to inspire, convert and engage your audiences. Action bars, Popup windows, Messengers, Toast notifications and more. Awesome themes and powerful rules.
6
- * Version: 3.0.10
7
  * Tested up to: 6.0.2
8
  * Author: icegram
9
  * Author URI: https://www.icegram.com/
@@ -122,7 +122,7 @@ if ( ! defined( 'IG_PLUGIN_FILE' ) ) {
122
  }
123
 
124
  if ( ! defined( 'IG_PLUGIN_VERSION' ) ) {
125
- define( 'IG_PLUGIN_VERSION', '3.0.10' );
126
  }
127
 
128
  if ( ! defined( 'IG_PRODUCT_ID' ) ) {
3
  * Plugin Name: Icegram - Popups, Optins, CTAs & lot more...
4
  * Plugin URI: https://www.icegram.com/
5
  * Description: All in one solution to inspire, convert and engage your audiences. Action bars, Popup windows, Messengers, Toast notifications and more. Awesome themes and powerful rules.
6
+ * Version: 3.0.11
7
  * Tested up to: 6.0.2
8
  * Author: icegram
9
  * Author URI: https://www.icegram.com/
122
  }
123
 
124
  if ( ! defined( 'IG_PLUGIN_VERSION' ) ) {
125
+ define( 'IG_PLUGIN_VERSION', '3.0.11' );
126
  }
127
 
128
  if ( ! defined( 'IG_PRODUCT_ID' ) ) {
lite/assets/images/Annie%20Lax.png ADDED
Binary file
lite/assets/js/gallery.js CHANGED
@@ -2153,14 +2153,18 @@ $( document ).ready(function() {
2153
  jQuery('.gallery_message_type').val(filter_type).trigger('change');
2154
  });
2155
 
2156
- jQuery('.gallery_campaign_goal, .gallery_message_type').select2();
2157
- jQuery(".gallery_campaign_goal").select2({
2158
- placeholder: "Choose your goals"
2159
- });
 
 
2160
 
2161
- jQuery(".gallery_message_type").select2({
2162
- placeholder: "Select message types"
2163
- });
 
 
2164
 
2165
  jQuery(".ig-reset-button").click(function() {
2166
  jQuery('.gallery_campaign_goal').val('').trigger('change');
2153
  jQuery('.gallery_message_type').val(filter_type).trigger('change');
2154
  });
2155
 
2156
+ if (jQuery('.gallery_campaign_goal, .gallery_message_type').length > 0){
2157
+ jQuery('.gallery_campaign_goal, .gallery_message_type').select2();
2158
+ jQuery(".gallery_campaign_goal").select2({
2159
+ placeholder: "Choose your goals"
2160
+ });
2161
+ }
2162
 
2163
+ if (jQuery(".gallery_message_type").length > 0){
2164
+ jQuery(".gallery_message_type").select2({
2165
+ placeholder: "Select message types"
2166
+ });
2167
+ }
2168
 
2169
  jQuery(".ig-reset-button").click(function() {
2170
  jQuery('.gallery_campaign_goal').val('').trigger('change');
lite/assets/js/gallery.min.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},function(a){var b,c;b=wp.themes=wp.themes||{},b.data=_wpThemeSettings,c=b.data.l10n,b.isInstall=b.data.settings.isInstall,_.extend(b,{model:{},view:{},routes:{},router:{},template:wp.template}),b.Model=Backbone.Model.extend({initialize:function(){var a;-1!==_.indexOf(b.data.installedThemes,this.get("slug"))&&this.set({installed:!0}),this.set({id:this.get("id")}),this.has("sections")&&(a=this.get("sections").description,this.set({description:a})),this.has("plan")&&this.set({plan_name:d(this.get("plan"))})}}),b.view.Appearance=wp.Backbone.View.extend({el:".wrap .theme-browser",events:{"click .filter-links li > a":"onSort"},window:a(window),page:0,activeClass:"current",initialize:function(a){_.bindAll(this,"scroller"),this.SearchView=a.SearchView?a.SearchView:b.view.Search,this.window.bind("scroll",_.throttle(this.scroller,300))},render:function(){this.view=new b.view.Themes({collection:this.collection,parent:this}),this.search(),this.view.render(),this.$el.append(this.view.el).addClass("rendered"),this.$el.append('<br class="clear"/>')},browse:function(a){if(this.collection.length<=0&&this.collection.query({browse:a}),"featured"==a||"all"==a)this.collection.query({browse:a});else{var b;if(b=this.collection.filter(function(b){var c=_.invert(b.attributes.tags);return c.hasOwnProperty(a)?!0:void 0})){this.collection.reset(b);var c=this.collection.length}}this.collection.trigger("update"),this.collection.trigger("query:success",c)},onSort:function(c){var d=a(c.target),e=d.data("sort");c.preventDefault(),a("body").removeClass("filters-applied show-filters"),d.hasClass(this.activeClass)||(this.collection.reset(b.data.themes,{silent:!0}),this.sort(e),b.router.navigate(b.router.baseUrl(b.router.browsePath+e)))},sort:function(b){this.clearSearch(),a(".filter-links li > a, .theme-filter").removeClass(this.activeClass),a('[data-sort="'+b+'"]').addClass(this.activeClass),"favorites"===b?a("body").addClass("show-favorites-form"):a("body").removeClass("show-favorites-form"),this.browse(b)},clearSearch:function(){a("#wp-filter-search-input").val("")},searchContainer:a(".search-form"),search:function(){var d,e=this;1!==b.data.themes.length&&(d=new this.SearchView({collection:e.collection,parent:this}),d.render(),this.searchContainer.append(a.parseHTML('<label class="screen-reader-text" for="wp-filter-search-input">'+c.search+"</label>")).append(d.el))},scroller:function(){var a,b,c=this;a=this.window.scrollTop()+c.window.height(),b=c.$el.offset().top+c.$el.outerHeight(!1)-c.window.height(),b=Math.round(.9*b),a>b&&this.trigger("theme:scroll")}}),b.Collection=Backbone.Collection.extend({model:b.Model,terms:"",doSearch:function(c){this.terms!==c&&(this.terms=c,this.terms.length>0&&this.search(this.terms),""===this.terms&&(this.reset(b.data.themes),a("body").removeClass("no-results")),this.trigger("update"))},search:function(c){var d,e,f,g,h,i;this.reset(b.data.themes,{silent:!0}),c=c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),c=c.replace(/ /g,")(?=.*"),d=new RegExp("^(?=.*"+c+").+","i"),e=this.filter(function(a){return g=a.get("name").replace(/(<([^>]+)>)/gi,""),h=a.get("description").replace(/(<([^>]+)>)/gi,""),i=a.get("author").replace(/(<([^>]+)>)/gi,""),f=_.union(g,a.get("id"),h,i,a.get("tags")),d.test(a.get("author"))&&c.length>2&&a.set("displayAuthor",!0),d.test(f)}),0===e.length?this.trigger("query:empty"):a("body").removeClass("no-results"),this.reset(e)},paginate:function(a){var b=this;return a=a||0,b=_(b.rest(20*a)),b=_(b.first(20))},count:!1,query:function(c){var d,e,f,g=this.queries,h=this;if(this.currentQuery.request=c,d=_.find(g,function(a){return _.isEqual(a.request,c)}),e=_.has(c,"page"),e||(this.currentQuery.page=1),d||e){if(e)return this.apiCall(c,e).then(function(a){h.add(a.themes),h.trigger("query:success"),h.loadingThemes=!1}).fail(function(){h.trigger("query:fail")});0===d.themes.length?h.trigger("query:empty"):a("body").removeClass("no-results"),_.isNumber(d.total)&&(this.count=d.total),this.reset(d.themes),d.total||(this.count=this.length),this.trigger("update"),this.trigger("query:success",this.count)}else{if(b.data.themes){data=b.data.themes,h.add(data),"undefined"!=typeof c.id&&(data=h.get(c.id),h.set(data));var i=_.sortBy(h.models,function(a){return a.attributes.modified});h.reset(i.reverse()),f=data.length,g.push({themes:data,request:c,total:f})}h.trigger("update"),h.trigger("query:success",f),data.themes&&0===data.themes.length&&h.trigger("query:empty")}},queries:[],currentQuery:{page:1,request:{}},loadingThemes:!1}),b.view.Theme=wp.Backbone.View.extend({className:"theme",state:"grid",html:b.template("theme"),events:{click:"preview",keydown:"preview",touchend:"preview",keyup:"addFocus",touchmove:"preventExpand"},touchDrag:!1,render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)).attr({tabindex:0,"data-rating":a.rating,"data-plan":a.plan,"plan-name":a.plan_name}),a.custom_category&&a.custom_category.length>0&&this.$el.html(this.html(a)).attr({"data-categories":a.custom_category.join(" ")}),this.$el.addClass("igg-card"),this.$el.addClass(a.plan_name),this.model.get("displayAuthor")&&this.$el.addClass("display-author"),this.model.get("installed")&&this.$el.addClass("is-installed")},activeTheme:function(){this.model.get("active")&&this.$el.addClass("active")},addFocus:function(){var b=a(":focus").hasClass("theme")?a(":focus"):a(":focus").parents(".theme");a(".theme.focus").removeClass("focus"),b.addClass("focus")},expand:function(c){var d=this;return c=c||window.event,"keydown"!==c.type||13===c.which||32===c.which?this.touchDrag===!0?this.touchDrag=!1:void(a(c.target).is(".theme-actions a")||(b.focusedTheme=this.$el,this.trigger("theme:expand",d.model.cid))):void 0},preventExpand:function(){this.touchDrag=!0},preview:function(c){var d,e,f=this;return c=c||window.event,this.touchDrag===!0?this.touchDrag=!1:void(a(c.target).hasClass("button-primary")||"keydown"===c.type&&13!==c.which&&32!==c.which||"keydown"===c.type&&13!==c.which&&a(":focus").hasClass("button")||(c.preventDefault(),c=c||window.event,b.focusedTheme=this.$el,e=new b.view.Preview({model:this.model}),e.render(),this.setNavButtonsState(),1===this.model.collection.length?e.$el.addClass("no-navigation"):e.$el.removeClass("no-navigation"),this.listenTo(e,"theme:next",function(){return d=f.model,_.isUndefined(f.current)||(d=f.current),f.current=f.model.collection.at(f.model.collection.indexOf(d)+1),_.isUndefined(f.current)?(f.options.parent.parent.trigger("theme:end"),f.current=d):(e.model=f.current,e.render(),this.setNavButtonsState(),void a(".next-theme").focus())}).listenTo(e,"theme:previous",function(){d=f.model,0!==f.model.collection.indexOf(f.current)&&(_.isUndefined(f.current)||(d=f.current),f.current=f.model.collection.at(f.model.collection.indexOf(d)-1),_.isUndefined(f.current)||(e.model=f.current,e.render(),this.setNavButtonsState(),a(".previous-theme").focus()))}),this.listenTo(e,"preview:close",function(){f.current=f.model})))},setNavButtonsState:function(){var b=a(".theme-install-overlay"),c=_.isUndefined(this.current)?this.model:this.current;0===this.model.collection.indexOf(c)&&b.find(".previous-theme").addClass("disabled"),_.isUndefined(this.model.collection.at(this.model.collection.indexOf(c)+1))&&b.find(".next-theme").addClass("disabled")}}),b.view.Details=wp.Backbone.View.extend({className:"theme-overlay",events:{click:"collapse","click .delete-theme":"deleteTheme","click .left":"previousTheme","click .right":"nextTheme"},html:b.template("theme-single"),render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)),this.activeTheme(),this.navigation(),this.screenshotCheck(this.$el),this.containFocus(this.$el)},activeTheme:function(){this.$el.toggleClass("active",this.model.get("active"))},containFocus:function(b){var c;_.delay(function(){a(".theme-wrap a.button-primary:visible").focus()},500),b.on("keydown.wp-themes",function(d){9===d.which&&(c=a(d.target),c.is("button.left")&&d.shiftKey?(b.find(".theme-actions a:last-child").focus(),d.preventDefault()):c.is(".theme-actions a:last-child")&&(b.find("button.left").focus(),d.preventDefault()))})},collapse:function(c){var d,e=this;c=c||window.event,1!==b.data.themes.length&&(a(c.target).is(".theme-backdrop")||a(c.target).is(".close")||27===c.keyCode)&&(a("body").addClass("closing-overlay"),this.$el.fadeOut(130,function(){a("body").removeClass("closing-overlay"),e.closeOverlay(),d=document.body.scrollTop,b.router.navigate(b.router.baseUrl("")),document.body.scrollTop=d,b.focusedTheme&&b.focusedTheme.focus()}))},navigation:function(){this.model.cid===this.model.collection.at(0).cid&&this.$el.find(".left").addClass("disabled"),this.model.cid===this.model.collection.at(this.model.collection.length-1).cid&&this.$el.find(".right").addClass("disabled")},closeOverlay:function(){a("body").removeClass("modal-open"),this.remove(),this.unbind(),this.trigger("theme:collapse")},deleteTheme:function(){return confirm(b.data.settings.confirmDelete)},nextTheme:function(){var a=this;return a.trigger("theme:next",a.model.cid),!1},previousTheme:function(){var a=this;return a.trigger("theme:previous",a.model.cid),!1},screenshotCheck:function(a){var b,c;b=a.find(".screenshot img"),c=new Image,c.src=b.attr("src"),c.width&&c.width<=300&&a.addClass("small-screenshot")}}),b.view.Preview=b.view.Details.extend({className:"wp-full-overlay expanded",el:".ig-gallery-wrap .theme-install-overlay",events:{"click .close-full-overlay":"close","click .collapse-sidebar":"collapse","click .previous-theme":"previousTheme","click .next-theme":"nextTheme",keyup:"keyEvent"},html:b.template("theme-preview"),render:function(){var c=this,d=this.model.toJSON();this.$el.removeClass("iframe-ready").html(this.html(d)),b.router.navigate(b.router.baseUrl(b.router.themePath+this.model.get("id")),{replace:!0}),this.$el.fadeIn(200,function(){a("body").addClass("theme-installer-active full-overlay-active"),a(".close-full-overlay").focus()}),this.$el.find("iframe").one("load",function(){c.iframeLoaded()}),d.plan<=b.data.settings.ig_plan?this.$el.find(".theme-install").show():this.$el.find(".ig-get-pro").show()},iframeLoaded:function(){this.$el.addClass("iframe-ready")},close:function(){return this.$el.hide(200,function(){a("body").removeClass("theme-installer-active full-overlay-active"),b.focusedTheme&&b.focusedTheme.focus()}).removeClass("iframe-ready"),b.router.navigate(b.router.baseUrl("")),this.trigger("preview:close"),this.undelegateEvents(),this.unbind(),!1},collapse:function(b){var d=a(b.currentTarget);return"true"===d.attr("aria-expanded")?d.attr({"aria-expanded":"false","aria-label":c.expandSidebar}):d.attr({"aria-expanded":"true","aria-label":c.collapseSidebar}),this.$el.toggleClass("collapsed").toggleClass("expanded"),!1},keyEvent:function(a){27===a.keyCode&&(this.undelegateEvents(),this.close()),39===a.keyCode&&_.once(this.nextTheme()),37===a.keyCode&&this.previousTheme()}}),b.view.Themes=wp.Backbone.View.extend({className:"themes",$overlay:a("div.theme-overlay"),index:0,count:a(".wp-core-ui .theme-count"),liveThemeCount:0,initialize:function(b){var c=this;this.parent=b.parent,this.setView("grid"),c.currentTheme(),this.listenTo(c.collection,"update",function(){c.parent.page=0,c.currentTheme(),c.render(this)}),this.listenTo(c.collection,"query:success",function(a){_.isNumber(a)?(c.count.text(a),c.announceSearchResults(a)):(c.count.text(c.collection.length),c.announceSearchResults(c.collection.length))}),this.listenTo(c.collection,"query:empty",function(){a("body").addClass("no-results")}),this.listenTo(this.parent,"theme:scroll",function(){c.renderThemes(c.parent.page)}),this.listenTo(this.parent,"theme:close",function(){c.overlay&&c.overlay.closeOverlay()}),a("body").on("keyup",function(a){c.overlay&&(39===a.keyCode&&c.overlay.nextTheme(),37===a.keyCode&&c.overlay.previousTheme(),27===a.keyCode&&c.overlay.collapse(a))})},render:function(){this.$el.empty(),1===b.data.themes.length&&(this.singleTheme=new b.view.Details({model:this.collection.models[0]}),this.singleTheme.render(),this.$el.addClass("single-theme"),this.$el.append(this.singleTheme.el)),this.options.collection.size()>0&&this.renderThemes(this.parent.page),this.liveThemeCount=this.collection.count?this.collection.count:this.collection.length,this.count.text(this.liveThemeCount),this.announceSearchResults(this.liveThemeCount)},renderThemes:function(d){var e=this;return e.instance=e.collection.paginate(d),0===e.instance.size()?void this.parent.trigger("theme:end"):(!b.isInstall&&d>=1&&a(".add-new-theme").remove(),e.instance.each(function(a){e.theme=new b.view.Theme({model:a,parent:e}),e.theme.render(),e.$el.append(e.theme.el),e.listenTo(e.theme,"theme:expand",e.expand,e)}),!b.isInstall&&b.data.settings.canInstall&&this.$el.append('<div class="theme add-new-theme"><a href="'+b.data.settings.installURI+'"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">'+c.addNew+"</h2></a></div>"),void this.parent.page++)},currentTheme:function(){var a,b=this;a=b.collection.findWhere({active:!0}),a&&(b.collection.remove(a),b.collection.add(a,{at:0}))},setView:function(a){return a},expand:function(c){var d=this;this.model=d.collection.get(c),b.router.navigate(b.router.baseUrl(b.router.themePath+this.model.id)),this.setView("detail"),a("body").addClass("modal-open"),this.overlay=new b.view.Details({model:d.model}),this.overlay.render(),this.$overlay.html(this.overlay.el),this.listenTo(this.overlay,"theme:next",function(){d.next([d.model.cid])}).listenTo(this.overlay,"theme:previous",function(){d.previous([d.model.cid])})},next:function(a){var b,c,d=this;b=d.collection.get(a[0]),c=d.collection.at(d.collection.indexOf(b)+1),void 0!==c&&(this.overlay.closeOverlay(),d.theme.trigger("theme:expand",c.cid))},previous:function(a){var b,c,d=this;b=d.collection.get(a[0]),c=d.collection.at(d.collection.indexOf(b)-1),void 0!==c&&(this.overlay.closeOverlay(),d.theme.trigger("theme:expand",c.cid))},announceSearchResults:function(a){0===a?wp.a11y.speak(c.noThemesFound):wp.a11y.speak(c.themesFound.replace("%d",a))}}),b.view.Search=wp.Backbone.View.extend({tagName:"input",className:"wp-filter-search",id:"wp-filter-search-input",searching:!1,attributes:{placeholder:c.searchPlaceholder,type:"search","aria-describedby":"live-search-desc"},events:{input:"search",keyup:"search",blur:"pushState"},initialize:function(a){this.parent=a.parent,this.listenTo(this.parent,"theme:close",function(){this.searching=!1})},search:function(a){"keyup"===a.type&&27===a.which&&(a.target.value=""),this.doSearch(a)},doSearch:_.debounce(function(a){var c={};this.collection.doSearch(a.target.value),this.searching&&13!==a.which?c.replace=!0:this.searching=!0,a.target.value?b.router.navigate(b.router.baseUrl(b.router.searchPath+a.target.value),c):b.router.navigate(b.router.baseUrl(""))},500),pushState:function(a){var c=b.router.baseUrl("");a.target.value&&(c=b.router.baseUrl(b.router.searchPath+a.target.value)),this.searching=!1,b.router.navigate(c)}}),b.Router=Backbone.Router.extend({routes:{"demos/?item=:id":"preview","demos/?browse=:sort":"sort",demos:"sort","&search=:query":"search"},baseUrl:function(a){return"demos"+a},themePath:"?item=",browsePath:"?browse=",searchPath:"?search=",search:function(b){a(".wp-filter-search").val(b)},themes:function(){a(".wp-filter-search").val("")},navigate:function(){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.apply(this,arguments)}}),b.Run={init:function(){this.themes=new b.Collection(b.data.themes);var a=_.sortBy(this.themes.models,function(a){return a.attributes.modified});this.themes.reset(a.reverse()),this.view=new b.view.Appearance({collection:this.themes}),this.render()},render:function(){this.view.render(),this.routes(),Backbone.history.start({pushState:!0,hashChange:!1})},routes:function(){var c=this;request={},b.router=new b.Router,b.router.on("route:preview",function(a){request.id=a,c.view.collection.query(request),c.view.collection.once("update",function(){c.view.view.theme.preview()})}),b.router.on("route:themes",function(){c.themes.doSearch(""),c.view.trigger("theme:close")}),b.router.on("route:search",function(){a(".wp-filter-search").trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},b.view.InstallerSearch=b.view.Search.extend({events:{input:"search",keyup:"search"},search:function(a){("keyup"!==a.type||9!==a.which&&16!==a.which)&&(this.collection=this.options.parent.view.collection,"keyup"===a.type&&27===a.which&&(a.target.value=""),this.doSearch(a.target.value))},doSearch:_.debounce(function(c){var d,e,f,g,h,i;if(a(".filter-links li > a.current").removeClass("current"),a("body").removeClass("show-filters filters-applied show-favorites-form"),this.collection.filtered||this.collection.reset(b.data.themes,{silent:!0}),term=c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),""!==term&&(term=term.replace(/ /g,")(?=.*"),d=new RegExp("^(?=.*"+term+").+","i"),e=this.collection.filter(function(a){return g=a.get("description"),h=a.get("content").rendered.replace(/(<([^>]+)>)/gi,""),h=h.replace(/\n/g,""),i=a.get("message_type"),f=i+h+g,d.test(f)}))){this.collection.reset(e);var j=this.collection.length}""===term&&this.collection.reset(b.data.themes,{silent:!0}),this.collection.trigger("update"),this.collection.trigger("query:success",j),b.router.navigate(b.router.baseUrl(b.router.searchPath+c),{replace:!0})},500)}),b.view.Installer=b.view.Appearance.extend({el:".wrap",events:{"click .filter-links li > a":"onSort","click .theme-filter":"onFilter","click .drawer-toggle":"moreFilters","click .filter-drawer .apply-filters":"applyFilters",'click .filter-group [type="checkbox"]':"addFilter","click .filter-drawer .clear-filters":"clearFilters","click .filtered-by":"backToFilters","click .favorites-form-submit":"saveUsername","keyup #wporg-username-input":"saveUsername","click .igg-sidebar .category-type":"filter","click #ig-select-goal":"setSubcat","click .ig-message-type-select":"setFilter","click .igg-content .category-type":"filter","click .igg-filters .gallery_filters":"galleryfilter","click .igg-filters .category-type":"filter","click .category.not_have_sub_cat":"filter"},render:function(){var d=this;this.search(),this.uploader(),this.collection=new b.Collection,this.listenTo(this,"theme:end",function(){d.collection.loadingThemes||(d.collection.loadingThemes=!0,d.collection.currentQuery.page++,_.extend(d.collection.currentQuery.request,{page:d.collection.currentQuery.page}),d.collection.query(d.collection.currentQuery.request))}),this.listenTo(this.collection,"query:success",function(){a("body").removeClass("loading-content"),a(".theme-browser").find("div.error").remove()}),this.listenTo(this.collection,"query:fail",function(){a("body").removeClass("loading-content"),a(".theme-browser").find("div.error").remove(),a(".theme-browser").find("div.themes").before('<div class="error"><p>'+c.error+"</p></div>")}),this.view&&this.view.remove(),this.view=new b.view.Themes({collection:this.collection,parent:this}),this.page=0,this.$el.find(".themes").remove(),this.view.render(),this.$el.find(".theme-browser").append(this.view.el).addClass("rendered")},browse:function(a){if("featured"==a||"all"==a)this.collection.query({browse:a});else{var b;if(b=this.collection.filter(function(b){var c=_.invert(b.attributes.tags);return c.hasOwnProperty(a)?!0:void 0})){this.collection.reset(b);var c=this.collection.length}}this.collection.trigger("update"),this.collection.trigger("query:success",c)},onSort:function(c){var d=a(c.target),e=d.data("sort");c.preventDefault(),a("body").removeClass("filters-applied show-filters"),d.hasClass(this.activeClass)||(this.collection.reset(b.data.themes,{silent:!0}),this.sort(e),b.router.navigate(b.router.baseUrl(b.router.browsePath+e)))},sort:function(b){this.clearSearch(),a(".filter-links li > a, .theme-filter").removeClass(this.activeClass),a('[data-sort="'+b+'"]').addClass(this.activeClass),"favorites"===b?a("body").addClass("show-favorites-form"):a("body").removeClass("show-favorites-form"),this.browse(b)},onFilter:function(b){var c,d=a(b.target),e=d.data("filter");d.hasClass(this.activeClass)||(a(".filter-links li > a, .theme-section").removeClass(this.activeClass),d.addClass(this.activeClass),e&&(e=_.union(e,this.filtersChecked()),c={tag:[e]},this.collection.query(c)))},addFilter:function(){this.filtersChecked()},applyFilters:function(b){var c,d=this.filtersChecked(),e={tag:d},f=a(".filtered-by .tags");b&&b.preventDefault(),a("body").addClass("filters-applied"),a(".filter-links li > a.current").removeClass("current"),f.empty(),_.each(d,function(b){c=a('label[for="filter-id-'+b+'"]').text(),f.append('<span class="tag">'+c+"</span>")}),this.collection.query(e)},setSubcat:function(b){a(".ig-onboarding-campaign-goal").hide(),a(".ig-onboarding-campaign-type").show()},setFilter:function(b){this.onboarding_filter(),a(".igg-content, .description, .igg-filters").show(),a(".ig-onboarding-campaign-type, .ig-logo").hide()},onboarding_filter:function(c){var d=[],e=a('[name="ig-campaign-goal"]:checked'),f=e.attr("category"),g=e.attr(f).split(",").map(Number),h=a('[name="ig-campaign-type"]:checked'),i=h.attr("category");if(a.each(a('[name="ig-campaign-type"]:checked'),function(){d.push(parseInt(a(this).attr(i)))}),0===Object.keys(d).length){var h=a('[name="ig-campaign-type"]:first');i=h.attr("category"),a.each(a('[name="ig-campaign-type"]'),function(){d.push(parseInt(a(this).attr(i)))})}var j,k=0;this.collection.reset(b.data.themes,{silent:!0}),j=this.collection.filter(function(a){var b=_.intersection(a.get("custom_category"),d),c=_.intersection(a.get("custom_category"),g);return b.length>0&&c.length>0?(k++,a):void 0}),void 0!==j&&(this.collection.reset(j),this.collection.filtered=!0,delete j),this.collection.trigger("update"),this.collection.trigger("query:success",k)},galleryfilter:function(c){var d,e,f=[],g=[],h=a(".gallery_campaign_goal option:selected");0!=h.attr("use-case")&&(h=a(".gallery_campaign_goal option:selected"),d=h.attr("category"),a(h).each(function(b,c){g.push(parseInt(a(c).attr(d)))}));var i=a(".gallery_message_type option:selected");if(0!=i.attr("message-type")&&(i=a(".gallery_message_type option:selected"),e=i.attr("category"),a(i).each(function(b,c){f.push(parseInt(a(c).attr(e)))})),0!==Object.keys(g).length||0!==Object.keys(f).length){0===Object.keys(g).length?(d="use-case",a(".gallery_campaign_goal option").each(function(){g.push(parseInt(a(this).attr(d)))})):0===Object.keys(f).length&&(e="message-type",a(".gallery_message_type option").each(function(){f.push(parseInt(a(this).attr(e)))}));var j,k=0;this.collection.reset(b.data.themes,{silent:!0}),j=this.collection.filter(function(a){var b=_.intersection(a.get("custom_category"),f),c=_.intersection(a.get("custom_category"),g);return b.length>0&&c.length>0?(k++,a):void 0}),void 0!==j&&(this.collection.reset(j),this.collection.filtered=!0,delete j),this.collection.trigger("update"),this.collection.trigger("query:success",k)}},filter:function(c){var d,e=a(c.currentTarget),f=e.attr("category"),g=e.attr(f),h=0;if(this.collection.reset(b.data.themes,{silent:!0}),"reset"!=f&&(d=this.collection.filter(function(a){var b=Number(g);return a.get("custom_category").indexOf(Number(b))>-1?(h++,a):void 0})),h>0);void 0!==d&&(this.collection.reset(d),this.collection.filtered=!0,delete d),this.collection.trigger("update"),this.collection.trigger("query:success",h)},customFilter:function(a){var c,d=0;if(this.collection.reset(b.data.themes,{silent:!0}),c=this.collection.filter(function(a){var b=Number(51);return a.get("custom_category").indexOf(Number(b))>-1?(d++,a):void 0}),d>0);void 0!==c&&(this.collection.reset(c),this.collection.filtered=!0,delete c),this.collection.trigger("update"),this.collection.trigger("query:success",d)},saveUsername:function(b){var c=a("#wporg-username-input").val(),d={browse:"favorites",user:c},e=this;return b&&b.preventDefault(),"keyup"!==b.type||13===b.which?wp.ajax.send("save-wporg-username",{data:{username:c},success:function(){e.collection.query(d)}}):void 0},filtersChecked:function(){var b=a(".filter-group").find(":checkbox"),c=[];return _.each(b.filter(":checked"),function(b){c.push(a(b).prop("value"))}),0===c.length?(a(".filter-drawer .apply-filters").find("span").text(""),a(".filter-drawer .clear-filters").hide(),a("body").removeClass("filters-applied"),!1):(a(".filter-drawer .apply-filters").find("span").text(c.length),a(".filter-drawer .clear-filters").css("display","inline-block"),c)},activeClass:"current",searchContainer:a(".search-form"),uploader:function(){a("a.upload").on("click",function(c){c.preventDefault(),a("body").addClass("show-upload-theme"),b.router.navigate(b.router.baseUrl("?upload"),{replace:!0})}),a("a.browse-themes").on("click",function(c){c.preventDefault(),a("body").removeClass("show-upload-theme"),b.router.navigate(b.router.baseUrl(""),{replace:!0})})},moreFilters:function(c){return c.preventDefault(),a("body").hasClass("filters-applied")?this.backToFilters():a("body").hasClass("show-filters")&&this.filtersChecked()?this.addFilter():(this.clearSearch(),b.router.navigate(b.router.baseUrl("")),void a("body").toggleClass("show-filters"))},clearFilters:function(b){var c=a(".filter-group").find(":checkbox"),d=this;b.preventDefault(),_.each(c.filter(":checked"),function(b){return a(b).prop("checked",!1),d.filtersChecked()})},backToFilters:function(b){b&&b.preventDefault(),a("body").removeClass("filters-applied")},clearSearch:function(){a("#wp-filter-search-input").val("")}}),b.InstallerRouter=Backbone.Router.extend({routes:{"edit.php?post_type=ig_campaign&page=icegram-gallery&item=:id":"preview","edit.php?post_type=ig_campaign&page=icegram-gallery&browse=:sort":"sort","edit.php?post_type=ig_campaign&page=icegram-gallery":"sort","post-new.php?post_type=ig_campaign":"sort","edit.php?post_type=ig_campaign&page=icegram-gallery&search=:query":"search"},baseUrl:function(a){return"edit.php?post_type=ig_campaign&page=icegram-gallery"+a},themePath:"&item=",browsePath:"&browse=",searchPath:"&search=",search:function(b){a(".wp-filter-search").val(b)},navigate:function(){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.apply(this,arguments)}}),b.RunInstaller={init:function(){this.view=new b.view.Installer({section:"featured",SearchView:b.view.InstallerSearch}),this.render()},render:function(){this.view.render(),this.routes(),Backbone.history.start({root:b.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var c=this,d={};b.router=new b.InstallerRouter,b.router.on("route:preview",function(a){d.id=a,c.view.collection.query(d),c.view.collection.once("update",function(){c.view.view.theme.preview()})}),b.router.on("route:sort",function(a){a||(a="featured"),c.view.sort(a),c.view.trigger("theme:close")}),b.router.on("route:upload",function(){a("a.upload").trigger("click")}),b.router.on("route:search",function(){a(".wp-filter-search").focus().trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}};var d=function(a){var b="";switch(a){case"0":b="free";break;case"1":b="plus";break;case"2":b="pro";break;case"3":b="max"}return b};a(document).ready(function(){b.isInstall?b.RunInstaller.init():b.Run.init(),a(".broken-themes .delete-theme").on("click",function(){return confirm(_wpThemeSettings.settings.confirmDelete)});var c=[],d=[];jQuery(".ig-message-type-select").click(function(){jQuery('[name="ig-campaign-goal"]:checked').each(function(){var a=jQuery(this).val();d.push(a)}),jQuery('[name="ig-campaign-type"]:checked').each(function(){var a=jQuery(this).val();c.push(a)}),jQuery(".gallery_campaign_goal").val(d).trigger("change"),jQuery(".gallery_message_type").val(c).trigger("change")}),jQuery(".gallery_campaign_goal, .gallery_message_type").select2(),jQuery(".gallery_campaign_goal").select2({placeholder:"Choose your goals"}),jQuery(".gallery_message_type").select2({placeholder:"Select message types"}),jQuery(".ig-reset-button").click(function(){jQuery(".gallery_campaign_goal").val("").trigger("change"),jQuery(".gallery_message_type").val("").trigger("change")})})}(jQuery);var tb_position;jQuery(document).ready(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>1040?1040:c,f=0;a("#wpadminbar").length&&(f=parseInt(a("#wpadminbar").css("height"),10)),b.size()&&(b.width(e-50).height(d-45-f),a("#TB_iframeContent").width(e-50).height(d-75-f),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:20+f+"px","margin-top":"0"}))},a(window).resize(function(){tb_position()})});
1
+ window.wp=window.wp||{},function(a){var b,c;b=wp.themes=wp.themes||{},b.data=_wpThemeSettings,c=b.data.l10n,b.isInstall=b.data.settings.isInstall,_.extend(b,{model:{},view:{},routes:{},router:{},template:wp.template}),b.Model=Backbone.Model.extend({initialize:function(){var a;-1!==_.indexOf(b.data.installedThemes,this.get("slug"))&&this.set({installed:!0}),this.set({id:this.get("id")}),this.has("sections")&&(a=this.get("sections").description,this.set({description:a})),this.has("plan")&&this.set({plan_name:d(this.get("plan"))})}}),b.view.Appearance=wp.Backbone.View.extend({el:".wrap .theme-browser",events:{"click .filter-links li > a":"onSort"},window:a(window),page:0,activeClass:"current",initialize:function(a){_.bindAll(this,"scroller"),this.SearchView=a.SearchView?a.SearchView:b.view.Search,this.window.bind("scroll",_.throttle(this.scroller,300))},render:function(){this.view=new b.view.Themes({collection:this.collection,parent:this}),this.search(),this.view.render(),this.$el.append(this.view.el).addClass("rendered"),this.$el.append('<br class="clear"/>')},browse:function(a){if(this.collection.length<=0&&this.collection.query({browse:a}),"featured"==a||"all"==a)this.collection.query({browse:a});else{var b;if(b=this.collection.filter(function(b){var c=_.invert(b.attributes.tags);return c.hasOwnProperty(a)?!0:void 0})){this.collection.reset(b);var c=this.collection.length}}this.collection.trigger("update"),this.collection.trigger("query:success",c)},onSort:function(c){var d=a(c.target),e=d.data("sort");c.preventDefault(),a("body").removeClass("filters-applied show-filters"),d.hasClass(this.activeClass)||(this.collection.reset(b.data.themes,{silent:!0}),this.sort(e),b.router.navigate(b.router.baseUrl(b.router.browsePath+e)))},sort:function(b){this.clearSearch(),a(".filter-links li > a, .theme-filter").removeClass(this.activeClass),a('[data-sort="'+b+'"]').addClass(this.activeClass),"favorites"===b?a("body").addClass("show-favorites-form"):a("body").removeClass("show-favorites-form"),this.browse(b)},clearSearch:function(){a("#wp-filter-search-input").val("")},searchContainer:a(".search-form"),search:function(){var d,e=this;1!==b.data.themes.length&&(d=new this.SearchView({collection:e.collection,parent:this}),d.render(),this.searchContainer.append(a.parseHTML('<label class="screen-reader-text" for="wp-filter-search-input">'+c.search+"</label>")).append(d.el))},scroller:function(){var a,b,c=this;a=this.window.scrollTop()+c.window.height(),b=c.$el.offset().top+c.$el.outerHeight(!1)-c.window.height(),b=Math.round(.9*b),a>b&&this.trigger("theme:scroll")}}),b.Collection=Backbone.Collection.extend({model:b.Model,terms:"",doSearch:function(c){this.terms!==c&&(this.terms=c,this.terms.length>0&&this.search(this.terms),""===this.terms&&(this.reset(b.data.themes),a("body").removeClass("no-results")),this.trigger("update"))},search:function(c){var d,e,f,g,h,i;this.reset(b.data.themes,{silent:!0}),c=c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),c=c.replace(/ /g,")(?=.*"),d=new RegExp("^(?=.*"+c+").+","i"),e=this.filter(function(a){return g=a.get("name").replace(/(<([^>]+)>)/gi,""),h=a.get("description").replace(/(<([^>]+)>)/gi,""),i=a.get("author").replace(/(<([^>]+)>)/gi,""),f=_.union(g,a.get("id"),h,i,a.get("tags")),d.test(a.get("author"))&&c.length>2&&a.set("displayAuthor",!0),d.test(f)}),0===e.length?this.trigger("query:empty"):a("body").removeClass("no-results"),this.reset(e)},paginate:function(a){var b=this;return a=a||0,b=_(b.rest(20*a)),b=_(b.first(20))},count:!1,query:function(c){var d,e,f,g=this.queries,h=this;if(this.currentQuery.request=c,d=_.find(g,function(a){return _.isEqual(a.request,c)}),e=_.has(c,"page"),e||(this.currentQuery.page=1),d||e){if(e)return this.apiCall(c,e).then(function(a){h.add(a.themes),h.trigger("query:success"),h.loadingThemes=!1}).fail(function(){h.trigger("query:fail")});0===d.themes.length?h.trigger("query:empty"):a("body").removeClass("no-results"),_.isNumber(d.total)&&(this.count=d.total),this.reset(d.themes),d.total||(this.count=this.length),this.trigger("update"),this.trigger("query:success",this.count)}else{if(b.data.themes){data=b.data.themes,h.add(data),"undefined"!=typeof c.id&&(data=h.get(c.id),h.set(data));var i=_.sortBy(h.models,function(a){return a.attributes.modified});h.reset(i.reverse()),f=data.length,g.push({themes:data,request:c,total:f})}h.trigger("update"),h.trigger("query:success",f),data.themes&&0===data.themes.length&&h.trigger("query:empty")}},queries:[],currentQuery:{page:1,request:{}},loadingThemes:!1}),b.view.Theme=wp.Backbone.View.extend({className:"theme",state:"grid",html:b.template("theme"),events:{click:"preview",keydown:"preview",touchend:"preview",keyup:"addFocus",touchmove:"preventExpand"},touchDrag:!1,render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)).attr({tabindex:0,"data-rating":a.rating,"data-plan":a.plan,"plan-name":a.plan_name}),a.custom_category&&a.custom_category.length>0&&this.$el.html(this.html(a)).attr({"data-categories":a.custom_category.join(" ")}),this.$el.addClass("igg-card"),this.$el.addClass(a.plan_name),this.model.get("displayAuthor")&&this.$el.addClass("display-author"),this.model.get("installed")&&this.$el.addClass("is-installed")},activeTheme:function(){this.model.get("active")&&this.$el.addClass("active")},addFocus:function(){var b=a(":focus").hasClass("theme")?a(":focus"):a(":focus").parents(".theme");a(".theme.focus").removeClass("focus"),b.addClass("focus")},expand:function(c){var d=this;return c=c||window.event,"keydown"!==c.type||13===c.which||32===c.which?this.touchDrag===!0?this.touchDrag=!1:void(a(c.target).is(".theme-actions a")||(b.focusedTheme=this.$el,this.trigger("theme:expand",d.model.cid))):void 0},preventExpand:function(){this.touchDrag=!0},preview:function(c){var d,e,f=this;return c=c||window.event,this.touchDrag===!0?this.touchDrag=!1:void(a(c.target).hasClass("button-primary")||"keydown"===c.type&&13!==c.which&&32!==c.which||"keydown"===c.type&&13!==c.which&&a(":focus").hasClass("button")||(c.preventDefault(),c=c||window.event,b.focusedTheme=this.$el,e=new b.view.Preview({model:this.model}),e.render(),this.setNavButtonsState(),1===this.model.collection.length?e.$el.addClass("no-navigation"):e.$el.removeClass("no-navigation"),this.listenTo(e,"theme:next",function(){return d=f.model,_.isUndefined(f.current)||(d=f.current),f.current=f.model.collection.at(f.model.collection.indexOf(d)+1),_.isUndefined(f.current)?(f.options.parent.parent.trigger("theme:end"),f.current=d):(e.model=f.current,e.render(),this.setNavButtonsState(),void a(".next-theme").focus())}).listenTo(e,"theme:previous",function(){d=f.model,0!==f.model.collection.indexOf(f.current)&&(_.isUndefined(f.current)||(d=f.current),f.current=f.model.collection.at(f.model.collection.indexOf(d)-1),_.isUndefined(f.current)||(e.model=f.current,e.render(),this.setNavButtonsState(),a(".previous-theme").focus()))}),this.listenTo(e,"preview:close",function(){f.current=f.model})))},setNavButtonsState:function(){var b=a(".theme-install-overlay"),c=_.isUndefined(this.current)?this.model:this.current;0===this.model.collection.indexOf(c)&&b.find(".previous-theme").addClass("disabled"),_.isUndefined(this.model.collection.at(this.model.collection.indexOf(c)+1))&&b.find(".next-theme").addClass("disabled")}}),b.view.Details=wp.Backbone.View.extend({className:"theme-overlay",events:{click:"collapse","click .delete-theme":"deleteTheme","click .left":"previousTheme","click .right":"nextTheme"},html:b.template("theme-single"),render:function(){var a=this.model.toJSON();this.$el.html(this.html(a)),this.activeTheme(),this.navigation(),this.screenshotCheck(this.$el),this.containFocus(this.$el)},activeTheme:function(){this.$el.toggleClass("active",this.model.get("active"))},containFocus:function(b){var c;_.delay(function(){a(".theme-wrap a.button-primary:visible").focus()},500),b.on("keydown.wp-themes",function(d){9===d.which&&(c=a(d.target),c.is("button.left")&&d.shiftKey?(b.find(".theme-actions a:last-child").focus(),d.preventDefault()):c.is(".theme-actions a:last-child")&&(b.find("button.left").focus(),d.preventDefault()))})},collapse:function(c){var d,e=this;c=c||window.event,1!==b.data.themes.length&&(a(c.target).is(".theme-backdrop")||a(c.target).is(".close")||27===c.keyCode)&&(a("body").addClass("closing-overlay"),this.$el.fadeOut(130,function(){a("body").removeClass("closing-overlay"),e.closeOverlay(),d=document.body.scrollTop,b.router.navigate(b.router.baseUrl("")),document.body.scrollTop=d,b.focusedTheme&&b.focusedTheme.focus()}))},navigation:function(){this.model.cid===this.model.collection.at(0).cid&&this.$el.find(".left").addClass("disabled"),this.model.cid===this.model.collection.at(this.model.collection.length-1).cid&&this.$el.find(".right").addClass("disabled")},closeOverlay:function(){a("body").removeClass("modal-open"),this.remove(),this.unbind(),this.trigger("theme:collapse")},deleteTheme:function(){return confirm(b.data.settings.confirmDelete)},nextTheme:function(){var a=this;return a.trigger("theme:next",a.model.cid),!1},previousTheme:function(){var a=this;return a.trigger("theme:previous",a.model.cid),!1},screenshotCheck:function(a){var b,c;b=a.find(".screenshot img"),c=new Image,c.src=b.attr("src"),c.width&&c.width<=300&&a.addClass("small-screenshot")}}),b.view.Preview=b.view.Details.extend({className:"wp-full-overlay expanded",el:".ig-gallery-wrap .theme-install-overlay",events:{"click .close-full-overlay":"close","click .collapse-sidebar":"collapse","click .previous-theme":"previousTheme","click .next-theme":"nextTheme",keyup:"keyEvent"},html:b.template("theme-preview"),render:function(){var c=this,d=this.model.toJSON();this.$el.removeClass("iframe-ready").html(this.html(d)),b.router.navigate(b.router.baseUrl(b.router.themePath+this.model.get("id")),{replace:!0}),this.$el.fadeIn(200,function(){a("body").addClass("theme-installer-active full-overlay-active"),a(".close-full-overlay").focus()}),this.$el.find("iframe").one("load",function(){c.iframeLoaded()}),d.plan<=b.data.settings.ig_plan?this.$el.find(".theme-install").show():this.$el.find(".ig-get-pro").show()},iframeLoaded:function(){this.$el.addClass("iframe-ready")},close:function(){return this.$el.hide(200,function(){a("body").removeClass("theme-installer-active full-overlay-active"),b.focusedTheme&&b.focusedTheme.focus()}).removeClass("iframe-ready"),b.router.navigate(b.router.baseUrl("")),this.trigger("preview:close"),this.undelegateEvents(),this.unbind(),!1},collapse:function(b){var d=a(b.currentTarget);return"true"===d.attr("aria-expanded")?d.attr({"aria-expanded":"false","aria-label":c.expandSidebar}):d.attr({"aria-expanded":"true","aria-label":c.collapseSidebar}),this.$el.toggleClass("collapsed").toggleClass("expanded"),!1},keyEvent:function(a){27===a.keyCode&&(this.undelegateEvents(),this.close()),39===a.keyCode&&_.once(this.nextTheme()),37===a.keyCode&&this.previousTheme()}}),b.view.Themes=wp.Backbone.View.extend({className:"themes",$overlay:a("div.theme-overlay"),index:0,count:a(".wp-core-ui .theme-count"),liveThemeCount:0,initialize:function(b){var c=this;this.parent=b.parent,this.setView("grid"),c.currentTheme(),this.listenTo(c.collection,"update",function(){c.parent.page=0,c.currentTheme(),c.render(this)}),this.listenTo(c.collection,"query:success",function(a){_.isNumber(a)?(c.count.text(a),c.announceSearchResults(a)):(c.count.text(c.collection.length),c.announceSearchResults(c.collection.length))}),this.listenTo(c.collection,"query:empty",function(){a("body").addClass("no-results")}),this.listenTo(this.parent,"theme:scroll",function(){c.renderThemes(c.parent.page)}),this.listenTo(this.parent,"theme:close",function(){c.overlay&&c.overlay.closeOverlay()}),a("body").on("keyup",function(a){c.overlay&&(39===a.keyCode&&c.overlay.nextTheme(),37===a.keyCode&&c.overlay.previousTheme(),27===a.keyCode&&c.overlay.collapse(a))})},render:function(){this.$el.empty(),1===b.data.themes.length&&(this.singleTheme=new b.view.Details({model:this.collection.models[0]}),this.singleTheme.render(),this.$el.addClass("single-theme"),this.$el.append(this.singleTheme.el)),this.options.collection.size()>0&&this.renderThemes(this.parent.page),this.liveThemeCount=this.collection.count?this.collection.count:this.collection.length,this.count.text(this.liveThemeCount),this.announceSearchResults(this.liveThemeCount)},renderThemes:function(d){var e=this;return e.instance=e.collection.paginate(d),0===e.instance.size()?void this.parent.trigger("theme:end"):(!b.isInstall&&d>=1&&a(".add-new-theme").remove(),e.instance.each(function(a){e.theme=new b.view.Theme({model:a,parent:e}),e.theme.render(),e.$el.append(e.theme.el),e.listenTo(e.theme,"theme:expand",e.expand,e)}),!b.isInstall&&b.data.settings.canInstall&&this.$el.append('<div class="theme add-new-theme"><a href="'+b.data.settings.installURI+'"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">'+c.addNew+"</h2></a></div>"),void this.parent.page++)},currentTheme:function(){var a,b=this;a=b.collection.findWhere({active:!0}),a&&(b.collection.remove(a),b.collection.add(a,{at:0}))},setView:function(a){return a},expand:function(c){var d=this;this.model=d.collection.get(c),b.router.navigate(b.router.baseUrl(b.router.themePath+this.model.id)),this.setView("detail"),a("body").addClass("modal-open"),this.overlay=new b.view.Details({model:d.model}),this.overlay.render(),this.$overlay.html(this.overlay.el),this.listenTo(this.overlay,"theme:next",function(){d.next([d.model.cid])}).listenTo(this.overlay,"theme:previous",function(){d.previous([d.model.cid])})},next:function(a){var b,c,d=this;b=d.collection.get(a[0]),c=d.collection.at(d.collection.indexOf(b)+1),void 0!==c&&(this.overlay.closeOverlay(),d.theme.trigger("theme:expand",c.cid))},previous:function(a){var b,c,d=this;b=d.collection.get(a[0]),c=d.collection.at(d.collection.indexOf(b)-1),void 0!==c&&(this.overlay.closeOverlay(),d.theme.trigger("theme:expand",c.cid))},announceSearchResults:function(a){0===a?wp.a11y.speak(c.noThemesFound):wp.a11y.speak(c.themesFound.replace("%d",a))}}),b.view.Search=wp.Backbone.View.extend({tagName:"input",className:"wp-filter-search",id:"wp-filter-search-input",searching:!1,attributes:{placeholder:c.searchPlaceholder,type:"search","aria-describedby":"live-search-desc"},events:{input:"search",keyup:"search",blur:"pushState"},initialize:function(a){this.parent=a.parent,this.listenTo(this.parent,"theme:close",function(){this.searching=!1})},search:function(a){"keyup"===a.type&&27===a.which&&(a.target.value=""),this.doSearch(a)},doSearch:_.debounce(function(a){var c={};this.collection.doSearch(a.target.value),this.searching&&13!==a.which?c.replace=!0:this.searching=!0,a.target.value?b.router.navigate(b.router.baseUrl(b.router.searchPath+a.target.value),c):b.router.navigate(b.router.baseUrl(""))},500),pushState:function(a){var c=b.router.baseUrl("");a.target.value&&(c=b.router.baseUrl(b.router.searchPath+a.target.value)),this.searching=!1,b.router.navigate(c)}}),b.Router=Backbone.Router.extend({routes:{"demos/?item=:id":"preview","demos/?browse=:sort":"sort",demos:"sort","&search=:query":"search"},baseUrl:function(a){return"demos"+a},themePath:"?item=",browsePath:"?browse=",searchPath:"?search=",search:function(b){a(".wp-filter-search").val(b)},themes:function(){a(".wp-filter-search").val("")},navigate:function(){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.apply(this,arguments)}}),b.Run={init:function(){this.themes=new b.Collection(b.data.themes);var a=_.sortBy(this.themes.models,function(a){return a.attributes.modified});this.themes.reset(a.reverse()),this.view=new b.view.Appearance({collection:this.themes}),this.render()},render:function(){this.view.render(),this.routes(),Backbone.history.start({pushState:!0,hashChange:!1})},routes:function(){var c=this;request={},b.router=new b.Router,b.router.on("route:preview",function(a){request.id=a,c.view.collection.query(request),c.view.collection.once("update",function(){c.view.view.theme.preview()})}),b.router.on("route:themes",function(){c.themes.doSearch(""),c.view.trigger("theme:close")}),b.router.on("route:search",function(){a(".wp-filter-search").trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},b.view.InstallerSearch=b.view.Search.extend({events:{input:"search",keyup:"search"},search:function(a){("keyup"!==a.type||9!==a.which&&16!==a.which)&&(this.collection=this.options.parent.view.collection,"keyup"===a.type&&27===a.which&&(a.target.value=""),this.doSearch(a.target.value))},doSearch:_.debounce(function(c){var d,e,f,g,h,i;if(a(".filter-links li > a.current").removeClass("current"),a("body").removeClass("show-filters filters-applied show-favorites-form"),this.collection.filtered||this.collection.reset(b.data.themes,{silent:!0}),term=c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),""!==term&&(term=term.replace(/ /g,")(?=.*"),d=new RegExp("^(?=.*"+term+").+","i"),e=this.collection.filter(function(a){return g=a.get("description"),h=a.get("content").rendered.replace(/(<([^>]+)>)/gi,""),h=h.replace(/\n/g,""),i=a.get("message_type"),f=i+h+g,d.test(f)}))){this.collection.reset(e);var j=this.collection.length}""===term&&this.collection.reset(b.data.themes,{silent:!0}),this.collection.trigger("update"),this.collection.trigger("query:success",j),b.router.navigate(b.router.baseUrl(b.router.searchPath+c),{replace:!0})},500)}),b.view.Installer=b.view.Appearance.extend({el:".wrap",events:{"click .filter-links li > a":"onSort","click .theme-filter":"onFilter","click .drawer-toggle":"moreFilters","click .filter-drawer .apply-filters":"applyFilters",'click .filter-group [type="checkbox"]':"addFilter","click .filter-drawer .clear-filters":"clearFilters","click .filtered-by":"backToFilters","click .favorites-form-submit":"saveUsername","keyup #wporg-username-input":"saveUsername","click .igg-sidebar .category-type":"filter","click #ig-select-goal":"setSubcat","click .ig-message-type-select":"setFilter","click .igg-content .category-type":"filter","click .igg-filters .gallery_filters":"galleryfilter","click .igg-filters .category-type":"filter","click .category.not_have_sub_cat":"filter"},render:function(){var d=this;this.search(),this.uploader(),this.collection=new b.Collection,this.listenTo(this,"theme:end",function(){d.collection.loadingThemes||(d.collection.loadingThemes=!0,d.collection.currentQuery.page++,_.extend(d.collection.currentQuery.request,{page:d.collection.currentQuery.page}),d.collection.query(d.collection.currentQuery.request))}),this.listenTo(this.collection,"query:success",function(){a("body").removeClass("loading-content"),a(".theme-browser").find("div.error").remove()}),this.listenTo(this.collection,"query:fail",function(){a("body").removeClass("loading-content"),a(".theme-browser").find("div.error").remove(),a(".theme-browser").find("div.themes").before('<div class="error"><p>'+c.error+"</p></div>")}),this.view&&this.view.remove(),this.view=new b.view.Themes({collection:this.collection,parent:this}),this.page=0,this.$el.find(".themes").remove(),this.view.render(),this.$el.find(".theme-browser").append(this.view.el).addClass("rendered")},browse:function(a){if("featured"==a||"all"==a)this.collection.query({browse:a});else{var b;if(b=this.collection.filter(function(b){var c=_.invert(b.attributes.tags);return c.hasOwnProperty(a)?!0:void 0})){this.collection.reset(b);var c=this.collection.length}}this.collection.trigger("update"),this.collection.trigger("query:success",c)},onSort:function(c){var d=a(c.target),e=d.data("sort");c.preventDefault(),a("body").removeClass("filters-applied show-filters"),d.hasClass(this.activeClass)||(this.collection.reset(b.data.themes,{silent:!0}),this.sort(e),b.router.navigate(b.router.baseUrl(b.router.browsePath+e)))},sort:function(b){this.clearSearch(),a(".filter-links li > a, .theme-filter").removeClass(this.activeClass),a('[data-sort="'+b+'"]').addClass(this.activeClass),"favorites"===b?a("body").addClass("show-favorites-form"):a("body").removeClass("show-favorites-form"),this.browse(b)},onFilter:function(b){var c,d=a(b.target),e=d.data("filter");d.hasClass(this.activeClass)||(a(".filter-links li > a, .theme-section").removeClass(this.activeClass),d.addClass(this.activeClass),e&&(e=_.union(e,this.filtersChecked()),c={tag:[e]},this.collection.query(c)))},addFilter:function(){this.filtersChecked()},applyFilters:function(b){var c,d=this.filtersChecked(),e={tag:d},f=a(".filtered-by .tags");b&&b.preventDefault(),a("body").addClass("filters-applied"),a(".filter-links li > a.current").removeClass("current"),f.empty(),_.each(d,function(b){c=a('label[for="filter-id-'+b+'"]').text(),f.append('<span class="tag">'+c+"</span>")}),this.collection.query(e)},setSubcat:function(b){a(".ig-onboarding-campaign-goal").hide(),a(".ig-onboarding-campaign-type").show()},setFilter:function(b){this.onboarding_filter(),a(".igg-content, .description, .igg-filters").show(),a(".ig-onboarding-campaign-type, .ig-logo").hide()},onboarding_filter:function(c){var d=[],e=a('[name="ig-campaign-goal"]:checked'),f=e.attr("category"),g=e.attr(f).split(",").map(Number),h=a('[name="ig-campaign-type"]:checked'),i=h.attr("category");if(a.each(a('[name="ig-campaign-type"]:checked'),function(){d.push(parseInt(a(this).attr(i)))}),0===Object.keys(d).length){var h=a('[name="ig-campaign-type"]:first');i=h.attr("category"),a.each(a('[name="ig-campaign-type"]'),function(){d.push(parseInt(a(this).attr(i)))})}var j,k=0;this.collection.reset(b.data.themes,{silent:!0}),j=this.collection.filter(function(a){var b=_.intersection(a.get("custom_category"),d),c=_.intersection(a.get("custom_category"),g);return b.length>0&&c.length>0?(k++,a):void 0}),void 0!==j&&(this.collection.reset(j),this.collection.filtered=!0,delete j),this.collection.trigger("update"),this.collection.trigger("query:success",k)},galleryfilter:function(c){var d,e,f=[],g=[],h=a(".gallery_campaign_goal option:selected");0!=h.attr("use-case")&&(h=a(".gallery_campaign_goal option:selected"),d=h.attr("category"),a(h).each(function(b,c){g.push(parseInt(a(c).attr(d)))}));var i=a(".gallery_message_type option:selected");if(0!=i.attr("message-type")&&(i=a(".gallery_message_type option:selected"),e=i.attr("category"),a(i).each(function(b,c){f.push(parseInt(a(c).attr(e)))})),0!==Object.keys(g).length||0!==Object.keys(f).length){0===Object.keys(g).length?(d="use-case",a(".gallery_campaign_goal option").each(function(){g.push(parseInt(a(this).attr(d)))})):0===Object.keys(f).length&&(e="message-type",a(".gallery_message_type option").each(function(){f.push(parseInt(a(this).attr(e)))}));var j,k=0;this.collection.reset(b.data.themes,{silent:!0}),j=this.collection.filter(function(a){var b=_.intersection(a.get("custom_category"),f),c=_.intersection(a.get("custom_category"),g);return b.length>0&&c.length>0?(k++,a):void 0}),void 0!==j&&(this.collection.reset(j),this.collection.filtered=!0,delete j),this.collection.trigger("update"),this.collection.trigger("query:success",k)}},filter:function(c){var d,e=a(c.currentTarget),f=e.attr("category"),g=e.attr(f),h=0;if(this.collection.reset(b.data.themes,{silent:!0}),"reset"!=f&&(d=this.collection.filter(function(a){var b=Number(g);return a.get("custom_category").indexOf(Number(b))>-1?(h++,a):void 0})),h>0);void 0!==d&&(this.collection.reset(d),this.collection.filtered=!0,delete d),this.collection.trigger("update"),this.collection.trigger("query:success",h)},customFilter:function(a){var c,d=0;if(this.collection.reset(b.data.themes,{silent:!0}),c=this.collection.filter(function(a){var b=Number(51);return a.get("custom_category").indexOf(Number(b))>-1?(d++,a):void 0}),d>0);void 0!==c&&(this.collection.reset(c),this.collection.filtered=!0,delete c),this.collection.trigger("update"),this.collection.trigger("query:success",d)},saveUsername:function(b){var c=a("#wporg-username-input").val(),d={browse:"favorites",user:c},e=this;return b&&b.preventDefault(),"keyup"!==b.type||13===b.which?wp.ajax.send("save-wporg-username",{data:{username:c},success:function(){e.collection.query(d)}}):void 0},filtersChecked:function(){var b=a(".filter-group").find(":checkbox"),c=[];return _.each(b.filter(":checked"),function(b){c.push(a(b).prop("value"))}),0===c.length?(a(".filter-drawer .apply-filters").find("span").text(""),a(".filter-drawer .clear-filters").hide(),a("body").removeClass("filters-applied"),!1):(a(".filter-drawer .apply-filters").find("span").text(c.length),a(".filter-drawer .clear-filters").css("display","inline-block"),c)},activeClass:"current",searchContainer:a(".search-form"),uploader:function(){a("a.upload").on("click",function(c){c.preventDefault(),a("body").addClass("show-upload-theme"),b.router.navigate(b.router.baseUrl("?upload"),{replace:!0})}),a("a.browse-themes").on("click",function(c){c.preventDefault(),a("body").removeClass("show-upload-theme"),b.router.navigate(b.router.baseUrl(""),{replace:!0})})},moreFilters:function(c){return c.preventDefault(),a("body").hasClass("filters-applied")?this.backToFilters():a("body").hasClass("show-filters")&&this.filtersChecked()?this.addFilter():(this.clearSearch(),b.router.navigate(b.router.baseUrl("")),void a("body").toggleClass("show-filters"))},clearFilters:function(b){var c=a(".filter-group").find(":checkbox"),d=this;b.preventDefault(),_.each(c.filter(":checked"),function(b){return a(b).prop("checked",!1),d.filtersChecked()})},backToFilters:function(b){b&&b.preventDefault(),a("body").removeClass("filters-applied")},clearSearch:function(){a("#wp-filter-search-input").val("")}}),b.InstallerRouter=Backbone.Router.extend({routes:{"edit.php?post_type=ig_campaign&page=icegram-gallery&item=:id":"preview","edit.php?post_type=ig_campaign&page=icegram-gallery&browse=:sort":"sort","edit.php?post_type=ig_campaign&page=icegram-gallery":"sort","post-new.php?post_type=ig_campaign":"sort","edit.php?post_type=ig_campaign&page=icegram-gallery&search=:query":"search"},baseUrl:function(a){return"edit.php?post_type=ig_campaign&page=icegram-gallery"+a},themePath:"&item=",browsePath:"&browse=",searchPath:"&search=",search:function(b){a(".wp-filter-search").val(b)},navigate:function(){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.apply(this,arguments)}}),b.RunInstaller={init:function(){this.view=new b.view.Installer({section:"featured",SearchView:b.view.InstallerSearch}),this.render()},render:function(){this.view.render(),this.routes(),Backbone.history.start({root:b.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var c=this,d={};b.router=new b.InstallerRouter,b.router.on("route:preview",function(a){d.id=a,c.view.collection.query(d),c.view.collection.once("update",function(){c.view.view.theme.preview()})}),b.router.on("route:sort",function(a){a||(a="featured"),c.view.sort(a),c.view.trigger("theme:close")}),b.router.on("route:upload",function(){a("a.upload").trigger("click")}),b.router.on("route:search",function(){a(".wp-filter-search").focus().trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}};var d=function(a){var b="";switch(a){case"0":b="free";break;case"1":b="plus";break;case"2":b="pro";break;case"3":b="max"}return b};a(document).ready(function(){b.isInstall?b.RunInstaller.init():b.Run.init(),a(".broken-themes .delete-theme").on("click",function(){return confirm(_wpThemeSettings.settings.confirmDelete)});var c=[],d=[];jQuery(".ig-message-type-select").click(function(){jQuery('[name="ig-campaign-goal"]:checked').each(function(){var a=jQuery(this).val();d.push(a)}),jQuery('[name="ig-campaign-type"]:checked').each(function(){var a=jQuery(this).val();c.push(a)}),jQuery(".gallery_campaign_goal").val(d).trigger("change"),jQuery(".gallery_message_type").val(c).trigger("change")}),jQuery(".gallery_campaign_goal, .gallery_message_type").length>0&&(jQuery(".gallery_campaign_goal, .gallery_message_type").select2(),jQuery(".gallery_campaign_goal").select2({placeholder:"Choose your goals"})),jQuery(".gallery_message_type").length>0&&jQuery(".gallery_message_type").select2({placeholder:"Select message types"}),jQuery(".ig-reset-button").click(function(){jQuery(".gallery_campaign_goal").val("").trigger("change"),jQuery(".gallery_message_type").val("").trigger("change")})})}(jQuery);var tb_position;jQuery(document).ready(function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>1040?1040:c,f=0;a("#wpadminbar").length&&(f=parseInt(a("#wpadminbar").css("height"),10)),b.size()&&(b.width(e-50).height(d-45-f),a("#TB_iframeContent").width(e-50).height(d-75-f),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:20+f+"px","margin-top":"0"}))},a(window).resize(function(){tb_position()})});
lite/class-icegram.php CHANGED
@@ -64,6 +64,8 @@ if ( ! class_exists( 'Icegram' ) ) {
64
  add_action( 'admin_bar_menu', array( $this, 'ig_show_documentation_link_in_admin_bar' ), 999 );
65
  add_action( 'admin_head', array( $this, 'ig_documentation_link_admin_bar_css' ), 999 );
66
 
 
 
67
  } else {
68
  add_action( 'wp_footer', array( &$this, 'icegram_load_data' ) );
69
  }
@@ -612,15 +614,17 @@ if ( ! class_exists( 'Icegram' ) ) {
612
  }
613
 
614
  public function upgrade_screen() {
615
- // include ( 'addons.php' );
616
  }
617
 
618
  public function check_for_gallery_items( $force_update = false ) {
619
  global $icegram;
 
620
  if ( $force_update === true || false === ( $ig_last_gallery_item_update = get_transient( 'ig_last_gallery_item_update' ) ) ) {
621
  // $url_for_gallery_item = 'https://www.icegram.com/gallery/wp-json/wp/v2/galleryitem?per_page=200&page=1';
622
  $url_for_gallery_item = 'https://www.icegram.com/gallery/wp-json/wp/v2/galleryitem?filter[posts_per_page]=200';
623
  $ig_gallery_json = wp_remote_get( $url_for_gallery_item );
 
624
  if ( ! is_wp_error( $ig_gallery_json ) ) {
625
  $ig_gallery_json = ( wp_remote_retrieve_body( $ig_gallery_json ) );
626
  if ( ! empty( $ig_gallery_json ) ) {
@@ -758,7 +762,7 @@ if ( ! class_exists( 'Icegram' ) ) {
758
  global $icegram;
759
  //check for new gallery item
760
  $ig_last_gallery_item_update = get_transient( 'ig_last_gallery_item_update' );
761
-
762
  if ( empty( $ig_last_gallery_item_update ) ) {
763
  $icegram->check_for_gallery_items( true );
764
  }
@@ -2559,5 +2563,150 @@ if ( ! class_exists( 'Icegram' ) ) {
2559
  <?php
2560
  }
2561
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2562
  }
 
2563
  }
64
  add_action( 'admin_bar_menu', array( $this, 'ig_show_documentation_link_in_admin_bar' ), 999 );
65
  add_action( 'admin_head', array( $this, 'ig_documentation_link_admin_bar_css' ), 999 );
66
 
67
+ add_filter( 'ig_escape_allowed_tags', array( $this, 'ig_add_escape_allowed_tags' ) );
68
+
69
  } else {
70
  add_action( 'wp_footer', array( &$this, 'icegram_load_data' ) );
71
  }
614
  }
615
 
616
  public function upgrade_screen() {
617
+ Icegram_Pricing::ig_show_pricing();
618
  }
619
 
620
  public function check_for_gallery_items( $force_update = false ) {
621
  global $icegram;
622
+
623
  if ( $force_update === true || false === ( $ig_last_gallery_item_update = get_transient( 'ig_last_gallery_item_update' ) ) ) {
624
  // $url_for_gallery_item = 'https://www.icegram.com/gallery/wp-json/wp/v2/galleryitem?per_page=200&page=1';
625
  $url_for_gallery_item = 'https://www.icegram.com/gallery/wp-json/wp/v2/galleryitem?filter[posts_per_page]=200';
626
  $ig_gallery_json = wp_remote_get( $url_for_gallery_item );
627
+
628
  if ( ! is_wp_error( $ig_gallery_json ) ) {
629
  $ig_gallery_json = ( wp_remote_retrieve_body( $ig_gallery_json ) );
630
  if ( ! empty( $ig_gallery_json ) ) {
762
  global $icegram;
763
  //check for new gallery item
764
  $ig_last_gallery_item_update = get_transient( 'ig_last_gallery_item_update' );
765
+
766
  if ( empty( $ig_last_gallery_item_update ) ) {
767
  $icegram->check_for_gallery_items( true );
768
  }
2563
  <?php
2564
  }
2565
 
2566
+ /**
2567
+ * Add HTML tags to be excluded while escaping
2568
+ *
2569
+ * @return array $allowedtags
2570
+ */
2571
+ function ig_add_escape_allowed_tags() {
2572
+ $context_allowed_tags = wp_kses_allowed_html( 'post' );
2573
+ $custom_allowed_tags = array(
2574
+ 'div' => array(
2575
+ 'x-data' => true,
2576
+ 'x-show' => true,
2577
+ ),
2578
+ 'select' => array(
2579
+ 'class' => true,
2580
+ 'name' => true,
2581
+ 'id' => true,
2582
+ 'style' => true,
2583
+ 'title' => true,
2584
+ 'role' => true,
2585
+ 'data-*' => true,
2586
+ 'tab-*' => true,
2587
+ 'multiple' => true,
2588
+ 'aria-*' => true,
2589
+ 'disabled' => true,
2590
+ 'required' => 'required',
2591
+ ),
2592
+ 'optgroup' => array(
2593
+ 'label' => true,
2594
+ ),
2595
+ 'option' => array(
2596
+ 'class' => true,
2597
+ 'value' => true,
2598
+ 'selected' => true,
2599
+ 'name' => true,
2600
+ 'id' => true,
2601
+ 'style' => true,
2602
+ 'title' => true,
2603
+ 'data-*' => true,
2604
+ ),
2605
+ 'input' => array(
2606
+ 'class' => true,
2607
+ 'name' => true,
2608
+ 'type' => true,
2609
+ 'value' => true,
2610
+ 'id' => true,
2611
+ 'checked' => true,
2612
+ 'disabled' => true,
2613
+ 'selected' => true,
2614
+ 'style' => true,
2615
+ 'required' => 'required',
2616
+ 'min' => true,
2617
+ 'max' => true,
2618
+ 'maxlength' => true,
2619
+ 'size' => true,
2620
+ 'placeholder' => true,
2621
+ 'autocomplete' => true,
2622
+ 'autocapitalize' => true,
2623
+ 'autocorrect' => true,
2624
+ 'tabindex' => true,
2625
+ 'role' => true,
2626
+ 'aria-*' => true,
2627
+ 'data-*' => true,
2628
+ ),
2629
+ 'label' => array(
2630
+ 'class' => true,
2631
+ 'name' => true,
2632
+ 'type' => true,
2633
+ 'value' => true,
2634
+ 'id' => true,
2635
+ 'for' => true,
2636
+ 'style' => true,
2637
+ ),
2638
+ 'form' => array(
2639
+ 'class' => true,
2640
+ 'name' => true,
2641
+ 'value' => true,
2642
+ 'id' => true,
2643
+ 'style' => true,
2644
+ 'action' => true,
2645
+ 'method' => true,
2646
+ 'data-*' => true,
2647
+ ),
2648
+ 'svg' => array(
2649
+ 'width' => true,
2650
+ 'height' => true,
2651
+ 'viewbox' => true,
2652
+ 'xmlns' => true,
2653
+ 'class' => true,
2654
+ 'stroke-*' => true,
2655
+ 'fill' => true,
2656
+ 'stroke' => true,
2657
+ ),
2658
+ 'path' => array(
2659
+ 'd' => true,
2660
+ 'fill' => true,
2661
+ 'class' => true,
2662
+ 'fill-*' => true,
2663
+ 'clip-*' => true,
2664
+ 'stroke-linecap' => true,
2665
+ 'stroke-linejoin' => true,
2666
+ 'stroke-width' => true,
2667
+ 'fill-rule' => true,
2668
+ ),
2669
+
2670
+ 'main' => array(
2671
+ 'align' => true,
2672
+ 'dir' => true,
2673
+ 'lang' => true,
2674
+ 'xml:lang' => true,
2675
+ 'aria-*' => true,
2676
+ 'class' => true,
2677
+ 'id' => true,
2678
+ 'style' => true,
2679
+ 'title' => true,
2680
+ 'role' => true,
2681
+ 'data-*' => true,
2682
+ ),
2683
+ 'textarea' => array(
2684
+ 'id' => true,
2685
+ 'autocomplete' => true,
2686
+ 'required' => 'required',
2687
+ 'placeholder' => true,
2688
+ 'class' => true,
2689
+ ),
2690
+ 'style' => array(),
2691
+ 'link' => array(
2692
+ 'rel' => true,
2693
+ 'id' => true,
2694
+ 'href' => true,
2695
+ 'media' => true,
2696
+ ),
2697
+ 'a' => array(
2698
+ 'x-on:click' => true,
2699
+ ),
2700
+ 'polygon' => array(
2701
+ 'class' => true,
2702
+ 'points' => true,
2703
+ ),
2704
+ );
2705
+
2706
+ $allowedtags = array_merge_recursive( $context_allowed_tags, $custom_allowed_tags );
2707
+
2708
+ return $allowedtags;
2709
+ }
2710
  }
2711
+
2712
  }
lite/classes/class-icegram-pricing.php ADDED
@@ -0,0 +1,902 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Exit if accessed directly.
4
+ if ( ! defined( 'ABSPATH' ) ) {
5
+ exit;
6
+ }
7
+
8
+ class Icegram_Pricing {
9
+
10
+ public static function ig_show_pricing() {
11
+
12
+ $utm_medium = 'ig-upgrade';
13
+ $allowedtags = apply_filters( 'ig_escape_allowed_tags', array() );
14
+
15
+ ?>
16
+ <style type="text/css">
17
+ .update-nag {
18
+ display: none;
19
+ }
20
+ .wrap.about-wrap.ig {
21
+ margin: 0 auto;
22
+ max-width: 100%;
23
+ }
24
+ body{
25
+ background-color: white;
26
+ }
27
+ .ig_main_heading {
28
+ font-size: 2em;
29
+ background-color: #252f3f !important;
30
+ color: #ffffff;
31
+ text-align: center;
32
+ font-weight: 500;
33
+ margin: auto;
34
+ padding-top: 0.75em;
35
+ padding-bottom: 0.5em;
36
+ /* max-width: 1375px; */
37
+ }
38
+ .ig_discount_code {
39
+ /* color: #6875F5; */
40
+ font-weight: 600;
41
+ font-size: 2.5rem;
42
+ }
43
+ .ig_sub_headline {
44
+ font-size: 1.6em;
45
+ font-weight: 400;
46
+ color: #00848D !important;
47
+ text-align: center;
48
+ line-height: 1.5em;
49
+ margin: 0 auto 1em;
50
+ }
51
+ .ig_row {
52
+ /* padding: 1em !important;
53
+ margin: 1.5em !important; */
54
+ clear: both;
55
+ position: relative;
56
+ }
57
+ #ig_price_column_container {
58
+ display: -webkit-box;
59
+ display: -webkit-flex;
60
+ display: -ms-flexbox;
61
+ display: flex;
62
+ max-width: 1190px;
63
+ margin-right: auto;
64
+ margin-left: auto;
65
+ margin-top: 4em;
66
+ padding-bottom: 4em;
67
+ }
68
+ .ig_column {
69
+ padding: 2em;
70
+ margin: 0 1em;
71
+ background-color: #fff;
72
+ border: 1px solid rgba(0, 0, 0, 0.1);
73
+ text-align: center;
74
+ color: rgba(0, 0, 0, 0.75);
75
+ }
76
+ .column_one_fourth {
77
+ width: 30%;
78
+ border-radius: 3px;
79
+ margin-right: 4%;
80
+ }
81
+ .ig_last {
82
+ margin-right: 0;
83
+ }
84
+ .ig_price {
85
+ margin: 1.5em 0;
86
+ color: #1e73be;
87
+ }
88
+ .ig_button {
89
+ color: #FFFFFF !important;
90
+ padding: 15px 32px;
91
+ text-align: center;
92
+ text-decoration: none;
93
+ display: inline-block;
94
+ font-size: 16px;
95
+ font-weight: 500;
96
+ margin: 2em 2px 1em 2px;
97
+ cursor: pointer;
98
+ }
99
+ .ig_button.green {
100
+ background: #23B191;
101
+ border-color: #23B191;
102
+ }
103
+ .ig_button.green:hover {
104
+ background: #66C78E;
105
+ border-color: #66C78E;
106
+ }
107
+
108
+ .ig_button.small {
109
+ text-transform: uppercase !important;
110
+ box-shadow: none;
111
+ padding: 0.8em;
112
+ font-size: 1rem;
113
+ border-radius: 0.25rem;
114
+ margin-top: 1em;
115
+ font-weight: 600;
116
+ }
117
+ .ig_discount_amount {
118
+ font-size: 1.3em !important;
119
+ }
120
+ .dashicons.dashicons-yes {
121
+ color: green;
122
+ font-size: 2em;
123
+ }
124
+ .dashicons.dashicons-no-alt {
125
+ color: #ed4337;
126
+ font-size: 2em;
127
+ }
128
+ .dashicons.dashicons-yes.yellow {
129
+ color: #BDB76B;
130
+ line-height: unset;
131
+ }
132
+ .dashicons.dashicons-awards,
133
+ .dashicons.dashicons-testimonial {
134
+ margin-right: 0.25em !important;
135
+ color: #15576F;
136
+ font-size: 1.25em;
137
+ }
138
+ .ig_license_name {
139
+ font-size: 1.1em !important;
140
+ color: #1a72bf !important;
141
+ font-weight: 500 !important;
142
+ }
143
+ .ig_old_price {
144
+ font-size: 1.3em;
145
+ color: #ed4337;
146
+ vertical-align: top;
147
+ }
148
+ .ig_new_price {
149
+ font-size: 1.6em;
150
+ padding-left: 0.2em;
151
+ font-weight: 400;
152
+ }
153
+ .ig_most_popular {
154
+ position: absolute;
155
+ right: 0px;
156
+ top: -39px;
157
+ background-color: #41495b;
158
+ background-color: #596174;
159
+ text-align: center;
160
+ color: white;
161
+ padding: 10px;
162
+ font-size: 18px;
163
+ border-top-right-radius: 4px;
164
+ border-top-left-radius: 4px;
165
+ font-weight: 500;
166
+ width: 275px;
167
+ }
168
+ #ig-testimonial {
169
+ text-align: center;
170
+ }
171
+ .ig-testimonial-content {
172
+ width: 50%;
173
+ margin: 0 auto;
174
+ margin-bottom: 1em;
175
+ background-color: #FCFEE9;
176
+ }
177
+ .ig-testimonial-content img {
178
+ width: 12% !important;
179
+ border-radius: 9999px;
180
+ margin: 0 auto;
181
+ }
182
+ .ig_testimonial_headline {
183
+ margin: 0.6em 0 !important;
184
+ font-weight: 500 !important;
185
+ font-size: 1.5em !important;
186
+ }
187
+ .ig_testimonial_text {
188
+ text-align: left;
189
+ font-size: 1.2em;
190
+ line-height: 1.6;
191
+ padding: 1em;
192
+ }
193
+ .pricing {
194
+ border-radius: 5px;
195
+ position: relative;
196
+ padding: 0.25em;
197
+ margin: 2em auto;
198
+ background-color: #fff;
199
+ border: 1px solid rgba(0, 0, 0, 0.1);
200
+ text-align: center;
201
+ color: rgba(0, 0, 0, 0.75);
202
+ }
203
+ .pricing h4 {
204
+ margin-top: 1em;
205
+ margin-bottom: 1em;
206
+ }
207
+ .pricing del {
208
+ font-size: 1.3em;
209
+ color: grey;
210
+ }
211
+ .pricing h2 {
212
+ margin-top: 0!important;
213
+ margin-bottom: 0.5em;
214
+ text-align: center;
215
+ font-weight: 600;
216
+ line-height: 1.218;
217
+ color: #515151;
218
+ font-size: 2.5em;
219
+ }
220
+ .pricing p {
221
+ text-align: center;
222
+ margin: 0em;
223
+ }
224
+ .pricing:hover{
225
+ border-color: #15576F;
226
+ }
227
+ .pricing.scaleup{
228
+ transform: scale(1.2);
229
+ }
230
+ .fidget.spin{
231
+ animation: spin 1.2s 0s linear both infinite;
232
+ }
233
+ @keyframes spin {
234
+ 0% {
235
+ transform: rotate(0deg);
236
+ }
237
+ 100% {
238
+ transform: rotate(360deg);
239
+ }
240
+ }
241
+ table.ig_feature_table {
242
+ width: 90%;
243
+ margin-left: 5%;
244
+ margin-right: 5%;
245
+ }
246
+ table.ig_feature_table th,
247
+ table.ig_feature_table tr,
248
+ table.ig_feature_table td,
249
+ table.ig_feature_table td span {
250
+ padding: 0.5em;
251
+ text-align: center !important;
252
+ background-color: transparent !important;
253
+ vertical-align: middle !important;
254
+ }
255
+ table.ig_feature_table,
256
+ table.ig_feature_table th,
257
+ table.ig_feature_table tr,
258
+ table.ig_feature_table td {
259
+ border: 1px solid #eaeaea;
260
+ }
261
+ table.ig_feature_table.widefat th,
262
+ table.ig_feature_table.widefat td {
263
+ color: #515151;
264
+ }
265
+ table.ig_feature_table th {
266
+ font-weight: bolder !important;
267
+ font-size: 1.3em;
268
+ }
269
+ table.ig_feature_table tr td {
270
+ font-size: 15px;
271
+ }
272
+ table.ig_feature_table th.ig_features {
273
+ background-color: #F4F4F4 !important;
274
+ color: #A1A1A1 !important;
275
+ width:16em;
276
+ }
277
+ table.ig_feature_table th.ig_free_features {
278
+ background-color: #F7E9C8 !important;
279
+ color: #D39E22 !important;
280
+ }
281
+ table.ig_feature_table th.ig_starter_features {
282
+ background-color: #CCFCBF !important;
283
+ color: #14C38E !important;
284
+ width:16em;
285
+ }
286
+ table.ig_feature_table th.ig_pro_features {
287
+ background-color: #DCDDFC !important;
288
+ color: #6875F5 !important;
289
+ }
290
+ table.ig_feature_table td{
291
+ padding: 0.5em;
292
+ }
293
+ table.ig_feature_table td.ig_feature_name {
294
+ text-transform: capitalize;
295
+ padding:1em 2em;
296
+ }
297
+ table.ig_feature_table td.ig_free_feature_name {
298
+ background-color: #FCF7EC !important;
299
+ padding:1em 2em;
300
+ }
301
+ table.ig_feature_table td.ig_starter_feature_name {
302
+ background-color: #E3FCBF !important;
303
+ padding:1em 3em;
304
+ }
305
+ table.ig_feature_table td.ig_pro_feature_name {
306
+ background-color: #F4F5FD !important;
307
+ padding:1em 2em;
308
+ }
309
+ #ig_product_page_link {
310
+ text-align: center;
311
+ font-size: 1.1em;
312
+ margin-top: 2em;
313
+ line-height: 2em;
314
+ }
315
+ .clr-a {
316
+ color: #00848D !important;
317
+ }
318
+ .update-nag , .error, .updated{
319
+ display:none;
320
+ }
321
+ table .dashicons {
322
+ padding-top: 0 !important;
323
+ }
324
+ #wpcontent {
325
+ padding-left: 0!important;
326
+ }
327
+ #ig-testimonial-others{
328
+ margin-top: 4em;
329
+ }
330
+ #ig_comparison_table{
331
+ margin-top: 4em;
332
+ }
333
+
334
+ </style>
335
+
336
+ <div class="wrap about-wrap ig">
337
+ <div class="ig_row" id="ig-pricing">
338
+ <div class="ig_main_heading">
339
+ <div style="display: inline-flex;">
340
+ <div style="padding-right: 0.5rem;">🎊</div>
341
+ <div style="line-height: 1.5rem;">
342
+ <?php
343
+ /* translators: %s: Offer text */
344
+ echo sprintf( esc_html__( 'Congratulations! You just unlocked %s on Icegram Premium!', 'icegram' ), '<span class="ig_discount_code">' . esc_html__( '25% off', 'icegram' ) . '</span>' );
345
+ ?>
346
+ </div>
347
+ <div style="padding-left: 0.5rem;">🎉</div>
348
+ </div>
349
+ <div style="padding-top: 1em;font-size: 0.5em;"><?php echo esc_html__( '⏰ Limited time offer', 'icegram' ); ?></div>
350
+ </div>
351
+ <div id="ig_price_column_container">
352
+ <div class="ig_column column_one_fourth pricing scaleup" style="border-color: #15576F;padding: 0;border-width: 0.2em;">
353
+ <div style="text-align: center;background-color: #15576F;color: #FFF;padding: 1em;font-weight: 900;text-transform: uppercase;"> <?php echo esc_html__( 'Best Seller', 'icegram' ); ?> </div>
354
+ <span class="ig_plan"><h4 class="clr-a center"><?php echo esc_html__( 'Max', 'icegram' ); ?></h4></span>
355
+ <span class="ig_plan"><h4 class="clr-a center"><?php echo esc_html__( '1 site (Annual)', 'icegram' ); ?></h4></span>
356
+ <span class="ig_price">
357
+ <p><del class="center"><?php echo esc_html__( '$147', 'icegram' ); ?></del></p>
358
+ <h2><?php echo esc_html__( '$110', 'icegram' ); ?></h2>
359
+ </span>
360
+
361
+ <div class="center">
362
+ <a class="ig_button small green center" href="https://www.icegram.com/?buy-now=16542&qty=1&coupon=ig-upgrade-25&with-cart=1&utm_source=ig_in_app&utm_medium=<?php echo esc_attr( $utm_medium ); ?>&utm_campaign=ig-max" target="_blank" rel="noopener"><?php esc_html_e( 'Buy Now', 'icegram' ); ?><span style="width: 1em; height: 1em; background-image: url('https://www.storeapps.org/wp-content/themes/storeapps/assets/images/fidget.svg'); display: inline-block; margin-left: 0.5em" class="fidget spin"></span></a>
363
+ </div>
364
+ </div>
365
+ <div class="ig_column column_one_fourth pricing ig_lifetime_price">
366
+ <span class="ig_plan"><h4 class="clr-a center"><?php echo esc_html__( 'Pro', 'icegram' ); ?></h4></span>
367
+ <span class="ig_plan"><h4 class="clr-a center"><?php echo esc_html__( '1 site (Annual)', 'icegram' ); ?></h4></span>
368
+ <span class="ig_price">
369
+ <p><del class="center"><?php echo esc_html__( '$97', 'icegram' ); ?></del></p>
370
+ <h2><?php echo esc_html__( '$73', 'icegram' ); ?></h2>
371
+ </span>
372
+
373
+ <div class="center">
374
+ <a class="ig_button small green center" href="https://www.icegram.com/?buy-now=16522&qty=1&coupon=ig-upgrade-25&with-cart=1&utm_source=ig_in_app&utm_medium=<?php echo esc_attr( $utm_medium ); ?>&utm_campaign=ig-pro" target="_blank" rel="noopener"><?php esc_html_e( 'Buy Now', 'icegram' ); ?></a>
375
+ </div>
376
+ </div>
377
+
378
+ </div>
379
+ </div>
380
+ <div class="ig_row" id="ig-testimonial">
381
+ <div class="ig_column ig-testimonial-content">
382
+ <?php
383
+ echo wp_kses( apply_filters( 'ig_pricing_page_testimonial_1', '<img src="' . IG_PLUGIN_URL . 'lite/assets/images/Annie Lax.png" alt="mnmatty" />
384
+ <div class="ig_testimonial_text">
385
+ ' . __( 'I performed a lot of research, went with my intuition, and purchased the Icegram add-ons. I’m so happy with this decision as I’m extremely pleased with the action bars, sidebars, stickies, ribbons, popups … well, everything!', 'icegram' ) . '<br><br>
386
+ - ' . __( 'Annie Lax', 'icegram' ) . '
387
+ </div>' ), $allowedtags );
388
+ ?>
389
+ </div>
390
+ </div>
391
+ <div class="ig_row" id="ig_comparison_table">
392
+ <div class="ig_sub_headline"><span class="dashicons dashicons-awards"></span><?php echo esc_html__( ' More powerful features with Icegram Engage!', 'icegram' ); ?></div>
393
+ <table class="ig_feature_table wp-list-table widefat">
394
+ <thead>
395
+ <tr>
396
+ <th class="ig_features">
397
+ <?php echo esc_html__( 'Features', 'icegram' ); ?>
398
+ </th>
399
+ <th class="ig_free_features">
400
+ <?php echo esc_html__( 'Free', 'icegram' ); ?>
401
+ </th>
402
+ <th class="ig_starter_features">
403
+ <?php echo esc_html__( 'Pro', 'icegram' ); ?>
404
+ </th>
405
+ <th class="ig_pro_features">
406
+ <?php echo esc_html__( 'Max', 'icegram' ); ?>
407
+ </th>
408
+ </tr>
409
+ </thead>
410
+ <tbody>
411
+ <tr>
412
+ <td class="ig_feature_name">
413
+ <strong><?php echo esc_html__( 'What\'s so special?', 'icegram' ); ?></strong>
414
+ </td>
415
+ <td class="ig_free_feature_name">
416
+ <?php echo esc_html__( 'Unlimited Campaigns, Unlimited Impressions and Unlimited Pageviews', 'icegram' ); ?>
417
+ </td>
418
+ <td class="ig_starter_feature_name">
419
+ <?php echo esc_html__( 'Everything in Free +', 'icegram' ); ?>
420
+ </td>
421
+ <td class="ig_pro_feature_name">
422
+ <?php echo esc_html__( 'Everything in Pro +', 'icegram' ); ?>
423
+ </td>
424
+ </tr>
425
+ <tr>
426
+ <td class="ig_feature_name">
427
+ <?php echo esc_html__( 'Popups', 'icegram' ); ?>
428
+ </td>
429
+ <td class="ig_free_feature_name">
430
+ <span class='dashicons dashicons-yes'></span>
431
+ </td>
432
+ <td class="ig_starter_feature_name">
433
+ <span class='dashicons dashicons-yes'></span>
434
+ </td>
435
+ <td class="ig_pro_feature_name">
436
+ <span class='dashicons dashicons-yes'></span>
437
+ </td>
438
+ </tr>
439
+ <tr>
440
+ <td class="ig_feature_name">
441
+ <?php echo esc_html__( 'Action Bars', 'icegram' ); ?>
442
+ </td>
443
+ <td class="ig_free_feature_name">
444
+ <span class='dashicons dashicons-yes'></span>
445
+ </td>
446
+ <td class="ig_starter_feature_name">
447
+ <span class='dashicons dashicons-yes'></span>
448
+ </td>
449
+ <td class="ig_pro_feature_name">
450
+ <span class='dashicons dashicons-yes'></span>
451
+ </td>
452
+ </tr>
453
+ <tr>
454
+ <td class="ig_feature_name">
455
+ <?php echo esc_html__( 'Toasts', 'icegram' ); ?>
456
+ </td>
457
+ <td class="ig_free_feature_name">
458
+ <span class='dashicons dashicons-yes'></span>
459
+ </td>
460
+ <td class="ig_starter_feature_name">
461
+ <span class='dashicons dashicons-yes'></span>
462
+ </td>
463
+ <td class="ig_pro_feature_name">
464
+ <span class='dashicons dashicons-yes'></span>
465
+ </td>
466
+ </tr>
467
+ <tr>
468
+ <td class="ig_feature_name">
469
+ <?php echo esc_html__( 'Messengers', 'icegram' ); ?>
470
+ </td>
471
+ <td class="ig_free_feature_name">
472
+ <span class='dashicons dashicons-yes'></span>
473
+ </td>
474
+ <td class="ig_starter_feature_name">
475
+ <span class='dashicons dashicons-yes'></span>
476
+ </td>
477
+ <td class="ig_pro_feature_name">
478
+ <span class='dashicons dashicons-yes'></span>
479
+ </td>
480
+ </tr>
481
+ <tr>
482
+ <td class="ig_feature_name">
483
+ <?php echo esc_html__( 'Badges', 'icegram' ); ?>
484
+ </td>
485
+ <td class="ig_free_feature_name">
486
+ <span class='dashicons dashicons-no-alt'></span>
487
+ </td>
488
+ <td class="ig_starter_feature_name">
489
+ <span class='dashicons dashicons-yes'></span>
490
+ </td>
491
+ <td class="ig_pro_feature_name">
492
+ <span class='dashicons dashicons-yes'></span>
493
+ </td>
494
+ </tr>
495
+ <tr>
496
+ <td class="ig_feature_name">
497
+ <?php echo esc_html__( 'Inline message', 'icegram' ); ?>
498
+ </td>
499
+ <td class="ig_free_feature_name">
500
+ <span class='dashicons dashicons-no-alt'></span>
501
+ </td>
502
+ <td class="ig_starter_feature_name">
503
+ <span class='dashicons dashicons-yes'></span>
504
+ </td>
505
+ <td class="ig_pro_feature_name">
506
+ <span class='dashicons dashicons-yes'></span>
507
+ </td>
508
+ </tr>
509
+ <tr>
510
+ <td class="ig_feature_name">
511
+ <?php echo esc_html__( 'Stickies', 'icegram' ); ?>
512
+ </td>
513
+ <td class="ig_free_feature_name">
514
+ <span class='dashicons dashicons-no-alt'></span>
515
+ </td>
516
+ <td class="ig_starter_feature_name">
517
+ <span class='dashicons dashicons-yes'></span>
518
+ </td>
519
+ <td class="ig_pro_feature_name">
520
+ <span class='dashicons dashicons-yes'></span>
521
+ </td>
522
+ </tr>
523
+ <tr>
524
+ <td class="ig_feature_name">
525
+ <?php echo esc_html__( 'Ribbons', 'icegram' ); ?>
526
+ </td>
527
+ <td class="ig_free_feature_name">
528
+ <span class='dashicons dashicons-no-alt'></span>
529
+ </td>
530
+ <td class="ig_starter_feature_name">
531
+ <span class='dashicons dashicons-yes'></span>
532
+ </td>
533
+ <td class="ig_pro_feature_name">
534
+ <span class='dashicons dashicons-yes'></span>
535
+ </td>
536
+ </tr>
537
+ <tr>
538
+ <td class="ig_feature_name">
539
+ <?php echo esc_html__( 'Interstitial', 'icegram' ); ?>
540
+ </td>
541
+ <td class="ig_free_feature_name">
542
+ <span class='dashicons dashicons-no-alt'></span>
543
+ </td>
544
+ <td class="ig_starter_feature_name">
545
+ <span class='dashicons dashicons-no-alt'></span>
546
+ </td>
547
+ <td class="ig_pro_feature_name">
548
+ <span class='dashicons dashicons-yes'></span>
549
+ </td>
550
+ </tr>
551
+ <tr>
552
+ <td class="ig_feature_name">
553
+ <?php echo esc_html__( 'Overlay', 'icegram' ); ?>
554
+ </td>
555
+ <td class="ig_free_feature_name">
556
+ <span class='dashicons dashicons-no-alt'></span>
557
+ </td>
558
+ <td class="ig_starter_feature_name">
559
+ <span class='dashicons dashicons-no-alt'></span>
560
+ </td>
561
+ <td class="ig_pro_feature_name">
562
+ <span class='dashicons dashicons-yes'></span>
563
+ </td>
564
+ </tr>
565
+ <tr>
566
+ <td class="ig_feature_name">
567
+ <?php echo esc_html__( 'Tab', 'icegram' ); ?>
568
+ </td>
569
+ <td class="ig_free_feature_name">
570
+ <span class='dashicons dashicons-no-alt'></span>
571
+ </td>
572
+ <td class="ig_starter_feature_name">
573
+ <span class='dashicons dashicons-no-alt'></span>
574
+ </td>
575
+ <td class="ig_pro_feature_name">
576
+ <span class='dashicons dashicons-yes'></span>
577
+ </td>
578
+ </tr>
579
+ <tr>
580
+ <td class="ig_feature_name">
581
+ <?php echo esc_html__( 'Sidebar', 'icegram' ); ?>
582
+ </td>
583
+ <td class="ig_free_feature_name">
584
+ <span class='dashicons dashicons-no-alt'></span>
585
+ </td>
586
+ <td class="ig_starter_feature_name">
587
+ <span class='dashicons dashicons-no-alt'></span>
588
+ </td>
589
+ <td class="ig_pro_feature_name">
590
+ <span class='dashicons dashicons-yes'></span>
591
+ </td>
592
+ </tr>
593
+ <tr>
594
+ <td class="ig_feature_name">
595
+ <?php echo esc_html__( 'Basic targeting rules', 'icegram' ); ?>
596
+ </td>
597
+ <td class="ig_free_feature_name">
598
+ <span class='dashicons dashicons-yes'></span>
599
+ </td>
600
+ <td class="ig_starter_feature_name">
601
+ <span class='dashicons dashicons-yes'></span>
602
+ </td>
603
+ <td class="ig_pro_feature_name">
604
+ <span class='dashicons dashicons-yes'></span>
605
+ </td>
606
+ </tr>
607
+ <tr>
608
+ <td class="ig_feature_name">
609
+ <?php echo esc_html__( 'Two-step optin', 'icegram' ); ?>
610
+ </td>
611
+ <td class="ig_free_feature_name">
612
+ <span class='dashicons dashicons-yes'></span>
613
+ </td>
614
+ <td class="ig_starter_feature_name">
615
+ <span class='dashicons dashicons-yes'></span>
616
+ </td>
617
+ <td class="ig_pro_feature_name">
618
+ <span class='dashicons dashicons-yes'></span>
619
+ </td>
620
+ </tr>
621
+ <tr>
622
+ <td class="ig_feature_name">
623
+ <?php echo esc_html__( 'Exit Intent targeting', 'icegram' ); ?>
624
+ </td>
625
+ <td class="ig_free_feature_name">
626
+ <span class='dashicons dashicons-no-alt'></span>
627
+ </td>
628
+ <td class="ig_starter_feature_name">
629
+ <span class='dashicons dashicons-yes'></span>
630
+ </td>
631
+ <td class="ig_pro_feature_name">
632
+ <span class='dashicons dashicons-yes'></span>
633
+ </td>
634
+ </tr>
635
+ <tr>
636
+ <td class="ig_feature_name">
637
+ <?php echo esc_html__( 'User behavior targeting', 'icegram' ); ?>
638
+ </td>
639
+ <td class="ig_free_feature_name">
640
+ <span class='dashicons dashicons-no-alt'></span>
641
+ </td>
642
+ <td class="ig_starter_feature_name">
643
+ <span class='dashicons dashicons-yes'></span>
644
+ </td>
645
+ <td class="ig_pro_feature_name">
646
+ <span class='dashicons dashicons-yes'></span>
647
+ </td>
648
+ </tr>
649
+ <tr>
650
+ <td class="ig_feature_name">
651
+ <?php echo esc_html__( 'Geographical Targeting', 'icegram' ); ?>
652
+ </td>
653
+ <td class="ig_free_feature_name">
654
+ <span class='dashicons dashicons-no-alt'></span>
655
+ </td>
656
+ <td class="ig_starter_feature_name">
657
+ <span class='dashicons dashicons-no-alt'></span>
658
+ </td>
659
+ <td class="ig_pro_feature_name">
660
+ <span class='dashicons dashicons-yes'></span>
661
+ </td>
662
+ </tr>
663
+ <tr>
664
+ <td class="ig_feature_name">
665
+ <?php echo esc_html__( 'Simple design themes', 'icegram' ); ?>
666
+ </td>
667
+ <td class="ig_free_feature_name">
668
+ <span class='dashicons dashicons-yes'></span>
669
+ </td>
670
+ <td class="ig_starter_feature_name">
671
+ <span class='dashicons dashicons-yes'></span>
672
+ </td>
673
+ <td class="ig_pro_feature_name">
674
+ <span class='dashicons dashicons-yes'></span>
675
+ </td>
676
+ </tr>
677
+ <tr>
678
+ <td class="ig_feature_name">
679
+ <?php echo esc_html__( 'Elegant design templates gallery', 'icegram' ); ?>
680
+ </td>
681
+ <td class="ig_free_feature_name">
682
+ <span class='dashicons dashicons-yes'></span>
683
+ </td>
684
+ <td class="ig_starter_feature_name">
685
+ <span class='dashicons dashicons-yes'></span>
686
+ </td>
687
+ <td class="ig_pro_feature_name">
688
+ <span class='dashicons dashicons-yes'></span>
689
+ </td>
690
+ </tr>
691
+ <tr>
692
+ <td class="ig_feature_name">
693
+ <?php echo esc_html__( 'Countdown Timer', 'icegram' ); ?>
694
+ </td>
695
+ <td class="ig_free_feature_name">
696
+ <span class='dashicons dashicons-no-alt'></span>
697
+ </td>
698
+ <td class="ig_starter_feature_name">
699
+ <span class='dashicons dashicons-yes'></span>
700
+ </td>
701
+ <td class="ig_pro_feature_name">
702
+ <span class='dashicons dashicons-yes'></span>
703
+ </td>
704
+ </tr>
705
+ <tr>
706
+ <td class="ig_feature_name">
707
+ <?php echo esc_html__( 'After CTA Click Control', 'icegram' ); ?>
708
+ </td>
709
+ <td class="ig_free_feature_name">
710
+ <span class='dashicons dashicons-no-alt'></span>
711
+ </td>
712
+ <td class="ig_starter_feature_name">
713
+ <span class='dashicons dashicons-yes'></span>
714
+ </td>
715
+ <td class="ig_pro_feature_name">
716
+ <span class='dashicons dashicons-yes'></span>
717
+ </td>
718
+ </tr>
719
+ <tr>
720
+ <td class="ig_feature_name">
721
+ <?php echo esc_html__( 'Top 5 message stats', 'icegram' ); ?>
722
+ </td>
723
+ <td class="ig_free_feature_name">
724
+ <span class='dashicons dashicons-no-alt'></span>
725
+ </td>
726
+ <td class="ig_starter_feature_name">
727
+ <span class='dashicons dashicons-yes'></span>
728
+ </td>
729
+ <td class="ig_pro_feature_name">
730
+ <span class='dashicons dashicons-yes'></span>
731
+ </td>
732
+ </tr>
733
+ <tr>
734
+ <td class="ig_feature_name">
735
+ <?php echo esc_html__( 'Top 5 campaign stats', 'icegram' ); ?>
736
+ </td>
737
+ <td class="ig_free_feature_name">
738
+ <span class='dashicons dashicons-no-alt'></span>
739
+ </td>
740
+ <td class="ig_starter_feature_name">
741
+ <span class='dashicons dashicons-yes'></span>
742
+ </td>
743
+ <td class="ig_pro_feature_name">
744
+ <span class='dashicons dashicons-yes'></span>
745
+ </td>
746
+ </tr>
747
+ <tr>
748
+ <td class="ig_feature_name">
749
+ <?php echo esc_html__( 'Impression v/s Conversion report', 'icegram' ); ?>
750
+ </td>
751
+ <td class="ig_free_feature_name">
752
+ <span class='dashicons dashicons-no-alt'></span>
753
+ </td>
754
+ <td class="ig_starter_feature_name">
755
+ <span class='dashicons dashicons-yes'></span>
756
+ </td>
757
+ <td class="ig_pro_feature_name">
758
+ <span class='dashicons dashicons-yes'></span>
759
+ </td>
760
+ </tr>
761
+ <tr>
762
+ <td class="ig_feature_name">
763
+ <?php echo esc_html__( '100+ high converting themes', 'icegram' ); ?>
764
+ </td>
765
+ <td class="ig_free_feature_name">
766
+ <span class='dashicons dashicons-no-alt'></span>
767
+ </td>
768
+ <td class="ig_starter_feature_name">
769
+ <span class='dashicons dashicons-yes'></span>
770
+ </td>
771
+ <td class="ig_pro_feature_name">
772
+ <span class='dashicons dashicons-yes'></span>
773
+ </td>
774
+ </tr>
775
+ <tr>
776
+ <td class="ig_feature_name">
777
+ <?php echo esc_html__( 'A/B Split Testing', 'icegram' ); ?>
778
+ </td>
779
+ <td class="ig_free_feature_name">
780
+ <span class='dashicons dashicons-no-alt'></span>
781
+ </td>
782
+ <td class="ig_starter_feature_name">
783
+ <span class='dashicons dashicons-no-alt'></span>
784
+ </td>
785
+ <td class="ig_pro_feature_name">
786
+ <span class='dashicons dashicons-yes'></span>
787
+ </td>
788
+ </tr>
789
+ <tr>
790
+ <td class="ig_feature_name">
791
+ <?php echo esc_html__( 'Show / Hide Animation Effects', 'icegram' ); ?>
792
+ </td>
793
+ <td class="ig_free_feature_name">
794
+ <span class='dashicons dashicons-no-alt'></span>
795
+ </td>
796
+ <td class="ig_starter_feature_name">
797
+ <span class='dashicons dashicons-no-alt'></span>
798
+ </td>
799
+ <td class="ig_pro_feature_name">
800
+ <span class='dashicons dashicons-yes'></span>
801
+ </td>
802
+ </tr>
803
+ <tr>
804
+ <td class="ig_feature_name">
805
+ <?php echo esc_html__( 'Premium themes', 'icegram' ); ?>
806
+ </td>
807
+ <td class="ig_free_feature_name">
808
+ <span class='dashicons dashicons-no-alt'></span>
809
+ </td>
810
+ <td class="ig_starter_feature_name">
811
+ <span class='dashicons dashicons-no-alt'></span>
812
+ </td>
813
+ <td class="ig_pro_feature_name">
814
+ <span class='dashicons dashicons-yes'></span>
815
+ </td>
816
+ </tr>
817
+ <tr>
818
+ <td class="ig_feature_name">
819
+ <?php echo esc_html__( 'Remote (Show Campaigns on non WordPress sites)', 'icegram' ); ?>
820
+ </td>
821
+ <td class="ig_free_feature_name">
822
+ <span class='dashicons dashicons-no-alt'></span>
823
+ </td>
824
+ <td class="ig_starter_feature_name">
825
+ <span class='dashicons dashicons-no-alt'></span>
826
+ </td>
827
+ <td class="ig_pro_feature_name">
828
+ <span class='dashicons dashicons-yes'></span>
829
+ </td>
830
+ </tr>
831
+ <tr>
832
+ <td class="ig_feature_name">
833
+ <?php echo esc_html__( 'Support', 'icegram' ); ?>
834
+ </td>
835
+ <td class="ig_free_feature_name">
836
+ <?php echo esc_html__( 'WordPress Forum Support', 'icegram' ); ?>
837
+ </td>
838
+ <td class="ig_starter_feature_name">
839
+ <?php echo esc_html__( 'Premium Support (Email)', 'icegram' ); ?>
840
+ </td>
841
+ <td class="ig_pro_feature_name">
842
+ <?php echo esc_html__( 'VIP Support (Email + Facebook)', 'icegram' ); ?>
843
+ </td>
844
+ </tr>
845
+ <tr>
846
+ <td class="ig_feature_name">
847
+ <?php echo esc_html__( 'Pricing', 'icegram' ); ?>
848
+ </td>
849
+ <td class="ig_free_feature_name">
850
+ <span class=''>Free</span>
851
+ </td>
852
+ <td class="ig_starter_feature_name">
853
+ <div class="center">
854
+ <a class="ig_button small green center" href="#ig_price_column_container" style="text-transform: none;"><?php esc_html_e( 'Buy Pro', 'icegram' ); ?></a>
855
+ </div>
856
+ </td>
857
+ <td class="ig_pro_feature_name">
858
+ <div class="center">
859
+ <a class="ig_button small green center" href="#ig_price_column_container" style="text-transform: none;"><?php esc_html_e( 'Buy Max', 'icegram' ); ?></a>
860
+ </div>
861
+ </td>
862
+ </tr>
863
+ </tbody>
864
+ </table>
865
+ </div>
866
+ <div class="ig_row" id="ig-testimonial-others">
867
+ <div style="width: 70%; margin: 0 auto; display: flex; gap: 2em;">
868
+ <div class="ig_column ig-testimonial-content">
869
+ <?php
870
+ echo wp_kses( apply_filters( 'ig_pricing_page_testimonial_2',
871
+ '<div class="ig_testimonial_text">
872
+ <div class="font-semibold text-lg pb-2"></div>
873
+ ' . __( 'Worked great with my theme. I was able to add a call to action footer bar on my homepage. I can’t believe all the customizations you can do for free. I was even able to add shortcode to the bottom bar and it worked beautifully.', 'icegram' ) . '<br><br>
874
+ - ' . __( 'David McCaleb', 'icegram' ) . '
875
+ </div>' ), $allowedtags );
876
+ ?>
877
+ </div>
878
+ <div class="ig_column ig-testimonial-content">
879
+ <?php
880
+ echo wp_kses( apply_filters( 'ig_pricing_page_testimonial_3',
881
+ '<div class="ig_testimonial_text">
882
+ <div class="font-semibold text-lg pb-2"></div>
883
+ ' . __( 'We’ve been using Icegram as well as the compatible Email- and Newsletter plugin from Icegram for blog subscription and lead generation forms. It’s easy to set up and it does what it’s supposed to do. Thank you!', 'icegram' ) . '<br><br>
884
+ - ' . __( 'IrinaT', 'icegram' ) . '
885
+ </div>' ), $allowedtags );
886
+ ?>
887
+ </div>
888
+ </div>
889
+ </div>
890
+ <div class="ig_row" id="ig_product_page_link">
891
+ <?php
892
+ /* translators: %s: Pricing page URL */
893
+ echo sprintf( esc_html__( 'You can either lose all your potential website visitors or use %s to grab their attention and convert them into customers.', 'icegram' ), '<a style="color: #00848D;" target="_blank" href="https://www.icegram.com/all-features/?utm_source=ig_in_app&utm_medium=in_app_pricing&utm_campaign=ig_pricing_footer">' . esc_html__( 'Icegram Engage', 'icegram' ) . '</a>' );
894
+ ?>
895
+ <br>
896
+ </div>
897
+ </div>
898
+ <?php
899
+ }
900
+ }
901
+
902
+ new Icegram_Pricing();
lite/classes/feedback.php CHANGED
@@ -241,152 +241,4 @@ if ( ! function_exists( 'ig_show_plugin_usage_tracking_notice' ) ) {
241
 
242
  add_filter( 'ig_show_plugin_usage_tracking_notice', 'ig_show_plugin_usage_tracking_notice' );
243
 
244
- if ( ! function_exists( 'ig_add_escape_allowed_tags') ) {
245
- /**
246
- * Add HTML tags to be excluded while escaping
247
- *
248
- * @return array $allowedtags
249
- */
250
- function ig_add_escape_allowed_tags() {
251
- $context_allowed_tags = wp_kses_allowed_html( 'post' );
252
- $custom_allowed_tags = array(
253
- 'div' => array(
254
- 'x-data' => true,
255
- 'x-show' => true,
256
- ),
257
- 'select' => array(
258
- 'class' => true,
259
- 'name' => true,
260
- 'id' => true,
261
- 'style' => true,
262
- 'title' => true,
263
- 'role' => true,
264
- 'data-*' => true,
265
- 'tab-*' => true,
266
- 'multiple' => true,
267
- 'aria-*' => true,
268
- 'disabled' => true,
269
- 'required' => 'required',
270
- ),
271
- 'optgroup' => array(
272
- 'label' => true,
273
- ),
274
- 'option' => array(
275
- 'class' => true,
276
- 'value' => true,
277
- 'selected' => true,
278
- 'name' => true,
279
- 'id' => true,
280
- 'style' => true,
281
- 'title' => true,
282
- 'data-*' => true,
283
- ),
284
- 'input' => array(
285
- 'class' => true,
286
- 'name' => true,
287
- 'type' => true,
288
- 'value' => true,
289
- 'id' => true,
290
- 'checked' => true,
291
- 'disabled' => true,
292
- 'selected' => true,
293
- 'style' => true,
294
- 'required' => 'required',
295
- 'min' => true,
296
- 'max' => true,
297
- 'maxlength' => true,
298
- 'size' => true,
299
- 'placeholder' => true,
300
- 'autocomplete' => true,
301
- 'autocapitalize' => true,
302
- 'autocorrect' => true,
303
- 'tabindex' => true,
304
- 'role' => true,
305
- 'aria-*' => true,
306
- 'data-*' => true,
307
- ),
308
- 'label' => array(
309
- 'class' => true,
310
- 'name' => true,
311
- 'type' => true,
312
- 'value' => true,
313
- 'id' => true,
314
- 'for' => true,
315
- 'style' => true,
316
- ),
317
- 'form' => array(
318
- 'class' => true,
319
- 'name' => true,
320
- 'value' => true,
321
- 'id' => true,
322
- 'style' => true,
323
- 'action' => true,
324
- 'method' => true,
325
- 'data-*' => true,
326
- ),
327
- 'svg' => array(
328
- 'width' => true,
329
- 'height' => true,
330
- 'viewbox' => true,
331
- 'xmlns' => true,
332
- 'class' => true,
333
- 'stroke-*' => true,
334
- 'fill' => true,
335
- 'stroke' => true,
336
- ),
337
- 'path' => array(
338
- 'd' => true,
339
- 'fill' => true,
340
- 'class' => true,
341
- 'fill-*' => true,
342
- 'clip-*' => true,
343
- 'stroke-linecap' => true,
344
- 'stroke-linejoin' => true,
345
- 'stroke-width' => true,
346
- 'fill-rule' => true,
347
- ),
348
-
349
- 'main' => array(
350
- 'align' => true,
351
- 'dir' => true,
352
- 'lang' => true,
353
- 'xml:lang' => true,
354
- 'aria-*' => true,
355
- 'class' => true,
356
- 'id' => true,
357
- 'style' => true,
358
- 'title' => true,
359
- 'role' => true,
360
- 'data-*' => true,
361
- ),
362
- 'textarea' => array(
363
- 'id' => true,
364
- 'autocomplete' => true,
365
- 'required' => 'required',
366
- 'placeholder' => true,
367
- 'class' => true,
368
- ),
369
- 'style' => array(),
370
- 'link' => array(
371
- 'rel' => true,
372
- 'id' => true,
373
- 'href' => true,
374
- 'media' => true,
375
- ),
376
- 'a' => array(
377
- 'x-on:click' => true,
378
- ),
379
- 'polygon' => array(
380
- 'class' => true,
381
- 'points' => true,
382
- ),
383
- );
384
-
385
- $allowedtags = array_merge_recursive( $context_allowed_tags, $custom_allowed_tags );
386
-
387
- return $allowedtags;
388
- }
389
- }
390
-
391
- add_filter( 'ig_escape_allowed_tags', 'ig_add_escape_allowed_tags' );
392
 
241
 
242
  add_filter( 'ig_show_plugin_usage_tracking_notice', 'ig_show_plugin_usage_tracking_notice' );
243
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
 
lite/dist/main.js CHANGED
@@ -1 +1 @@
1
- !function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,r){"use strict";r.r(t);t=r(1)},function(e,t,r){}]);
1
+ !function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t){}]);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.icegram.com/
4
  Tags: popup, optin, hellobar, lead capture, form
5
  Requires at least: 3.9
6
  Tested up to: 6.0.2
7
- Stable tag: 3.0.10
8
  License: GPLv3
9
 
10
  The best WordPress popup plugin that lets you create popups and action bars within seconds. Customize exit-intent popup campaigns, action bars, badges, stickies, inline optin, fullscreen overlay, ribbons, sidebar panel and more in no time.
@@ -458,12 +458,18 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
458
 
459
  == Upgrade Notice ==
460
 
461
- = 3.0.10 =
462
 
463
- * New: Added new Gallery templates
 
464
 
465
  == Changelog ==
466
 
 
 
 
 
 
467
  **3.0.10 (06.10.2022)**
468
 
469
  * New: Added new Gallery templates
4
  Tags: popup, optin, hellobar, lead capture, form
5
  Requires at least: 3.9
6
  Tested up to: 6.0.2
7
+ Stable tag: 3.0.11
8
  License: GPLv3
9
 
10
  The best WordPress popup plugin that lets you create popups and action bars within seconds. Customize exit-intent popup campaigns, action bars, badges, stickies, inline optin, fullscreen overlay, ribbons, sidebar panel and more in no time.
458
 
459
  == Upgrade Notice ==
460
 
461
+ = 3.0.11 =
462
 
463
+ * Enhancement: Gallery Templates for Halloween
464
+ * Update: UI improvements
465
 
466
  == Changelog ==
467
 
468
+ **3.0.11 (12.10.2022)**
469
+
470
+ * Enhancement: Gallery Templates for Halloween
471
+ * Update: UI improvements
472
+
473
  **3.0.10 (06.10.2022)**
474
 
475
  * New: Added new Gallery templates