Version Description
- Update: UI/UX improvements
=
Download this release
Release Info
Developer | Icegram |
Plugin | Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram |
Version | 2.1.7 |
Comparing to | |
See all releases |
Code changes from version 2.1.6 to 2.1.7
- icegram.php +2 -2
- lite/assets/js/admin.js +25 -0
- lite/assets/js/admin.min.js +1 -1
- lite/class-icegram.php +7 -6
- lite/classes/ig-upsale-admin.php +2 -1
- lite/dist/main.css +1 -1
- lite/gallery.php +26 -11
- lite/settings.php +1 -1
- readme.txt +6 -2
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: 2.1.
|
7 |
* Tested up to: 5.9.3
|
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', '2.1.
|
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: 2.1.7
|
7 |
* Tested up to: 5.9.3
|
8 |
* Author: icegram
|
9 |
* Author URI: https://www.icegram.com/
|
122 |
}
|
123 |
|
124 |
if ( ! defined( 'IG_PLUGIN_VERSION' ) ) {
|
125 |
+
define( 'IG_PLUGIN_VERSION', '2.1.7' );
|
126 |
}
|
127 |
|
128 |
if ( ! defined( 'IG_PRODUCT_ID' ) ) {
|
lite/assets/js/admin.js
CHANGED
@@ -45,6 +45,24 @@ jQuery(function() {
|
|
45 |
// jQuery('.target_rules_desc').appendTo('.campaign_target_rules h3.handle span');
|
46 |
|
47 |
jQuery(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
jQuery('.ig-campaign-status-toggle-label input[type="checkbox"]').change(function() {
|
50 |
var checkbox_elem = jQuery(this);
|
@@ -204,6 +222,13 @@ jQuery(function() {
|
|
204 |
|
205 |
});
|
206 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
jQuery('.campaign_data, #message-settings').on('click','.message_delete', function() {
|
208 |
jQuery(this).parent().parent().next().remove();
|
209 |
jQuery(this).parent().parent().remove();
|
45 |
// jQuery('.target_rules_desc').appendTo('.campaign_target_rules h3.handle span');
|
46 |
|
47 |
jQuery(document).ready(function() {
|
48 |
+
|
49 |
+
var select_goal = jQuery('input[name="ig-campaign-goal"]');
|
50 |
+
|
51 |
+
if ( jQuery("input[name='ig-campaign-goal']").is(':checked') ){
|
52 |
+
var checked_id = get_checked_id_name_in_onboarding("input[name='ig-campaign-goal']:checked");
|
53 |
+
checked_id.removeClass('hidden');
|
54 |
+
}
|
55 |
+
|
56 |
+
jQuery("input[name='ig-campaign-goal'], input[name='ig-campaign-type']").on('change', function() {
|
57 |
+
jQuery("input[name='ig-campaign-goal'],input[name='ig-campaign-type']").each( function() {
|
58 |
+
var checked_id = get_checked_id_name_in_onboarding(this);
|
59 |
+
if( jQuery(this).is(':checked') ) {
|
60 |
+
checked_id.removeClass('hidden');
|
61 |
+
} else{
|
62 |
+
checked_id.addClass('hidden');
|
63 |
+
}
|
64 |
+
});
|
65 |
+
});
|
66 |
|
67 |
jQuery('.ig-campaign-status-toggle-label input[type="checkbox"]').change(function() {
|
68 |
var checkbox_elem = jQuery(this);
|
222 |
|
223 |
});
|
224 |
|
225 |
+
function get_checked_id_name_in_onboarding( selected_item ) {
|
226 |
+
var category = jQuery(selected_item).attr('category');
|
227 |
+
var category_id = jQuery(selected_item).attr(category);
|
228 |
+
var checked_id = jQuery( '#' + category + '_' + category_id );
|
229 |
+
return checked_id;
|
230 |
+
}
|
231 |
+
|
232 |
jQuery('.campaign_data, #message-settings').on('click','.message_delete', function() {
|
233 |
jQuery(this).parent().parent().next().remove();
|
234 |
jQuery(this).parent().parent().remove();
|
lite/assets/js/admin.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/* Chosen v1.1.0 | (c) 2011-2013 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
|
2 |
!function(){var a,AbstractChosen,Chosen,SelectParser,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};SelectParser=function(){function SelectParser(){this.options_index=0,this.parsed=[]}return SelectParser.prototype.add_node=function(a){return"OPTGROUP"===a.nodeName.toUpperCase()?this.add_group(a):this.add_option(a)},SelectParser.prototype.add_group=function(a){var b,c,d,e,f,g;for(b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:this.escapeExpression(a.label),children:0,disabled:a.disabled}),f=a.childNodes,g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},SelectParser.prototype.add_option=function(a,b,c){return"OPTION"===a.nodeName.toUpperCase()?(""!==a.text?(null!=b&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,selected:a.selected,disabled:c===!0?c:a.disabled,group_array_index:b,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},SelectParser.prototype.escapeExpression=function(a){var b,c;return null==a||a===!1?"":/[\&\<\>\"\'\`]/.test(a)?(b={"<":"<",">":">",'"':""","'":"'","`":"`"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&"})):a},SelectParser}(),SelectParser.select_to_array=function(a){var b,c,d,e,f;for(c=new SelectParser,f=a.childNodes,d=0,e=f.length;e>d;d++)b=f[d],c.add_node(b);return c.parsed},AbstractChosen=function(){function AbstractChosen(a,b){this.form_field=a,this.options=null!=b?b:{},AbstractChosen.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return AbstractChosen.prototype.set_default_values=function(){var a=this;return this.click_test_action=function(b){return a.test_active_click(b)},this.activate_action=function(b){return a.activate_field(b)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0},AbstractChosen.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text},AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},AbstractChosen.prototype.input_focus=function(){var a=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return a.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},AbstractChosen.prototype.input_blur=function(){var a=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return a.blur_test()},100))},AbstractChosen.prototype.results_option_build=function(a){var b,c,d,e,f;for(b="",f=this.results_data,d=0,e=f.length;e>d;d++)c=f[d],b+=c.group?this.result_add_group(c):this.result_add_option(c),(null!=a?a.first:void 0)&&(c.selected&&this.is_multiple?this.choice_build(c):c.selected&&!this.is_multiple&&this.single_set_selected_text(c.text));return b},AbstractChosen.prototype.result_add_option=function(a){var b,c;return a.search_match?this.include_option_in_results(a)?(b=[],a.disabled||a.selected&&this.is_multiple||b.push("active-result"),!a.disabled||a.selected&&this.is_multiple||b.push("disabled-result"),a.selected&&b.push("result-selected"),null!=a.group_array_index&&b.push("group-option"),""!==a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.style.cssText=a.style,c.setAttribute("data-option-array-index",a.array_index),c.innerHTML=a.search_text,this.outerHTML(c)):"":""},AbstractChosen.prototype.result_add_group=function(a){var b;return a.search_match||a.group_match?a.active_options>0?(b=document.createElement("li"),b.className="group-result",b.innerHTML=a.search_text,this.outerHTML(b)):"":""},AbstractChosen.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},AbstractChosen.prototype.reset_single_select_options=function(){var a,b,c,d,e;for(d=this.results_data,e=[],b=0,c=d.length;c>b;b++)a=d[b],a.selected?e.push(a.selected=!1):e.push(void 0);return e},AbstractChosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},AbstractChosen.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},AbstractChosen.prototype.winnow_results=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m;for(this.no_results_clear(),e=0,g=this.get_search_text(),a=g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),d=this.search_contains?"":"^",c=new RegExp(d+a,"i"),j=new RegExp(a,"i"),m=this.results_data,k=0,l=m.length;l>k;k++)b=m[k],b.search_match=!1,f=null,this.include_option_in_results(b)&&(b.group&&(b.group_match=!1,b.active_options=0),null!=b.group_array_index&&this.results_data[b.group_array_index]&&(f=this.results_data[b.group_array_index],0===f.active_options&&f.search_match&&(e+=1),f.active_options+=1),(!b.group||this.group_search)&&(b.search_text=b.group?b.label:b.html,b.search_match=this.search_string_match(b.search_text,c),b.search_match&&!b.group&&(e+=1),b.search_match?(g.length&&(h=b.search_text.search(j),i=b.search_text.substr(0,h+g.length)+"</em>"+b.search_text.substr(h+g.length),b.search_text=i.substr(0,h)+"<em>"+i.substr(h)),null!=f&&(f.group_match=!0)):null!=b.group_array_index&&this.results_data[b.group_array_index].search_match&&(b.search_match=!0)));return this.result_clear_highlight(),1>e&&g.length?(this.update_results_content(""),this.no_results(g)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},AbstractChosen.prototype.search_string_match=function(a,b){var c,d,e,f;if(b.test(a))return!0;if(this.enable_split_word_search&&(a.indexOf(" ")>=0||0===a.indexOf("["))&&(d=a.replace(/\[|\]/g,"").split(" "),d.length))for(e=0,f=d.length;f>e;e++)if(c=d[e],b.test(c))return!0},AbstractChosen.prototype.choices_count=function(){var a,b,c,d;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,d=this.form_field.options,b=0,c=d.length;c>b;b++)a=d[b],a.selected&&(this.selected_option_count+=1);return this.selected_option_count},AbstractChosen.prototype.choices_click=function(a){return a.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},AbstractChosen.prototype.keyup_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(a.preventDefault(),this.results_showing)return this.result_select(a);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},AbstractChosen.prototype.clipboard_event_checker=function(){var a=this;return setTimeout(function(){return a.results_search()},50)},AbstractChosen.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},AbstractChosen.prototype.include_option_in_results=function(a){return this.is_multiple&&!this.display_selected_options&&a.selected?!1:!this.display_disabled_options&&a.disabled?!1:a.empty?!1:!0},AbstractChosen.prototype.search_results_touchstart=function(a){return this.touch_started=!0,this.search_results_mouseover(a)},AbstractChosen.prototype.search_results_touchmove=function(a){return this.touch_started=!1,this.search_results_mouseout(a)},AbstractChosen.prototype.search_results_touchend=function(a){return this.touch_started?this.search_results_mouseup(a):void 0},AbstractChosen.prototype.outerHTML=function(a){var b;return a.outerHTML?a.outerHTML:(b=document.createElement("div"),b.appendChild(a),b.innerHTML)},AbstractChosen.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},AbstractChosen.default_multiple_text="Select Some Options",AbstractChosen.default_single_text="Select an Option",AbstractChosen.default_no_result_text="No results match",AbstractChosen}(),a=jQuery,a.fn.extend({chosen:function(b){return AbstractChosen.browser_is_supported()?this.each(function(){var c,d;c=a(this),d=c.data("chosen"),"destroy"===b&&d?d.destroy():d||c.data("chosen",new Chosen(this,b))}):this}}),Chosen=function(c){function Chosen(){return b=Chosen.__super__.constructor.apply(this,arguments)}return d(Chosen,c),Chosen.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},Chosen.prototype.set_up_html=function(){var b,c;return b=["chosen-container"],b.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&b.push(this.form_field.className),this.is_rtl&&b.push("chosen-rtl"),c={"class":b.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(c.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",c),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},Chosen.prototype.register_observers=function(){var a=this;return this.container.bind("mousedown.chosen",function(b){a.container_mousedown(b)}),this.container.bind("mouseup.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mouseenter.chosen",function(b){a.mouse_enter(b)}),this.container.bind("mouseleave.chosen",function(b){a.mouse_leave(b)}),this.search_results.bind("mouseup.chosen",function(b){a.search_results_mouseup(b)}),this.search_results.bind("mouseover.chosen",function(b){a.search_results_mouseover(b)}),this.search_results.bind("mouseout.chosen",function(b){a.search_results_mouseout(b)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(b){a.search_results_mousewheel(b)}),this.search_results.bind("touchstart.chosen",function(b){a.search_results_touchstart(b)}),this.search_results.bind("touchmove.chosen",function(b){a.search_results_touchmove(b)}),this.search_results.bind("touchend.chosen",function(b){a.search_results_touchend(b)}),this.form_field_jq.bind("chosen:updated.chosen",function(b){a.results_update_field(b)}),this.form_field_jq.bind("chosen:activate.chosen",function(b){a.activate_field(b)}),this.form_field_jq.bind("chosen:open.chosen",function(b){a.container_mousedown(b)}),this.form_field_jq.bind("chosen:close.chosen",function(b){a.input_blur(b)}),this.search_field.bind("blur.chosen",function(b){a.input_blur(b)}),this.search_field.bind("keyup.chosen",function(b){a.keyup_checker(b)}),this.search_field.bind("keydown.chosen",function(b){a.keydown_checker(b)}),this.search_field.bind("focus.chosen",function(b){a.input_focus(b)}),this.search_field.bind("cut.chosen",function(b){a.clipboard_event_checker(b)}),this.search_field.bind("paste.chosen",function(b){a.clipboard_event_checker(b)}),this.is_multiple?this.search_choices.bind("click.chosen",function(b){a.choices_click(b)}):this.container.bind("click.chosen",function(a){a.preventDefault()})},Chosen.prototype.destroy=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},Chosen.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},Chosen.prototype.container_mousedown=function(b){return this.is_disabled||(b&&"mousedown"===b.type&&!this.results_showing&&b.preventDefault(),null!=b&&a(b.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!b||a(b.target)[0]!==this.selected_item[0]&&!a(b.target).parents("a.chosen-single").length||(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},Chosen.prototype.container_mouseup=function(a){return"ABBR"!==a.target.nodeName||this.is_disabled?void 0:this.results_reset(a)},Chosen.prototype.search_results_mousewheel=function(a){var b;return a.originalEvent&&(b=-a.originalEvent.wheelDelta||a.originalEvent.detail),null!=b?(a.preventDefault(),"DOMMouseScroll"===a.type&&(b=40*b),this.search_results.scrollTop(b+this.search_results.scrollTop())):void 0},Chosen.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},Chosen.prototype.close_field=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},Chosen.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},Chosen.prototype.test_active_click=function(b){var c;return c=a(b.target).closest(".chosen-container"),c.length&&this.container[0]===c[0]?this.active_field=!0:this.close_field()},Chosen.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},Chosen.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),b=c+this.result_highlight.outerHeight(),b>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(f>c)return this.search_results.scrollTop(c)}},Chosen.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},Chosen.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},Chosen.prototype.update_results_content=function(a){return this.search_results.html(a)},Chosen.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},Chosen.prototype.set_tab_index=function(){var a;return this.form_field.tabIndex?(a=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=a):void 0},Chosen.prototype.set_label_behavior=function(){var b=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(a){return b.is_multiple?b.container_mousedown(a):b.activate_field()}):void 0},Chosen.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},Chosen.prototype.search_results_mouseup=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c.length?(this.result_highlight=c,this.result_select(b),this.search_field.focus()):void 0},Chosen.prototype.search_results_mouseover=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c?this.result_do_highlight(c):void 0},Chosen.prototype.search_results_mouseout=function(b){return a(b.target).hasClass("active-result")?this.result_clear_highlight():void 0},Chosen.prototype.choice_build=function(b){var c,d,e=this;return c=a("<li />",{"class":"search-choice"}).html("<span>"+b.html+"</span>"),b.disabled?c.addClass("search-choice-disabled"):(d=a("<a />",{"class":"search-choice-close","data-option-array-index":b.array_index}),d.bind("click.chosen",function(a){return e.choice_destroy_link_click(a)}),c.append(d)),this.search_container.before(c)},Chosen.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),b.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(a(b.target))},Chosen.prototype.choice_destroy=function(a){return this.result_deselect(a[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()):void 0},Chosen.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},Chosen.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},Chosen.prototype.result_select=function(a){var b,c;return this.result_highlight?(b=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?b.removeClass("active-result"):this.reset_single_select_options(),c=this.results_data[b[0].getAttribute("data-option-array-index")],c.selected=!0,this.form_field.options[c.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(c):this.single_set_selected_text(c.text),(a.metaKey||a.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[c.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},Chosen.prototype.single_set_selected_text=function(a){return null==a&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(a)},Chosen.prototype.result_deselect=function(a){var b;return b=this.results_data[a],this.form_field.options[b.options_index].disabled?!1:(b.selected=!1,this.form_field.options[b.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[b.options_index].value}),this.search_field_scale(),!0)},Chosen.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},Chosen.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":a("<div/>").text(a.trim(this.search_field.val())).html()},Chosen.prototype.winnow_results_set_highlight=function(){var a,b;return b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first(),null!=a?this.result_do_highlight(a):void 0},Chosen.prototype.no_results=function(b){var c;return c=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(b),this.search_results.append(c),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},Chosen.prototype.keydown_arrow=function(){var a;return this.results_showing&&this.result_highlight?(a=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(a):void 0:this.results_show()},Chosen.prototype.keyup_arrow=function(){var a;return this.results_showing||this.is_multiple?this.result_highlight?(a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},Chosen.prototype.keydown_backstroke=function(){var a;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled")?(this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},Chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},Chosen.prototype.keydown_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),8!==b&&this.pending_backstroke&&this.clear_backstroke(),b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:a.preventDefault(),this.keydown_arrow()}},Chosen.prototype.search_field_scale=function(){var b,c,d,e,f,g,h,i,j;if(this.is_multiple){for(d=0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],i=0,j=g.length;j>i;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return b=a("<div />",{style:f}),b.text(this.search_field.val()),a("body").append(b),h=b.width()+25,b.remove(),c=this.container.outerWidth(),h>c-10&&(h=c-10),this.search_field.css({width:h+"px"})}},Chosen}(AbstractChosen)}.call(this);;// Generated by CoffeeScript 1.3.1
|
3 |
-
(function(e){return e.fn.ajaxChosen=function(t,n){var r,i,s,o;t==null&&(t={});n==null&&(n=function(){});i={minTermLength:3,afterTypeDelay:500,jsonTermKey:"term"};o=this;r=null;s=e.extend({},i,t);this.chosen();return this.each(function(){return e(this).next(".chosen-container").find(".search-field > input, .chosen-search > input").bind("keyup",function(){var t,i,u,a;a=e.trim(e(this).val() );i=a.length<s.minTermLength?"Keep typing...":"Looking for '"+a+"'";o.next(".chosen-container").find(".no-results").text(i);if(a===e(this).data("prevVal"))return!1;e(this).data("prevVal",a);this.timer&&clearTimeout(this.timer);if(a.length<s.minTermLength)return!1;t=e(this);s.data==null&&(s.data={});s.data[s.jsonTermKey]=a;s.dataCallback!=null&&(s.data=s.dataCallback(s.data));u=s.success;s.success=function(r){var i,s;if(r==null)return;s=[];o.find("option").each(function(){return e(this).is(":selected")?s.push(e(this).val()+"-"+e(this).text()):e(this).remove()});i=n(r);e.each(i,function(t,n){if(e.inArray(t+"-"+n,s)===-1)return e("<option />").attr("value",t).html(n).appendTo(o)});o.trigger("chosen:updated");u!=null&&u(r);t.attr("value",a);return t.css("width","auto")};return this.timer=setTimeout(function(){r&&r.abort();return r=e.ajax(s)},s.afterTypeDelay)})})}})(jQuery);;jQuery(function(){function a(a){var b=jQuery(a).find(".message_type").val();jQuery(a).closest(".message-edit-row").prev().find(".message_header_label").text(b).removeClass().addClass("message_header_label ig_"+b);var c=jQuery(a).find(".message_row.ig_"+b).find(".message_theme").val(),d=jQuery(a).find(".message_row.ig_"+b).find("#message_form_style").val(),e=jQuery(a).find("#message_theme_ig_"+b).find("."+c).attr("style"),f=jQuery(a).find("#message_form_style").find("."+d).attr("style");jQuery(a).find(".message_row, .location").hide(),jQuery(a).find(".ig_"+b).show(),jQuery(a).find(".message_row.ig_"+b).find(".message_theme").next().find(".chosen-single span").attr("style",e),jQuery(a).find(".message_row.ig_"+b).find("#message_form_style").next().find(".chosen-single span").attr("style",f).text(function(){return jQuery(this).text().substr(0,jQuery(this).text().indexOf(" "))||jQuery(this).text()}),"block"!==jQuery(a).find(".message_body").parent().css("display")?jQuery(a).find(".message_body").parent().next(".wp-editor-wrap").hide():jQuery(a).find(".message_body").parent().next(".wp-editor-wrap").show(),jQuery(a).find(".message_form_layout:checked").is(":visible")||jQuery(a).find(".message_form_layout:visible").first().prop("checked",!0),1==jQuery(a).find(".show_form_options").prop("checked")&&jQuery(a).find(".message_link").parent().hide(),jQuery(".message_form_layout").change()}function b(a,c,d){var e=Math.floor(Math.random()*(d-c+1))+c;return e==a?b(e,c,d):e}function c(){var a='<span><label class="options_header"><span id="valid-field"> </span></label> <input type="text" class="url_input_field" data-option="local_url" name="campaign_target_rules[local_urls][]" value="'+e+'*"/><span class="delete-url"></span></span>';return a}function d(){0==jQuery(".message-row").length?jQuery(".empty_campaign").show():jQuery(".empty_campaign").hide()}var e=icegram_writepanel_params.home_url;jQuery(document).ready(function(){jQuery('.ig-campaign-status-toggle-label input[type="checkbox"]').change(function(){var a=jQuery(this),b=jQuery(a).val(),c=jQuery(a).prop("checked")?"publish":"draft",d={action:"ig_toggle_campaign_status",campaign_id:b,new_campaign_status:c,security:icegram_writepanel_params.ig_nonce};jQuery.ajax({method:"POST",url:ajaxurl,data:d,dataType:"json",success:function(b){b.success||(alert(icegram_writepanel_params.i18n_data.ajax_error_message),jQuery(a).prop("checked",!c))},error:function(a){alert(icegram_writepanel_params.i18n_data.ajax_error_message)}})}),jQuery('a[href="edit.php?post_type=ig_campaign&page=icegram-upgrade"]').attr("target","_blank").attr("href","https://www.icegram.com/pricing/?utm_source=in_app&utm_medium=ig_upgrade&utm_campaign=get_upgrade");var c=jQuery("#ig-admin-tabs");c.find(".ig-admin-nav-main").addClass("current"),c.find("#ig-admin-tab-main").show(),"post-new-php"===adminpage&&jQuery("#wpbody").on("click","#ig-add-new-campaign",function(){jQuery("#poststuff").css("position","static"),jQuery("#postbox-container-1 #side-sortables").removeClass("empty-container").addClass("gal-toggled"),jQuery(".gallery-heading, .ig-gallery-wrap").hide(),jQuery(".postbox-container").show(),jQuery(".wrap h1.wp-heading-inline").not(".gallery-heading").show(),jQuery(".ig-gallery-wrap").siblings().not(".gallery-heading").show(),jQuery(".postbox-container").siblings().show()}),jQuery("#ig-admin-tabs").on("click",'.ig-admin-tabs-nav li:not(".ig-admin-nav-upsale")',function(a){a.preventDefault(),jQuery(this).hasClass("ig-admin-nav-notab")||(c.find(".ig-admin-tabs-nav li").not(this).removeClass("current"),jQuery(".ig-admin-tab").fadeOut("fast"),jQuery(jQuery(this).addClass("current").find("a").attr("href")).fadeIn("fast"),jQuery(this).hasClass("new-variation")&&(jQuery(this).removeClass("current"),jQuery(".ig-admin-nav-variations").addClass("current")))});var e=window.send_to_editor,f=jQuery(".ig_preview_button");jQuery("#submitdiv .submitbox #minor-publishing-actions").after(f),f.fadeIn("fast"),jQuery(".color-field").wpColorPicker().each(function(a){var b=jQuery(this).data("color-label")||"";""!==b&&jQuery(this).closest(".wp-picker-container").find("a.wp-color-result").attr("title",b)}),jQuery(".campaign_data, #message-settings").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),d(),jQuery(".message_edit:first").trigger("click"),this_data=jQuery(".message_type").closest(".message-setting-fields");for(var g=0;g<this_data.length;g++)a(this_data[g]);jQuery(".campaign_data, #message-settings").on("change",".message_theme",function(a){var b=jQuery(a.target).parents(".message-setting-fields"),c=jQuery(b).find(".message_type").val(),d=jQuery(b).find(".message_row.ig_"+c).find(".message_theme").val(),e=jQuery(b).find("#message_theme_ig_"+c).find("."+d).attr("style");jQuery(b).find(".message_row.ig_"+c).find(".message_theme").next().find(".chosen-single span").attr("style",e)}),jQuery(".campaign_data, #message-settings").on("change",".rainmaker_form_list",function(a){"null"!==(jQuery(a.target).val()||"null")&&jQuery(a.target).parent().siblings(".message_form_html_original").hide()}),jQuery(".campaign_data, #message-settings").on("click",".message_image_button",function(a){var b=this;return window.send_to_editor=function(a){imgurl=jQuery("img",a).attr("src"),jQuery(b).parent().find("#upload_image").val(imgurl),tb_remove(),window.send_to_editor=e},!1}),jQuery(".campaign_data, #message-settings").on("click",".message_headline_button",function(){var a=jQuery(this).prev().attr("data-headline"),c=icegram_writepanel_params.available_headlines.length,d=b(a,0,c),e=icegram_writepanel_params.available_headlines[d];jQuery(this).prev().val(e)}),jQuery(".tips, .help_tip").tipTip({attribute:"data-tip"}),jQuery("span.test_class").hover(function(){jQuery(this).next().show()},function(){jQuery(this).next().hide()}),jQuery(".campaign_data .handle, .campaign_data .handlediv").unbind("click"),jQuery(".campaign_data .handlediv").hide(),jQuery("#poststuff").on("click","#publish",function(a){jQuery(".campaign_data").find(".message_header_label.ig_unknown").length&&(alert("Please select Message type"),a.preventDefault())})}),jQuery(".campaign_data, #message-settings").on("click",".message_delete",function(){jQuery(this).parent().parent().next().remove(),jQuery(this).parent().parent().remove(),d()}),jQuery(".campaign_data, #message-settings").on("click",".message_edit",function(){jQuery(this).parent().parent().next().toggle(),jQuery(this).parent().parent().find(".message-title-text, .message-title-input").toggle()}),jQuery(".campaign_data, #message-settings").on("click",".embed_form_code_toggle",function(){jQuery(this).parent().parent().siblings(".message_form_html_original").toggle()}),jQuery(".campaign_data, #message-settings").on("change",".message-title-input",function(){jQuery(this).prev().text(jQuery(this).val())}),jQuery("select.ajax_chosen_select_messages").ajaxChosen({type:"GET",url:icegram_writepanel_params.ajax_url,dataType:"json",afterTypeDelay:100,data:{action:"icegram_json_search_messages",security:icegram_writepanel_params.search_message_nonce}},function(a){var b={};return jQuery.each(a,function(a,c){b[a]=c}),b}),jQuery(".campaign_data, #message-settings").on("change",".show_form_options",function(a){var b=jQuery(this).closest("p");if(jQuery(b).siblings(".message_form_options").slideToggle(this.checked),this.checked)jQuery(b).closest(".thickbox_edit_message").find(".message_link").parent().hide(),jQuery(b).siblings("p.cta-actions").find("select option").removeAttr("disabled"),jQuery(b).siblings("p.cta-actions").find("select").find('option[value="url"], option[value="hide"], option[value="cta_another_message"]').attr("disabled",!0).attr("selected",!1).end().find('option[value="form"]').attr("selected",!0).trigger("change"),jQuery(b).siblings(".message_form_options").find(".message_form_layout").change();else{jQuery(b).siblings("p.cta-actions").find("select option").removeAttr("disabled");var c=jQuery(b).siblings(".message_form_options").siblings(".wp-editor-wrap").find(".wp-editor-area"),d=jQuery(c).val().trim().replace("[ig_form]","");jQuery(c).val(d),jQuery(b).closest(".thickbox_edit_message").find(".message_link").parent().show()}}).change(),jQuery(".campaign_data, #message-settings").on("change",".message_form_style",function(a){var b=jQuery(a.target).parents(".message-setting-fields"),c=jQuery(b).find("#message_form_style").val(),d=jQuery(b).find("#message_form_style").find("."+c).attr("style");jQuery(b).find(".message_form_style").next().find(".chosen-single span").attr("style",d).text(function(){return jQuery(this).text().substr(0,jQuery(this).text().indexOf(" "))||jQuery(this).text()})}),jQuery(".campaign_data, #message-settings").on("change",".message_form_layout ",function(){if(jQuery(this).is(":visible")){var a=this,b=jQuery(this).closest(".message_form_options").siblings(".wp-editor-wrap").find(".wp-editor-area"),c=jQuery(b).val().trim();jQuery(a).closest(".form_radio_group").siblings(".form_inline_shortcode").hide(),jQuery(a).closest(".form_radio_group").siblings(".message_form_color").show(),jQuery(a).is(":checked")&&jQuery(a).closest(".message_form_options").prev("p.message_form_options_check").find(".show_form_options").is(":checked")&&("inline"==jQuery(a).val()?(-1==c.indexOf("[ig_form]")&&(c+="[ig_form]"),jQuery(a).closest(".form_radio_group").siblings(".message_form_color, .form_inline_shortcode").toggle()):"inline"!=jQuery(a).val()&&(c=c.replace("[ig_form]",""))),jQuery(b).val(c)}}),jQuery(".campaign_data, #message-settings").on("blur",".message_form_html_original",function(a){var b=this,c=jQuery("<div/>").html(jQuery(b).val()).find("input[type=submit], button, input[type=button]").not("*:disabled");if(c.length>0){var d=jQuery(c[c.length-1]),e=d.is("button")?d.not("br, span, div").text():d.val();jQuery(b).closest(".message_form_options").siblings("p").find("#message_label").val(e.trim())}}),jQuery(".campaign_data, #message-settings").on("change",".show_custom_code_options",function(a){var b=jQuery(this).closest("p");jQuery(b).siblings(".message_custom_code_options").slideToggle(this.checked)}),jQuery(".ajax_chosen_select_messages").chosen(),jQuery(".campaign_data, #message-settings").on("change",".ajax_chosen_select_messages",function(){var b={},c=jQuery("#ig-admin-tabs li.current").attr("variation_id");"undefined"!=typeof c&&jQuery.extend(b,{selected_tab:c});var e=jQuery.extend({},tinyMCEPreInit.mceInit.content),f=jQuery.extend({},tinyMCEPreInit.qtInit.content),g=jQuery(this).parent().siblings(".campaign_target_rules_panel");"undefined"!=typeof g&&(b.parent_campaign_box=g);var h=jQuery(g).find(".message-row").length,i=jQuery(this).val();return""==i?void jQuery(".ajax_chosen_select_messages").val("").trigger("chosen:updated"):(jQuery(".message-edit-row").hide(),jQuery(".message-title-text").show(),jQuery(".message-title-input").hide(),void jQuery.ajax({type:"POST",url:icegram_writepanel_params.ajax_url,dataType:"json",data:{action:"get_message_action_row",security:icegram_writepanel_params.ig_nonce,message_id:i,row:h},success:function(c){if(h++,jQuery(g).find(".messages-list .messages_list_table tbody").append(c.main),jQuery(".color-field").wpColorPicker().each(function(a){var b=jQuery(this).data("color-label")||"";""!==b&&jQuery(this).closest(".wp-picker-container").find("a.wp-color-result").attr("title",b)}),jQuery(".campaign_data, #message-settings").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),a(jQuery("#"+c.id)),jQuery(".ajax_chosen_select_messages").val("").trigger("chosen:updated"),jQuery(".campaign_data, #message-settings").find(".message_theme").append('<option value="ig_get_more_theme" class="ig_get_more">Get more Themes</option>'),jQuery(".campaign_data, #message-settings").find(".message_animation").append('<option value="ig_get_more_animation" class="ig_get_more">Get more Animations</option>'),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),d(),jQuery(".message-setting-fields").trigger("change"),jQuery(".tips, .help_tip").tipTip({attribute:"data-tip"}),"undefined"==typeof tinyMCEPreInit.mceInit["edit"+c.id]){for(_prop in e)"string"==typeof e[_prop]&&"content_css"!==_prop&&(e[_prop]=e[_prop].replace(new RegExp("content","g"),"edit"+c.id));tinyMCEPreInit.mceInit["edit"+c.id]=e}if("undefined"==typeof tinyMCEPreInit.qtInit["edit"+c.id]){for(_prop in f)"string"==typeof f[_prop]&&"content_css"!==_prop&&(f[_prop]=f[_prop].replace(new RegExp("content","g"),"edit"+c.id));tinyMCEPreInit.qtInit["edit"+c.id]=f}tinyMCE.init({id:tinyMCEPreInit.mceInit["edit"+c.id]}),quicktags({id:"edit"+c.id}),QTags._buttonsInit(),jQuery("#wp-edit"+c.id+"-wrap").hasClass("tmce-active")?jQuery("#edit"+c.id+"-tmce").click():jQuery("#edit"+c.id+"-html").click(),jQuery(window).trigger("icegram_message_added_ajax",[b])}}))}),jQuery(".campaign_target_rules").on("click","#add_local_url_row",function(a){a.preventDefault();var b=c();jQuery(".local_url").find(".url_input_field").length?jQuery(b).insertAfter(jQuery(".local_url").find(".url_input_field").last().parent("span")):jQuery(b).insertBefore(jQuery(".local_url").find("#add_local_url_row_label"))}),jQuery(".campaign_target_rules").on("click",".delete-url",function(a){jQuery(this).parent().remove()}),jQuery(document).on("click",".campaign_preview",function(a){a.preventDefault(),tinyMCE.triggerSave(),params=jQuery("#post").serializeArray(),params.push({name:"action",value:"save_campaign_preview"}),params.push({name:"security",value:icegram_writepanel_params.ig_nonce}),jQuery.ajax({type:"POST",async:!1,url:icegram_writepanel_params.ajax_url,data:params,success:function(a){""!=a&&window.open(a,"preview_window")}})}),jQuery(".campaign_data, #message-settings").find(".message_theme").append('<option value="ig_get_more_theme" class="ig_get_more">Get more themes</option>'),jQuery(".campaign_data, #message-settings").find(".message_animation").append('<option value="ig_get_more_animation" class="ig_get_more">Get more Animations</option>'),jQuery(".campaign_data, #message-settings").on("change",".message_theme, .message_animation",function(){"ig_get_more_theme"==jQuery(this).val()&&window.open("https://www.icegram.com/product-category/themes-addons/?utm_source=icegram&utm_medium=admin&utm_campaign=theme_packs"),"ig_get_more_animation"==jQuery(this).val()&&window.open("https://www.icegram.com/animation-effects/?utm_source=icegram&utm_medium=admin&utm_campaign=animation_pack")}),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),jQuery("input#users_logged_in, input#users_all ,input#users_not_logged_in").on("change",function(){"logged_in"==jQuery(this).val()?(jQuery("select#users_roles").parent("p").show(),jQuery("#users_roles_chosen").find("input").trigger("click")):jQuery("select#users_roles").parent("p").hide()}),jQuery(".schedule_rule").on("change",function(){"when_schedule"==jQuery(this).attr("id")?jQuery("#date_picker").show():jQuery("#date_picker").hide()}),jQuery("input#where_other_page").on("change",function(){jQuery("select#where_page_id").parent("p").slideToggle(),jQuery(this).is(":checked")&&jQuery("#where_page_id_chosen").find("input").trigger("click")}),jQuery("input#where_sitewide").on("change",function(){jQuery("select#exclude_page_id").parent("p").slideToggle()}),jQuery("input#where_local_url").on("change",function(){jQuery(".local_url").slideToggle()}),jQuery(".date-picker").datepicker({dateFormat:"yy-mm-dd",defaultDate:0,showOtherMonths:!0,selectOtherMonths:!0,changeMonth:!0,changeYear:!0,showButtonPanel:!1,beforeShow:function(a,b){jQuery("#ui-datepicker-div").addClass("ig-date-picker")}}),jQuery(".campaign_target_rules").on("focusout","input.url_input_field",function(){var a=this;if(jQuery(a).parent().find("span#valid-field").removeClass("error"),"undefine"!==jQuery(a).data("option")&&"local_url"==jQuery(a).data("option")&&"*"!=jQuery(a).val()){var b=a.value;if(b.indexOf(e)<0)return void jQuery(a).val(e+b)}})});;/*
|
4 |
* TipTip
|
5 |
* Copyright 2010 Drew Wilson
|
6 |
* www.drewwilson.com
|
1 |
/* Chosen v1.1.0 | (c) 2011-2013 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
|
2 |
!function(){var a,AbstractChosen,Chosen,SelectParser,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};SelectParser=function(){function SelectParser(){this.options_index=0,this.parsed=[]}return SelectParser.prototype.add_node=function(a){return"OPTGROUP"===a.nodeName.toUpperCase()?this.add_group(a):this.add_option(a)},SelectParser.prototype.add_group=function(a){var b,c,d,e,f,g;for(b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:this.escapeExpression(a.label),children:0,disabled:a.disabled}),f=a.childNodes,g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},SelectParser.prototype.add_option=function(a,b,c){return"OPTION"===a.nodeName.toUpperCase()?(""!==a.text?(null!=b&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,selected:a.selected,disabled:c===!0?c:a.disabled,group_array_index:b,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},SelectParser.prototype.escapeExpression=function(a){var b,c;return null==a||a===!1?"":/[\&\<\>\"\'\`]/.test(a)?(b={"<":"<",">":">",'"':""","'":"'","`":"`"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&"})):a},SelectParser}(),SelectParser.select_to_array=function(a){var b,c,d,e,f;for(c=new SelectParser,f=a.childNodes,d=0,e=f.length;e>d;d++)b=f[d],c.add_node(b);return c.parsed},AbstractChosen=function(){function AbstractChosen(a,b){this.form_field=a,this.options=null!=b?b:{},AbstractChosen.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return AbstractChosen.prototype.set_default_values=function(){var a=this;return this.click_test_action=function(b){return a.test_active_click(b)},this.activate_action=function(b){return a.activate_field(b)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0},AbstractChosen.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text},AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},AbstractChosen.prototype.input_focus=function(){var a=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return a.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},AbstractChosen.prototype.input_blur=function(){var a=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return a.blur_test()},100))},AbstractChosen.prototype.results_option_build=function(a){var b,c,d,e,f;for(b="",f=this.results_data,d=0,e=f.length;e>d;d++)c=f[d],b+=c.group?this.result_add_group(c):this.result_add_option(c),(null!=a?a.first:void 0)&&(c.selected&&this.is_multiple?this.choice_build(c):c.selected&&!this.is_multiple&&this.single_set_selected_text(c.text));return b},AbstractChosen.prototype.result_add_option=function(a){var b,c;return a.search_match?this.include_option_in_results(a)?(b=[],a.disabled||a.selected&&this.is_multiple||b.push("active-result"),!a.disabled||a.selected&&this.is_multiple||b.push("disabled-result"),a.selected&&b.push("result-selected"),null!=a.group_array_index&&b.push("group-option"),""!==a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.style.cssText=a.style,c.setAttribute("data-option-array-index",a.array_index),c.innerHTML=a.search_text,this.outerHTML(c)):"":""},AbstractChosen.prototype.result_add_group=function(a){var b;return a.search_match||a.group_match?a.active_options>0?(b=document.createElement("li"),b.className="group-result",b.innerHTML=a.search_text,this.outerHTML(b)):"":""},AbstractChosen.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},AbstractChosen.prototype.reset_single_select_options=function(){var a,b,c,d,e;for(d=this.results_data,e=[],b=0,c=d.length;c>b;b++)a=d[b],a.selected?e.push(a.selected=!1):e.push(void 0);return e},AbstractChosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},AbstractChosen.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},AbstractChosen.prototype.winnow_results=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m;for(this.no_results_clear(),e=0,g=this.get_search_text(),a=g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),d=this.search_contains?"":"^",c=new RegExp(d+a,"i"),j=new RegExp(a,"i"),m=this.results_data,k=0,l=m.length;l>k;k++)b=m[k],b.search_match=!1,f=null,this.include_option_in_results(b)&&(b.group&&(b.group_match=!1,b.active_options=0),null!=b.group_array_index&&this.results_data[b.group_array_index]&&(f=this.results_data[b.group_array_index],0===f.active_options&&f.search_match&&(e+=1),f.active_options+=1),(!b.group||this.group_search)&&(b.search_text=b.group?b.label:b.html,b.search_match=this.search_string_match(b.search_text,c),b.search_match&&!b.group&&(e+=1),b.search_match?(g.length&&(h=b.search_text.search(j),i=b.search_text.substr(0,h+g.length)+"</em>"+b.search_text.substr(h+g.length),b.search_text=i.substr(0,h)+"<em>"+i.substr(h)),null!=f&&(f.group_match=!0)):null!=b.group_array_index&&this.results_data[b.group_array_index].search_match&&(b.search_match=!0)));return this.result_clear_highlight(),1>e&&g.length?(this.update_results_content(""),this.no_results(g)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},AbstractChosen.prototype.search_string_match=function(a,b){var c,d,e,f;if(b.test(a))return!0;if(this.enable_split_word_search&&(a.indexOf(" ")>=0||0===a.indexOf("["))&&(d=a.replace(/\[|\]/g,"").split(" "),d.length))for(e=0,f=d.length;f>e;e++)if(c=d[e],b.test(c))return!0},AbstractChosen.prototype.choices_count=function(){var a,b,c,d;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,d=this.form_field.options,b=0,c=d.length;c>b;b++)a=d[b],a.selected&&(this.selected_option_count+=1);return this.selected_option_count},AbstractChosen.prototype.choices_click=function(a){return a.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},AbstractChosen.prototype.keyup_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(a.preventDefault(),this.results_showing)return this.result_select(a);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},AbstractChosen.prototype.clipboard_event_checker=function(){var a=this;return setTimeout(function(){return a.results_search()},50)},AbstractChosen.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},AbstractChosen.prototype.include_option_in_results=function(a){return this.is_multiple&&!this.display_selected_options&&a.selected?!1:!this.display_disabled_options&&a.disabled?!1:a.empty?!1:!0},AbstractChosen.prototype.search_results_touchstart=function(a){return this.touch_started=!0,this.search_results_mouseover(a)},AbstractChosen.prototype.search_results_touchmove=function(a){return this.touch_started=!1,this.search_results_mouseout(a)},AbstractChosen.prototype.search_results_touchend=function(a){return this.touch_started?this.search_results_mouseup(a):void 0},AbstractChosen.prototype.outerHTML=function(a){var b;return a.outerHTML?a.outerHTML:(b=document.createElement("div"),b.appendChild(a),b.innerHTML)},AbstractChosen.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},AbstractChosen.default_multiple_text="Select Some Options",AbstractChosen.default_single_text="Select an Option",AbstractChosen.default_no_result_text="No results match",AbstractChosen}(),a=jQuery,a.fn.extend({chosen:function(b){return AbstractChosen.browser_is_supported()?this.each(function(){var c,d;c=a(this),d=c.data("chosen"),"destroy"===b&&d?d.destroy():d||c.data("chosen",new Chosen(this,b))}):this}}),Chosen=function(c){function Chosen(){return b=Chosen.__super__.constructor.apply(this,arguments)}return d(Chosen,c),Chosen.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},Chosen.prototype.set_up_html=function(){var b,c;return b=["chosen-container"],b.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&b.push(this.form_field.className),this.is_rtl&&b.push("chosen-rtl"),c={"class":b.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(c.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",c),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},Chosen.prototype.register_observers=function(){var a=this;return this.container.bind("mousedown.chosen",function(b){a.container_mousedown(b)}),this.container.bind("mouseup.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mouseenter.chosen",function(b){a.mouse_enter(b)}),this.container.bind("mouseleave.chosen",function(b){a.mouse_leave(b)}),this.search_results.bind("mouseup.chosen",function(b){a.search_results_mouseup(b)}),this.search_results.bind("mouseover.chosen",function(b){a.search_results_mouseover(b)}),this.search_results.bind("mouseout.chosen",function(b){a.search_results_mouseout(b)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(b){a.search_results_mousewheel(b)}),this.search_results.bind("touchstart.chosen",function(b){a.search_results_touchstart(b)}),this.search_results.bind("touchmove.chosen",function(b){a.search_results_touchmove(b)}),this.search_results.bind("touchend.chosen",function(b){a.search_results_touchend(b)}),this.form_field_jq.bind("chosen:updated.chosen",function(b){a.results_update_field(b)}),this.form_field_jq.bind("chosen:activate.chosen",function(b){a.activate_field(b)}),this.form_field_jq.bind("chosen:open.chosen",function(b){a.container_mousedown(b)}),this.form_field_jq.bind("chosen:close.chosen",function(b){a.input_blur(b)}),this.search_field.bind("blur.chosen",function(b){a.input_blur(b)}),this.search_field.bind("keyup.chosen",function(b){a.keyup_checker(b)}),this.search_field.bind("keydown.chosen",function(b){a.keydown_checker(b)}),this.search_field.bind("focus.chosen",function(b){a.input_focus(b)}),this.search_field.bind("cut.chosen",function(b){a.clipboard_event_checker(b)}),this.search_field.bind("paste.chosen",function(b){a.clipboard_event_checker(b)}),this.is_multiple?this.search_choices.bind("click.chosen",function(b){a.choices_click(b)}):this.container.bind("click.chosen",function(a){a.preventDefault()})},Chosen.prototype.destroy=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},Chosen.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},Chosen.prototype.container_mousedown=function(b){return this.is_disabled||(b&&"mousedown"===b.type&&!this.results_showing&&b.preventDefault(),null!=b&&a(b.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!b||a(b.target)[0]!==this.selected_item[0]&&!a(b.target).parents("a.chosen-single").length||(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},Chosen.prototype.container_mouseup=function(a){return"ABBR"!==a.target.nodeName||this.is_disabled?void 0:this.results_reset(a)},Chosen.prototype.search_results_mousewheel=function(a){var b;return a.originalEvent&&(b=-a.originalEvent.wheelDelta||a.originalEvent.detail),null!=b?(a.preventDefault(),"DOMMouseScroll"===a.type&&(b=40*b),this.search_results.scrollTop(b+this.search_results.scrollTop())):void 0},Chosen.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},Chosen.prototype.close_field=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},Chosen.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},Chosen.prototype.test_active_click=function(b){var c;return c=a(b.target).closest(".chosen-container"),c.length&&this.container[0]===c[0]?this.active_field=!0:this.close_field()},Chosen.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},Chosen.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),b=c+this.result_highlight.outerHeight(),b>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(f>c)return this.search_results.scrollTop(c)}},Chosen.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},Chosen.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},Chosen.prototype.update_results_content=function(a){return this.search_results.html(a)},Chosen.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},Chosen.prototype.set_tab_index=function(){var a;return this.form_field.tabIndex?(a=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=a):void 0},Chosen.prototype.set_label_behavior=function(){var b=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(a){return b.is_multiple?b.container_mousedown(a):b.activate_field()}):void 0},Chosen.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},Chosen.prototype.search_results_mouseup=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c.length?(this.result_highlight=c,this.result_select(b),this.search_field.focus()):void 0},Chosen.prototype.search_results_mouseover=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c?this.result_do_highlight(c):void 0},Chosen.prototype.search_results_mouseout=function(b){return a(b.target).hasClass("active-result")?this.result_clear_highlight():void 0},Chosen.prototype.choice_build=function(b){var c,d,e=this;return c=a("<li />",{"class":"search-choice"}).html("<span>"+b.html+"</span>"),b.disabled?c.addClass("search-choice-disabled"):(d=a("<a />",{"class":"search-choice-close","data-option-array-index":b.array_index}),d.bind("click.chosen",function(a){return e.choice_destroy_link_click(a)}),c.append(d)),this.search_container.before(c)},Chosen.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),b.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(a(b.target))},Chosen.prototype.choice_destroy=function(a){return this.result_deselect(a[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()):void 0},Chosen.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},Chosen.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},Chosen.prototype.result_select=function(a){var b,c;return this.result_highlight?(b=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?b.removeClass("active-result"):this.reset_single_select_options(),c=this.results_data[b[0].getAttribute("data-option-array-index")],c.selected=!0,this.form_field.options[c.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(c):this.single_set_selected_text(c.text),(a.metaKey||a.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[c.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},Chosen.prototype.single_set_selected_text=function(a){return null==a&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(a)},Chosen.prototype.result_deselect=function(a){var b;return b=this.results_data[a],this.form_field.options[b.options_index].disabled?!1:(b.selected=!1,this.form_field.options[b.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[b.options_index].value}),this.search_field_scale(),!0)},Chosen.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},Chosen.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":a("<div/>").text(a.trim(this.search_field.val())).html()},Chosen.prototype.winnow_results_set_highlight=function(){var a,b;return b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first(),null!=a?this.result_do_highlight(a):void 0},Chosen.prototype.no_results=function(b){var c;return c=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(b),this.search_results.append(c),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},Chosen.prototype.keydown_arrow=function(){var a;return this.results_showing&&this.result_highlight?(a=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(a):void 0:this.results_show()},Chosen.prototype.keyup_arrow=function(){var a;return this.results_showing||this.is_multiple?this.result_highlight?(a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},Chosen.prototype.keydown_backstroke=function(){var a;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled")?(this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},Chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},Chosen.prototype.keydown_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),8!==b&&this.pending_backstroke&&this.clear_backstroke(),b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:a.preventDefault(),this.keydown_arrow()}},Chosen.prototype.search_field_scale=function(){var b,c,d,e,f,g,h,i,j;if(this.is_multiple){for(d=0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],i=0,j=g.length;j>i;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return b=a("<div />",{style:f}),b.text(this.search_field.val()),a("body").append(b),h=b.width()+25,b.remove(),c=this.container.outerWidth(),h>c-10&&(h=c-10),this.search_field.css({width:h+"px"})}},Chosen}(AbstractChosen)}.call(this);;// Generated by CoffeeScript 1.3.1
|
3 |
+
(function(e){return e.fn.ajaxChosen=function(t,n){var r,i,s,o;t==null&&(t={});n==null&&(n=function(){});i={minTermLength:3,afterTypeDelay:500,jsonTermKey:"term"};o=this;r=null;s=e.extend({},i,t);this.chosen();return this.each(function(){return e(this).next(".chosen-container").find(".search-field > input, .chosen-search > input").bind("keyup",function(){var t,i,u,a;a=e.trim(e(this).val() );i=a.length<s.minTermLength?"Keep typing...":"Looking for '"+a+"'";o.next(".chosen-container").find(".no-results").text(i);if(a===e(this).data("prevVal"))return!1;e(this).data("prevVal",a);this.timer&&clearTimeout(this.timer);if(a.length<s.minTermLength)return!1;t=e(this);s.data==null&&(s.data={});s.data[s.jsonTermKey]=a;s.dataCallback!=null&&(s.data=s.dataCallback(s.data));u=s.success;s.success=function(r){var i,s;if(r==null)return;s=[];o.find("option").each(function(){return e(this).is(":selected")?s.push(e(this).val()+"-"+e(this).text()):e(this).remove()});i=n(r);e.each(i,function(t,n){if(e.inArray(t+"-"+n,s)===-1)return e("<option />").attr("value",t).html(n).appendTo(o)});o.trigger("chosen:updated");u!=null&&u(r);t.attr("value",a);return t.css("width","auto")};return this.timer=setTimeout(function(){r&&r.abort();return r=e.ajax(s)},s.afterTypeDelay)})})}})(jQuery);;jQuery(function(){function a(a){var b=jQuery(a).find(".message_type").val();jQuery(a).closest(".message-edit-row").prev().find(".message_header_label").text(b).removeClass().addClass("message_header_label ig_"+b);var c=jQuery(a).find(".message_row.ig_"+b).find(".message_theme").val(),d=jQuery(a).find(".message_row.ig_"+b).find("#message_form_style").val(),e=jQuery(a).find("#message_theme_ig_"+b).find("."+c).attr("style"),f=jQuery(a).find("#message_form_style").find("."+d).attr("style");jQuery(a).find(".message_row, .location").hide(),jQuery(a).find(".ig_"+b).show(),jQuery(a).find(".message_row.ig_"+b).find(".message_theme").next().find(".chosen-single span").attr("style",e),jQuery(a).find(".message_row.ig_"+b).find("#message_form_style").next().find(".chosen-single span").attr("style",f).text(function(){return jQuery(this).text().substr(0,jQuery(this).text().indexOf(" "))||jQuery(this).text()}),"block"!==jQuery(a).find(".message_body").parent().css("display")?jQuery(a).find(".message_body").parent().next(".wp-editor-wrap").hide():jQuery(a).find(".message_body").parent().next(".wp-editor-wrap").show(),jQuery(a).find(".message_form_layout:checked").is(":visible")||jQuery(a).find(".message_form_layout:visible").first().prop("checked",!0),1==jQuery(a).find(".show_form_options").prop("checked")&&jQuery(a).find(".message_link").parent().hide(),jQuery(".message_form_layout").change()}function b(a,c,d){var e=Math.floor(Math.random()*(d-c+1))+c;return e==a?b(e,c,d):e}function c(a){var b=jQuery(a).attr("category"),c=jQuery(a).attr(b),d=jQuery("#"+b+"_"+c);return d}function d(){var a='<span><label class="options_header"><span id="valid-field"> </span></label> <input type="text" class="url_input_field" data-option="local_url" name="campaign_target_rules[local_urls][]" value="'+f+'*"/><span class="delete-url"></span></span>';return a}function e(){0==jQuery(".message-row").length?jQuery(".empty_campaign").show():jQuery(".empty_campaign").hide()}var f=icegram_writepanel_params.home_url;jQuery(document).ready(function(){jQuery('input[name="ig-campaign-goal"]');if(jQuery("input[name='ig-campaign-goal']").is(":checked")){var d=c("input[name='ig-campaign-goal']:checked");d.removeClass("hidden")}jQuery("input[name='ig-campaign-goal'], input[name='ig-campaign-type']").on("change",function(){jQuery("input[name='ig-campaign-goal'],input[name='ig-campaign-type']").each(function(){var a=c(this);jQuery(this).is(":checked")?a.removeClass("hidden"):a.addClass("hidden")})}),jQuery('.ig-campaign-status-toggle-label input[type="checkbox"]').change(function(){var a=jQuery(this),b=jQuery(a).val(),c=jQuery(a).prop("checked")?"publish":"draft",d={action:"ig_toggle_campaign_status",campaign_id:b,new_campaign_status:c,security:icegram_writepanel_params.ig_nonce};jQuery.ajax({method:"POST",url:ajaxurl,data:d,dataType:"json",success:function(b){b.success||(alert(icegram_writepanel_params.i18n_data.ajax_error_message),jQuery(a).prop("checked",!c))},error:function(a){alert(icegram_writepanel_params.i18n_data.ajax_error_message)}})}),jQuery('a[href="edit.php?post_type=ig_campaign&page=icegram-upgrade"]').attr("target","_blank").attr("href","https://www.icegram.com/pricing/?utm_source=in_app&utm_medium=ig_upgrade&utm_campaign=get_upgrade");var f=jQuery("#ig-admin-tabs");f.find(".ig-admin-nav-main").addClass("current"),f.find("#ig-admin-tab-main").show(),"post-new-php"===adminpage&&jQuery("#wpbody").on("click","#ig-add-new-campaign",function(){jQuery("#poststuff").css("position","static"),jQuery("#postbox-container-1 #side-sortables").removeClass("empty-container").addClass("gal-toggled"),jQuery(".gallery-heading, .ig-gallery-wrap").hide(),jQuery(".postbox-container").show(),jQuery(".wrap h1.wp-heading-inline").not(".gallery-heading").show(),jQuery(".ig-gallery-wrap").siblings().not(".gallery-heading").show(),jQuery(".postbox-container").siblings().show()}),jQuery("#ig-admin-tabs").on("click",'.ig-admin-tabs-nav li:not(".ig-admin-nav-upsale")',function(a){a.preventDefault(),jQuery(this).hasClass("ig-admin-nav-notab")||(f.find(".ig-admin-tabs-nav li").not(this).removeClass("current"),jQuery(".ig-admin-tab").fadeOut("fast"),jQuery(jQuery(this).addClass("current").find("a").attr("href")).fadeIn("fast"),jQuery(this).hasClass("new-variation")&&(jQuery(this).removeClass("current"),jQuery(".ig-admin-nav-variations").addClass("current")))});var g=window.send_to_editor,h=jQuery(".ig_preview_button");jQuery("#submitdiv .submitbox #minor-publishing-actions").after(h),h.fadeIn("fast"),jQuery(".color-field").wpColorPicker().each(function(a){var b=jQuery(this).data("color-label")||"";""!==b&&jQuery(this).closest(".wp-picker-container").find("a.wp-color-result").attr("title",b)}),jQuery(".campaign_data, #message-settings").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),e(),jQuery(".message_edit:first").trigger("click"),this_data=jQuery(".message_type").closest(".message-setting-fields");for(var i=0;i<this_data.length;i++)a(this_data[i]);jQuery(".campaign_data, #message-settings").on("change",".message_theme",function(a){var b=jQuery(a.target).parents(".message-setting-fields"),c=jQuery(b).find(".message_type").val(),d=jQuery(b).find(".message_row.ig_"+c).find(".message_theme").val(),e=jQuery(b).find("#message_theme_ig_"+c).find("."+d).attr("style");jQuery(b).find(".message_row.ig_"+c).find(".message_theme").next().find(".chosen-single span").attr("style",e)}),jQuery(".campaign_data, #message-settings").on("change",".rainmaker_form_list",function(a){"null"!==(jQuery(a.target).val()||"null")&&jQuery(a.target).parent().siblings(".message_form_html_original").hide()}),jQuery(".campaign_data, #message-settings").on("click",".message_image_button",function(a){var b=this;return window.send_to_editor=function(a){imgurl=jQuery("img",a).attr("src"),jQuery(b).parent().find("#upload_image").val(imgurl),tb_remove(),window.send_to_editor=g},!1}),jQuery(".campaign_data, #message-settings").on("click",".message_headline_button",function(){var a=jQuery(this).prev().attr("data-headline"),c=icegram_writepanel_params.available_headlines.length,d=b(a,0,c),e=icegram_writepanel_params.available_headlines[d];jQuery(this).prev().val(e)}),jQuery(".tips, .help_tip").tipTip({attribute:"data-tip"}),jQuery("span.test_class").hover(function(){jQuery(this).next().show()},function(){jQuery(this).next().hide()}),jQuery(".campaign_data .handle, .campaign_data .handlediv").unbind("click"),jQuery(".campaign_data .handlediv").hide(),jQuery("#poststuff").on("click","#publish",function(a){jQuery(".campaign_data").find(".message_header_label.ig_unknown").length&&(alert("Please select Message type"),a.preventDefault())})}),jQuery(".campaign_data, #message-settings").on("click",".message_delete",function(){jQuery(this).parent().parent().next().remove(),jQuery(this).parent().parent().remove(),e()}),jQuery(".campaign_data, #message-settings").on("click",".message_edit",function(){jQuery(this).parent().parent().next().toggle(),jQuery(this).parent().parent().find(".message-title-text, .message-title-input").toggle()}),jQuery(".campaign_data, #message-settings").on("click",".embed_form_code_toggle",function(){jQuery(this).parent().parent().siblings(".message_form_html_original").toggle()}),jQuery(".campaign_data, #message-settings").on("change",".message-title-input",function(){jQuery(this).prev().text(jQuery(this).val())}),jQuery("select.ajax_chosen_select_messages").ajaxChosen({type:"GET",url:icegram_writepanel_params.ajax_url,dataType:"json",afterTypeDelay:100,data:{action:"icegram_json_search_messages",security:icegram_writepanel_params.search_message_nonce}},function(a){var b={};return jQuery.each(a,function(a,c){b[a]=c}),b}),jQuery(".campaign_data, #message-settings").on("change",".show_form_options",function(a){var b=jQuery(this).closest("p");if(jQuery(b).siblings(".message_form_options").slideToggle(this.checked),this.checked)jQuery(b).closest(".thickbox_edit_message").find(".message_link").parent().hide(),jQuery(b).siblings("p.cta-actions").find("select option").removeAttr("disabled"),jQuery(b).siblings("p.cta-actions").find("select").find('option[value="url"], option[value="hide"], option[value="cta_another_message"]').attr("disabled",!0).attr("selected",!1).end().find('option[value="form"]').attr("selected",!0).trigger("change"),jQuery(b).siblings(".message_form_options").find(".message_form_layout").change();else{jQuery(b).siblings("p.cta-actions").find("select option").removeAttr("disabled");var c=jQuery(b).siblings(".message_form_options").siblings(".wp-editor-wrap").find(".wp-editor-area"),d=jQuery(c).val().trim().replace("[ig_form]","");jQuery(c).val(d),jQuery(b).closest(".thickbox_edit_message").find(".message_link").parent().show()}}).change(),jQuery(".campaign_data, #message-settings").on("change",".message_form_style",function(a){var b=jQuery(a.target).parents(".message-setting-fields"),c=jQuery(b).find("#message_form_style").val(),d=jQuery(b).find("#message_form_style").find("."+c).attr("style");jQuery(b).find(".message_form_style").next().find(".chosen-single span").attr("style",d).text(function(){return jQuery(this).text().substr(0,jQuery(this).text().indexOf(" "))||jQuery(this).text()})}),jQuery(".campaign_data, #message-settings").on("change",".message_form_layout ",function(){if(jQuery(this).is(":visible")){var a=this,b=jQuery(this).closest(".message_form_options").siblings(".wp-editor-wrap").find(".wp-editor-area"),c=jQuery(b).val().trim();jQuery(a).closest(".form_radio_group").siblings(".form_inline_shortcode").hide(),jQuery(a).closest(".form_radio_group").siblings(".message_form_color").show(),jQuery(a).is(":checked")&&jQuery(a).closest(".message_form_options").prev("p.message_form_options_check").find(".show_form_options").is(":checked")&&("inline"==jQuery(a).val()?(-1==c.indexOf("[ig_form]")&&(c+="[ig_form]"),jQuery(a).closest(".form_radio_group").siblings(".message_form_color, .form_inline_shortcode").toggle()):"inline"!=jQuery(a).val()&&(c=c.replace("[ig_form]",""))),jQuery(b).val(c)}}),jQuery(".campaign_data, #message-settings").on("blur",".message_form_html_original",function(a){var b=this,c=jQuery("<div/>").html(jQuery(b).val()).find("input[type=submit], button, input[type=button]").not("*:disabled");if(c.length>0){var d=jQuery(c[c.length-1]),e=d.is("button")?d.not("br, span, div").text():d.val();jQuery(b).closest(".message_form_options").siblings("p").find("#message_label").val(e.trim())}}),jQuery(".campaign_data, #message-settings").on("change",".show_custom_code_options",function(a){var b=jQuery(this).closest("p");jQuery(b).siblings(".message_custom_code_options").slideToggle(this.checked)}),jQuery(".ajax_chosen_select_messages").chosen(),jQuery(".campaign_data, #message-settings").on("change",".ajax_chosen_select_messages",function(){var b={},c=jQuery("#ig-admin-tabs li.current").attr("variation_id");"undefined"!=typeof c&&jQuery.extend(b,{selected_tab:c});var d=jQuery.extend({},tinyMCEPreInit.mceInit.content),f=jQuery.extend({},tinyMCEPreInit.qtInit.content),g=jQuery(this).parent().siblings(".campaign_target_rules_panel");"undefined"!=typeof g&&(b.parent_campaign_box=g);var h=jQuery(g).find(".message-row").length,i=jQuery(this).val();return""==i?void jQuery(".ajax_chosen_select_messages").val("").trigger("chosen:updated"):(jQuery(".message-edit-row").hide(),jQuery(".message-title-text").show(),jQuery(".message-title-input").hide(),void jQuery.ajax({type:"POST",url:icegram_writepanel_params.ajax_url,dataType:"json",data:{action:"get_message_action_row",security:icegram_writepanel_params.ig_nonce,message_id:i,row:h},success:function(c){if(h++,jQuery(g).find(".messages-list .messages_list_table tbody").append(c.main),jQuery(".color-field").wpColorPicker().each(function(a){var b=jQuery(this).data("color-label")||"";""!==b&&jQuery(this).closest(".wp-picker-container").find("a.wp-color-result").attr("title",b)}),jQuery(".campaign_data, #message-settings").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),a(jQuery("#"+c.id)),jQuery(".ajax_chosen_select_messages").val("").trigger("chosen:updated"),jQuery(".campaign_data, #message-settings").find(".message_theme").append('<option value="ig_get_more_theme" class="ig_get_more">Get more Themes</option>'),jQuery(".campaign_data, #message-settings").find(".message_animation").append('<option value="ig_get_more_animation" class="ig_get_more">Get more Animations</option>'),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),e(),jQuery(".message-setting-fields").trigger("change"),jQuery(".tips, .help_tip").tipTip({attribute:"data-tip"}),"undefined"==typeof tinyMCEPreInit.mceInit["edit"+c.id]){for(_prop in d)"string"==typeof d[_prop]&&"content_css"!==_prop&&(d[_prop]=d[_prop].replace(new RegExp("content","g"),"edit"+c.id));tinyMCEPreInit.mceInit["edit"+c.id]=d}if("undefined"==typeof tinyMCEPreInit.qtInit["edit"+c.id]){for(_prop in f)"string"==typeof f[_prop]&&"content_css"!==_prop&&(f[_prop]=f[_prop].replace(new RegExp("content","g"),"edit"+c.id));tinyMCEPreInit.qtInit["edit"+c.id]=f}tinyMCE.init({id:tinyMCEPreInit.mceInit["edit"+c.id]}),quicktags({id:"edit"+c.id}),QTags._buttonsInit(),jQuery("#wp-edit"+c.id+"-wrap").hasClass("tmce-active")?jQuery("#edit"+c.id+"-tmce").click():jQuery("#edit"+c.id+"-html").click(),jQuery(window).trigger("icegram_message_added_ajax",[b])}}))}),jQuery(".campaign_target_rules").on("click","#add_local_url_row",function(a){a.preventDefault();var b=d();jQuery(".local_url").find(".url_input_field").length?jQuery(b).insertAfter(jQuery(".local_url").find(".url_input_field").last().parent("span")):jQuery(b).insertBefore(jQuery(".local_url").find("#add_local_url_row_label"))}),jQuery(".campaign_target_rules").on("click",".delete-url",function(a){jQuery(this).parent().remove()}),jQuery(document).on("click",".campaign_preview",function(a){a.preventDefault(),tinyMCE.triggerSave(),params=jQuery("#post").serializeArray(),params.push({name:"action",value:"save_campaign_preview"}),params.push({name:"security",value:icegram_writepanel_params.ig_nonce}),jQuery.ajax({type:"POST",async:!1,url:icegram_writepanel_params.ajax_url,data:params,success:function(a){""!=a&&window.open(a,"preview_window")}})}),jQuery(".campaign_data, #message-settings").find(".message_theme").append('<option value="ig_get_more_theme" class="ig_get_more">Get more themes</option>'),jQuery(".campaign_data, #message-settings").find(".message_animation").append('<option value="ig_get_more_animation" class="ig_get_more">Get more Animations</option>'),jQuery(".campaign_data, #message-settings").on("change",".message_theme, .message_animation",function(){"ig_get_more_theme"==jQuery(this).val()&&window.open("https://www.icegram.com/product-category/themes-addons/?utm_source=icegram&utm_medium=admin&utm_campaign=theme_packs"),"ig_get_more_animation"==jQuery(this).val()&&window.open("https://www.icegram.com/animation-effects/?utm_source=icegram&utm_medium=admin&utm_campaign=animation_pack")}),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),jQuery("input#users_logged_in, input#users_all ,input#users_not_logged_in").on("change",function(){"logged_in"==jQuery(this).val()?(jQuery("select#users_roles").parent("p").show(),jQuery("#users_roles_chosen").find("input").trigger("click")):jQuery("select#users_roles").parent("p").hide()}),jQuery(".schedule_rule").on("change",function(){"when_schedule"==jQuery(this).attr("id")?jQuery("#date_picker").show():jQuery("#date_picker").hide()}),jQuery("input#where_other_page").on("change",function(){jQuery("select#where_page_id").parent("p").slideToggle(),jQuery(this).is(":checked")&&jQuery("#where_page_id_chosen").find("input").trigger("click")}),jQuery("input#where_sitewide").on("change",function(){jQuery("select#exclude_page_id").parent("p").slideToggle()}),jQuery("input#where_local_url").on("change",function(){jQuery(".local_url").slideToggle()}),jQuery(".date-picker").datepicker({dateFormat:"yy-mm-dd",defaultDate:0,showOtherMonths:!0,selectOtherMonths:!0,changeMonth:!0,changeYear:!0,showButtonPanel:!1,beforeShow:function(a,b){jQuery("#ui-datepicker-div").addClass("ig-date-picker")}}),jQuery(".campaign_target_rules").on("focusout","input.url_input_field",function(){var a=this;if(jQuery(a).parent().find("span#valid-field").removeClass("error"),"undefine"!==jQuery(a).data("option")&&"local_url"==jQuery(a).data("option")&&"*"!=jQuery(a).val()){var b=a.value;if(b.indexOf(f)<0)return void jQuery(a).val(f+b)}})});;/*
|
4 |
* TipTip
|
5 |
* Copyright 2010 Drew Wilson
|
6 |
* www.drewwilson.com
|
lite/class-icegram.php
CHANGED
@@ -570,18 +570,21 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
570 |
$gallery_page_title = '<span style="color:#f18500;font-weight:bolder;">' . __( 'Template Gallery', 'icegram' ) . '<span>';
|
571 |
$gallery = add_submenu_page( 'edit.php?post_type=ig_campaign', $gallery_page_title, $gallery_page_title, 'manage_options', 'icegram-gallery', array( $this, 'gallery_screen' ) );
|
572 |
$settings_page_title = __( 'Settings', 'icegram' );
|
573 |
-
$upgrade_page_title = '<span style="color:#f18500;font-weight:bolder;">' . __( 'Upgrade', 'icegram' ) . '</span>';
|
574 |
|
575 |
$menu_title = __( 'Docs & Support', 'icegram' );
|
576 |
$about = add_submenu_page( 'edit.php?post_type=ig_campaign', $welcome_page_title, $menu_title, 'manage_options', 'icegram-support', array( $this, 'about_screen' ) );
|
577 |
$settings = add_submenu_page( 'edit.php?post_type=ig_campaign', $settings_page_title, $settings_page_title, 'manage_options', 'icegram-settings', array( $this, 'settings_screen' ) );
|
578 |
-
$upgrade = add_submenu_page( 'edit.php?post_type=ig_campaign', $upgrade_page_title, $upgrade_page_title, 'manage_options', 'icegram-upgrade', array( $this, 'upgrade_screen' ) );
|
579 |
|
580 |
wp_register_style( 'icegram-activation', $this->plugin_url . '/assets/css/admin.min.css' );
|
581 |
|
582 |
add_action( 'admin_print_styles-' . $about, array( $this, 'admin_css' ) );
|
583 |
add_action( 'admin_print_styles-' . $settings, array( $this, 'admin_css' ) );
|
584 |
-
|
|
|
|
|
|
|
|
|
|
|
585 |
|
586 |
}
|
587 |
|
@@ -1054,7 +1057,6 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
1054 |
$css = array_unique( $css );
|
1055 |
$icegram_data['scripts'] = apply_filters( 'add_icegram_script', $scripts );
|
1056 |
$icegram_data['css'] = apply_filters( 'add_icegram_css', $css );
|
1057 |
-
|
1058 |
return $icegram_data;
|
1059 |
}
|
1060 |
|
@@ -1158,7 +1160,6 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
1158 |
wp_register_script( 'icegram_writepanel', $this->plugin_url . '/assets/js/admin.min.js', array( 'jquery', 'wp-color-picker' ), $this->version );
|
1159 |
|
1160 |
wp_enqueue_script( 'icegram_writepanel' );
|
1161 |
-
|
1162 |
|
1163 |
$icegram_writepanel_params = array(
|
1164 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
@@ -2406,7 +2407,7 @@ if ( ! class_exists( 'Icegram' ) ) {
|
|
2406 |
public function show_campaign_creation_guide() {
|
2407 |
$installed_on = get_option( 'ig_installed_on' );
|
2408 |
$count_posts = wp_count_posts( 'ig_campaign' );
|
2409 |
-
|
2410 |
if( ( empty( $installed_on ) || 'no' === get_option( 'ig_is_onboarding_completed', 'no' ) ) && ! $count_posts->publish && ! $count_posts->draft ) {
|
2411 |
return true;
|
2412 |
}
|
570 |
$gallery_page_title = '<span style="color:#f18500;font-weight:bolder;">' . __( 'Template Gallery', 'icegram' ) . '<span>';
|
571 |
$gallery = add_submenu_page( 'edit.php?post_type=ig_campaign', $gallery_page_title, $gallery_page_title, 'manage_options', 'icegram-gallery', array( $this, 'gallery_screen' ) );
|
572 |
$settings_page_title = __( 'Settings', 'icegram' );
|
|
|
573 |
|
574 |
$menu_title = __( 'Docs & Support', 'icegram' );
|
575 |
$about = add_submenu_page( 'edit.php?post_type=ig_campaign', $welcome_page_title, $menu_title, 'manage_options', 'icegram-support', array( $this, 'about_screen' ) );
|
576 |
$settings = add_submenu_page( 'edit.php?post_type=ig_campaign', $settings_page_title, $settings_page_title, 'manage_options', 'icegram-settings', array( $this, 'settings_screen' ) );
|
|
|
577 |
|
578 |
wp_register_style( 'icegram-activation', $this->plugin_url . '/assets/css/admin.min.css' );
|
579 |
|
580 |
add_action( 'admin_print_styles-' . $about, array( $this, 'admin_css' ) );
|
581 |
add_action( 'admin_print_styles-' . $settings, array( $this, 'admin_css' ) );
|
582 |
+
|
583 |
+
if( ! self::is_premium_installed() ) {
|
584 |
+
$upgrade_page_title = '<span style="color:#f18500;font-weight:bolder;">' . __( 'Upgrade', 'icegram' ) . '</span>';
|
585 |
+
$upgrade = add_submenu_page( 'edit.php?post_type=ig_campaign', $upgrade_page_title, $upgrade_page_title, 'manage_options', 'icegram-upgrade', array( $this, 'upgrade_screen' ) );
|
586 |
+
add_action( 'admin_print_styles-' . $upgrade, array( $this, 'admin_css' ) );
|
587 |
+
}
|
588 |
|
589 |
}
|
590 |
|
1057 |
$css = array_unique( $css );
|
1058 |
$icegram_data['scripts'] = apply_filters( 'add_icegram_script', $scripts );
|
1059 |
$icegram_data['css'] = apply_filters( 'add_icegram_css', $css );
|
|
|
1060 |
return $icegram_data;
|
1061 |
}
|
1062 |
|
1160 |
wp_register_script( 'icegram_writepanel', $this->plugin_url . '/assets/js/admin.min.js', array( 'jquery', 'wp-color-picker' ), $this->version );
|
1161 |
|
1162 |
wp_enqueue_script( 'icegram_writepanel' );
|
|
|
1163 |
|
1164 |
$icegram_writepanel_params = array(
|
1165 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
2407 |
public function show_campaign_creation_guide() {
|
2408 |
$installed_on = get_option( 'ig_installed_on' );
|
2409 |
$count_posts = wp_count_posts( 'ig_campaign' );
|
2410 |
+
|
2411 |
if( ( empty( $installed_on ) || 'no' === get_option( 'ig_is_onboarding_completed', 'no' ) ) && ! $count_posts->publish && ! $count_posts->draft ) {
|
2412 |
return true;
|
2413 |
}
|
lite/classes/ig-upsale-admin.php
CHANGED
@@ -48,7 +48,8 @@ if ( ! class_exists( 'Icegram_upsale' ) ) {
|
|
48 |
|
49 |
$pricing_url = "https://www.icegram.com/pricing/?utm_source=in_app&utm_medium=campaign_upgrade_notice&utm_campaign=ig_upsell";
|
50 |
|
51 |
-
|
|
|
52 |
}
|
53 |
|
54 |
function add_upsale_tab( $tabs ){
|
48 |
|
49 |
$pricing_url = "https://www.icegram.com/pricing/?utm_source=in_app&utm_medium=campaign_upgrade_notice&utm_campaign=ig_upsell";
|
50 |
|
51 |
+
/* translators: 1. Div tag 2. Icegram pricing page link 3. Anchor close 4. Discount text 5. Discount code */
|
52 |
+
echo sprintf( esc_html__('%1$sUnlock high conversion Icegram campaigns to reduce abandonment & increase sales with %2$sIcegram Engage!%3$sUpgrade now & get %4$sUse code %5$s', 'icegram'), '<div style="font-size:14px"><p class="ig_message_upsale">','<a style="font-weight:500;" href="' . esc_attr( $pricing_url) . '" target="_blank" >', '</a></p>', '<b>10% discount!</b><br/><br/>', '<b class="ig_upsale_premium_code">PREMIUM10</b></div>' );
|
53 |
}
|
54 |
|
55 |
function add_upsale_tab( $tabs ){
|
lite/dist/main.css
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
.icegram_tw html{line-height:1.15;-webkit-text-size-adjust:100%}.icegram_tw body{margin:0}.icegram_tw main{display:block}.icegram_tw h1{font-size:2em;margin:.67em 0}.icegram_tw hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}.icegram_tw pre{font-family:monospace,monospace;font-size:1em}.icegram_tw a{background-color:transparent}.icegram_tw abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.icegram_tw b,.icegram_tw strong{font-weight:bolder}.icegram_tw code,.icegram_tw kbd,.icegram_tw samp{font-family:monospace,monospace;font-size:1em}.icegram_tw small{font-size:80%}.icegram_tw sub,.icegram_tw sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.icegram_tw sub{bottom:-.25em}.icegram_tw sup{top:-.5em}.icegram_tw img{border-style:none}.icegram_tw button,.icegram_tw input,.icegram_tw optgroup,.icegram_tw select,.icegram_tw textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.icegram_tw button,.icegram_tw input{overflow:visible}.icegram_tw button,.icegram_tw select{text-transform:none}.icegram_tw [type=button],.icegram_tw [type=reset],.icegram_tw [type=submit],.icegram_tw button{-webkit-appearance:button}.icegram_tw [type=button]::-moz-focus-inner,.icegram_tw [type=reset]::-moz-focus-inner,.icegram_tw [type=submit]::-moz-focus-inner,.icegram_tw button::-moz-focus-inner{border-style:none;padding:0}.icegram_tw [type=button]:-moz-focusring,.icegram_tw [type=reset]:-moz-focusring,.icegram_tw [type=submit]:-moz-focusring,.icegram_tw button:-moz-focusring{outline:1px dotted ButtonText}.icegram_tw fieldset{padding:.35em .75em .625em}.icegram_tw legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}.icegram_tw progress{vertical-align:baseline}.icegram_tw textarea{overflow:auto}.icegram_tw [type=checkbox],.icegram_tw [type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}.icegram_tw [type=number]::-webkit-inner-spin-button,.icegram_tw [type=number]::-webkit-outer-spin-button{height:auto}.icegram_tw [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.icegram_tw [type=search]::-webkit-search-decoration{-webkit-appearance:none}.icegram_tw ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.icegram_tw details{display:block}.icegram_tw summary{display:list-item}.icegram_tw [hidden],.icegram_tw template{display:none}.icegram_tw blockquote,.icegram_tw dd,.icegram_tw dl,.icegram_tw figure,.icegram_tw h1,.icegram_tw h2,.icegram_tw h3,.icegram_tw h4,.icegram_tw h5,.icegram_tw h6,.icegram_tw hr,.icegram_tw p,.icegram_tw pre{margin:0}.icegram_tw button{background-color:transparent;background-image:none}.icegram_tw button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.icegram_tw fieldset{margin:0;padding:0}.icegram_tw ol,.icegram_tw ul{list-style:none;margin:0;padding:0}.icegram_tw html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.icegram_tw *,.icegram_tw :after,.icegram_tw :before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid #d2d6dc}.icegram_tw hr{border-top-width:1px}.icegram_tw img{border-style:solid}.icegram_tw textarea{resize:vertical}.icegram_tw input::-webkit-input-placeholder,.icegram_tw textarea::-webkit-input-placeholder{color:#a0aec0}.icegram_tw input::-moz-placeholder,.icegram_tw textarea::-moz-placeholder{color:#a0aec0}.icegram_tw input::-ms-input-placeholder,.icegram_tw textarea::-ms-input-placeholder{color:#a0aec0}.icegram_tw input::placeholder,.icegram_tw textarea::placeholder{color:#a0aec0}
|
2 |
|
3 |
-
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */.icegram_tw [role=button],.icegram_tw button{cursor:pointer}.icegram_tw table{border-collapse:collapse}.icegram_tw h1,.icegram_tw h2,.icegram_tw h3,.icegram_tw h4,.icegram_tw h5,.icegram_tw h6{font-size:inherit;font-weight:inherit}.icegram_tw a{color:inherit;text-decoration:inherit}.icegram_tw button,.icegram_tw input,.icegram_tw optgroup,.icegram_tw select,.icegram_tw textarea{padding:0;line-height:inherit;color:inherit}.icegram_tw code,.icegram_tw kbd,.icegram_tw pre,.icegram_tw samp{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.icegram_tw audio,.icegram_tw canvas,.icegram_tw embed,.icegram_tw iframe,.icegram_tw img,.icegram_tw object,.icegram_tw svg,.icegram_tw video{display:block;vertical-align:middle}.icegram_tw img,.icegram_tw video{max-width:100%;height:auto}.icegram_tw a{--text-opacity:1!important;color:#5850ec!important;color:rgba(88,80,236,var(--text-opacity))!important}.icegram_tw img{border:0}.icegram_tw .container{width:100%}@media (min-width:640px){.icegram_tw .container{max-width:640px}}@media (min-width:768px){.icegram_tw .container{max-width:768px}}@media (min-width:1024px){.icegram_tw .container{max-width:1024px}}@media (min-width:1280px){.icegram_tw .container{max-width:1280px}}.icegram_tw .form-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}.icegram_tw .form-input::-webkit-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input::-moz-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input::-ms-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input::placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}.icegram_tw .form-textarea::-webkit-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea::-moz-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea::-ms-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea::placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-multiselect{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}.icegram_tw .form-multiselect:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%239fa6b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;background-repeat:no-repeat;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem 2.5rem .5rem .75rem;font-size:1rem;line-height:1.5;background-position:right .5rem center;background-size:1.5em 1.5em}.icegram_tw .form-select::-ms-expand{color:#9fa6b2;border:none}@media not print{.icegram_tw .form-select::-ms-expand{display:none}}@media print and (-ms-high-contrast:active),print and (-ms-high-contrast:none){.icegram_tw .form-select{padding-right:.75rem}}.icegram_tw .form-select:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-checkbox:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4a1 1 0 00-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}@media not print{.icegram_tw .form-checkbox::-ms-check{border-width:1px;color:transparent;background:inherit;border-color:inherit;border-radius:inherit}}.icegram_tw .form-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-negative:0;flex-shrink:0;height:1rem;width:1rem;color:#3f83f8;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.25rem}.icegram_tw .form-checkbox:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-checkbox:checked:focus{border-color:transparent}.icegram_tw .form-radio:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}@media not print{.icegram_tw .form-radio::-ms-check{border-width:1px;color:transparent;background:inherit;border-color:inherit;border-radius:inherit}}.icegram_tw .form-radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-negative:0;flex-shrink:0;border-radius:100%;height:1rem;width:1rem;color:#3f83f8;background-color:#fff;border-color:#d2d6dc;border-width:1px}.icegram_tw .form-radio:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-radio:checked:focus{border-color:transparent}.icegram_tw .form-select{padding:.15rem 2rem .15rem .75rem}li.menu-top div.wp-menu-image img{display:initial;border-style:none}.icegram_tw{@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}}.icegram_tw .bg-white{--bg-opacity:1!important;background-color:#fff!important;background-color:rgba(255,255,255,var(--bg-opacity))!important}.icegram_tw .bg-gray-50{--bg-opacity:1!important;background-color:#f9fafb!important;background-color:rgba(249,250,251,var(--bg-opacity))!important}.icegram_tw .bg-blue-700{--bg-opacity:1!important;background-color:#1a56db!important;background-color:rgba(26,86,219,var(--bg-opacity))!important}.icegram_tw .bg-indigo-800{--bg-opacity:1!important;background-color:#42389d!important;background-color:rgba(66,56,157,var(--bg-opacity))!important}.icegram_tw .bg-purple-100{--bg-opacity:1!important;background-color:#edebfe!important;background-color:rgba(237,235,254,var(--bg-opacity))!important}.icegram_tw .hover\:bg-indigo-600:hover{--bg-opacity:1!important;background-color:#5850ec!important;background-color:rgba(88,80,236,var(--bg-opacity))!important}.icegram_tw .border-transparent{border-color:transparent!important}.icegram_tw .border-gray-200{--border-opacity:1!important;border-color:#e5e7eb!important;border-color:rgba(229,231,235,var(--border-opacity))!important}.icegram_tw .border-gray-300{--border-opacity:1!important;border-color:#d2d6dc!important;border-color:rgba(210,214,220,var(--border-opacity))!important}.icegram_tw .rounded{border-radius:.25rem!important}.icegram_tw .rounded-md{border-radius:.375rem!important}.icegram_tw .rounded-lg{border-radius:.5rem!important}.icegram_tw .rounded-full{border-radius:9999px!important}.icegram_tw .border-0{border-width:0!important}.icegram_tw .border{border-width:1px!important}.icegram_tw .cursor-pointer{cursor:pointer!important}.icegram_tw .block{display:block!important}.icegram_tw .inline-block{display:inline-block!important}.icegram_tw .inline{display:inline!important}.icegram_tw .flex{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.icegram_tw .inline-flex{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}.icegram_tw .table{display:table!important}.icegram_tw .table-cell{display:table-cell!important}.icegram_tw .grid{display:grid!important}.icegram_tw .hidden{display:none!important}.icegram_tw .flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.icegram_tw .items-center{-webkit-box-align:center!important;-ms-flex-align:center!important;align-items:center!important}.icegram_tw .justify-center{-webkit-box-pack:center!important;-ms-flex-pack:center!important;justify-content:center!important}.icegram_tw .flex-1{-webkit-box-flex:1!important;-ms-flex:1 1 0%!important;flex:1 1 0%!important}.icegram_tw .float-right{float:right!important}.icegram_tw .float-left{float:left!important}.icegram_tw .font-sans{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji!important}.icegram_tw .font-medium{font-weight:500!important}.icegram_tw .font-bold{font-weight:700!important}.icegram_tw .h-0{height:0!important}.icegram_tw .h-5{height:1.25rem!important}.icegram_tw .h-6{height:1.5rem!important}.icegram_tw .h-8{height:2rem!important}.icegram_tw .h-full{height:100%!important}.icegram_tw .text-sm{font-size:.875rem!important}.icegram_tw .text-base{font-size:1rem!important}.icegram_tw .text-lg{font-size:1.125rem!important}.icegram_tw .text-2xl{font-size:1.5rem!important}.icegram_tw .leading-5{line-height:1.25rem!important}.icegram_tw .leading-snug{line-height:1.375!important}.icegram_tw .leading-relaxed{line-height:1.625!important}.icegram_tw .-m-4{margin:-1rem!important}.icegram_tw .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.icegram_tw .my-3{margin-top:.75rem!important;margin-bottom:.75rem!important}.icegram_tw .my-6{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.icegram_tw .mx-auto{margin-left:auto!important;margin-right:auto!important}.icegram_tw .mx-1\.5{margin-left:.375rem!important;margin-right:.375rem!important}.icegram_tw .mb-1{margin-bottom:.25rem!important}.icegram_tw .ml-1{margin-left:.25rem!important}.icegram_tw .mb-2{margin-bottom:.5rem!important}.icegram_tw .mt-3{margin-top:.75rem!important}.icegram_tw .mb-3{margin-bottom:.75rem!important}.icegram_tw .ml-3{margin-left:.75rem!important}.icegram_tw .mt-4{margin-top:1rem!important}.icegram_tw .mb-4{margin-bottom:1rem!important}.icegram_tw .ml-4{margin-left:1rem!important}.icegram_tw .mt-6{margin-top:1.5rem!important}.icegram_tw .ml-6{margin-left:1.5rem!important}.icegram_tw .-mr-1{margin-right:-.25rem!important}.icegram_tw .-mt-2{margin-top:-.5rem!important}.icegram_tw .-mt-5{margin-top:-1.25rem!important}.icegram_tw .-ml-12{margin-left:-3rem!important}.icegram_tw .opacity-0{opacity:0!important}.icegram_tw .focus\:outline-none:focus{outline:0!important}.icegram_tw .overflow-hidden{overflow:hidden!important}.icegram_tw .p-2{padding:.5rem!important}.icegram_tw .p-4{padding:1rem!important}.icegram_tw .p-5{padding:1.25rem!important}.icegram_tw .py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.icegram_tw .py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.icegram_tw .px-2{padding-left:.5rem!important;padding-right:.5rem!important}.icegram_tw .py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.icegram_tw .px-3{padding-left:.75rem!important;padding-right:.75rem!important}.icegram_tw .px-4{padding-left:1rem!important;padding-right:1rem!important}.icegram_tw .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.icegram_tw .py-0\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}.icegram_tw .pointer-events-none{pointer-events:none!important}.icegram_tw .static{position:static!important}.icegram_tw .fixed{position:fixed!important}.icegram_tw .absolute{position:absolute!important}.icegram_tw .relative{position:relative!important}.icegram_tw .sticky{position:sticky!important}.icegram_tw .bottom-1{bottom:.25rem!important}.icegram_tw .focus\:shadow-outline:focus{-webkit-box-shadow:0 0 0 3px rgba(118,169,250,.45)!important;box-shadow:0 0 0 3px rgba(118,169,250,.45)!important}.icegram_tw .text-left{text-align:left!important}.icegram_tw .text-center{text-align:center!important}.icegram_tw .text-right{text-align:right!important}.icegram_tw .text-white{--text-opacity:1!important;color:#fff!important;color:rgba(255,255,255,var(--text-opacity))!important}.icegram_tw .text-gray-500{--text-opacity:1!important;color:#6b7280!important;color:rgba(107,114,128,var(--text-opacity))!important}.icegram_tw .text-gray-700{--text-opacity:1!important;color:#374151!important;color:rgba(55,65,81,var(--text-opacity))!important}.icegram_tw .text-gray-800{--text-opacity:1!important;color:#252f3f!important;color:rgba(37,47,63,var(--text-opacity))!important}.icegram_tw .text-gray-900{--text-opacity:1!important;color:#161e2e!important;color:rgba(22,30,46,var(--text-opacity))!important}.icegram_tw .text-purple-500{--text-opacity:1!important;color:#9061f9!important;color:rgba(144,97,249,var(--text-opacity))!important}.icegram_tw .hover\:text-gray-600:hover{--text-opacity:1!important;color:#4b5563!important;color:rgba(75,85,99,var(--text-opacity))!important}.icegram_tw .italic{font-style:italic!important}.icegram_tw .uppercase{text-transform:uppercase!important}.icegram_tw .lowercase{text-transform:lowercase!important}.icegram_tw .capitalize{text-transform:capitalize!important}.icegram_tw .hover\:underline:hover,.icegram_tw .underline{text-decoration:underline!important}.icegram_tw .antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.icegram_tw .align-bottom{vertical-align:bottom!important}.icegram_tw .visible{visibility:visible!important}.icegram_tw .break-words{overflow-wrap:break-word!important}.icegram_tw .truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.icegram_tw .w-0{width:0!important}.icegram_tw .w-5{width:1.25rem!important}.icegram_tw .w-8{width:2rem!important}.icegram_tw .w-11\/12{width:91.666667%!important}.icegram_tw .w-full{width:100%!important}.icegram_tw .gap-x-4{grid-column-gap:1rem!important;-webkit-column-gap:1rem!important;-moz-column-gap:1rem!important;column-gap:1rem!important}.icegram_tw .gap-y-8{grid-row-gap:2rem!important;row-gap:2rem!important}.icegram_tw .transform{--transform-translate-x:0!important;--transform-translate-y:0!important;--transform-rotate:0!important;--transform-skew-x:0!important;--transform-skew-y:0!important;--transform-scale-x:1!important;--transform-scale-y:1!important;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))!important;transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))!important}.icegram_tw .transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform!important;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform!important}.icegram_tw .ease-in-out{-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.icegram_tw .duration-150{-webkit-transition-duration:.15s!important;transition-duration:.15s!important}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@media (min-width:640px){.sm\:text-3xl{font-size:1.875rem!important}.sm\:my-7{margin-top:1.75rem!important;margin-bottom:1.75rem!important}.sm\:mt-5{margin-top:1.25rem!important}.sm\:w-full{width:100%!important}.sm\:gap-x-6{grid-column-gap:1.5rem!important;-webkit-column-gap:1.5rem!important;-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media (min-width:768px){.md\:rounded-lg{border-radius:.5rem!important}.md\:mx-auto{margin-left:auto!important;margin-right:auto!important}.md\:py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.md\:px-8{padding-left:2rem!important;padding-right:2rem!important}.md\:shadow-xl{-webkit-box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04)!important;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04)!important}.md\:w-1\/2{width:50%!important}}@media (min-width:1024px){.lg\:flex{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.lg\:max-w-3xl{max-width:48rem!important}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}}@media (min-width:1280px){.xl\:max-w-4xl{max-width:56rem!important}.xl\:w-1\/3{width:33.333333%!important}.xl\:gap-x-8{grid-column-gap:2rem!important;-webkit-column-gap:2rem!important;-moz-column-gap:2rem!important;column-gap:2rem!important}}
|
1 |
.icegram_tw html{line-height:1.15;-webkit-text-size-adjust:100%}.icegram_tw body{margin:0}.icegram_tw main{display:block}.icegram_tw h1{font-size:2em;margin:.67em 0}.icegram_tw hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}.icegram_tw pre{font-family:monospace,monospace;font-size:1em}.icegram_tw a{background-color:transparent}.icegram_tw abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.icegram_tw b,.icegram_tw strong{font-weight:bolder}.icegram_tw code,.icegram_tw kbd,.icegram_tw samp{font-family:monospace,monospace;font-size:1em}.icegram_tw small{font-size:80%}.icegram_tw sub,.icegram_tw sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.icegram_tw sub{bottom:-.25em}.icegram_tw sup{top:-.5em}.icegram_tw img{border-style:none}.icegram_tw button,.icegram_tw input,.icegram_tw optgroup,.icegram_tw select,.icegram_tw textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.icegram_tw button,.icegram_tw input{overflow:visible}.icegram_tw button,.icegram_tw select{text-transform:none}.icegram_tw [type=button],.icegram_tw [type=reset],.icegram_tw [type=submit],.icegram_tw button{-webkit-appearance:button}.icegram_tw [type=button]::-moz-focus-inner,.icegram_tw [type=reset]::-moz-focus-inner,.icegram_tw [type=submit]::-moz-focus-inner,.icegram_tw button::-moz-focus-inner{border-style:none;padding:0}.icegram_tw [type=button]:-moz-focusring,.icegram_tw [type=reset]:-moz-focusring,.icegram_tw [type=submit]:-moz-focusring,.icegram_tw button:-moz-focusring{outline:1px dotted ButtonText}.icegram_tw fieldset{padding:.35em .75em .625em}.icegram_tw legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}.icegram_tw progress{vertical-align:baseline}.icegram_tw textarea{overflow:auto}.icegram_tw [type=checkbox],.icegram_tw [type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}.icegram_tw [type=number]::-webkit-inner-spin-button,.icegram_tw [type=number]::-webkit-outer-spin-button{height:auto}.icegram_tw [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.icegram_tw [type=search]::-webkit-search-decoration{-webkit-appearance:none}.icegram_tw ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.icegram_tw details{display:block}.icegram_tw summary{display:list-item}.icegram_tw [hidden],.icegram_tw template{display:none}.icegram_tw blockquote,.icegram_tw dd,.icegram_tw dl,.icegram_tw figure,.icegram_tw h1,.icegram_tw h2,.icegram_tw h3,.icegram_tw h4,.icegram_tw h5,.icegram_tw h6,.icegram_tw hr,.icegram_tw p,.icegram_tw pre{margin:0}.icegram_tw button{background-color:transparent;background-image:none}.icegram_tw button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.icegram_tw fieldset{margin:0;padding:0}.icegram_tw ol,.icegram_tw ul{list-style:none;margin:0;padding:0}.icegram_tw html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}.icegram_tw *,.icegram_tw :after,.icegram_tw :before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid #d2d6dc}.icegram_tw hr{border-top-width:1px}.icegram_tw img{border-style:solid}.icegram_tw textarea{resize:vertical}.icegram_tw input::-webkit-input-placeholder,.icegram_tw textarea::-webkit-input-placeholder{color:#a0aec0}.icegram_tw input::-moz-placeholder,.icegram_tw textarea::-moz-placeholder{color:#a0aec0}.icegram_tw input::-ms-input-placeholder,.icegram_tw textarea::-ms-input-placeholder{color:#a0aec0}.icegram_tw input::placeholder,.icegram_tw textarea::placeholder{color:#a0aec0}
|
2 |
|
3 |
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */.icegram_tw [role=button],.icegram_tw button{cursor:pointer}.icegram_tw table{border-collapse:collapse}.icegram_tw h1,.icegram_tw h2,.icegram_tw h3,.icegram_tw h4,.icegram_tw h5,.icegram_tw h6{font-size:inherit;font-weight:inherit}.icegram_tw a{color:inherit;text-decoration:inherit}.icegram_tw button,.icegram_tw input,.icegram_tw optgroup,.icegram_tw select,.icegram_tw textarea{padding:0;line-height:inherit;color:inherit}.icegram_tw code,.icegram_tw kbd,.icegram_tw pre,.icegram_tw samp{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.icegram_tw audio,.icegram_tw canvas,.icegram_tw embed,.icegram_tw iframe,.icegram_tw img,.icegram_tw object,.icegram_tw svg,.icegram_tw video{display:block;vertical-align:middle}.icegram_tw img,.icegram_tw video{max-width:100%;height:auto}.icegram_tw a{--text-opacity:1!important;color:#5850ec!important;color:rgba(88,80,236,var(--text-opacity))!important}.icegram_tw img{border:0}.icegram_tw .container{width:100%}@media (min-width:640px){.icegram_tw .container{max-width:640px}}@media (min-width:768px){.icegram_tw .container{max-width:768px}}@media (min-width:1024px){.icegram_tw .container{max-width:1024px}}@media (min-width:1280px){.icegram_tw .container{max-width:1280px}}.icegram_tw .form-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}.icegram_tw .form-input::-webkit-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input::-moz-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input::-ms-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input::placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-input:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}.icegram_tw .form-textarea::-webkit-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea::-moz-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea::-ms-input-placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea::placeholder{color:#9fa6b2;opacity:1}.icegram_tw .form-textarea:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-multiselect{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}.icegram_tw .form-multiselect:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%239fa6b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;background-repeat:no-repeat;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem 2.5rem .5rem .75rem;font-size:1rem;line-height:1.5;background-position:right .5rem center;background-size:1.5em 1.5em}.icegram_tw .form-select::-ms-expand{color:#9fa6b2;border:none}@media not print{.icegram_tw .form-select::-ms-expand{display:none}}@media print and (-ms-high-contrast:active),print and (-ms-high-contrast:none){.icegram_tw .form-select{padding-right:.75rem}}.icegram_tw .form-select:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-checkbox:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4a1 1 0 00-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}@media not print{.icegram_tw .form-checkbox::-ms-check{border-width:1px;color:transparent;background:inherit;border-color:inherit;border-radius:inherit}}.icegram_tw .form-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-negative:0;flex-shrink:0;height:1rem;width:1rem;color:#3f83f8;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.25rem}.icegram_tw .form-checkbox:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-checkbox:checked:focus{border-color:transparent}.icegram_tw .form-radio:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}@media not print{.icegram_tw .form-radio::-ms-check{border-width:1px;color:transparent;background:inherit;border-color:inherit;border-radius:inherit}}.icegram_tw .form-radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-negative:0;flex-shrink:0;border-radius:100%;height:1rem;width:1rem;color:#3f83f8;background-color:#fff;border-color:#d2d6dc;border-width:1px}.icegram_tw .form-radio:focus{outline:none;-webkit-box-shadow:0 0 0 3px rgba(164,202,254,.45);box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}.icegram_tw .form-radio:checked:focus{border-color:transparent}.icegram_tw .form-select{padding:.15rem 2rem .15rem .75rem}li.menu-top div.wp-menu-image img{display:initial;border-style:none}.icegram_tw{@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}}.icegram_tw .bg-white{--bg-opacity:1!important;background-color:#fff!important;background-color:rgba(255,255,255,var(--bg-opacity))!important}.icegram_tw .bg-gray-50{--bg-opacity:1!important;background-color:#f9fafb!important;background-color:rgba(249,250,251,var(--bg-opacity))!important}.icegram_tw .bg-blue-700{--bg-opacity:1!important;background-color:#1a56db!important;background-color:rgba(26,86,219,var(--bg-opacity))!important}.icegram_tw .bg-indigo-800{--bg-opacity:1!important;background-color:#42389d!important;background-color:rgba(66,56,157,var(--bg-opacity))!important}.icegram_tw .bg-purple-100{--bg-opacity:1!important;background-color:#edebfe!important;background-color:rgba(237,235,254,var(--bg-opacity))!important}.icegram_tw .hover\:bg-indigo-600:hover{--bg-opacity:1!important;background-color:#5850ec!important;background-color:rgba(88,80,236,var(--bg-opacity))!important}.icegram_tw .border-transparent{border-color:transparent!important}.icegram_tw .border-gray-100{--border-opacity:1!important;border-color:#f4f5f7!important;border-color:rgba(244,245,247,var(--border-opacity))!important}.icegram_tw .border-gray-200{--border-opacity:1!important;border-color:#e5e7eb!important;border-color:rgba(229,231,235,var(--border-opacity))!important}.icegram_tw .border-gray-300{--border-opacity:1!important;border-color:#d2d6dc!important;border-color:rgba(210,214,220,var(--border-opacity))!important}.icegram_tw .hover\:border-transparent:hover{border-color:transparent!important}.icegram_tw .rounded{border-radius:.25rem!important}.icegram_tw .rounded-md{border-radius:.375rem!important}.icegram_tw .rounded-lg{border-radius:.5rem!important}.icegram_tw .rounded-full{border-radius:9999px!important}.icegram_tw .border-0{border-width:0!important}.icegram_tw .border{border-width:1px!important}.icegram_tw .cursor-pointer{cursor:pointer!important}.icegram_tw .block{display:block!important}.icegram_tw .inline-block{display:inline-block!important}.icegram_tw .inline{display:inline!important}.icegram_tw .flex{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.icegram_tw .inline-flex{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}.icegram_tw .table{display:table!important}.icegram_tw .table-cell{display:table-cell!important}.icegram_tw .grid{display:grid!important}.icegram_tw .hidden{display:none!important}.icegram_tw .flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.icegram_tw .items-center{-webkit-box-align:center!important;-ms-flex-align:center!important;align-items:center!important}.icegram_tw .justify-center{-webkit-box-pack:center!important;-ms-flex-pack:center!important;justify-content:center!important}.icegram_tw .flex-1{-webkit-box-flex:1!important;-ms-flex:1 1 0%!important;flex:1 1 0%!important}.icegram_tw .float-right{float:right!important}.icegram_tw .float-left{float:left!important}.icegram_tw .font-sans{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji!important}.icegram_tw .font-medium{font-weight:500!important}.icegram_tw .font-bold{font-weight:700!important}.icegram_tw .h-0{height:0!important}.icegram_tw .h-5{height:1.25rem!important}.icegram_tw .h-6{height:1.5rem!important}.icegram_tw .h-8{height:2rem!important}.icegram_tw .h-full{height:100%!important}.icegram_tw .text-sm{font-size:.875rem!important}.icegram_tw .text-base{font-size:1rem!important}.icegram_tw .text-lg{font-size:1.125rem!important}.icegram_tw .text-2xl{font-size:1.5rem!important}.icegram_tw .leading-5{line-height:1.25rem!important}.icegram_tw .leading-snug{line-height:1.375!important}.icegram_tw .leading-relaxed{line-height:1.625!important}.icegram_tw .-m-4{margin:-1rem!important}.icegram_tw .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.icegram_tw .my-3{margin-top:.75rem!important;margin-bottom:.75rem!important}.icegram_tw .my-6{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.icegram_tw .mx-auto{margin-left:auto!important;margin-right:auto!important}.icegram_tw .mx-1\.5{margin-left:.375rem!important;margin-right:.375rem!important}.icegram_tw .mb-1{margin-bottom:.25rem!important}.icegram_tw .ml-1{margin-left:.25rem!important}.icegram_tw .mb-2{margin-bottom:.5rem!important}.icegram_tw .mt-3{margin-top:.75rem!important}.icegram_tw .mb-3{margin-bottom:.75rem!important}.icegram_tw .ml-3{margin-left:.75rem!important}.icegram_tw .mt-4{margin-top:1rem!important}.icegram_tw .mb-4{margin-bottom:1rem!important}.icegram_tw .ml-4{margin-left:1rem!important}.icegram_tw .mt-6{margin-top:1.5rem!important}.icegram_tw .ml-6{margin-left:1.5rem!important}.icegram_tw .-mr-1{margin-right:-.25rem!important}.icegram_tw .-mt-2{margin-top:-.5rem!important}.icegram_tw .-mt-5{margin-top:-1.25rem!important}.icegram_tw .-ml-12{margin-left:-3rem!important}.icegram_tw .opacity-0{opacity:0!important}.icegram_tw .focus\:outline-none:focus{outline:0!important}.icegram_tw .overflow-hidden{overflow:hidden!important}.icegram_tw .p-2{padding:.5rem!important}.icegram_tw .p-4{padding:1rem!important}.icegram_tw .p-5{padding:1.25rem!important}.icegram_tw .py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.icegram_tw .py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.icegram_tw .px-2{padding-left:.5rem!important;padding-right:.5rem!important}.icegram_tw .py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.icegram_tw .px-3{padding-left:.75rem!important;padding-right:.75rem!important}.icegram_tw .px-4{padding-left:1rem!important;padding-right:1rem!important}.icegram_tw .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.icegram_tw .py-0\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}.icegram_tw .pointer-events-none{pointer-events:none!important}.icegram_tw .static{position:static!important}.icegram_tw .fixed{position:fixed!important}.icegram_tw .absolute{position:absolute!important}.icegram_tw .relative{position:relative!important}.icegram_tw .sticky{position:sticky!important}.icegram_tw .bottom-1{bottom:.25rem!important}.icegram_tw .hover\:shadow-lg:hover{-webkit-box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)!important;box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)!important}.icegram_tw .focus\:shadow-outline:focus{-webkit-box-shadow:0 0 0 3px rgba(118,169,250,.45)!important;box-shadow:0 0 0 3px rgba(118,169,250,.45)!important}.icegram_tw .text-left{text-align:left!important}.icegram_tw .text-center{text-align:center!important}.icegram_tw .text-right{text-align:right!important}.icegram_tw .text-white{--text-opacity:1!important;color:#fff!important;color:rgba(255,255,255,var(--text-opacity))!important}.icegram_tw .text-gray-500{--text-opacity:1!important;color:#6b7280!important;color:rgba(107,114,128,var(--text-opacity))!important}.icegram_tw .text-gray-700{--text-opacity:1!important;color:#374151!important;color:rgba(55,65,81,var(--text-opacity))!important}.icegram_tw .text-gray-800{--text-opacity:1!important;color:#252f3f!important;color:rgba(37,47,63,var(--text-opacity))!important}.icegram_tw .text-gray-900{--text-opacity:1!important;color:#161e2e!important;color:rgba(22,30,46,var(--text-opacity))!important}.icegram_tw .text-indigo-600{--text-opacity:1!important;color:#5850ec!important;color:rgba(88,80,236,var(--text-opacity))!important}.icegram_tw .text-purple-500{--text-opacity:1!important;color:#9061f9!important;color:rgba(144,97,249,var(--text-opacity))!important}.icegram_tw .hover\:text-gray-600:hover{--text-opacity:1!important;color:#4b5563!important;color:rgba(75,85,99,var(--text-opacity))!important}.icegram_tw .italic{font-style:italic!important}.icegram_tw .uppercase{text-transform:uppercase!important}.icegram_tw .lowercase{text-transform:lowercase!important}.icegram_tw .capitalize{text-transform:capitalize!important}.icegram_tw .hover\:underline:hover,.icegram_tw .underline{text-decoration:underline!important}.icegram_tw .antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.icegram_tw .align-bottom{vertical-align:bottom!important}.icegram_tw .visible{visibility:visible!important}.icegram_tw .break-words{overflow-wrap:break-word!important}.icegram_tw .truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.icegram_tw .w-0{width:0!important}.icegram_tw .w-5{width:1.25rem!important}.icegram_tw .w-6{width:1.5rem!important}.icegram_tw .w-8{width:2rem!important}.icegram_tw .w-11\/12{width:91.666667%!important}.icegram_tw .w-full{width:100%!important}.icegram_tw .gap-x-4{grid-column-gap:1rem!important;-webkit-column-gap:1rem!important;-moz-column-gap:1rem!important;column-gap:1rem!important}.icegram_tw .gap-y-8{grid-row-gap:2rem!important;row-gap:2rem!important}.icegram_tw .transform{--transform-translate-x:0!important;--transform-translate-y:0!important;--transform-rotate:0!important;--transform-skew-x:0!important;--transform-skew-y:0!important;--transform-scale-x:1!important;--transform-scale-y:1!important;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))!important;transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))!important}.icegram_tw .transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform!important;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform!important}.icegram_tw .ease-in-out{-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.icegram_tw .duration-150{-webkit-transition-duration:.15s!important;transition-duration:.15s!important}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@media (min-width:640px){.sm\:text-3xl{font-size:1.875rem!important}.sm\:my-7{margin-top:1.75rem!important;margin-bottom:1.75rem!important}.sm\:mt-5{margin-top:1.25rem!important}.sm\:w-full{width:100%!important}.sm\:gap-x-6{grid-column-gap:1.5rem!important;-webkit-column-gap:1.5rem!important;-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media (min-width:768px){.md\:rounded-lg{border-radius:.5rem!important}.md\:mx-auto{margin-left:auto!important;margin-right:auto!important}.md\:py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.md\:px-8{padding-left:2rem!important;padding-right:2rem!important}.md\:shadow-xl{-webkit-box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04)!important;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04)!important}.md\:w-1\/2{width:50%!important}}@media (min-width:1024px){.lg\:flex{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.lg\:max-w-3xl{max-width:48rem!important}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}}@media (min-width:1280px){.xl\:max-w-4xl{max-width:56rem!important}.xl\:w-1\/3{width:33.333333%!important}.xl\:gap-x-8{grid-column-gap:2rem!important;-webkit-column-gap:2rem!important;-moz-column-gap:2rem!important;column-gap:2rem!important}}
|
lite/gallery.php
CHANGED
@@ -292,11 +292,15 @@
|
|
292 |
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
293 |
transition-duration: 100ms;
|
294 |
transform: scale(1.02);
|
295 |
-
|
|
|
|
|
296 |
}
|
297 |
|
298 |
-
[type="checkbox"]:checked + .ig-
|
299 |
-
|
|
|
|
|
300 |
}
|
301 |
|
302 |
.select2-container{
|
@@ -547,10 +551,16 @@
|
|
547 |
<?php
|
548 |
foreach ($campaign_goal as $goal) {
|
549 |
?>
|
550 |
-
<div class="xl:w-1/3 md:w-1/2 p-4 h-full
|
551 |
-
<label class="cursor-pointer">
|
552 |
<input type="checkbox" name="ig-campaign-goal" class="absolute w-0 h-0 opacity-0" category="usecase" usecase="<?php echo esc_attr( $goal['term-id'] ) ?>" value="<?php echo esc_html( $goal['title'] ) ?>" <?php echo isset( $goal['checked'] ) ? 'checked' : '' ?>>
|
553 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
554 |
<div class="w-8 h-8 inline-flex items-center justify-center rounded-full bg-purple-100 text-purple-500 mb-4">
|
555 |
<?php echo $goal['icon'];
|
556 |
?>
|
@@ -595,12 +605,17 @@
|
|
595 |
foreach ($campaign_types as $campaign_type) {
|
596 |
?>
|
597 |
<li class="relative cursor-pointer radio-select ig-selection-section" >
|
598 |
-
<label class="inline
|
599 |
<input type="checkbox" name="ig-campaign-type" class="absolute w-0 h-0 opacity-0" category="message-type" message-type="<?php echo esc_attr( $campaign_type['term-id']) ?>" value="<?php echo esc_html( $campaign_type['title'] ) ?>">
|
600 |
-
<div class="ig-select-campaign-type text-center border border-gray-
|
601 |
-
<
|
602 |
-
|
603 |
-
|
|
|
|
|
|
|
|
|
|
|
604 |
|
605 |
</div>
|
606 |
<?php
|
292 |
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
293 |
transition-duration: 100ms;
|
294 |
transform: scale(1.02);
|
295 |
+
background-color: rgba(249, 250, 251, 1);
|
296 |
+
border-width: 1.75px;
|
297 |
+
border-color: rgba(229, 231, 235, 1);
|
298 |
}
|
299 |
|
300 |
+
[type="checkbox"]:not(:checked) + .ig-sub-selection-goal:hover, [type="checkbox"]:not(:checked) + .ig-select-campaign-type:hover {
|
301 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
302 |
+
border-color: #ebf5ff;
|
303 |
+
border-color: rgba(235, 245, 255, 1);
|
304 |
}
|
305 |
|
306 |
.select2-container{
|
551 |
<?php
|
552 |
foreach ($campaign_goal as $goal) {
|
553 |
?>
|
554 |
+
<div class="xl:w-1/3 md:w-1/2 p-4 h-full ig-select-sub">
|
555 |
+
<label class="cursor-pointer hover:shadow-lg hover:border-transparent">
|
556 |
<input type="checkbox" name="ig-campaign-goal" class="absolute w-0 h-0 opacity-0" category="usecase" usecase="<?php echo esc_attr( $goal['term-id'] ) ?>" value="<?php echo esc_html( $goal['title'] ) ?>" <?php echo isset( $goal['checked'] ) ? 'checked' : '' ?>>
|
557 |
+
|
558 |
+
<div class="border border-gray-200 p-4 rounded-lg ig-sub-selection-goal">
|
559 |
+
<p>
|
560 |
+
<svg id="usecase_<?php echo esc_attr( $goal['term-id'] ) ?>" class="hidden float-right h-6 w-6 text-indigo-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
561 |
+
<path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" />
|
562 |
+
</svg>
|
563 |
+
</p>
|
564 |
<div class="w-8 h-8 inline-flex items-center justify-center rounded-full bg-purple-100 text-purple-500 mb-4">
|
565 |
<?php echo $goal['icon'];
|
566 |
?>
|
605 |
foreach ($campaign_types as $campaign_type) {
|
606 |
?>
|
607 |
<li class="relative cursor-pointer radio-select ig-selection-section" >
|
608 |
+
<label class="inline items-center cursor-pointer">
|
609 |
<input type="checkbox" name="ig-campaign-type" class="absolute w-0 h-0 opacity-0" category="message-type" message-type="<?php echo esc_attr( $campaign_type['term-id']) ?>" value="<?php echo esc_html( $campaign_type['title'] ) ?>">
|
610 |
+
<div class="ig-select-campaign-type text-center border border-gray-100 rounded-lg px-4 py-2">
|
611 |
+
<p class="h-6">
|
612 |
+
<svg id="message-type_<?php echo esc_attr( $campaign_type['term-id'] ) ?>" class="hidden float-right h-6 w-6 text-indigo-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
613 |
+
<path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" />
|
614 |
+
</svg>
|
615 |
+
</p>
|
616 |
+
<div class="group w-full aspect-w-10 aspect-h-7 focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-offset-gray-100 focus-within:ring-indigo-500 overflow-hidden">
|
617 |
+
|
618 |
+
<img src="<?php echo esc_url( IG_PLUGIN_URL . $campaign_type['img-path'] ); ?>" alt="" class="w-full pointer-events-none">
|
619 |
|
620 |
</div>
|
621 |
<?php
|
lite/settings.php
CHANGED
@@ -51,7 +51,7 @@ if( isset( $_POST['submit'] ) && isset( $_POST['ig-settings-nonce'] ) && wp_veri
|
|
51 |
<td>
|
52 |
<label for="icegram_track_usage_enable">
|
53 |
<input type="checkbox" name="icegram_track_usage_enable" id="icegram_track_usage_enable"/ value="yes" <?php checked('yes', get_option('ig_allow_tracking')); ?> />
|
54 |
-
<?php _e( 'Enable Tracking Usage - Help us to improve
|
55 |
</label>
|
56 |
</td>
|
57 |
</tr>
|
51 |
<td>
|
52 |
<label for="icegram_track_usage_enable">
|
53 |
<input type="checkbox" name="icegram_track_usage_enable" id="icegram_track_usage_enable"/ value="yes" <?php checked('yes', get_option('ig_allow_tracking')); ?> />
|
54 |
+
<?php _e( 'Enable Tracking Usage - Help us to improve Icegram by opting in to share non-sensitive plugin usage data.', 'icegram' ); ?>
|
55 |
</label>
|
56 |
</td>
|
57 |
</tr>
|
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: 5.9.3
|
7 |
-
Stable tag: 2.1.
|
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,16 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
|
|
458 |
|
459 |
== Upgrade Notice ==
|
460 |
|
461 |
-
= 2.1.
|
462 |
|
463 |
* Update: UI/UX improvements
|
464 |
|
465 |
== Changelog ==
|
466 |
|
|
|
|
|
|
|
|
|
467 |
**2.1.6 (26.04.2022)**
|
468 |
|
469 |
* Update: UI/UX improvements
|
4 |
Tags: popup, optin, hellobar, lead capture, form
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.9.3
|
7 |
+
Stable tag: 2.1.7
|
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 |
+
= 2.1.7 =
|
462 |
|
463 |
* Update: UI/UX improvements
|
464 |
|
465 |
== Changelog ==
|
466 |
|
467 |
+
**2.1.7 (18.05.2022)**
|
468 |
+
|
469 |
+
* Update: UI/UX improvements
|
470 |
+
|
471 |
**2.1.6 (26.04.2022)**
|
472 |
|
473 |
* Update: UI/UX improvements
|