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

Version Description

Revamp admin UI

Download this release

Release Info

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

Code changes from version 1.9.20.1 to 1.9.21

assets/css/admin.min.css CHANGED
@@ -1,4 +1,4 @@
1
- .shortcode_description.light,.shortcode_description:before{content:"\f348"}.actions,.help_tip{text-decoration:none}#postdivrich{display:none}.campaign_target_rules_panel .options_group{border-bottom:1px dashed #D3D3D3}.campaign_target_rules_panel .options_group:last-child{border-bottom-style:none}.campaign_target_rules_panel .options_group .form-field .options_header{display:inline-block;width:30%;vertical-align:top}.campaign_target_rules_panel .options_group p label input[type=checkbox],.campaign_target_rules_panel .options_group p label input[type=radio]{width:0}.campaign_target_rules_panel .options_group p label input[type=date]{width:auto;margin-left:10px}.user_roles p label input[type=checkbox],.user_roles p label input[type=radio]{margin-left:3px}.campaign_target_rules_panel .options_group .form-field #icegram_messages{width:300px;text-align:center}.empty_campaign{margin:1em;font-style:italic}.hndle em{font-weight:400;font-size:85%;margin-left:1em;color:#777}h3 .chosen-container{font-weight:500}.thickbox_edit_message{padding:0 1em;border-bottom:1px solid #D3D3D3}.messages-list-sortable{margin-top:30px}.messages_list_table{font-size:1em;width:100%;border-collapse:separate;border-spacing:3px}th.message_header{text-align:center!important}.message_title{text-align:left}.message_headline{text-align:left;padding-left:1.2em}.action_links,.message_seconds{width:75px!important;text-align:center}.message_seconds input{text-align:right}.message-row .seconds-text{width:40px!important;text-align:center}.message-sort-placeholder{background-color:#D3D3D3}.device{width:auto;line-height:5em;vertical-align:baseline}.device:after{font-family:dashicons;font-size:3em}.device input{position:relative;left:2.5em;top:1.5em}.admin_field_icon{display:inline-block;-webkit-font-smoothing:antialiased;width:18px;height:18px;font:400 18px/1 dashicons;color:#888;vertical-align:text-top;margin:0 2px}.campaign_preview{float:right;margin-right:1em!important}.shortcode_description.light{color:#777}.campaign_shortcode{display:inline-block;width:45%;color:#777}.campaign_shortcode.light{border:1px dashed #CCC;padding-left:.6%;padding-right:.2%}.campaign_shortcode.light code{color:#777}label[for=device_mobile]{margin-left:-2em}label[for=device_mobile]:after{content:"\f470"}label[for=device_tablet]:after{content:"\f471"}label[for=device_laptop]:after{content:"\f472"}.date_picker:after{content:"\f145";position:relative;top:5px;font:400 20px/1 dashicons;vertical-align:top}.date_picker{margin-left:1em}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.date-picker{max-width:15%}.campaign_target_rules_panel .options_group .messages-list .form-field .message_header{width:75px!important;text-align:right}.disable{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:.3}.enable{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1}.message_edit:after{content:"\f464"}.message_delete:after{content:"\f158"}.actions:after{font-family:dashicons;font-size:1.4em}.actions{color:#444;padding-right:3px;cursor:pointer}.actions:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";filter:alpha(opacity=70);opacity:.7}.action_links{vertical-align:middle}.message_header_label{color:#fff;text-align:center;font-size:.7em!important;margin:0!important;padding:3px 5px;cursor:auto;text-transform:uppercase}.message_header_label.unknown{color:#343232;border:1px solid #000}.message_label{float:left;width:25%;padding:0}.message_field{width:65%;display:inline-block}.message_field.message_custom_css,.message_field.message_custom_js{font-family:Consolas,Monaco,monospace;font-size:12px}.message_image_button .image-buttons-icon{margin:0 2px}.message_image_button .image-buttons-icon:before{content:"\f128"}.message_headline_button,.message_image_button{vertical-align:top!important}.message_headline_button .headline-buttons-icon{margin:2px}.message_headline_button .headline-buttons-icon:before{content:"\f130"}.help_tip:after{content:"\f223"}.help_tip{float:right;margin:4px 0;cursor:help}.chosen-container{width:65%!important}.message_row.position{height:110px}.location-selector input[type=radio]:checked+label span{background-color:#2ea2cc}.location-selector{width:128px;height:115px;position:absolute;display:block;margin-left:24.3%;background-image:url(../images/desktop.png);background-position:0 -19px}.location-selector .location{background-color:#ddd;cursor:pointer;position:absolute}.location-selector .location:hover{background-color:#ccc}.location-selector .location.bottom,.location-selector .location.middle,.location-selector .location.top{height:14%;width:14%;right:42%}.location-selector .location.top{top:13px}.location-selector .location.middle{top:30%}.location-selector .location.bottom{bottom:43px}.location-selector .location.left,.location-selector .location.right{height:14%;width:14%;margin-left:0;margin-right:0}.location-selector .location.right{right:15px}.location-selector .location.left{left:15px}.wp-editor-container{margin-left:25%}.message-setting-fields #message_title,.message-setting-fields #upload_image{width:58%}.wp-editor-container span .mceLayout{width:50%}#edit-slug-box,#ui-datepicker-div,#wp-admin-bar-view,.empty_campaign,.location-selector input[type=radio]{display:none}#the-list .message_thumbnail img{max-width:200px;max-height:100px}#icegram_messages+.chosen-container-single .chosen-search input[type=text]{width:100%!important}.message_theme+.chosen-container.chosen-container .chosen-results{max-height:30em!important}.message_theme+.chosen-container-single .chosen-single span{background-repeat:no-repeat!important;background-position:100% 50%!important}.message_theme+.chosen-container .chosen-results li{margin:0 0 2% 2%;background-position:.5em 2em!important;-webkit-background-size:95%!important;background-size:95%!important;border:2px solid #EEE!important;font-weight:700!important;display:inline-block!important;text-align:center!important;background-repeat:no-repeat!important}.message_theme+.chosen-container .chosen-results li.highlighted{color:#000!important;border:2px solid #2ea2cc!important;background-color:#EAEFFF!important}#tiptip_holder{display:none;position:absolute;top:0;left:0;z-index:99999}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#464646}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#464646}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#464646}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#464646}#tiptip_content,.chart-tooltip{font-size:11px;color:#fff;padding:.5em;background:#464646;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,.1);-moz-box-shadow:1px 1px 3px rgba(0,0,0,.1);box-shadow:1px 1px 3px rgba(0,0,0,.1);text-align:center;max-width:150px}#tiptip_content code,.chart-tooltip code{background:#888;padding:1px}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}input.sm_text_field,table#icegram_post_query_table,table#icegram_post_query_table tr td{padding:5px}#icegram_post_query_table label{font-weight:700}.icegram-dashicons:before{position:relative;font-family:dashicons;font-style:normal;vertical-align:middle;font-size:2em}.about-wrap .icegram-badge,.icegram-support{position:absolute;top:0}.about-wrap.icegram h2{color:#3754a8;padding-top:19px;font-weight:600}.icegram-dashicons-testimonial h4{font-size:1.5em}.icegram-badge{background:url(../images/icegram-logo-branding-64-white.png) center 24px no-repeat #3754a8;color:#FFF;font-size:12px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:24px;display:inline-block;width:150px;text-rendering:optimizeLegibility;-moz-box-shadow:0 1px 3px rgba(0,0,0,.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,.2);box-shadow:0 1px 3px rgba(0,0,0,.2)}.icegram-support{font-size:14px;color:#000;margin:178px 0 0;height:10px;width:180px;text-rendering:optimizeLegibility;right:0;text-align:right}.icegram-contact-us{font-size:20px;line-height:1.5em;font-weight:800;margin-right:20px}.feature-section.col>div{position:relative;width:29.95%;margin-right:4.999999999%;float:left}.about-wrap [class$=col] .last-feature{margin-right:0}form[name=klawoo_subscribe]{margin-right:150px}form[name=klawoo_subscribe] input[name=email]{width:20em}.icegram-contact-us a{color:#3754a8}.ig_addons_wrap .addons{overflow:hidden}.ig_addons_wrap .addons li{float:left;margin:0 2em 2em 0!important;padding:0;vertical-align:top;width:300px}.ig_addons_wrap .addons li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ig_addons_wrap .addons li a img{max-width:100px;max-height:100px;margin-right:-15px;margin-top:-30px;float:right}.ig_addons_wrap .addons li a h3{margin:0!important;padding:20px!important;background:#FFF;height:60px}.ig_addons_wrap .addons li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ig_addons_wrap .addons li a:focus,.ig_addons_wrap .addons li a:hover{background-color:#fff}.ig_addons_wrap .addons li .ig_addon_category{margin-top:-3.5em;float:right;text-transform:capitalize;font-style:normal;margin-right:1em;font-size:80%}.ig_addons_wrap .addons li .ig_addon_category span{margin-left:1.2em;padding:2px 3px;background-color:#DEDEDE;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em}.ig_addons_wrap .addons li .ig_addon_category span.free{background-color:#C3D3FF;color:#3754a8}.ig_addons_wrap .addons .addon_btn{margin-top:25px}.ig_addons_wrap .addons .pill{font-size:12px;margin-top:30px;position:absolute;padding:.15em .7em;background-color:#aaa;color:#FFF;box-shadow:0 0 3px 0 rgba(0,0,0,.2)}#popup_container{width:550px;background-color:#FFF;margin:0 auto;padding:.5em 1em 1em}#popup_container input[value=ig_vertical]{margin-left:3%}#popup_container select{width:30%}#popup_container #embed_howto_link{float:right;font-size:.8em;font-weight:400}.campaign_target_rules_panel .messages_list_table p.inline{display:block;margin:1em 0}.campaign_target_rules_panel .form-field .delete-url:before{font-family:dashicons;content:"\f182";cursor:pointer}.campaign_target_rules_panel .form-field .url_input_field{width:65%!important}.campaign_target_rules_panel #valid-field{margin-left:92%}.campaign_target_rules_panel #valid-field.error{font-family:dashicons;font-size:1.5em;color:red;vertical-align:middle;display:inline-block;-webkit-font-smoothing:antialiased;cursor:help}.campaign_target_rules_panel #valid-field.error:after{content:"\f223"}.campaign_target_rules_panel #add-url-icon:after{font-family:dashicons;content:"\f132";vertical-align:middle}.message_colors_options_container p{margin-top:.3em!important;margin-bottom:.3em!important}.message_colors_options_container p span.message_label{font-size:12px;margin-top:2px}.message-setting-fields .chosen-container-single .chosen-single{z-index:initial!important}.message-setting-fields .chosen-container-single.chosen-single div b{background:url(../images/chosen-sprite.png) 0 2px no-repeat!important}.ig_get_more,.message_animation+.chosen-container .chosen-results li.ig_get_more,.message_theme+.chosen-container .chosen-results li.ig_get_more{height:1.5em!important;background:rgba(255,231,180,.47)!important;border:1px dashed #b40000!important;line-height:1.5em;color:maroon!important;border-radius:.5em;width:92%!important}.message_animation+.chosen-container .chosen-results li.ig_get_more{height:1em!important;line-height:1em;margin-bottom:.1em;text-align:center}.message_animation+.chosen-container .chosen-results li.ig_get_more:after,.message_theme+.chosen-container .chosen-results li.ig_get_more:after{content:" \2192"}.message_animation+.chosen-container .chosen-results li.ig_get_more:focus,.message_animation+.chosen-container .chosen-results li.ig_get_more:hover,.message_theme+.chosen-container .chosen-results li.ig_get_more:focus,.message_theme+.chosen-container .chosen-results li.ig_get_more:hover{box-shadow:inset 0 0 1.5em rgba(253,214,131,.62)}.message_form_options{width:75%;margin-left:25%}.message_form_options label.message_label{display:none}.message_form_options textarea{resize:none;width:86%}.message_form_options p>div.form_radio_group{width:86%}.message_form_options span.message_label{width:100%}.message_form_options .form_inline_shortcode{margin-left:0;margin-top:1em;position:relative;width:inherit}.message_form_html_original{font-family:Consolas,Monaco,monospace;font-size:.8em}.form_radio_group .location{display:inline-block;width:97px;height:94px;padding:3px 3px 0;margin-right:.8em;border:1px solid transparent}.form_radio_group .location label{background:url(../images/from_layouts.png) no-repeat;display:block;width:95px;height:100px;border:1px solid transparent}.form_radio_group .location:hover{border:1px solid #2EA2CC}#message_form_style+.chosen-container-single .chosen-single{height:6em!important}#message_form_style+.chosen-container-single .chosen-single span{background-size:9em!important;line-height:6em!important;background-repeat:no-repeat;background-position:100% 50%!important}#message_form_style+.chosen-container .chosen-results li{width:43%!important;height:10em!important;margin:0 0 2% 2%;-webkit-background-size:95%!important;background-size:100%!important;border:2px solid #EEE!important;font-weight:700!important;display:inline-block!important;text-align:center!important;background-repeat:no-repeat!important;background-position:0 100%!important;color:transparent}#message_form_style+.chosen-container .chosen-results li.highlighted{color:transparent!important;border:2px solid #2ea2cc!important;background-color:#EAEFFF!important}.message_form_options .chosen-container{width:86%!important}.feature-section.col.two-col>div{width:45.95%}.feature-section.col img{width:150px}.feature-section.col p{margin-bottom:1.5em}.about-wrap.icegram h2{margin-bottom:.5em}.about-wrap .feature-section h4{margin-top:.4em}.about-header .about-text{margin-top:0;margin-bottom:1.5em}.changelog .about-text{margin-bottom:0;margin-top:1.5em}.about-wrap .icegram-badge{right:1.3em;color:#3754a8;background-color:transparent;padding-top:100px;box-shadow:none;-webkit-box-shadow:none;background-image:url(../images/icegram-logo-branding-64.png)}.about-header .wrap{background-color:#fff;border-top:1px dotted #ddd}.about-header .wrap table{margin-top:.5em}.about-header th{font-size:1.1em;color:inherit;width:170px}.about-header{background-color:#FFF;padding:1em 1em .5em;-webkit-box-shadow:0 0 7px 0 rgba(0,0,0,.2);box-shadow:0 0 7px 0 rgba(0,0,0,.2)}.icegram-support{padding-right:1em;margin-top:140px}.icegram-actions a,.icegram-actions a:active{vertical-align:middle!important;font-size:1.15em;color:#3754a8}.icegram-actions .button-primary{text-shadow:none;font-size:1.15em!important;line-height:1em!important;height:2.5em!important;padding:.75em 1.5em!important;background:#038703!important;border-color:#038703!important}.icegram-actions .button-primary:active,.icegram-actions .button-primary:focus,.icegram-actions .button-primary:hover,.icegram-actions .button-primary:visited{color:#fff;background:#038703!important;-webkit-box-shadow:inset 0 2px 0 #038703!important;box-shadow:inset 0 2px 0 #038703!important}.icegram-dashicons:before{margin-right:.1em}/*! jQuery UI - v1.11.0 - 2014-07-18
2
  * http://jqueryui.com
3
  * Includes: core.css, draggable.css, resizable.css, selectable.css, sortable.css, accordion.css, autocomplete.css, button.css, datepicker.css, dialog.css, menu.css, progressbar.css, selectmenu.css, slider.css, spinner.css, tabs.css, tooltip.css, theme.css
4
  * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
1
+ .shortcode_description.light,.shortcode_description:before{content:"\f348"}#postdivrich{display:none}.ig_preview_button{display:none;padding:10px 10px 0}.campaign_target_rules_panel .options_group{border-bottom:1px dashed #D3D3D3}.campaign_target_rules_panel .options_group:last-child{border-bottom-style:none}.campaign_target_rules_panel .options_group .form-field .options_header{display:inline-block;width:30%;vertical-align:top}.campaign_target_rules_panel .options_group p label input[type=checkbox],.campaign_target_rules_panel .options_group p label input[type=radio]{width:0}.campaign_target_rules_panel .options_group p label input[type=date]{width:auto;margin-left:10px}.user_roles p label input[type=checkbox],.user_roles p label input[type=radio]{margin-left:3px}.campaign_target_rules_panel .options_group .form-field #icegram_messages{width:300px;text-align:center}.empty_campaign{margin:1em;font-style:italic}.handle em{font-weight:400;font-size:85%;margin-left:1em;color:#777}h3 .chosen-container{font-weight:500}.thickbox_edit_message{padding:0 1em;border-bottom:1px solid #D3D3D3}.messages-list-sortable{margin-top:30px}.messages_list_table{font-size:1em;width:100%;border-collapse:separate;border-spacing:3px}th.message_header{text-align:center!important}.message_title{text-align:left}.message_headline{text-align:left;padding-left:1.2em}.action_links,.message_seconds{width:75px!important;text-align:center}.message_seconds input{text-align:right}.message-row .seconds-text{width:40px!important;text-align:center}.message-sort-placeholder{background-color:#D3D3D3}.device{width:auto;line-height:5em;vertical-align:baseline}.device:after{font-family:dashicons;font-size:3em}.device input{position:relative;left:2.5em;top:1.5em}.admin_field_icon{display:inline-block;-webkit-font-smoothing:antialiased;width:18px;height:18px;font:400 18px/1 dashicons;color:#888;vertical-align:text-top;margin:0 2px}.shortcode_description.light{color:#777}.campaign_shortcode{display:inline-block;width:45%;color:#777}.campaign_shortcode.light{border:1px dashed #CCC;padding-left:.6%;padding-right:.2%}.campaign_shortcode.light code{color:#777}label[for=device_mobile]{margin-left:-2em}label[for=device_mobile]:after{content:"\f470"}label[for=device_tablet]:after{content:"\f471"}label[for=device_laptop]:after{content:"\f472"}.date_picker:after{content:"\f145";position:relative;top:5px;font:400 20px/1 dashicons;vertical-align:top}.date_picker{margin-left:1em}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.date-picker{max-width:15%}.campaign_target_rules_panel .options_group .messages-list .form-field .message_header{width:75px!important;text-align:right}.disable{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:.3}.enable{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1}.message_edit:after{content:"\f464"}.message_delete:after{content:"\f158"}.actions:after{font-family:dashicons;font-size:1.4em}.actions{text-decoration:none;color:#444;padding-right:3px;cursor:pointer}.actions:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";filter:alpha(opacity=70);opacity:.7}.action_links{vertical-align:middle}.message_header_label{color:#fff;text-align:center;font-size:.7em!important;margin:0!important;padding:3px 5px;cursor:auto;text-transform:uppercase}.message_header_label.ig_unknown{color:#343232;border:1px solid #000}.message_label{float:left;width:25%;padding:0}.message_field{width:65%;display:inline-block}.message_field.message_custom_css,.message_field.message_custom_js{font-family:Consolas,Monaco,monospace;font-size:12px}.message_image_button .image-buttons-icon{margin:0 2px}.message_image_button .image-buttons-icon:before{content:"\f128"}.message_headline_button,.message_image_button{vertical-align:top!important}.message_headline_button .headline-buttons-icon{margin:2px}.message_headline_button .headline-buttons-icon:before{content:"\f130"}.help_tip:after{content:"\f223"}.help_tip{float:right;margin:4px 0;cursor:help;text-decoration:none}.chosen-container{width:65%!important}.message_row.position{height:110px}.location-selector input[type=radio]:checked+label span{background-color:#2ea2cc}.location-selector{width:128px;height:115px;position:absolute;display:block;margin-left:24.3%;background-image:url(../images/desktop.png);background-position:0 -19px}.location-selector .location{background-color:#ddd;cursor:pointer;position:absolute}.location-selector .location:hover{background-color:#ccc}.location-selector .location.bottom,.location-selector .location.middle,.location-selector .location.top{height:14%;width:14%;right:42%}.location-selector .location.top{top:13px}.location-selector .location.middle{top:30%}.location-selector .location.bottom{bottom:43px}.location-selector .location.left,.location-selector .location.right{height:14%;width:14%;margin-left:0;margin-right:0}.location-selector .location.right{right:15px}.location-selector .location.left{left:15px}.wp-editor-container{margin-left:25%}.message-setting-fields #message_title,.message-setting-fields #upload_image{width:58%}.wp-editor-container span .mceLayout{width:50%}#edit-slug-box,#ui-datepicker-div,#wp-admin-bar-view,.empty_campaign,.location-selector input[type=radio]{display:none}#the-list .message_thumbnail img{max-width:200px;max-height:100px}#icegram_messages+.chosen-container-single .chosen-search input[type=text]{width:100%!important}.message_theme+.chosen-container.chosen-container .chosen-results{max-height:30em!important}.message_theme+.chosen-container-single .chosen-single span{background-repeat:no-repeat!important;background-position:100% 50%!important}.message_theme+.chosen-container .chosen-results li{margin:0 0 2% 2%;background-position:.5em 2em!important;-webkit-background-size:95%!important;background-size:95%!important;border:2px solid #EEE!important;font-weight:700!important;display:inline-block!important;text-align:center!important;background-repeat:no-repeat!important}.message_theme+.chosen-container .chosen-results li.highlighted{color:#000!important;border:2px solid #2ea2cc!important;background-color:#EAEFFF!important}#tiptip_holder{display:none;position:absolute;top:0;left:0;z-index:99999}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#464646}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#464646}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#464646}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#464646}#tiptip_content,.chart-tooltip{font-size:11px;color:#fff;padding:.5em;background:#464646;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,.1);-moz-box-shadow:1px 1px 3px rgba(0,0,0,.1);box-shadow:1px 1px 3px rgba(0,0,0,.1);text-align:center;max-width:150px}#tiptip_content code,.chart-tooltip code{background:#888;padding:1px}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}input.sm_text_field,table#icegram_post_query_table,table#icegram_post_query_table tr td{padding:5px}#icegram_post_query_table label{font-weight:700}.icegram-dashicons:before{position:relative;font-family:dashicons;font-style:normal;vertical-align:middle;font-size:2em}.about-wrap .icegram-badge,.icegram-support{position:absolute;top:0}.about-wrap.icegram h2{color:#3754a8;padding-top:19px;font-weight:600}.icegram-dashicons-testimonial h4{font-size:1.5em}.icegram-badge{background:url(../images/icegram-logo-branding-64-white.png) center 24px no-repeat #3754a8;color:#FFF;font-size:12px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:24px;display:inline-block;width:150px;text-rendering:optimizeLegibility;-moz-box-shadow:0 1px 3px rgba(0,0,0,.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,.2);box-shadow:0 1px 3px rgba(0,0,0,.2)}.icegram-support{font-size:14px;color:#000;margin:178px 0 0;height:10px;width:180px;text-rendering:optimizeLegibility;right:0;text-align:right}.icegram-contact-us{font-size:20px;line-height:1.5em;font-weight:800;margin-right:20px}.feature-section.col>div{position:relative;width:29.95%;margin-right:4.999999999%;float:left}.about-wrap [class$=col] .last-feature{margin-right:0}form[name=klawoo_subscribe]{margin-right:150px}form[name=klawoo_subscribe] input[name=email]{width:20em}.icegram-contact-us a{color:#3754a8}.ig_addons_wrap .addons{overflow:hidden}.ig_addons_wrap .addons li{float:left;margin:0 2em 2em 0!important;padding:0;vertical-align:top;width:300px}.ig_addons_wrap .addons li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ig_addons_wrap .addons li a img{max-width:100px;max-height:100px;margin-right:-15px;margin-top:-30px;float:right}.ig_addons_wrap .addons li a h3{margin:0!important;padding:20px!important;background:#FFF;height:60px}.ig_addons_wrap .addons li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ig_addons_wrap .addons li a:focus,.ig_addons_wrap .addons li a:hover{background-color:#fff}.ig_addons_wrap .addons li .ig_addon_category{margin-top:-3.5em;float:right;text-transform:capitalize;font-style:normal;margin-right:1em;font-size:80%}.ig_addons_wrap .addons li .ig_addon_category span{margin-left:1.2em;padding:2px 3px;background-color:#DEDEDE;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em}.ig_addons_wrap .addons li .ig_addon_category span.free{background-color:#C3D3FF;color:#3754a8}.ig_addons_wrap .addons .addon_btn{margin-top:25px}.ig_addons_wrap .addons .pill{font-size:12px;margin-top:30px;position:absolute;padding:.15em .7em;background-color:#aaa;color:#FFF;box-shadow:0 0 3px 0 rgba(0,0,0,.2)}#popup_container{width:550px;background-color:#FFF;margin:0 auto;padding:.5em 1em 1em}#popup_container input[value=ig_vertical]{margin-left:3%}#popup_container select{width:30%}#popup_container #embed_howto_link{float:right;font-size:.8em;font-weight:400}.campaign_target_rules_panel .messages_list_table p.inline{display:block;margin:1em 0}.campaign_target_rules_panel .form-field .delete-url:before{font-family:dashicons;content:"\f182";cursor:pointer}.campaign_target_rules_panel .form-field .url_input_field{width:65%!important}.campaign_target_rules_panel #valid-field{margin-left:92%}.campaign_target_rules_panel #valid-field.error{font-family:dashicons;font-size:1.5em;color:red;vertical-align:middle;display:inline-block;-webkit-font-smoothing:antialiased;cursor:help}.campaign_target_rules_panel #valid-field.error:after{content:"\f223"}.campaign_target_rules_panel #add-url-icon:after{font-family:dashicons;content:"\f132";vertical-align:middle}.message_colors_options_container p{margin-top:.3em!important;margin-bottom:.3em!important}.message_colors_options_container p span.message_label{font-size:12px;margin-top:2px}.message-setting-fields .chosen-container-single .chosen-single{z-index:initial!important}.message-setting-fields .chosen-container-single.chosen-single div b{background:url(../images/chosen-sprite.png) 0 2px no-repeat!important}.ig_get_more,.message_animation+.chosen-container .chosen-results li.ig_get_more,.message_theme+.chosen-container .chosen-results li.ig_get_more{height:1.5em!important;background:rgba(255,231,180,.47)!important;border:1px dashed #b40000!important;line-height:1.5em;color:maroon!important;border-radius:.5em;width:92%!important}.message_animation+.chosen-container .chosen-results li.ig_get_more{height:1em!important;line-height:1em;margin-bottom:.1em;text-align:center}.message_animation+.chosen-container .chosen-results li.ig_get_more:after,.message_theme+.chosen-container .chosen-results li.ig_get_more:after{content:" \2192"}.message_animation+.chosen-container .chosen-results li.ig_get_more:focus,.message_animation+.chosen-container .chosen-results li.ig_get_more:hover,.message_theme+.chosen-container .chosen-results li.ig_get_more:focus,.message_theme+.chosen-container .chosen-results li.ig_get_more:hover{box-shadow:inset 0 0 1.5em rgba(253,214,131,.62)}.message_form_options{width:75%;margin-left:25%}.message_form_options label.message_label{display:none}.message_form_options textarea{resize:none;width:86%}.message_form_options p>div.form_radio_group{width:86%}.message_form_options span.message_label{width:100%}.message_form_options .form_inline_shortcode{margin-left:0;margin-top:1em;position:relative;width:inherit}.message_form_html_original{font-family:Consolas,Monaco,monospace;font-size:.8em}.form_radio_group .location{display:inline-block;width:97px;height:94px;padding:3px 3px 0;margin-right:.8em;border:1px solid transparent}.form_radio_group .location label{background:url(../images/from_layouts.png) no-repeat;display:block;width:95px;height:100px;border:1px solid transparent}.form_radio_group .location:hover{border:1px solid #2EA2CC}#message_form_style+.chosen-container-single .chosen-single{height:6em!important}#message_form_style+.chosen-container-single .chosen-single span{background-size:9em!important;line-height:6em!important;background-repeat:no-repeat;background-position:100% 50%!important}#message_form_style+.chosen-container .chosen-results li{width:43%!important;height:10em!important;margin:0 0 2% 2%;-webkit-background-size:95%!important;background-size:100%!important;border:2px solid #EEE!important;font-weight:700!important;display:inline-block!important;text-align:center!important;background-repeat:no-repeat!important;background-position:0 100%!important;color:transparent}#message_form_style+.chosen-container .chosen-results li.highlighted{color:transparent!important;border:2px solid #2ea2cc!important;background-color:#EAEFFF!important}.message_form_options .chosen-container{width:86%!important}.feature-section.col.two-col>div{width:45.95%}.feature-section.col img{width:150px}.feature-section.col p{margin-bottom:1.5em}.about-wrap.icegram h2{margin-bottom:.5em}.about-wrap .feature-section h4{margin-top:.4em}.about-header .about-text{margin-top:0;margin-bottom:1.5em}.changelog .about-text{margin-bottom:0;margin-top:1.5em}.about-wrap .icegram-badge{right:1.3em;color:#3754a8;background-color:transparent;padding-top:100px;box-shadow:none;-webkit-box-shadow:none;background-image:url(../images/icegram-logo-branding-64.png)}.about-header .wrap{background-color:#fff;border-top:1px dotted #ddd}.about-header .wrap table{margin-top:.5em}.about-header th{font-size:1.1em;color:inherit;width:170px}.about-header{background-color:#FFF;padding:1em 1em .5em;-webkit-box-shadow:0 0 7px 0 rgba(0,0,0,.2);box-shadow:0 0 7px 0 rgba(0,0,0,.2)}.icegram-support{padding-right:1em;margin-top:140px}.icegram-actions a,.icegram-actions a:active{vertical-align:middle!important;font-size:1.15em;color:#3754a8}.icegram-actions .button-primary{text-shadow:none;font-size:1.15em!important;line-height:1em!important;height:2.5em!important;padding:.75em 1.5em!important;background:#038703!important;border-color:#038703!important}.icegram-actions .button-primary:active,.icegram-actions .button-primary:focus,.icegram-actions .button-primary:hover,.icegram-actions .button-primary:visited{color:#fff;background:#038703!important;-webkit-box-shadow:inset 0 2px 0 #038703!important;box-shadow:inset 0 2px 0 #038703!important}.icegram-dashicons:before{margin-right:.1em}#ig-admin-tabs{padding-top:0}#ig-admin-tabs a:focus{box-shadow:none}.ig-admin-tabs-nav{padding:0 15px 0 10px;margin:0}.ig-admin-tabs-nav li{display:inline-block;list-style:none;border:1px solid #aaa;padding:0;margin:0 4px -1px;background-color:#eee}#ig-admin-tabs .ig-admin-nav-last{background-color:#d6e3ef}#ig-admin-tabs .ig-admin-nav-last:hover{background-color:#c5daef}#ig-admin-tabs .ig-admin-nav-last.current,.ig-admin-tabs-nav li.current,.ig-admin-tabs-nav li.current:hover,.ig-admin-tabs-nav li:hover{background-color:#FFF;border:1px solid #aaa;border-bottom:1px solid #fff;color:#444}.ig-admin-tabs-nav li.current{border-bottom:1px solid #fff;z-index:5;color:#444}.ig-admin-tabs-nav li a{padding:6px 10px;font-size:14px;font-weight:400;line-height:30px;color:#333;text-decoration:none}.ig-admin-tabs-nav li.current a{text-decoration:none!important;font-weight:700}.ig-admin-tabs-nav li a:hover{color:#444}#ig-admin-tabs .ig-admin-tab{background-color:#FFF;border:1px solid #aaa;padding:16px;display:none}/*! jQuery UI - v1.11.0 - 2014-07-18
2
  * http://jqueryui.com
3
  * Includes: core.css, draggable.css, resizable.css, selectable.css, sortable.css, accordion.css, autocomplete.css, button.css, datepicker.css, dialog.css, menu.css, progressbar.css, selectmenu.css, slider.css, spinner.css, tabs.css, tooltip.css, theme.css
4
  * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
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={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&amp;"})):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).attr("value"));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 option:selected").val();"unknown"!==b&&jQuery("#campaign_data").find(".message_header_label").hasClass("unknown")?jQuery("#campaign_data").find(".message_header_label").removeClass("unknown"):"unknown"===b&&(jQuery("#campaign_data").find(".message_header_label").removeClass().addClass("unknown").addClass("message_header_label"),jQuery("#campaign_data").find(".message_header_label").text("unknown"));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),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("#campaign_data").find("h3.hndle").hide(),jQuery(".target_rules_desc").appendTo("#campaign_target_rules h3.hndle span"),jQuery(document).ready(function(){var c=window.send_to_editor;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 option:selected").closest(".message-setting-fields");for(var e=0;e<this_data.length;e++)a(this_data[e]);jQuery(".inside").on("change",".message_type",function(b){var c=jQuery(b.target).parents(".message-setting-fields");a(c)}),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=c},!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 .hndle, #campaign_data .handlediv").unbind("click"),jQuery("#campaign_data .handlediv").hide(),jQuery("#poststuff").on("click","#publish",function(a){jQuery("#campaign_data").find(".message_header_label.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).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)}}).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"),d=jQuery(b).closest(".message_form_options");if(jQuery(d).parent().find("p.cta-actions select option").removeAttr("disabled"),void 0!=jQuery(b).val()&&""!=jQuery(b).val()&&jQuery(d).parent().find("p.cta-actions 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"),c.length>0){var e=jQuery(c[c.length-1]),f=e.is("button")?e.not("br, span, div").text():e.val();jQuery(d).siblings("p").find("#message_label").val(f.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-st-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",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("select.ajax_chosen_select_messages").next("div").on("click","div.chosen-drop",function(){jQuery(this).closest("h3.hndle").trigger("click")}),jQuery("#campaign_data").on("click",".campaign_preview",function(a){jQuery(this).closest("h3.hndle").trigger("click"),0!=jQuery(".message-row").length&&(tinyMCE.triggerSave(),params=jQuery("#post").serializeArray(),params.push({name:"action",value:"save_campaign_preview"}),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("http://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("http://www.icegram.com/addons/icegram-animation-pack/?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:!0}),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={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&amp;"})):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).attr("value"));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 option:selected").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(){var c=jQuery("#ig-admin-tabs");c.find(".ig-admin-nav-main").addClass("current"),c.find("#ig-admin-tab-main").show(),jQuery("#ig-admin-tabs").on("click",".ig-admin-tabs-nav li",function(a){a.preventDefault(),jQuery(this).hasClass("ig-admin-nav-notab")||(c.find(".ig-admin-tabs-nav li").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.show(),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 option:selected").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_type",function(b){var c=jQuery(b.target).parents(".message-setting-fields");a(c)}),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",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){0!=jQuery(".message-row").length&&(tinyMCE.triggerSave(),params=jQuery("#post").serializeArray(),params.push({name:"action",value:"save_campaign_preview"}),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("http://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("http://www.icegram.com/addons/icegram-animation-pack/?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
assets/js/icegram.min.js CHANGED
@@ -1 +1 @@
1
- function Icegram(){}function Icegram_Message_Type(a){var a;this.root_container="#icegram_messages_container",this.data=a,this.type=a.type,this.data.delay_time=parseInt(this.data.delay_time),"string"!=typeof this.data.link||""==this.data.link||/^tel:/i.test(this.data.link)||/^https?:\/\//i.test(this.data.link)||(this.data.link="http://"+this.data.link),this.set_template(this.get_template_default()),this.init()}Icegram.prototype.init=function(a){if(void 0!=a){jQuery(window).trigger("preinit.icegram",[a]),this.data=a,this.defaults=jQuery.extend({},a.defaults),this.message_data=a.messages,this.messages,this.tracking_data=[],this.message_template_cache={},this.map_id_to_index={},this.map_type_to_index={},this.mode=void 0==window.ig_mode?"local":window.ig_mode,this.powered_by={link:"http://www.icegram.com/?utm_source=inapp&utm_campaign=poweredby&utm_medium="},this.powered_by.text=this.defaults.powered_by_text,this.powered_by.logo=this.defaults.powered_by_logo,jQuery("body").append('<div id="icegram_messages_container"></div>');this.messages=[];var b=this;this.message_data.length>0&&jQuery.each(this.message_data,function(a,c){try{if(-1==window.location.href.indexOf("campaign_preview_id")){if("yes"==c.retargeting&&1==jQuery.cookie("icegram_campaign_shown_"+c.campaign_id))return;if("yes"==c.retargeting_clicked&&1==jQuery.cookie("icegram_campaign_clicked_"+c.campaign_id))return}var d=null,e=c.type.split("-").join(" ").ucwords().split(" ").join("_");d="function"==typeof window["Icegram_Message_Type_"+e]?new window["Icegram_Message_Type_"+e](c):new Icegram_Message_Type(c),b.messages.push(d),b.map_id_to_index["_"+c.id]=a,b.map_type_to_index[c.type]=jQuery.isArray(b.map_type_to_index[c.type])?b.map_type_to_index[c.type]:new Array,b.map_type_to_index[c.type].push(a)}catch(f){console.log(f)}}),jQuery(window).unload(function(){"function"==typeof window.icegram.submit_tracking_data&&window.icegram.submit_tracking_data(!1)}),setInterval(function(){"function"==typeof window.icegram.submit_tracking_data&&window.icegram.submit_tracking_data(!0)},5e3),jQuery(window).trigger("init.icegram",[this])}},Icegram.prototype.timer_tick=function(){},Icegram.prototype.get_template_fn=function(a){return this.message_template_cache[a]},Icegram.prototype.set_template_fn=function(a,b){this.message_template_cache[a]=b},Icegram.prototype.get_message=function(a){return this.messages.length>a?this.messages[a]:void 0},Icegram.prototype.get_message_by_id=function(a){if(this.map_id_to_index.hasOwnProperty("_"+a)){var b=this.map_id_to_index["_"+a];return this.get_message(b)}},Icegram.prototype.get_message_by_campaign_id=function(a){a=String(a);var b=[],c=this.messages;return a.indexOf(" ")&&(a=a.split(" ")),jQuery.each(a,function(a,d){jQuery.each(c,function(a,c){d==c.data.campaign_id&&b.push(c)})}),b},Icegram.prototype.get_messages_by_type=function(a){if(this.map_type_to_index.hasOwnProperty(a)){var b=this.map_type_to_index[a],c=[];if(jQuery.isArray(b)){var d=this;jQuery.each(b,function(a,b){c.push(d.get_message(b))})}return c}},Icegram.prototype.get_powered_by=function(a){var b=jQuery.extend({},this.powered_by);return b.link=b.link+(a||""),b},Icegram.prototype.track=function(a,b){"object"==typeof b&&b.hasOwnProperty("message_id")&&b.hasOwnProperty("campaign_id")&&(jQuery(window).trigger("track.icegram",[a,b]),this.tracking_data.push({type:a,params:b}))},Icegram.prototype.submit_tracking_data=function(a){var b=window.location.protocol.split(":"),c=b[0],d=this.data.ajax_url.split("://"),e=d[0];if(this.tracking_data.length>0&&-1==window.location.href.indexOf("campaign_preview_id")&&!this.is_bot()){var f={type:"POST",url:this.data.ajax_url,async:a||!1,data:{action:"icegram_event_track",event_data:JSON.parse(JSON.stringify(this.tracking_data)),ig_remote_url:"remote"==this.mode?window.location.href:void 0},success:function(a,b,c){},error:function(a,b,c){}};"remote"==this.mode?(f.xhrFields={withCredentials:!0},f.crossDomain=!0,f.async=!0):c!=e&&(f.xhrFields={withCredentials:!0},jQuery.extend(f.data,{ig_local_url_cs:window.location.href})),jQuery.ajax(f),this.tracking_data=[]}},Icegram.prototype.is_bot=function(){var a=/bot|spider|crawl|sucker|ia_archiver|alexa|spade|slurp|webbug|ZyBorg|Feedfetcher-Google|Mediapartners-Google|aolserver|seamonkey|binlar|casper|comodo|feedfinder|jakarta|java|larbin|libwww|pycurl|linkwalker|steeler|nutch|turnit|zmeu/i;return!!a.test(navigator.userAgent)},Icegram.prototype.hide_all_messages=function(){this.messages.length>0&&jQuery.each(this.messages,function(a,b){b.hide()})},Icegram_Message_Type.prototype.init=function(){this.render(),this.add_event_handlers()},Icegram_Message_Type.prototype.add_event_handlers=function(){this.el.on("click",{self:this},this.on_click),jQuery(window).on("resize",{self:this},this.on_resize)},Icegram_Message_Type.prototype.animations={},Icegram_Message_Type.prototype.embed_form=function(){if(-1===jQuery.inArray(this.data.type,["toast","badge","ribbon","exit-redirect"])){var a=null,b=this.data.form_layout,c=this.data.form_has_label,d=this.data.form_style||"none",e=this.data.label||void 0;if(d=d.toLowerCase().replace(" ","_"),void 0!=this.data.use_form&&"yes"==this.data.use_form&&(a=this.data.form_html),this.el.find("form.ig_embed_form").length>0){var f=this.el.find("form.ig_embed_form");b="inline",-1===jQuery.inArray(this.data.type,["messenger","tab","sidebar","interstitial","sticky"])&&(f.hasClass("ig_left")?b="left":f.hasClass("ig_right")&&(b="right")),"inline"==b&&this.el.find("form.ig_embed_form").replaceWith('<div class="ig_form_container layout_inline"></div>'),c=f.find(".ig_form_el_group label").length>0?"yes":void 0,0==f.find(".ig_button").length&&0==f.find("button[type=submit]").length&&(e=e||"Submit",f.append('<input class="ig_button" type="submit" value="'+e+'">')),a=jQuery("<div/>").append(f).html()}if(null==a)this.el.find(".ig_form_container").remove();else{var g=window.icegram.formProcess(this,a);if(g){var h=void 0!=this.data.form_header&&""!=this.data.form_header?'<div class="ig_form_header">'+this.data.form_header+"</div>":"",i=void 0!=this.data.form_footer&&""!=this.data.form_footer?'<div class="ig_form_footer">'+this.data.form_footer+"</div>":"";if(this.el.find(".ig_form_container").append(h).append(g).append(i),this.data.rainmaker_form_code&&""!=this.data.rainmaker_form_code){this.data.cta&&"form"!==this.data.cta&&this.data.show_response&&this.data.response_text&&(!this.data.response_text||""!=this.data.response_text)||(this.data.response_text=jQuery("<div/>").html(a).find(".rm_form_message").html()||""),this.el.find(".ig_form_container").addClass(jQuery("<div/>").html(a).find(".rm_form_container").data("type")).data("form-id",jQuery("<div/>").html(a).find(".rm_form_container").data("form-id")).addClass("rainmaker_form");var j=jQuery("<div/>").html(a).find("#rm_script"),k=jQuery("<div/>").html(a).find("#rm_style");this.el.find(".ig_form_container").prepend(k).append(j)}void 0==c?this.el.find(".ig_el_label").not("span.ig_el_label").remove():(this.el.find("input, textarea").removeAttr("placeholder"),this.el.find("select option.ig_el_placeholder").remove()),this.el.find(".ig_form_container .ig_button").length>0&&(this.el.find(".ig_button").not(".ig_form_container .ig_button").hide(),e=e||this.el.find(".ig_button").val()||"Submit",this.el.find(".ig_button").val(e)),this.el.addClass("ig_form_"+b);var l="";void 0!=this.data.form_bg_color&&""!=this.data.form_bg_color?(this.el.find(".ig_form_container").css("background-color",this.data.form_bg_color),l+=".ig_form_"+b+".ig_form_"+d+" .ig_form_container:before{ background-color:"+this.data.form_bg_color+"; border-color:"+this.data.form_bg_color+";}"):l+=".ig_form_"+b+".ig_form_"+d+" .ig_form_container:before{ display:none;}",void 0!=this.data.form_text_color&&""!=this.data.form_text_color&&this.el.find(".ig_form_container").css("color",this.data.form_text_color),this.el.addClass("ig_form_"+d).find(".ig_form_container").prepend('<style type="text/css">'+l+"</style>"),this.el.find(".ig_form_container.layout_"+b+" .ig_form_els").first().addClass("ig_form_els_first").end().last().addClass("ig_form_els_last")}}}},Icegram_Message_Type.prototype.render=function(){this.pre_render();var a=this.render_template();try{jQuery(this.root_container).append(a)}catch(b){}this.dom_id="icegram_message_"+this.data.id,this.el=jQuery("#"+this.dom_id),this.set_position();var c=window.icegram.get_powered_by(this.type);if(c.hasOwnProperty("link")&&c.hasOwnProperty("text")&&""!=c.text&&this.add_powered_by(c),void 0!=this.data.headline&&""!=this.data.headline||this.el.find(".ig_headline").hide(),void 0!=this.data.icon&&""!=this.data.icon||this.el.addClass("ig_no_icon").find(".ig_icon").remove(),void 0!=this.data.message&&""!=this.data.message||this.el.find(".ig_message").hide(),void 0!=this.data.label&&""!=this.data.label||this.el.find(".ig_button").hide(),this.embed_form(),void 0==this.data.use_theme_defaults||"yes"!=this.data.use_theme_defaults){if(void 0!=this.data.text_color&&""!=this.data.text_color&&(this.el.css("color",this.data.text_color),this.el.find(".ig_container").css("color",this.data.text_color)),void 0!=this.data.bg_color&&""!=this.data.bg_color&&(this.el.css("background-color",this.data.bg_color),this.el.find(".ig_container").css("background-color",this.data.bg_color)),void 0!=this.data.cta_bg_color&&""!=this.data.cta_bg_color){this.el.find('.ig_button, form input[type="submit"]').css("background-color",this.data.cta_bg_color);var d=window.icegram.hexToHsl(this.data.cta_bg_color);this.el.find('.ig_button, form input[type="submit"]').css("border-color","hsl("+d.h+","+(d.s-5)+"%,"+(d.l-8)+"%)")}void 0!=this.data.cta_text_color&&""!=this.data.cta_text_color&&this.el.find('.ig_button, form input[type="submit"]').css("color",this.data.cta_text_color)}this.data.use_custom_code&&this.data.custom_css&&this.el.prepend('<style id="ig_custom_css_'+this.data.id+'" type="text/css">'+this.data.custom_css.replace(/#ig_this_message/g,"#"+this.dom_id)+"</style>"),"string"==typeof this.data.link&&""!=this.data.link&&this.el.parent().find(".ig_cta, .ig_button").css("cursor","pointer"),this.post_render(),this.hide({},!0),this.set_up_show_trigger()},Icegram.prototype.formProcess=function(a,b){var c=jQuery("<div/>").html(b).find('input[name="fake_text"]').data("required_field",!0).end().find("input.rm_required_feild").data("required_field",!0).end().find(".gform_validation_container input").data("required_field",!0).end().find(".required_field").data("required_field",!0).end().find("input, label, select, textarea, button").not("br");if(c.length>0){var d=jQuery('<div class="ig_embed_form_container ig_clear_fix"></div>'),e=jQuery("<div/>").html(b).find("form").removeAttr("class").removeAttr("style").addClass("ig_clear_fix").empty(),f=".",g=0;jQuery.each(c,function(a,b){var c=jQuery(b),e=jQuery('<div class="ig_form_els"></div>');if(c.removeAttr("class").removeAttr("style"),(-1==c.attr("tabindex")||c.is('*[name*="[abs]"]')||c.data("required_field")||"_mc4wp_required_but_not_really"==c.attr("name"))&&(c.addClass("ig_form_required_field").removeData("required_field"),g--),"hidden"!=c.attr("type")&&c.prop("disabled")!==!0||(c.addClass("ig_form_hidden_field"),g--),c.is("label"))f=c.not("input, select, textarea, button, span, br").text().replace(/\s+/g," ")||".";else if((c.is("input")||c.is("button")||c.is("textarea")||c.is("select"))&&!c.is("input[type=radio]")){if(c.removeAttr("id"),c.is("button")){var h=c.not("br, span, div").text().trim()||"";c.remove(),c=jQuery('<input type="submit" value="'+h+'">')}!c.is("input[type=submit]")&&!c.is("input[type=button]")||c.is(".ig_form_hidden_field, .ig_form_required_field")||c.addClass("ig_button"),(c.is("input[type=text]")||c.is("input[type=email]"))&&c.attr("size",25),label_class="ig_el_label ig_button_label","."!=f&&(label_class="ig_el_label",c.is("select")?jQuery('<option class="ig_el_placeholder">'+f+"</option>").prependTo(c):c.attr("placeholder",f)),jQuery('<label class="'+label_class+'">'+f+"</label>").appendTo(e),f=".",e.append(c),d.append(e),g++}else c.is("input[type=radio]")&&(label_class="ig_el_label ig_button_label","."!=f&&(label_class="ig_el_label"),jQuery('<label><span class="'+label_class+'">'+f+"</span></label>").prepend(c).appendTo(e),f=".",e.addClass("ig_form_el_radio"),d.append(e),g++)});var h=["","ig_full","ig_half","ig_third","ig_quater"];return g=4>g?g:4,d.find(".ig_form_required_field").length<=0&&d.append('<div class="ig_form_els"><input class="ig_form_required_field" type="text" tabindex="-1" value="" /></div>'),d.addClass(h[g]).find(".ig_form_required_field").parent().removeClass("ig_form_els").css({position:"absolute",left:"-5000px"}).end().end().find(".ig_form_hidden_field").parent().removeClass("ig_form_els").css({display:"none"}),e.append(d),jQuery("<div/>").append(e).html()}return null},Icegram_Message_Type.prototype.render_template=function(){return"function"!=typeof window.icegram.get_template_fn(this.type)&&window.icegram.set_template_fn(this.type,new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+this.template.replace(/[\r\t\n]/g," ").split("{{").join(" ").replace(/((^|\}\})[^\t]*)'/g,"$1\r").replace(/\t=(.*?)\}\}/g,"',$1,'").split(" ").join("');").split("}}").join("p.push('").split("\r").join("\\'")+"');}return p.join('');")),window.icegram.get_template_fn(this.type)(this.data)},Icegram_Message_Type.prototype.pre_render=function(){},Icegram_Message_Type.prototype.post_render=function(){},Icegram_Message_Type.prototype.set_up_show_trigger=function(){if(isNaN(this.data.delay_time))this.show();else if(this.data.delay_time>=0){var a=this;this.timer=setTimeout(function(){a.show()},1e3*this.data.delay_time)}},Icegram_Message_Type.prototype.set_template=function(a){this.template=a},Icegram_Message_Type.prototype.get_template_default=function(){return'<div id="icegram_message_{{=id}}" class="icegram"><div class="ig_headline">{{=headline}}</div></div>'},Icegram_Message_Type.prototype.show=function(a,b){this.is_visible()||(this.animate("in"),this.pre_show(),this.el.show(a),this.el.addClass("ig_show").removeClass("ig_hide"),b!==!0&&this.track("shown"),this.post_show());var c=this;window.icegram.adjustFormContainerHeight(c)},Icegram_Message_Type.prototype.hide=function(a,b){if(this.is_visible()){var c=this;this.animate("out"),this.pre_hide(),setTimeout(function(){c.el.hasClass("ig_no_hide")||c.el.hide(a),c.el.addClass("ig_hide").removeClass("ig_show")},500),b!==!0&&this.track("closed"),this.post_hide()}},Icegram_Message_Type.prototype.set_position=function(){},Icegram_Message_Type.prototype.add_powered_by=function(a){},Icegram_Message_Type.prototype.pre_show=function(){},Icegram_Message_Type.prototype.post_show=function(){},Icegram_Message_Type.prototype.pre_hide=function(){},Icegram_Message_Type.prototype.post_hide=function(){},Icegram_Message_Type.prototype.track=function(a,b){"function"==typeof window.icegram.track&&(b=b||{},jQuery.extend(b,{message_id:this.data.id,campaign_id:this.data.campaign_id,expiry_time:this.data.expiry_time,expiry_time_clicked:this.data.expiry_time_clicked}),window.icegram.track(a,b))},Icegram_Message_Type.prototype.is_visible=function(){return this.el.hasClass("ig_show")},Icegram_Message_Type.prototype.toggle=function(a){this.is_visible()?this.hide(a):this.show(a)},Icegram_Message_Type.prototype.on_click=function(a){if(a.data=a.data||{self:this},jQuery(a.target).filter(".ig_close").length)return void a.data.self.hide();var b=jQuery(a.target).closest(".icegram").find("form:visible").first();(jQuery(a.target).filter(".ig_button, .ig_cta, :submit").length||jQuery(a.target).parents("button[type=submit]").length||jQuery(a.target).parents(".ig_button, .ig_cta").length&&!(b.find(".ig_button, input[type=button], input[type=submit], button[type=submit]").length>0))&&a.data.self.on_cta_click(a)},Icegram_Message_Type.prototype.on_resize=function(a){},Icegram_Message_Type.prototype.on_cta_click=function(a){a.data=a.data||{self:this};var b=jQuery(a.target).closest(".icegram").find("form:visible").first();return jQuery(b).length&&jQuery(b).find(".ig_form_required_field").length&&""!==jQuery(b).find(".ig_form_required_field").val()?(a.preventDefault(),void a.data.self.hide()):(a.data.self.track("clicked"),void(jQuery(b).length?jQuery(b).submit(function(a){jQuery(b).hasClass("ig_form_init_done")&&a.preventDefault()}):"string"==typeof a.data.self.data.link&&""!=a.data.self.data.link?(window.location.href=a.data.self.data.link,a.data.self.hide()):a.data.self.data.hide!==!1&&a.data.self.hide()))},Icegram_Message_Type.prototype.animate=function(a){if("undefined"!=typeof this.data.animation){var b=this.data.animation,c=this;"in"==a?"function"==typeof this.animations[b+"_in"]?this.animations[b+"_in"](c):this.el.hasClass("ig_anim_"+b+"_in")||(this.el.removeClass("ig_anim_"+b+"_out"),setTimeout(function(){c.el.addClass("ig_anim_"+b+"_in")},1)):"out"==a&&("function"==typeof this.animations[b+"_out"]?this.animations[b+"_out"](c):(this.el.removeClass("ig_anim_"+b+"_in"),setTimeout(function(){c.el.addClass("ig_anim_"+b+"_out")},1)))}},String.prototype.ucwords=function(){return this.toLowerCase().replace(/\b[a-z]/g,function(a){return a.toUpperCase()})},Icegram.prototype.adjustFormContainerHeight=function(a){var b="";if(a.el.hasClass("ig_form_left")||a.el.hasClass("ig_form_right")){b=a.el.hasClass("ig_form_left")?"left":"right";var c=a.el.find(".ig_data").outerHeight()>a.el.find(".ig_form_container.layout_"+b).outerHeight()?a.el.find(".ig_data").outerHeight():a.el.find(".ig_form_container.layout_"+b).outerHeight();a.el.find(".ig_form_container").outerHeight(c)}},Icegram.prototype.hexToRgb=function(a){var b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return b?{r:parseInt(b[1],16),g:parseInt(b[2],16),b:parseInt(b[3],16)}:null},Icegram.prototype.rgbToHsl=function(a,b,c){a/=255,b/=255,c/=255;var d,e,f=Math.max(a,b,c),g=Math.min(a,b,c),h=(f+g)/2;if(f==g)d=e=0;else{var i=f-g;switch(e=h>.5?i/(2-f-g):i/(f+g),f){case a:d=(b-c)/i;break;case b:d=(c-a)/i+2;break;case c:d=(a-b)/i+4}h=Math.floor(100*h),e=Math.floor(100*e),d=Math.floor(60*d),0>d&&(d+=360)}return{h:d,s:e,l:h}},Icegram.prototype.hexToHsl=function(a){var b=window.icegram.hexToRgb(a);return window.icegram.rgbToHsl(b.r,b.g,b.b)},"function"!=typeof Object.create&&!function(){var a=function(){};Object.create=function(b){if(arguments.length>1)throw Error("Second argument not supported");if(null===b)throw Error("Cannot set a null [[Prototype]]");if("object"!=typeof b)throw TypeError("Argument must be an object");return a.prototype=b,new a}}(),void 0!==typeof jQuery.cookie&&!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});;function Icegram_Message_Type_Action_Bar(a){Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Action_Bar.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Action_Bar.prototype.constructor=Icegram_Message_Type_Action_Bar,Icegram_Message_Type_Action_Bar.prototype.get_template_default=function(){return'<div class="icegram action_bar_{{=id}}" ><div class="ig_action_bar ig_container ig_{{=theme}} ig_no_hide" id="icegram_message_{{=id}}"><div class="ig_content ig_clear_fix"><div class="ig_close" id="ig_close_{{=id}}"><span></span></div><div class="ig_form_container layout_left"></div><div class="ig_data ig_clear_fix"><div class="ig_headline">{{=headline}}</div><div class="ig_message">{{=message}}</div></div><div class="ig_button">{{=label}}</div><div class="ig_form_container layout_right layout_bottom"></div></div></div></div>'},Icegram_Message_Type_Action_Bar.prototype.post_render=function(){void 0!=this.data.use_theme_defaults&&"yes"==this.data.use_theme_defaults||void 0!=this.data.bg_color&&""!=this.data.bg_color&&this.el.find(".ig_close").css("background-color",this.data.bg_color),"21"!==this.data.position&&0==jQuery("#ig_body_pushdown").length&&jQuery("body").prepend('<div id="ig_body_pushdown"></div>')},Icegram_Message_Type_Action_Bar.prototype.set_position=function(){switch(this.data.position){case"21":this.el.addClass("ig_bottom");break;case"01":default:this.el.addClass("ig_top")}},Icegram_Message_Type_Action_Bar.prototype.add_powered_by=function(a){this.el.addClass("ig_has_pwby").find(".ig_content").before('<div class="ig_powered_by" ><a href="'+a.link+'" target="_blank"><img src="'+a.logo+'" title="'+a.text+'"/></a></div>')},Icegram_Message_Type_Action_Bar.prototype.on_click=function(a){return a.data=a.data||{self:this},jQuery(a.target).filter(".ig_show .ig_close, .ig_show span").length?void a.data.self.hide():jQuery(a.target).filter(".ig_hide .ig_close, .ig_hide span").length?void a.data.self.show():void Icegram_Message_Type.prototype.on_click.apply(this,arguments)},Icegram_Message_Type_Action_Bar.prototype.post_show=function(){if("21"!==this.data.position){var a=this.el.outerHeight()||0;jQuery("#ig_body_pushdown").css("display","block").animate({height:a},500),jQuery("*",document.body).not(".ig_action_bar, .ig_popup, .ig_messenger, .ig_inline, .ig_overlay, .ig_sidebar, .ig_tab, .ig_interstitial ,#ig_body_pushdown ").each(function(){var b=window.getComputedStyle(this,null);("fixed"===b.position||"absolute"===b.position&&("BODY"===this.parentNode.nodeName||"HEADER"===this.nodeName))&&!isNaN(parseInt(b.top,10))&&this.getBoundingClientRect().top<=a&&jQuery(this).data("ig_fx_top",b.top).animate({top:parseInt(b.top,10)+a+"px"},300)})}},Icegram_Message_Type_Action_Bar.prototype.pre_hide=function(){"21"!==this.data.position&&(jQuery("#ig_body_pushdown").animate({height:0},300).css("display","none"),jQuery("*",document.body).not(".ig_action_bar, .ig_popup, .ig_messenger, .ig_inline, .ig_overlay, .ig_sidebar, .ig_tab, .ig_interstitial ,#ig_body_pushdown ").each(function(){"undefined"!=typeof jQuery(this).data("ig_fx_top")&&jQuery(this).animate({top:jQuery(this).data("ig_fx_top")},200)}))};;function Icegram_Message_Type_Messenger(a){Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Messenger.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Messenger.prototype.constructor=Icegram_Message_Type_Messenger,Icegram_Message_Type_Messenger.prototype.get_template_default=function(){return'<div class="icegram ig_messenger ig_{{=theme}} ig_container ig_cta" id="icegram_message_{{=id}}"><div class="ig_content"><div class="ig_close" id="ig_close_{{=id}}"></div><div class="ig_data"><div class="ig_headline">{{=headline}}</div><div class="ig_body"><img class="ig_icon" src="{{=icon}}"/><div class="ig_message">{{=message}}</div></div><div class="ig_footer"></div></div></div></div>'},Icegram_Message_Type_Messenger.prototype.set_position=function(){switch(this.data.position){case"20":this.el.addClass("ig_left ig_bottom");break;case"22":default:this.el.addClass("ig_right ig_bottom")}},Icegram_Message_Type_Messenger.prototype.add_powered_by=function(a){this.el.addClass("ig_has_pwby").find(".ig_content").after('<div class="ig_powered_by"><a href="'+a.link+'" target="_blank">'+a.text+"</a></div>")};;function Icegram_Message_Type_Popup(a){Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Popup.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Popup.prototype.constructor=Icegram_Message_Type_Popup,Icegram_Message_Type_Popup.prototype.get_template_default=function(){return'<div id="icegram_message_{{=id}}" class="icegram ig_popup ig_{{=theme}} ig_container mfp-hide"><div class="ig_close" id="popup_box_close_{{=id}}"></div><div class="ig_clear_fix" data={{=id}}><div class="ig_bg_overlay"></div><div class="ig_form_container layout_left"></div><div class="ig_data ig_clear_fix"><div class="ig_headline">{{=headline}}</div><div class="ig_content"><div class="ig_message ig_clear_fix">{{=message}}</div></div><div class="ig_button" >{{=label}}</div></div><div class="ig_form_container layout_right layout_bottom"></div></div></div>'},Icegram_Message_Type_Popup.prototype.post_render=function(){void 0!=this.data.use_theme_defaults&&"yes"==this.data.use_theme_defaults||void 0!=this.data.bg_color&&""!=this.data.bg_color&&this.el.find(".ig_bg_overlay").css("border-color",this.data.bg_color)},Icegram_Message_Type_Popup.prototype.show=function(a,b){if(!this.is_visible()){var c=this,d="#icegram_message_"+this.data.id;this.animate("in"),jQuery.magnificPopup.open({items:{src:d,type:"inline"},showCloseBtn:!1,callbacks:{close:function(){b!==!0&&c.track("closed"),c.el.removeClass("ig_show")},open:function(){window.icegram.adjustFormContainerHeight(c)}}}),c.el.addClass("ig_show").removeClass("ig_hide"),b!==!0&&this.track("shown")}},Icegram_Message_Type_Popup.prototype.add_powered_by=function(a){setTimeout(function(){jQuery(".mfp-wrap").append('<div class="ig_powered_by"><a href="'+a.link+'" target="_blank">'+a.text+"</a></div>")},1e3+1e3*this.data.delay_time)},Icegram_Message_Type_Popup.prototype.hide=function(a,b){if(this.is_visible()){var c="#icegram_message_"+this.data.id,d=this;this.animate("out"),setTimeout(function(){d.el.addClass("ig_hide").removeClass("ig_show"),jQuery.magnificPopup.close({items:{src:c,type:"inline"}})},500)}},"undefined"==typeof jQuery.magnificPopup&&!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),b.st.showCloseBtn&&(!b.st.closeBtnInside||b.currTemplate[b.currItem.type]===!0)&&b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||2!==c.which&&!c.ctrlKey&&!c.metaKey){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),!d&&"loading"===a&&(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,H&&clearInterval(H),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){H&&clearInterval(H),H=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(H),c++,3===c?e(10):40===c?e(50):100===c&&e(500),void 0)},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:I(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(H&&clearInterval(H),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var J,K=function(){return void 0===J&&(J=void 0!==document.createElement("p").style.MozTransform),J};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return K()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var L="retina";a.magnificPopup.registerModule(L,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+L,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+L,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});;function Icegram_Message_Type_Toast(a){this.width=300,this.sticky=!1,this.duration=1e4,Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Toast.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Toast.prototype.constructor=Icegram_Message_Type_Toast,Icegram_Message_Type_Toast.prototype.get_template_default=function(){return'<li class="icegram ig_toast ig_container ig_{{=theme}} ig_cta" data="{{=id}}" id="icegram_message_{{=id}}"><div class="ig_wrapper"><div class="ig_content"><div class="ig_base"></div><div class="ig_line"></div><img class="ig_icon" src="{{=icon}}"/><div class="ig_headline">{{=headline}}</div><div class="ig_message">{{=message}}</div></div></div></li>'},Icegram_Message_Type_Toast.prototype.pre_render=function(){if("10"!=this.data.position&&"12"!=this.data.position||(this.data.position="20"),jQuery("ul#"+this.data.position).length)var a=jQuery("ul#"+this.data.position);else{var a=jQuery('<ul id="'+this.data.position+'"></ul>').addClass("ig_toast_block").appendTo(this.root_container).hide();a.width(this.width),"00"==this.data.position?a.css({top:"0",left:"0"}).addClass("ig_left").addClass("ig_top"):"01"==this.data.position?a.css({top:"0",left:"50%",margin:"5px 0 0 -"+this.width/2+"px"}).addClass("ig_center").addClass("ig_top"):"02"==this.data.position?a.css({top:"0",right:"0"}).addClass("ig_right").addClass("ig_top"):"20"==this.data.position?a.css({bottom:"0",left:"0"}).addClass("ig_left").addClass("ig_bottom"):"21"==this.data.position?a.css({bottom:"0",left:"50%",margin:"5px 0 0 -"+this.width/2+"px"}).addClass("ig_center").addClass("ig_bottom"):"22"==this.data.position?a.css({bottom:"0",right:"0"}).addClass("ig_right").addClass("ig_bottom"):"11"==this.data.position&&a.css({top:"50%",left:"50%",margin:"-"+this.width/2+"px 0 0 -"+this.width/2+"px"}).addClass("ig_center").addClass("ig_top")}this.root_container=a},Icegram_Message_Type_Toast.prototype.pre_show=function(){!this.root_container.hasClass("active")&&this.root_container.addClass("active").show()},Icegram_Message_Type_Toast.prototype.post_show=function(){var a=this;!this.sticky&&this.duration>0&&setTimeout(function(){a.hide(),a.root_container.children().length||a.root_container.removeClass("active").hide()},this.duration)};
1
+ function Icegram(){}function Icegram_Message_Type(a){var a;this.root_container="#icegram_messages_container",this.data=a,this.type=a.type,this.data.delay_time=parseInt(this.data.delay_time),"string"!=typeof this.data.link||""==this.data.link||/^tel:/i.test(this.data.link)||/^https?:\/\//i.test(this.data.link)||(this.data.link="http://"+this.data.link),this.set_template(this.get_template_default()),this.init()}Icegram.prototype.init=function(a){if(void 0!=a){jQuery(window).trigger("preinit.icegram",[a]),this.data=a,this.defaults=jQuery.extend({},a.defaults),this.message_data=a.messages,this.messages,this.tracking_data=[],this.message_template_cache={},this.map_id_to_index={},this.map_type_to_index={},this.mode=void 0==window.ig_mode?"local":window.ig_mode,this.powered_by={link:"http://www.icegram.com/?utm_source=inapp&utm_campaign=poweredby&utm_medium="},this.powered_by.text=this.defaults.powered_by_text,this.powered_by.logo=this.defaults.powered_by_logo,jQuery("body").append('<div id="icegram_messages_container"></div>');this.messages=[];var b=this;this.message_data.length>0&&jQuery.each(this.message_data,function(a,c){try{if(-1==window.location.href.indexOf("campaign_preview_id")){if("yes"==c.retargeting&&1==jQuery.cookie("icegram_campaign_shown_"+c.campaign_id))return;if("yes"==c.retargeting_clicked&&1==jQuery.cookie("icegram_campaign_clicked_"+c.campaign_id))return}var d=null,e=c.type.split("-").join(" ").ucwords().split(" ").join("_");d="function"==typeof window["Icegram_Message_Type_"+e]?new window["Icegram_Message_Type_"+e](c):new Icegram_Message_Type(c),b.messages.push(d),b.map_id_to_index["_"+c.id]=a,b.map_type_to_index[c.type]=jQuery.isArray(b.map_type_to_index[c.type])?b.map_type_to_index[c.type]:new Array,b.map_type_to_index[c.type].push(a)}catch(f){console.log(f)}}),jQuery(window).unload(function(){"function"==typeof window.icegram.submit_tracking_data&&window.icegram.submit_tracking_data(!1)}),setInterval(function(){"function"==typeof window.icegram.submit_tracking_data&&window.icegram.submit_tracking_data(!0)},5e3),jQuery(window).trigger("init.icegram",[this])}},Icegram.prototype.timer_tick=function(){},Icegram.prototype.get_template_fn=function(a){return this.message_template_cache[a]},Icegram.prototype.set_template_fn=function(a,b){this.message_template_cache[a]=b},Icegram.prototype.get_message=function(a){return this.messages.length>a?this.messages[a]:void 0},Icegram.prototype.get_message_by_id=function(a){if(this.map_id_to_index.hasOwnProperty("_"+a)){var b=this.map_id_to_index["_"+a];return this.get_message(b)}},Icegram.prototype.get_message_by_campaign_id=function(a){a=String(a);var b=[],c=this.messages;return a.indexOf(" ")&&(a=a.split(" ")),jQuery.each(a,function(a,d){jQuery.each(c,function(a,c){d==c.data.campaign_id&&b.push(c)})}),b},Icegram.prototype.get_messages_by_type=function(a){if(this.map_type_to_index.hasOwnProperty(a)){var b=this.map_type_to_index[a],c=[];if(jQuery.isArray(b)){var d=this;jQuery.each(b,function(a,b){c.push(d.get_message(b))})}return c}},Icegram.prototype.get_powered_by=function(a){var b=jQuery.extend({},this.powered_by);return b.link=b.link+(a||""),b},Icegram.prototype.track=function(a,b){"object"==typeof b&&b.hasOwnProperty("message_id")&&b.hasOwnProperty("campaign_id")&&(jQuery(window).trigger("track.icegram",[a,b]),this.tracking_data.push({type:a,params:b}))},Icegram.prototype.submit_tracking_data=function(a){var b=window.location.protocol.split(":"),c=b[0],d=this.data.ajax_url.split("://"),e=d[0];if(this.tracking_data.length>0&&-1==window.location.href.indexOf("campaign_preview_id")&&!this.is_bot()){var f={type:"POST",url:this.data.ajax_url,async:a||!1,data:{action:"icegram_event_track",event_data:JSON.parse(JSON.stringify(this.tracking_data)),ig_remote_url:"remote"==this.mode?window.location.href:void 0},success:function(a,b,c){},error:function(a,b,c){}};"remote"==this.mode?(f.xhrFields={withCredentials:!0},f.crossDomain=!0,f.async=!0):c!=e&&(f.xhrFields={withCredentials:!0},jQuery.extend(f.data,{ig_local_url_cs:window.location.href})),jQuery.ajax(f),this.tracking_data=[]}},Icegram.prototype.is_bot=function(){var a=/bot|spider|crawl|sucker|ia_archiver|alexa|spade|slurp|webbug|ZyBorg|Feedfetcher-Google|Mediapartners-Google|aolserver|seamonkey|binlar|casper|comodo|feedfinder|jakarta|java|larbin|libwww|pycurl|linkwalker|steeler|nutch|turnit|zmeu/i;return!!a.test(navigator.userAgent)},Icegram.prototype.hide_all_messages=function(){this.messages.length>0&&jQuery.each(this.messages,function(a,b){b.hide()})},Icegram_Message_Type.prototype.init=function(){this.render(),this.add_event_handlers()},Icegram_Message_Type.prototype.add_event_handlers=function(){this.el.on("click",{self:this},this.on_click),jQuery(window).on("resize",{self:this},this.on_resize)},Icegram_Message_Type.prototype.animations={},Icegram_Message_Type.prototype.embed_form=function(){if(-1===jQuery.inArray(this.data.type,["toast","badge","ribbon","exit-redirect"])){var a=null,b=this.data.form_layout,c=this.data.form_has_label,d=this.data.form_style||"none",e=this.data.label||void 0;if(d=d.toLowerCase().replace(" ","_"),void 0!=this.data.use_form&&"yes"==this.data.use_form&&(a=this.data.form_html),this.el.find("form.ig_embed_form").length>0){var f=this.el.find("form.ig_embed_form");b="inline",-1===jQuery.inArray(this.data.type,["messenger","tab","sidebar","interstitial","sticky"])&&(f.hasClass("ig_left")?b="left":f.hasClass("ig_right")&&(b="right")),"inline"==b&&this.el.find("form.ig_embed_form").replaceWith('<div class="ig_form_container layout_inline"></div>'),c=f.find(".ig_form_el_group label").length>0?"yes":void 0,0==f.find(".ig_button").length&&0==f.find("button[type=submit]").length&&(e=e||"Submit",f.append('<input class="ig_button" type="submit" value="'+e+'">')),a=jQuery("<div/>").append(f).html()}if(null==a)this.el.find(".ig_form_container").remove();else{var g=window.icegram.formProcess(this,a);if(g&&0==this.el.find(".ig_form_container form").length){var h=void 0!=this.data.form_header&&""!=this.data.form_header?'<div class="ig_form_header">'+this.data.form_header+"</div>":"",i=void 0!=this.data.form_footer&&""!=this.data.form_footer?'<div class="ig_form_footer">'+this.data.form_footer+"</div>":"";if(this.el.find(".ig_form_container").append(h).append(g).append(i),this.data.rainmaker_form_code&&""!=this.data.rainmaker_form_code){this.data.cta&&"form"!==this.data.cta&&this.data.show_response&&this.data.response_text&&(!this.data.response_text||""!=this.data.response_text)||(this.data.response_text=jQuery("<div/>").html(a).find(".rm_form_message").html()||""),this.el.find(".ig_form_container").addClass(jQuery("<div/>").html(a).find(".rm_form_container").data("type")).data("form-id",jQuery("<div/>").html(a).find(".rm_form_container").data("form-id")).addClass("rainmaker_form");var j=jQuery("<div/>").html(a).find("#rm_script"),k=jQuery("<div/>").html(a).find("#rm_style");this.el.find(".ig_form_container").prepend(k).append(j)}void 0==c?this.el.find(".ig_el_label").not("span.ig_el_label").remove():(this.el.find("input, textarea").removeAttr("placeholder"),this.el.find("select option.ig_el_placeholder").remove()),this.el.find(".ig_form_container .ig_button").length>0&&(this.el.find(".ig_button").not(".ig_form_container .ig_button").hide(),e=e||this.el.find(".ig_button").val()||"Submit",this.el.find(".ig_button").val(e)),this.el.addClass("ig_form_"+b);var l="";void 0!=this.data.form_bg_color&&""!=this.data.form_bg_color?(this.el.find(".ig_form_container").css("background-color",this.data.form_bg_color),l+=".ig_form_"+b+".ig_form_"+d+" .ig_form_container:before{ background-color:"+this.data.form_bg_color+"; border-color:"+this.data.form_bg_color+";}"):l+=".ig_form_"+b+".ig_form_"+d+" .ig_form_container:before{ display:none;}",void 0!=this.data.form_text_color&&""!=this.data.form_text_color&&this.el.find(".ig_form_container").css("color",this.data.form_text_color),this.el.addClass("ig_form_"+d).find(".ig_form_container").prepend('<style type="text/css">'+l+"</style>"),this.el.find(".ig_form_container.layout_"+b+" .ig_form_els").first().addClass("ig_form_els_first").end().last().addClass("ig_form_els_last")}}}},Icegram_Message_Type.prototype.render=function(){this.pre_render();var a=this.render_template();try{jQuery(this.root_container).append(a)}catch(b){}this.dom_id="icegram_message_"+this.data.id,this.el=jQuery("#"+this.dom_id),this.set_position();var c=window.icegram.get_powered_by(this.type);if(c.hasOwnProperty("link")&&c.hasOwnProperty("text")&&""!=c.text&&this.add_powered_by(c),void 0!=this.data.headline&&""!=this.data.headline||this.el.find(".ig_headline").hide(),void 0!=this.data.icon&&""!=this.data.icon||this.el.addClass("ig_no_icon").find(".ig_icon").remove(),void 0!=this.data.message&&""!=this.data.message||this.el.find(".ig_message").hide(),void 0!=this.data.label&&""!=this.data.label||this.el.find(".ig_button").hide(),this.embed_form(),void 0==this.data.use_theme_defaults||"yes"!=this.data.use_theme_defaults){if(void 0!=this.data.text_color&&""!=this.data.text_color&&(this.el.css("color",this.data.text_color),this.el.find(".ig_container").css("color",this.data.text_color)),void 0!=this.data.bg_color&&""!=this.data.bg_color&&(this.el.css("background-color",this.data.bg_color),this.el.find(".ig_container").css("background-color",this.data.bg_color)),void 0!=this.data.cta_bg_color&&""!=this.data.cta_bg_color){this.el.find('.ig_button, form input[type="submit"]').css("background-color",this.data.cta_bg_color);var d=window.icegram.hexToHsl(this.data.cta_bg_color);this.el.find('.ig_button, form input[type="submit"]').css("border-color","hsl("+d.h+","+(d.s-5)+"%,"+(d.l-8)+"%)")}void 0!=this.data.cta_text_color&&""!=this.data.cta_text_color&&this.el.find('.ig_button, form input[type="submit"]').css("color",this.data.cta_text_color)}this.data.use_custom_code&&this.data.custom_css&&this.el.prepend('<style id="ig_custom_css_'+this.data.id+'" type="text/css">'+this.data.custom_css.replace(/#ig_this_message/g,"#"+this.dom_id)+"</style>"),"string"==typeof this.data.link&&""!=this.data.link&&this.el.parent().find(".ig_cta, .ig_button").css("cursor","pointer"),this.post_render(),this.hide({},!0),this.set_up_show_trigger()},Icegram.prototype.formProcess=function(a,b){var c=jQuery("<div/>").html(b).find('input[name="fake_text"]').data("required_field",!0).end().find("input.rm_required_feild").data("required_field",!0).end().find(".gform_validation_container input").data("required_field",!0).end().find(".required_field").data("required_field",!0).end().find("input, label, select, textarea, button").not("br");if(c.length>0){var d=jQuery('<div class="ig_embed_form_container ig_clear_fix"></div>'),e=jQuery("<div/>").html(b).find("form").removeAttr("class").removeAttr("style").addClass("ig_clear_fix").empty(),f=".",g=0;jQuery.each(c,function(a,b){var c=jQuery(b),e=jQuery('<div class="ig_form_els"></div>');if(c.removeAttr("class").removeAttr("style"),(-1==c.attr("tabindex")||c.is('*[name*="[abs]"]')||c.data("required_field")||"_mc4wp_required_but_not_really"==c.attr("name"))&&(c.addClass("ig_form_required_field").removeData("required_field"),g--),"hidden"!=c.attr("type")&&c.prop("disabled")!==!0||(c.addClass("ig_form_hidden_field"),g--),c.is("label"))f=c.not("input, select, textarea, button, span, br").text().replace(/\s+/g," ")||".";else if((c.is("input")||c.is("button")||c.is("textarea")||c.is("select"))&&!c.is("input[type=radio]")){if(c.removeAttr("id"),c.is("button")){var h=c.not("br, span, div").text().trim()||"";c.remove(),c=jQuery('<input type="submit" value="'+h+'">')}!c.is("input[type=submit]")&&!c.is("input[type=button]")||c.is(".ig_form_hidden_field, .ig_form_required_field")||c.addClass("ig_button"),(c.is("input[type=text]")||c.is("input[type=email]"))&&c.attr("size",25),label_class="ig_el_label ig_button_label","."!=f&&(label_class="ig_el_label",c.is("select")?jQuery('<option class="ig_el_placeholder">'+f+"</option>").prependTo(c):c.attr("placeholder",f)),jQuery('<label class="'+label_class+'">'+f+"</label>").appendTo(e),f=".",e.append(c),d.append(e),g++}else c.is("input[type=radio]")&&(label_class="ig_el_label ig_button_label","."!=f&&(label_class="ig_el_label"),jQuery('<label><span class="'+label_class+'">'+f+"</span></label>").prepend(c).appendTo(e),f=".",e.addClass("ig_form_el_radio"),d.append(e),g++)});var h=["","ig_full","ig_half","ig_third","ig_quater"];return g=4>g?g:4,d.find(".ig_form_required_field").length<=0&&d.append('<div class="ig_form_els"><input class="ig_form_required_field" type="text" tabindex="-1" value="" /></div>'),d.addClass(h[g]).find(".ig_form_required_field").parent().removeClass("ig_form_els").css({position:"absolute",left:"-5000px"}).end().end().find(".ig_form_hidden_field").parent().removeClass("ig_form_els").css({display:"none"}),e.append(d),jQuery("<div/>").append(e).html()}return null},Icegram_Message_Type.prototype.render_template=function(){return"function"!=typeof window.icegram.get_template_fn(this.type)&&window.icegram.set_template_fn(this.type,new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+this.template.replace(/[\r\t\n]/g," ").split("{{").join(" ").replace(/((^|\}\})[^\t]*)'/g,"$1\r").replace(/\t=(.*?)\}\}/g,"',$1,'").split(" ").join("');").split("}}").join("p.push('").split("\r").join("\\'")+"');}return p.join('');")),window.icegram.get_template_fn(this.type)(this.data)},Icegram_Message_Type.prototype.pre_render=function(){},Icegram_Message_Type.prototype.post_render=function(){},Icegram_Message_Type.prototype.set_up_show_trigger=function(){if(isNaN(this.data.delay_time))this.show();else if(this.data.delay_time>=0){var a=this;this.timer=setTimeout(function(){a.show()},1e3*this.data.delay_time)}},Icegram_Message_Type.prototype.set_template=function(a){this.template=a},Icegram_Message_Type.prototype.get_template_default=function(){return'<div id="icegram_message_{{=id}}" class="icegram"><div class="ig_headline">{{=headline}}</div></div>'},Icegram_Message_Type.prototype.show=function(a,b){this.is_visible()||(this.animate("in"),this.pre_show(),this.el.show(a),this.el.addClass("ig_show").removeClass("ig_hide"),b!==!0&&this.track("shown"),this.post_show());var c=this;window.icegram.adjustFormContainerHeight(c)},Icegram_Message_Type.prototype.hide=function(a,b){if(this.is_visible()){var c=this;this.animate("out"),this.pre_hide(),setTimeout(function(){c.el.hasClass("ig_no_hide")||c.el.hide(a),c.el.addClass("ig_hide").removeClass("ig_show")},500),b!==!0&&this.track("closed"),this.post_hide()}},Icegram_Message_Type.prototype.set_position=function(){},Icegram_Message_Type.prototype.add_powered_by=function(a){},Icegram_Message_Type.prototype.pre_show=function(){},Icegram_Message_Type.prototype.post_show=function(){},Icegram_Message_Type.prototype.pre_hide=function(){},Icegram_Message_Type.prototype.post_hide=function(){},Icegram_Message_Type.prototype.track=function(a,b){"function"==typeof window.icegram.track&&(b=b||{},jQuery.extend(b,{message_id:this.data.id,campaign_id:this.data.campaign_id,expiry_time:this.data.expiry_time,expiry_time_clicked:this.data.expiry_time_clicked}),window.icegram.track(a,b))},Icegram_Message_Type.prototype.is_visible=function(){return this.el.hasClass("ig_show")},Icegram_Message_Type.prototype.toggle=function(a){this.is_visible()?this.hide(a):this.show(a)},Icegram_Message_Type.prototype.on_click=function(a){if(a.data=a.data||{self:this},jQuery(a.target).filter(".ig_close").length)return void a.data.self.hide();var b=jQuery(a.target).closest(".icegram").find("form:visible").first();(jQuery(a.target).filter(".ig_button, .ig_cta, :submit").length||jQuery(a.target).parents("button[type=submit]").length||jQuery(a.target).parents(".ig_button, .ig_cta").length&&!(b.find(".ig_button, input[type=button], input[type=submit], button[type=submit]").length>0))&&a.data.self.on_cta_click(a)},Icegram_Message_Type.prototype.on_resize=function(a){},Icegram_Message_Type.prototype.on_cta_click=function(a){a.data=a.data||{self:this};var b=jQuery(a.target).closest(".icegram").find("form:visible").first();return jQuery(b).length&&jQuery(b).find(".ig_form_required_field").length&&""!==jQuery(b).find(".ig_form_required_field").val()?(a.preventDefault(),void a.data.self.hide()):(a.data.self.track("clicked"),void(jQuery(b).length?jQuery(b).submit(function(a){jQuery(b).hasClass("ig_form_init_done")&&a.preventDefault()}):"string"==typeof a.data.self.data.link&&""!=a.data.self.data.link?(window.location.href=a.data.self.data.link,a.data.self.hide()):a.data.self.data.hide!==!1&&a.data.self.hide()))},Icegram_Message_Type.prototype.animate=function(a){if("undefined"!=typeof this.data.animation){var b=this.data.animation,c=this;"in"==a?"function"==typeof this.animations[b+"_in"]?this.animations[b+"_in"](c):this.el.hasClass("ig_anim_"+b+"_in")||(this.el.removeClass("ig_anim_"+b+"_out"),setTimeout(function(){c.el.addClass("ig_anim_"+b+"_in")},1)):"out"==a&&("function"==typeof this.animations[b+"_out"]?this.animations[b+"_out"](c):(this.el.removeClass("ig_anim_"+b+"_in"),setTimeout(function(){c.el.addClass("ig_anim_"+b+"_out")},1)))}},String.prototype.ucwords=function(){return this.toLowerCase().replace(/\b[a-z]/g,function(a){return a.toUpperCase()})},Icegram.prototype.adjustFormContainerHeight=function(a){var b="";if(a.el.hasClass("ig_form_left")||a.el.hasClass("ig_form_right")){b=a.el.hasClass("ig_form_left")?"left":"right";var c=a.el.find(".ig_data").outerHeight()>a.el.find(".ig_form_container.layout_"+b).outerHeight()?a.el.find(".ig_data").outerHeight():a.el.find(".ig_form_container.layout_"+b).outerHeight();a.el.find(".ig_form_container").outerHeight(c)}},Icegram.prototype.hexToRgb=function(a){var b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return b?{r:parseInt(b[1],16),g:parseInt(b[2],16),b:parseInt(b[3],16)}:null},Icegram.prototype.rgbToHsl=function(a,b,c){a/=255,b/=255,c/=255;var d,e,f=Math.max(a,b,c),g=Math.min(a,b,c),h=(f+g)/2;if(f==g)d=e=0;else{var i=f-g;switch(e=h>.5?i/(2-f-g):i/(f+g),f){case a:d=(b-c)/i;break;case b:d=(c-a)/i+2;break;case c:d=(a-b)/i+4}h=Math.floor(100*h),e=Math.floor(100*e),d=Math.floor(60*d),0>d&&(d+=360)}return{h:d,s:e,l:h}},Icegram.prototype.hexToHsl=function(a){var b=window.icegram.hexToRgb(a);return window.icegram.rgbToHsl(b.r,b.g,b.b)},"function"!=typeof Object.create&&!function(){var a=function(){};Object.create=function(b){if(arguments.length>1)throw Error("Second argument not supported");if(null===b)throw Error("Cannot set a null [[Prototype]]");if("object"!=typeof b)throw TypeError("Argument must be an object");return a.prototype=b,new a}}(),void 0!==typeof jQuery.cookie&&!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});;function Icegram_Message_Type_Action_Bar(a){Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Action_Bar.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Action_Bar.prototype.constructor=Icegram_Message_Type_Action_Bar,Icegram_Message_Type_Action_Bar.prototype.get_template_default=function(){return'<div class="icegram action_bar_{{=id}}" ><div class="ig_action_bar ig_container ig_{{=theme}} ig_no_hide" id="icegram_message_{{=id}}"><div class="ig_content ig_clear_fix"><div class="ig_close" id="ig_close_{{=id}}"><span></span></div><div class="ig_form_container layout_left"></div><div class="ig_data ig_clear_fix"><div class="ig_headline">{{=headline}}</div><div class="ig_message">{{=message}}</div></div><div class="ig_button">{{=label}}</div><div class="ig_form_container layout_right layout_bottom"></div></div></div></div>'},Icegram_Message_Type_Action_Bar.prototype.post_render=function(){void 0!=this.data.use_theme_defaults&&"yes"==this.data.use_theme_defaults||void 0!=this.data.bg_color&&""!=this.data.bg_color&&this.el.find(".ig_close").css("background-color",this.data.bg_color),"21"!==this.data.position&&0==jQuery("#ig_body_pushdown").length&&jQuery("body").prepend('<div id="ig_body_pushdown"></div>')},Icegram_Message_Type_Action_Bar.prototype.set_position=function(){switch(this.data.position){case"21":this.el.addClass("ig_bottom");break;case"01":default:this.el.addClass("ig_top")}},Icegram_Message_Type_Action_Bar.prototype.add_powered_by=function(a){this.el.addClass("ig_has_pwby").find(".ig_content").before('<div class="ig_powered_by" ><a href="'+a.link+'" target="_blank"><img src="'+a.logo+'" title="'+a.text+'"/></a></div>')},Icegram_Message_Type_Action_Bar.prototype.on_click=function(a){return a.data=a.data||{self:this},jQuery(a.target).filter(".ig_show .ig_close, .ig_show span").length?void a.data.self.hide():jQuery(a.target).filter(".ig_hide .ig_close, .ig_hide span").length?void a.data.self.show():void Icegram_Message_Type.prototype.on_click.apply(this,arguments)},Icegram_Message_Type_Action_Bar.prototype.post_show=function(){if("21"!==this.data.position){var a=this.el.outerHeight()||0;jQuery("#ig_body_pushdown").css("display","block").animate({height:a},500),jQuery("*",document.body).not(".ig_action_bar, .ig_popup, .ig_messenger, .ig_inline, .ig_overlay, .ig_sidebar, .ig_tab, .ig_interstitial ,#ig_body_pushdown ").each(function(){var b=window.getComputedStyle(this,null);("fixed"===b.position||"absolute"===b.position&&("BODY"===this.parentNode.nodeName||"HEADER"===this.nodeName))&&!isNaN(parseInt(b.top,10))&&this.getBoundingClientRect().top<=a&&jQuery(this).data("ig_fx_top",b.top).animate({top:parseInt(b.top,10)+a+"px"},300)})}},Icegram_Message_Type_Action_Bar.prototype.pre_hide=function(){"21"!==this.data.position&&(jQuery("#ig_body_pushdown").animate({height:0},300).css("display","none"),jQuery("*",document.body).not(".ig_action_bar, .ig_popup, .ig_messenger, .ig_inline, .ig_overlay, .ig_sidebar, .ig_tab, .ig_interstitial ,#ig_body_pushdown ").each(function(){"undefined"!=typeof jQuery(this).data("ig_fx_top")&&jQuery(this).animate({top:jQuery(this).data("ig_fx_top")},200)}))};;function Icegram_Message_Type_Messenger(a){Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Messenger.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Messenger.prototype.constructor=Icegram_Message_Type_Messenger,Icegram_Message_Type_Messenger.prototype.get_template_default=function(){return'<div class="icegram ig_messenger ig_{{=theme}} ig_container ig_cta" id="icegram_message_{{=id}}"><div class="ig_content"><div class="ig_close" id="ig_close_{{=id}}"></div><div class="ig_data"><div class="ig_headline">{{=headline}}</div><div class="ig_body"><img class="ig_icon" src="{{=icon}}"/><div class="ig_message">{{=message}}</div></div><div class="ig_footer"></div></div></div></div>'},Icegram_Message_Type_Messenger.prototype.set_position=function(){switch(this.data.position){case"20":this.el.addClass("ig_left ig_bottom");break;case"22":default:this.el.addClass("ig_right ig_bottom")}},Icegram_Message_Type_Messenger.prototype.add_powered_by=function(a){this.el.addClass("ig_has_pwby").find(".ig_content").after('<div class="ig_powered_by"><a href="'+a.link+'" target="_blank">'+a.text+"</a></div>")};;function Icegram_Message_Type_Popup(a){Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Popup.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Popup.prototype.constructor=Icegram_Message_Type_Popup,Icegram_Message_Type_Popup.prototype.get_template_default=function(){return'<div id="icegram_message_{{=id}}" class="icegram ig_popup ig_{{=theme}} ig_container mfp-hide"><div class="ig_close" id="popup_box_close_{{=id}}"></div><div class="ig_clear_fix" data={{=id}}><div class="ig_bg_overlay"></div><div class="ig_form_container layout_left"></div><div class="ig_data ig_clear_fix"><div class="ig_headline">{{=headline}}</div><div class="ig_content"><div class="ig_message ig_clear_fix">{{=message}}</div></div><div class="ig_button" >{{=label}}</div></div><div class="ig_form_container layout_right layout_bottom"></div></div></div>'},Icegram_Message_Type_Popup.prototype.post_render=function(){void 0!=this.data.use_theme_defaults&&"yes"==this.data.use_theme_defaults||void 0!=this.data.bg_color&&""!=this.data.bg_color&&this.el.find(".ig_bg_overlay").css("border-color",this.data.bg_color)},Icegram_Message_Type_Popup.prototype.show=function(a,b){if(!this.is_visible()){var c=this,d="#icegram_message_"+this.data.id;this.animate("in"),jQuery.magnificPopup.open({items:{src:d,type:"inline"},showCloseBtn:!1,callbacks:{close:function(){b!==!0&&c.track("closed"),c.el.removeClass("ig_show")},open:function(){window.icegram.adjustFormContainerHeight(c)}}}),c.el.addClass("ig_show").removeClass("ig_hide"),b!==!0&&this.track("shown")}},Icegram_Message_Type_Popup.prototype.add_powered_by=function(a){setTimeout(function(){jQuery(".mfp-wrap").append('<div class="ig_powered_by"><a href="'+a.link+'" target="_blank">'+a.text+"</a></div>")},1e3+1e3*this.data.delay_time)},Icegram_Message_Type_Popup.prototype.hide=function(a,b){if(this.is_visible()){var c="#icegram_message_"+this.data.id,d=this;this.animate("out"),setTimeout(function(){d.el.addClass("ig_hide").removeClass("ig_show"),jQuery.magnificPopup.close({items:{src:c,type:"inline"}})},500)}},"undefined"==typeof jQuery.magnificPopup&&!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),b.st.showCloseBtn&&(!b.st.closeBtnInside||b.currTemplate[b.currItem.type]===!0)&&b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||2!==c.which&&!c.ctrlKey&&!c.metaKey){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),!d&&"loading"===a&&(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(p+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,H&&clearInterval(H),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){H&&clearInterval(H),H=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(H),c++,3===c?e(10):40===c?e(50):100===c&&e(500),void 0)},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:I(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(H&&clearInterval(H),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var J,K=function(){return void 0===J&&(J=void 0!==document.createElement("p").style.MozTransform),J};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return K()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var L="retina";a.magnificPopup.registerModule(L,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+L,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+L,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});;function Icegram_Message_Type_Toast(a){this.width=300,this.sticky=!1,this.duration=1e4,Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Toast.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Toast.prototype.constructor=Icegram_Message_Type_Toast,Icegram_Message_Type_Toast.prototype.get_template_default=function(){return'<li class="icegram ig_toast ig_container ig_{{=theme}} ig_cta" data="{{=id}}" id="icegram_message_{{=id}}"><div class="ig_wrapper"><div class="ig_content"><div class="ig_base"></div><div class="ig_line"></div><img class="ig_icon" src="{{=icon}}"/><div class="ig_headline">{{=headline}}</div><div class="ig_message">{{=message}}</div></div></div></li>'},Icegram_Message_Type_Toast.prototype.pre_render=function(){if("10"!=this.data.position&&"12"!=this.data.position||(this.data.position="20"),jQuery("ul#"+this.data.position).length)var a=jQuery("ul#"+this.data.position);else{var a=jQuery('<ul id="'+this.data.position+'"></ul>').addClass("ig_toast_block").appendTo(this.root_container).hide();a.width(this.width),"00"==this.data.position?a.css({top:"0",left:"0"}).addClass("ig_left").addClass("ig_top"):"01"==this.data.position?a.css({top:"0",left:"50%",margin:"5px 0 0 -"+this.width/2+"px"}).addClass("ig_center").addClass("ig_top"):"02"==this.data.position?a.css({top:"0",right:"0"}).addClass("ig_right").addClass("ig_top"):"20"==this.data.position?a.css({bottom:"0",left:"0"}).addClass("ig_left").addClass("ig_bottom"):"21"==this.data.position?a.css({bottom:"0",left:"50%",margin:"5px 0 0 -"+this.width/2+"px"}).addClass("ig_center").addClass("ig_bottom"):"22"==this.data.position?a.css({bottom:"0",right:"0"}).addClass("ig_right").addClass("ig_bottom"):"11"==this.data.position&&a.css({top:"50%",left:"50%",margin:"-"+this.width/2+"px 0 0 -"+this.width/2+"px"}).addClass("ig_center").addClass("ig_top")}this.root_container=a},Icegram_Message_Type_Toast.prototype.pre_show=function(){!this.root_container.hasClass("active")&&this.root_container.addClass("active").show()},Icegram_Message_Type_Toast.prototype.post_show=function(){var a=this;!this.sticky&&this.duration>0&&setTimeout(function(){a.hide(),a.root_container.children().length||a.root_container.removeClass("active").hide()},this.duration)};
classes/class-icegram-campaign-admin.php CHANGED
@@ -10,7 +10,9 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
10
  var $site_url;
11
  function __construct() {
12
 
13
- add_action( 'add_meta_boxes', array( &$this, 'add_campaigns_metaboxes' ), 0 );
 
 
14
  add_action( 'save_post', array( &$this, 'save_campaign_settings' ), 10, 2 );
15
  add_action( 'wp_ajax_icegram_json_search_messages', array( &$this, 'icegram_json_search_messages' ) );
16
  add_action( 'wp_ajax_get_message_action_row', array( &$this, 'get_message_action_row' ) );
@@ -22,6 +24,10 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
22
  add_filter( 'post_row_actions', array(&$this , 'add_campaign_action'), 10, 2 );
23
  add_action('admin_init', array(&$this ,'duplicate_campaign') ,10, 1);
24
 
 
 
 
 
25
  $this->site_url = home_url().'/';
26
 
27
  $this->default_target_rules = apply_filters( 'icegram_campaign_default_rules',
@@ -44,11 +50,73 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
44
  }
45
 
46
  // Initialize campaign metabox
47
- function add_campaigns_metaboxes() {
48
  $meta_box_title = __( 'Message', 'icegram' );
49
  add_meta_box( 'campaign_data', $meta_box_title, array( &$this, 'campaign_data_content' ), 'ig_campaign', 'normal', 'default' );
50
  add_meta_box( 'campaign_target_rules', __( 'Targeting Rules', 'icegram' ), array( &$this, 'campaign_target_rules_content' ), 'ig_campaign', 'normal' );
51
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  // Display list of messages of campaign
53
  function campaign_data_content() {
54
  global $post, $icegram;
@@ -60,10 +128,11 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
60
  $campaign_box .= '<option value="'.$message['type'].'">'.__( 'Create new', 'icegram' ).' '.$message['name'].' ...</option>';
61
  }
62
  $campaign_box .= '</select>';
63
- $campaign_box .= '<div class="button button-primary campaign_preview">' . __( 'Preview', 'icegram' ) . '</div>';
64
 
65
  $title = '<label class="options_header" for="icegram_messages"><strong>' . __( 'Message', 'icegram' ) . '</strong></label>';
66
  ?>
 
67
  <div class="campaign_box"><?php echo $title; ?> &mdash; <?php echo $campaign_box; ?></div>
68
  <div style="margin: 8px -12px 12px -12px">
69
  <hr/>
@@ -129,11 +198,7 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
129
  </div>
130
  <?php
131
  }
132
-
133
- function get_icegram_campaign_messages($messages, $campaign_id){
134
- $messages = get_post_meta($campaign_id, 'messages', true);
135
- return $messages;
136
- }
137
  // Campaign targeting rules metabox
138
  function campaign_target_rules_content() {
139
  global $post;
@@ -153,6 +218,11 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
153
  <?php
154
  }
155
 
 
 
 
 
 
156
  // Display setting fields for campaign targeting rules
157
  function icegram_add_campaign_target_rules( $campaign_id, $campaign_target_rules ) {
158
  global $wp_roles;
@@ -669,14 +739,13 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
669
 
670
  // Create a nonce & add an action
671
  $actions['duplicate_campaign'] = '<a class="ig-duplicate-campaign" href="post.php?campaign_id='.$post->ID.'&action=duplicate-campaign" >'.__('Duplicate' ,'icegram').'</a>';
672
- //TODO:: test this properly
673
  $actions['preview_campaign'] = '<a class="ig-preview-campaign" target="_blank" href="'.home_url().'?campaign_preview_id='.$post->ID.'" >'.__('Preview' ,'icegram').'</a>';
674
  return $actions;
675
  }
676
 
677
  function duplicate_campaign(){
678
- if(isset($_REQUEST['action']) && $_REQUEST['action'] == 'duplicate-campaign' && !empty($_REQUEST['campaign_id'])){
679
- Icegram::duplicate( $_REQUEST['campaign_id'] );
680
  }
681
  }
682
 
10
  var $site_url;
11
  function __construct() {
12
 
13
+ // add_action( 'add_meta_boxes', array( &$this, 'add_campaigns_metaboxes' ), 0 );
14
+ add_action( 'edit_form_advanced', array( &$this, 'add_campaigns_tabs' ) );
15
+
16
  add_action( 'save_post', array( &$this, 'save_campaign_settings' ), 10, 2 );
17
  add_action( 'wp_ajax_icegram_json_search_messages', array( &$this, 'icegram_json_search_messages' ) );
18
  add_action( 'wp_ajax_get_message_action_row', array( &$this, 'get_message_action_row' ) );
24
  add_filter( 'post_row_actions', array(&$this , 'add_campaign_action'), 10, 2 );
25
  add_action('admin_init', array(&$this ,'duplicate_campaign') ,10, 1);
26
 
27
+ // Adding tabs here
28
+ add_filter( 'icegram_campaign_tabs', array( &$this, 'campaign_data_tab_content' ), 0, 1 );
29
+ add_filter( 'icegram_campaign_tabs', array( &$this, 'campaign_target_rules_tab_content' ), 100, 1 );
30
+
31
  $this->site_url = home_url().'/';
32
 
33
  $this->default_target_rules = apply_filters( 'icegram_campaign_default_rules',
50
  }
51
 
52
  // Initialize campaign metabox
53
+ /*function add_campaigns_metaboxes() {
54
  $meta_box_title = __( 'Message', 'icegram' );
55
  add_meta_box( 'campaign_data', $meta_box_title, array( &$this, 'campaign_data_content' ), 'ig_campaign', 'normal', 'default' );
56
  add_meta_box( 'campaign_target_rules', __( 'Targeting Rules', 'icegram' ), array( &$this, 'campaign_target_rules_content' ), 'ig_campaign', 'normal' );
57
  }
58
+ */
59
+
60
+ // Initialize campaign Tabs
61
+ function add_campaigns_tabs() {
62
+ global $post;
63
+
64
+ if ($post->post_type != 'ig_campaign') return;
65
+
66
+ // $tabs = array();
67
+ $tabs = array('nav' => array(), 'tabs' => array());
68
+ $tabs = apply_filters('icegram_campaign_tabs', $tabs);
69
+
70
+ if(!empty($tabs)){
71
+ $tabs_nav = !empty($tabs['nav']) ? implode('', $tabs['nav']) : '';
72
+ $tabs_content = !empty($tabs['tabs']) ? implode('', $tabs['tabs']) : '';
73
+
74
+ // TODO :: position of preview button
75
+ $preview_button = '<div id="" class="ig_preview_button">
76
+ <div class="button button-primary campaign_preview">' . __( 'Preview Campaign', 'icegram' ) .'</div>
77
+ <div class="clear"></div></div>';
78
+
79
+ // $preview_button = '<div class="button button-primary campaign_preview">' . __( 'Preview', 'icegram' ) . '</div>';
80
+ echo $preview_button .'<div id="ig-admin-tabs"><ul class="ig-admin-tabs-nav">'. $tabs_nav .'</ul>'. $tabs_content .'</div>';
81
+ }
82
+
83
+ }
84
+
85
+
86
+ // Display list of messages of campaign tab
87
+ function campaign_data_tab_content($tabs) {
88
+
89
+ $tab_id = 'main';
90
+ $tab_class = 'campaign_data'; // space seprated classes
91
+
92
+ $tabs['nav'][$tab_id] = '<li class="ig-admin-nav-'. $tab_id . '"><a href="#ig-admin-tab-'. $tab_id .'">'. __( 'Messages', 'icegram' ) .'</a></li>';
93
+ $tabs['tabs'][$tab_id] = '';
94
+
95
+ ob_Start();
96
+ self::campaign_data_content();
97
+ $tabs['tabs'][$tab_id] .= '<div id="ig-admin-tab-'. $tab_id .'" class="ig-admin-tab '. $tab_class.'">' . ob_get_clean() .'</div>';
98
+
99
+ return $tabs;
100
+ }
101
+
102
+ // Campaign targeting rules tab
103
+ function campaign_target_rules_tab_content($tabs) {
104
+
105
+ $tab_id = 'last';
106
+ $tab_class = 'campaign_target_rules'; // space seprated classes
107
+
108
+
109
+ // $tabs['nav'][$tab_id] = '<li><a href="#ig-admin-tab-'. $tab_id .'">'. __( 'Targeting Rules', 'icegram' ) .'</a></li>';
110
+ $tabs['nav'][$tab_id] = '<li class="ig-admin-nav-'. $tab_id . '"><a href="#ig-admin-tab-'. $tab_id .'">'. __( 'Display Rules', 'icegram' ) .'</a></li>';
111
+ $tabs['tabs'][$tab_id] = '';
112
+
113
+ ob_Start();
114
+ self::campaign_target_rules_content();
115
+ $tabs['tabs'][$tab_id] .= '<div id="ig-admin-tab-'. $tab_id .'" class="ig-admin-tab '. $tab_class .'">' . ob_get_clean() .'</div>';
116
+
117
+ return $tabs;
118
+ }
119
+
120
  // Display list of messages of campaign
121
  function campaign_data_content() {
122
  global $post, $icegram;
128
  $campaign_box .= '<option value="'.$message['type'].'">'.__( 'Create new', 'icegram' ).' '.$message['name'].' ...</option>';
129
  }
130
  $campaign_box .= '</select>';
131
+ // $campaign_box .= '<div class="button button-primary campaign_preview">' . __( 'Preview', 'icegram' ) . '</div>';
132
 
133
  $title = '<label class="options_header" for="icegram_messages"><strong>' . __( 'Message', 'icegram' ) . '</strong></label>';
134
  ?>
135
+ <? do_action('main_tab_prepand_content')?>
136
  <div class="campaign_box"><?php echo $title; ?> &mdash; <?php echo $campaign_box; ?></div>
137
  <div style="margin: 8px -12px 12px -12px">
138
  <hr/>
198
  </div>
199
  <?php
200
  }
201
+
 
 
 
 
202
  // Campaign targeting rules metabox
203
  function campaign_target_rules_content() {
204
  global $post;
218
  <?php
219
  }
220
 
221
+ function get_icegram_campaign_messages($messages, $campaign_id){
222
+ $messages = get_post_meta($campaign_id, 'messages', true);
223
+ return $messages;
224
+ }
225
+
226
  // Display setting fields for campaign targeting rules
227
  function icegram_add_campaign_target_rules( $campaign_id, $campaign_target_rules ) {
228
  global $wp_roles;
739
 
740
  // Create a nonce & add an action
741
  $actions['duplicate_campaign'] = '<a class="ig-duplicate-campaign" href="post.php?campaign_id='.$post->ID.'&action=duplicate-campaign" >'.__('Duplicate' ,'icegram').'</a>';
 
742
  $actions['preview_campaign'] = '<a class="ig-preview-campaign" target="_blank" href="'.home_url().'?campaign_preview_id='.$post->ID.'" >'.__('Preview' ,'icegram').'</a>';
743
  return $actions;
744
  }
745
 
746
  function duplicate_campaign(){
747
+ if(!empty($_REQUEST['action']) && $_REQUEST['action'] == 'duplicate-campaign' && !empty($_REQUEST['campaign_id'])){
748
+ Icegram::duplicate( $_REQUEST['campaign_id']);
749
  }
750
  }
751
 
classes/class-icegram-campaign.php CHANGED
@@ -22,7 +22,6 @@ if ( !class_exists( 'Icegram_Campaign' ) ) {
22
  //icegram_campaign_meta_key
23
  $meta_key = apply_filters('icegram_campaign_meta_key' ,'messages' ,$this->_post->ID);
24
  $this->messages = get_post_meta( $this->_post->ID, $meta_key, true );
25
-
26
  $this->rules = get_post_meta( $this->_post->ID, 'icegram_campaign_target_rules', true );
27
  $this->rules_summary['where'] = array(
28
  'homepage' => ( !empty( $this->rules['homepage'] ) ) ? $this->rules['homepage'] : '',
22
  //icegram_campaign_meta_key
23
  $meta_key = apply_filters('icegram_campaign_meta_key' ,'messages' ,$this->_post->ID);
24
  $this->messages = get_post_meta( $this->_post->ID, $meta_key, true );
 
25
  $this->rules = get_post_meta( $this->_post->ID, 'icegram_campaign_target_rules', true );
26
  $this->rules_summary['where'] = array(
27
  'homepage' => ( !empty( $this->rules['homepage'] ) ) ? $this->rules['homepage'] : '',
classes/class-icegram-message-admin.php CHANGED
@@ -352,7 +352,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
352
  <strong>'.__('Target Link' ,'icegram').'</strong>
353
  <span class="help_tip admin_field_icon" data-tip="'.__('Enter destination URL here. Clicking will redirect to this link.' ,'icegram').'"></span>
354
  </label>
355
- <input type="text" class="message_field" name="message_data['.$message_id.'][link]"
356
  id="message_link" value="'.esc_attr( ( isset($message_data['link']) ? $message_data['link'] : '') ) .'" />
357
  </p>';
358
 
352
  <strong>'.__('Target Link' ,'icegram').'</strong>
353
  <span class="help_tip admin_field_icon" data-tip="'.__('Enter destination URL here. Clicking will redirect to this link.' ,'icegram').'"></span>
354
  </label>
355
+ <input type="text" class="message_field message_link" name="message_data['.$message_id.'][link]"
356
  id="message_link" value="'.esc_attr( ( isset($message_data['link']) ? $message_data['link'] : '') ) .'" />
357
  </p>';
358
 
icegram.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Icegram - Popups, Optins, CTAs & lot more...
4
  * Plugin URI: http://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: 1.9.20.1
7
  * Author: icegram
8
  * Author URI: http://www.icegram.com/
9
  *
@@ -35,7 +35,7 @@ class Icegram {
35
 
36
  function __construct() {
37
 
38
- $this->version = "1.9.20.1";
39
  $this->shortcode_instances = array();
40
  $this->mode = 'local';
41
  $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
@@ -880,18 +880,12 @@ class Icegram {
880
  function enqueue_admin_styles_and_scripts() {
881
 
882
  $screen = get_current_screen();
883
- if ( !in_array( $screen->id, array( 'ig_campaign', 'ig_message' ), true ) ) return;
884
 
885
  // Register scripts
886
  wp_register_script( 'icegram_writepanel', $this->plugin_url . '/assets/js/admin.min.js', array ( 'jquery', 'wp-color-picker' ), $this->version );
887
- // wp_register_script( 'icegram_writepanel', $this->plugin_url . '/assets/js/admin.js' , array ( 'jquery', 'wp-color-picker' ), $this->version );
888
- // wp_register_script( 'icegram_chosen', $this->plugin_url . '/assets/js/chosen.jquery.min.js' , array ( 'jquery' ), $this->version );
889
- // wp_register_script( 'icegram_ajax-chosen', $this->plugin_url . '/assets/js/ajax-chosen.jquery.min.js' , array ( 'icegram_chosen' ), $this->version );
890
- // wp_register_script( 'icegram_tiptip', $this->plugin_url . '/assets/js/jquery.tipTip.min.js' , array ( 'jquery' ), $this->version );
891
 
892
  wp_enqueue_script( 'icegram_writepanel' );
893
- // wp_enqueue_script( 'icegram_ajax-chosen' );
894
- // wp_enqueue_script( 'icegram_tiptip' );
895
 
896
  $icegram_writepanel_params = array ( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'search_message_nonce' => wp_create_nonce( "search-messages" ), 'home_url' => home_url( '/' ) );
897
  $this->available_headlines = apply_filters( 'icegram_available_headlines', array() );
@@ -902,8 +896,6 @@ class Icegram {
902
  wp_enqueue_style( 'dashicons' );
903
  wp_enqueue_style( 'wp-color-picker' );
904
  wp_enqueue_style( 'icegram_admin_styles', $this->plugin_url . '/assets/css/admin.min.css', array(), $this->version );
905
- // wp_enqueue_style( 'icegram_jquery-ui-style', $this->plugin_url . '/assets/css/jquery-ui.min.css', array(), $this->version );
906
- // wp_enqueue_style( 'icegram_chosen_styles', $this->plugin_url . '/assets/css/chosen.min.css', array(), $this->version );
907
 
908
  if ( !wp_script_is( 'jquery-ui-datepicker' ) ) {
909
  wp_enqueue_script( 'jquery-ui-datepicker' );
@@ -1639,7 +1631,7 @@ class Icegram {
1639
  return $pee;
1640
  }
1641
 
1642
- static function duplicate( $original_id ){
1643
  // Get access to the database
1644
  global $wpdb;
1645
  // Get the post as an array
@@ -1648,7 +1640,7 @@ class Icegram {
1648
  $duplicate['post_title'] = $duplicate['post_title'].' '.__('Copy', 'icegram');
1649
  $duplicate['post_status'] = 'draft';
1650
  // Set the post date
1651
- $timestamp = current_time('timestamp',0);
1652
 
1653
  $duplicate['post_date'] = date('Y-m-d H:i:s', $timestamp);
1654
 
@@ -1662,6 +1654,7 @@ class Icegram {
1662
 
1663
  // Duplicate all taxonomies/terms
1664
  $taxonomies = get_object_taxonomies( $duplicate['post_type'] );
 
1665
  foreach( $taxonomies as $taxonomy ) {
1666
  $terms = wp_get_post_terms( $original_id, $taxonomy, array('fields' => 'names') );
1667
  wp_set_object_terms( $duplicate_id, $terms, $taxonomy );
@@ -1670,8 +1663,21 @@ class Icegram {
1670
  // Duplicate all custom fields
1671
  $custom_fields = get_post_custom( $original_id );
1672
  foreach ( $custom_fields as $key => $value ) {
 
 
 
 
 
 
 
 
1673
  add_post_meta( $duplicate_id, $key, maybe_unserialize($value[0]) );
1674
  }
 
 
 
 
 
1675
  $location = admin_url( 'post.php?post='.$duplicate_id.'&action=edit');
1676
  header('Location:'.$location);
1677
  exit;
3
  * Plugin Name: Icegram - Popups, Optins, CTAs & lot more...
4
  * Plugin URI: http://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: 1.9.21
7
  * Author: icegram
8
  * Author URI: http://www.icegram.com/
9
  *
35
 
36
  function __construct() {
37
 
38
+ $this->version = "1.9.21";
39
  $this->shortcode_instances = array();
40
  $this->mode = 'local';
41
  $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
880
  function enqueue_admin_styles_and_scripts() {
881
 
882
  $screen = get_current_screen();
883
+ if ( !in_array( $screen->id, array( 'ig_campaign', 'ig_message', 'edit-ig_campaign' ), true ) ) return;
884
 
885
  // Register scripts
886
  wp_register_script( 'icegram_writepanel', $this->plugin_url . '/assets/js/admin.min.js', array ( 'jquery', 'wp-color-picker' ), $this->version );
 
 
 
 
887
 
888
  wp_enqueue_script( 'icegram_writepanel' );
 
 
889
 
890
  $icegram_writepanel_params = array ( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'search_message_nonce' => wp_create_nonce( "search-messages" ), 'home_url' => home_url( '/' ) );
891
  $this->available_headlines = apply_filters( 'icegram_available_headlines', array() );
896
  wp_enqueue_style( 'dashicons' );
897
  wp_enqueue_style( 'wp-color-picker' );
898
  wp_enqueue_style( 'icegram_admin_styles', $this->plugin_url . '/assets/css/admin.min.css', array(), $this->version );
 
 
899
 
900
  if ( !wp_script_is( 'jquery-ui-datepicker' ) ) {
901
  wp_enqueue_script( 'jquery-ui-datepicker' );
1631
  return $pee;
1632
  }
1633
 
1634
+ static function duplicate_in_db( $original_id){
1635
  // Get access to the database
1636
  global $wpdb;
1637
  // Get the post as an array
1640
  $duplicate['post_title'] = $duplicate['post_title'].' '.__('Copy', 'icegram');
1641
  $duplicate['post_status'] = 'draft';
1642
  // Set the post date
1643
+ $timestamp = current_time('timestamp', 0);
1644
 
1645
  $duplicate['post_date'] = date('Y-m-d H:i:s', $timestamp);
1646
 
1654
 
1655
  // Duplicate all taxonomies/terms
1656
  $taxonomies = get_object_taxonomies( $duplicate['post_type'] );
1657
+
1658
  foreach( $taxonomies as $taxonomy ) {
1659
  $terms = wp_get_post_terms( $original_id, $taxonomy, array('fields' => 'names') );
1660
  wp_set_object_terms( $duplicate_id, $terms, $taxonomy );
1663
  // Duplicate all custom fields
1664
  $custom_fields = get_post_custom( $original_id );
1665
  foreach ( $custom_fields as $key => $value ) {
1666
+ if($key === 'messages'){
1667
+ $messages = unserialize($value[0]);
1668
+ foreach ($messages as &$message) {
1669
+ $clone_msg_id = Icegram::duplicate_in_db($message['id']);
1670
+ $message['id'] = $clone_msg_id;
1671
+ }
1672
+ $value[0] = serialize($messages);
1673
+ }
1674
  add_post_meta( $duplicate_id, $key, maybe_unserialize($value[0]) );
1675
  }
1676
+ return $duplicate_id;
1677
+ }
1678
+
1679
+ static function duplicate( $original_id){
1680
+ $duplicate_id = Icegram::duplicate_in_db($original_id);
1681
  $location = admin_url( 'post.php?post='.$duplicate_id.'&action=edit');
1682
  header('Location:'.$location);
1683
  exit;
lang/src/icegram.pot CHANGED
@@ -1,801 +1,1248 @@
1
- # Copyright (C) 2014 Icegram
2
- # This file is distributed under the same license as the Icegram package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Icegram 1.1.1\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/icegram\n"
7
- "POT-Creation-Date: 2014-06-10 06:09:11+00:00\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
- "Last-Translator: Icegram Team <hello@icegram.com>\n"
13
- "Language-Team: Icegram Team <hello@icegram.com>\n"
14
-
15
- #: about-icegram.php:151 classes/class-wp-campaign.php:216
16
- #: icegram-includes/class-icegram-upgrade.php:335
17
- msgid "Name"
18
- msgstr ""
19
-
20
- #: about-icegram.php:155 icegram-includes/class-icegram-upgrade.php:339
21
- msgid "E-mail"
22
- msgstr ""
23
-
24
- #: about-icegram.php:160 icegram-includes/class-icegram-upgrade.php:343
25
- msgid "Product"
26
- msgstr ""
27
-
28
- #: about-icegram.php:166 icegram-includes/class-icegram-upgrade.php:347
29
- msgid "Subject"
30
- msgstr ""
31
-
32
- #: about-icegram.php:170 icegram-includes/class-icegram-upgrade.php:351
33
- #: icegram.php:446
34
- msgid "Message"
35
- msgstr ""
36
-
37
- #: about-icegram.php:210 icegram.php:97
38
- msgid "Welcome to Icegram"
39
- msgstr ""
40
-
41
- #: about-icegram.php:212
42
- msgid ""
43
- "Your sample campaign is ready. We've added a few messages for you to test."
44
- msgstr ""
45
-
46
- #: about-icegram.php:220
47
- msgid "Edit & Publish it"
48
- msgstr ""
49
-
50
- #: about-icegram.php:221
51
- msgid "OR"
52
- msgstr ""
53
-
54
- #: about-icegram.php:222
55
- msgid "Preview Campaign"
56
- msgstr ""
57
-
58
- #: about-icegram.php:228
59
- msgid "Version: %s"
60
- msgstr ""
61
-
62
- #: about-icegram.php:231
63
- msgid "Questions? Need Help?"
64
- msgstr ""
65
-
66
- #: about-icegram.php:232 about-icegram.php:321
67
- msgid "Contact Us"
68
- msgstr ""
69
-
70
- #: about-icegram.php:238
71
- msgid ""
72
- "Do read Icegram's core concepts below to understand how you can use Icegram "
73
- "to inspire, convert and engage your audience."
74
- msgstr ""
75
-
76
- #: about-icegram.php:244 icegram.php:445 icegram.php:451 icegram.php:457
77
- msgid "Messages"
78
- msgstr ""
79
-
80
- #: about-icegram.php:246
81
- msgid "A 'Message' is a communication you want to deliver to your audience."
82
- msgstr ""
83
-
84
- #: about-icegram.php:247
85
- msgid "And Icegram comes with not one, but four message types."
86
- msgstr ""
87
-
88
- #: about-icegram.php:248
89
- msgid ""
90
- "Different message types look and behave differently, but they all have many "
91
- "common characteristics. For instance, most message types will allow you to "
92
- "set a headline, a body text, label for the ‘call to action’ button, a link "
93
- "for that button, theme and styling options, animation effect and position on "
94
- "screen where that message should show."
95
- msgstr ""
96
-
97
- #: about-icegram.php:251
98
- msgid "Action Bar"
99
- msgstr ""
100
-
101
- #: about-icegram.php:253
102
- msgid ""
103
- "An action bar is a proven attention grabber. It shows up as a solid bar "
104
- "either at top or bottom. Use it for your most important messages or time "
105
- "sensitive announcements. Put longer content in it and it acts like a "
106
- "collapsible panel!"
107
- msgstr ""
108
-
109
- #: about-icegram.php:254
110
- msgid "Messenger"
111
- msgstr ""
112
-
113
- #: about-icegram.php:256
114
- msgid ""
115
- "A messenger is best used to invoke interest while your visitor is reading "
116
- "your content. Users perceive it as something new, important and urgent and "
117
- "are highly likely to click on it."
118
- msgstr ""
119
-
120
- #: about-icegram.php:259
121
- msgid "Toast Notification"
122
- msgstr ""
123
-
124
- #: about-icegram.php:261
125
- msgid ""
126
- "Want to alert your visitor about some news, an update from your blog, a "
127
- "social proof or an offer? Use Icegram’s unique toast notification, it will "
128
- "catch their attention, let them click on the message, and disappear after a "
129
- "while."
130
- msgstr ""
131
-
132
- #: about-icegram.php:262
133
- msgid "Popup"
134
- msgstr ""
135
-
136
- #: about-icegram.php:264
137
- msgid ""
138
- "Lightbox popup windows are most widely used for lead capture, promotions and "
139
- "additional content display. Ask visitors to sign up to your newsletter, or "
140
- "like you on social networks, or tell them about a special offer..."
141
- msgstr ""
142
-
143
- #: about-icegram.php:273 icegram.php:408 icegram.php:414
144
- msgid "Campaigns"
145
- msgstr ""
146
-
147
- #: about-icegram.php:274
148
- msgid "Campaign = Messages + Rules"
149
- msgstr ""
150
-
151
- #: about-icegram.php:275
152
- msgid ""
153
- "A campaign allows sequencing multiple messages and defining targeting rules. "
154
- "Create different campaigns for different marketing goals. Icegram supports "
155
- "showing multiple campaigns on any page."
156
- msgstr ""
157
-
158
- #: about-icegram.php:276
159
- msgid ""
160
- "You can always preview your campaign to ensure campaign works the way you "
161
- "want, before making it live."
162
- msgstr ""
163
-
164
- #: about-icegram.php:279
165
- msgid "Multiple Messages & Sequencing"
166
- msgstr ""
167
-
168
- #: about-icegram.php:281
169
- msgid ""
170
- "Add one or as many messages to a campaign as you want. Also choose the "
171
- "number of seconds after which each message should show up. Showing multiple "
172
- "messages for same goal, but with slightly different content / presentation, "
173
- "greatly improves conversions."
174
- msgstr ""
175
-
176
- #: about-icegram.php:284
177
- msgid "Targeting Rules"
178
- msgstr ""
179
-
180
- #: about-icegram.php:286
181
- msgid ""
182
- "You can control who sees a campaign – and on what device, which pages does "
183
- "it show on, and what time period will it stay active for. You can run "
184
- "different campaigns with different rules to maximize engagement."
185
- msgstr ""
186
-
187
- #: about-icegram.php:294
188
- msgid "FAQ / Common Problems"
189
- msgstr ""
190
-
191
- #: about-icegram.php:296
192
- msgid "Messages look broken / formatting is weird..."
193
- msgstr ""
194
-
195
- #: about-icegram.php:297
196
- msgid ""
197
- "This is most likely due to CSS conflicts with current theme. We suggest "
198
- "using simple formatting for messages. You can also write custom CSS in your "
199
- "theme to fix any problems."
200
- msgstr ""
201
-
202
- #: about-icegram.php:299
203
- msgid "Extra Line Breaks / Paragraphs in messages..."
204
- msgstr ""
205
-
206
- #: about-icegram.php:300
207
- msgid ""
208
- "Go to HTML mode in content editor and pull your custom HTML code all "
209
- "together in one line. Don't leave blank lines between two tags. That should "
210
- "fix it."
211
- msgstr ""
212
-
213
- #: about-icegram.php:302
214
- msgid "How do I add custom CSS for messages?"
215
- msgstr ""
216
-
217
- #: about-icegram.php:303
218
- msgid ""
219
- "You can use custom CSS/JS inline in your message HTML. You can also use your "
220
- "theme's custom JS / CSS feature to add your changes."
221
- msgstr ""
222
-
223
- #: about-icegram.php:305
224
- msgid "Optin Forms / Mailing service integration..."
225
- msgstr ""
226
-
227
- #: about-icegram.php:306
228
- msgid ""
229
- "You can embed any optin / subscription form to your Icegram messages using "
230
- "HTML code. You may even use a shortcode if you are using a WP plugin from "
231
- "your newsletter / lead capture service."
232
- msgstr ""
233
-
234
- #: about-icegram.php:310
235
- msgid "Preview does not work / not refreshing..."
236
- msgstr ""
237
-
238
- #: about-icegram.php:311
239
- msgid ""
240
- "Doing a browser refresh while previewing will not show your most recent "
241
- "changes. Click 'Preview' button to see a preview with your latest changes."
242
- msgstr ""
243
-
244
- #: about-icegram.php:313
245
- msgid "Can I use shortcodes in a message?"
246
- msgstr ""
247
-
248
- #: about-icegram.php:314
249
- msgid ""
250
- "Yes! Messages support shortcodes. You may need to adjust CSS so the "
251
- "shortcode output looks good in your message."
252
- msgstr ""
253
-
254
- #: about-icegram.php:317
255
- msgid "I can't find a way to do X..."
256
- msgstr ""
257
-
258
- #: about-icegram.php:318
259
- msgid ""
260
- "Icegram is actively developed. If you can't find your favorite feature (or "
261
- "have a suggestion) contact us. We'd love to hear from you."
262
- msgstr ""
263
-
264
- #: about-icegram.php:320
265
- msgid "I'm facing a problem and can't find a way out..."
266
- msgstr ""
267
-
268
- #: about-icegram.php:321
269
- msgid ""
270
- ", provide as much detail of the problem as you can. We will try to solve the "
271
- "problem ASAP."
272
- msgstr ""
273
-
274
- #: classes/class-wp-campaign.php:67
275
- msgid "Message &mdash; "
276
- msgstr ""
277
-
278
- #: classes/class-wp-campaign.php:68
279
- msgid "Search to add / Create new&hellip;"
280
- msgstr ""
281
-
282
- #: classes/class-wp-campaign.php:73 classes/class-wp-campaign.php:202
283
- msgid "Create new"
284
- msgstr ""
285
-
286
- #: classes/class-wp-campaign.php:77
287
- msgid "Preview"
288
- msgstr ""
289
-
290
- #: classes/class-wp-campaign.php:80
291
- msgid ""
292
- "Targeting Rules <em>Messages in this campaign will be shown when all these "
293
- "rules match...</em>"
294
- msgstr ""
295
-
296
- #: classes/class-wp-campaign.php:112 classes/class-wp-campaign.php:255
297
- msgid "Give this message a name for your own reference"
298
- msgstr ""
299
-
300
- #: classes/class-wp-campaign.php:117 classes/class-wp-campaign.php:259
301
- msgid " sec"
302
- msgstr ""
303
-
304
- #: classes/class-wp-campaign.php:120 classes/class-wp-campaign.php:262
305
- #: icegram.php:449
306
- msgid "Edit Message"
307
- msgstr ""
308
-
309
- #: classes/class-wp-campaign.php:121 classes/class-wp-campaign.php:263
310
- msgid "Remove from Campaign"
311
- msgstr ""
312
-
313
- #: classes/class-wp-campaign.php:139
314
- msgid ""
315
- "No messages yet. Use search / create bar above to add messages to this "
316
- "campaign."
317
- msgstr ""
318
-
319
- #: classes/class-wp-campaign.php:198
320
- msgid "- - - - - - - - - - - - - - - - - - - - - - - - - -"
321
- msgstr ""
322
-
323
- #: classes/class-wp-campaign.php:215 classes/class-wp-message.php:72
324
- #: classes/class-wp-message.php:200
325
- msgid "Type"
326
- msgstr ""
327
-
328
- #: classes/class-wp-campaign.php:217
329
- msgid "Show after"
330
- msgstr ""
331
-
332
- #: classes/class-wp-campaign.php:218
333
- msgid "Actions"
334
- msgstr ""
335
-
336
- #: classes/class-wp-campaign.php:293
337
- msgid "Where?"
338
- msgstr ""
339
-
340
- #: classes/class-wp-campaign.php:296
341
- msgid "Sitewide"
342
- msgstr ""
343
-
344
- #: classes/class-wp-campaign.php:303
345
- msgid "Homepage"
346
- msgstr ""
347
-
348
- #: classes/class-wp-campaign.php:310
349
- msgid "Selected pages"
350
- msgstr ""
351
-
352
- #: classes/class-wp-campaign.php:316
353
- msgid "Select a page&hellip;"
354
- msgstr ""
355
-
356
- #: classes/class-wp-campaign.php:330
357
- msgid ""
358
- "Additionally you can insert <code>[%s]</code> wherever you want to run this "
359
- "campaign."
360
- msgstr ""
361
-
362
- #: classes/class-wp-campaign.php:336
363
- msgid "When?"
364
- msgstr ""
365
-
366
- #: classes/class-wp-campaign.php:339
367
- msgid "Always"
368
- msgstr ""
369
-
370
- #: classes/class-wp-campaign.php:346
371
- msgid "Schedule"
372
- msgstr ""
373
-
374
- #: classes/class-wp-campaign.php:349
375
- msgid "From&hellip;"
376
- msgstr ""
377
-
378
- #: classes/class-wp-campaign.php:352
379
- msgid "To&hellip;"
380
- msgstr ""
381
-
382
- #: classes/class-wp-campaign.php:360
383
- msgid "Device?"
384
- msgstr ""
385
-
386
- #: classes/class-wp-campaign.php:361
387
- msgid "Mobile / Smartphones"
388
- msgstr ""
389
-
390
- #: classes/class-wp-campaign.php:365
391
- msgid "Tablet"
392
- msgstr ""
393
-
394
- #: classes/class-wp-campaign.php:369
395
- msgid "Desktop / Laptop"
396
- msgstr ""
397
-
398
- #: classes/class-wp-campaign.php:377
399
- msgid "Who?"
400
- msgstr ""
401
-
402
- #: classes/class-wp-campaign.php:380
403
- msgid "All users"
404
- msgstr ""
405
-
406
- #: classes/class-wp-campaign.php:387
407
- msgid "Logged in users only"
408
- msgstr ""
409
-
410
- #: classes/class-wp-campaign.php:405
411
- msgid "Select a user role&hellip;"
412
- msgstr ""
413
-
414
- #: classes/class-wp-campaign.php:420
415
- msgid "Retargeting"
416
- msgstr ""
417
-
418
- #: classes/class-wp-campaign.php:423
419
- msgid "Once shown, do NOT show a message again for current session"
420
- msgstr ""
421
-
422
- #: classes/class-wp-message.php:73 classes/class-wp-message.php:212
423
- msgid "Theme"
424
- msgstr ""
425
-
426
- #: classes/class-wp-message.php:74
427
- msgid "Thumbnail"
428
- msgstr ""
429
-
430
- #: classes/class-wp-message.php:141
431
- msgid "Message Settings"
432
- msgstr ""
433
-
434
- #: classes/class-wp-message.php:224 classes/class-wp-message.php:232
435
- msgid "Animation"
436
- msgstr ""
437
-
438
- #: classes/class-wp-message.php:241
439
- msgid "Headline"
440
- msgstr ""
441
-
442
- #: classes/class-wp-message.php:242
443
- msgid ""
444
- "Shown with highest prominence. Click on idea button on right to get a new "
445
- "headline."
446
- msgstr ""
447
-
448
- #: classes/class-wp-message.php:245
449
- msgid "Give Me Another Headline"
450
- msgstr ""
451
-
452
- #: classes/class-wp-message.php:251
453
- msgid "Button Label"
454
- msgstr ""
455
-
456
- #: classes/class-wp-message.php:252
457
- msgid "Your call to action text. Something unusual will increase conversions."
458
- msgstr ""
459
-
460
- #: classes/class-wp-message.php:258
461
- msgid "Target Link"
462
- msgstr ""
463
-
464
- #: classes/class-wp-message.php:259
465
- msgid "Enter destination URL here. Clicking will redirect to this link."
466
- msgstr ""
467
-
468
- #: classes/class-wp-message.php:265
469
- msgid "Icon / Avatar Image"
470
- msgstr ""
471
-
472
- #: classes/class-wp-message.php:266
473
- msgid "This image will appear in message content."
474
- msgstr ""
475
-
476
- #: classes/class-wp-message.php:269
477
- msgid "Upload / Select an image"
478
- msgstr ""
479
-
480
- #: classes/class-wp-message.php:269
481
- msgid "Upload / Select Image"
482
- msgstr ""
483
-
484
- #: classes/class-wp-message.php:274
485
- msgid "Backgound Color"
486
- msgstr ""
487
-
488
- #: classes/class-wp-message.php:278
489
- msgid "Text Color"
490
- msgstr ""
491
-
492
- #: classes/class-wp-message.php:292
493
- msgid "Message Body"
494
- msgstr ""
495
-
496
- #: classes/class-wp-message.php:297
497
- msgid "Position"
498
- msgstr ""
499
-
500
- #: classes/class-wp-message.php:358
501
- msgid ""
502
- "You can insert <code>[%s]</code> wherever you want to show this message. We "
503
- "recommend running a campaign though."
504
- msgstr ""
505
-
506
- #: classes/class-wp-message.php:424
507
- msgid "Here Is A Method That Is Helping ____ To ____"
508
- msgstr ""
509
-
510
- #: classes/class-wp-message.php:425
511
- msgid "__ Little Known Ways To ____"
512
- msgstr ""
513
-
514
- #: classes/class-wp-message.php:426
515
- msgid "Get Rid Of ____ Once And For All"
516
- msgstr ""
517
-
518
- #: classes/class-wp-message.php:427
519
- msgid "How To ____ So You Can ____"
520
- msgstr ""
521
-
522
- #: classes/class-wp-message.php:428
523
- msgid "They Didn't Think I Could ____, But I Did"
524
- msgstr ""
525
-
526
- #: classes/class-wp-message.php:429
527
- msgid "How ____ Made Me ____"
528
- msgstr ""
529
-
530
- #: classes/class-wp-message.php:430
531
- msgid "Are You ____ ?"
532
- msgstr ""
533
-
534
- #: classes/class-wp-message.php:431
535
- msgid "Warning: ____ !"
536
- msgstr ""
537
-
538
- #: classes/class-wp-message.php:432
539
- msgid "Do You Make These Mistakes With ____ ?"
540
- msgstr ""
541
-
542
- #: classes/class-wp-message.php:433
543
- msgid "7 Ways To ____"
544
- msgstr ""
545
-
546
- #: classes/class-wp-message.php:434
547
- msgid "If You're ____, You Can ____"
548
- msgstr ""
549
-
550
- #: classes/class-wp-message.php:435
551
- msgid "Turn your ____ into a ____"
552
- msgstr ""
553
-
554
- #: classes/class-wp-message.php:436
555
- msgid "Want To Be A ____?"
556
- msgstr ""
557
-
558
- #: classes/class-wp-message.php:437
559
- msgid "The Ugly Truth About Your Beautiful ____"
560
- msgstr ""
561
-
562
- #: classes/class-wp-message.php:438
563
- msgid "The Secret to ____ Is Simply ____!"
564
- msgstr ""
565
-
566
- #: classes/class-wp-message.php:439
567
- msgid "The Quickest Way I Know To ____"
568
- msgstr ""
569
-
570
- #: classes/class-wp-message.php:440
571
- msgid "The Lazy Man's Way To ____"
572
- msgstr ""
573
-
574
- #: classes/class-wp-message.php:441
575
- msgid ""
576
- "The Amazing Story Of ____ That Requires So Little Of ____ You Could ____"
577
- msgstr ""
578
-
579
- #: classes/class-wp-message.php:442
580
- msgid "The Amazing Secret Of The ____ Genius Who Is Afraid Of ____"
581
- msgstr ""
582
-
583
- #: classes/class-wp-message.php:443
584
- msgid "The 10 Wackiest Ideas That ____... And How You Can Too!"
585
- msgstr ""
586
-
587
- #: classes/class-wp-message.php:444
588
- msgid "The Inside Secrets To ____ With Crazy, Outlandish And Outrageous ____"
589
- msgstr ""
590
-
591
- #: classes/class-wp-message.php:445
592
- msgid "____ Like A ____"
593
- msgstr ""
594
-
595
- #: classes/class-wp-message.php:446
596
- msgid "Remember When You Could Have ____, And You Didn't?"
597
- msgstr ""
598
-
599
- #: classes/class-wp-message.php:447
600
- msgid "Is The ____ Worth $x To You?"
601
- msgstr ""
602
-
603
- #: classes/class-wp-message.php:448
604
- msgid "Increase your ____, reduce ____, maintain ____ and ____ with ____"
605
- msgstr ""
606
-
607
- #: classes/class-wp-message.php:449
608
- msgid "If You Can ____ You Can ____"
609
- msgstr ""
610
-
611
- #: classes/class-wp-message.php:450
612
- msgid "I Discovered How To ____... Now I'm Revealing My Secret"
613
- msgstr ""
614
-
615
- #: classes/class-wp-message.php:451
616
- msgid "How To Turn Your ____ Into The Most ____"
617
- msgstr ""
618
-
619
- #: classes/class-wp-message.php:452
620
- msgid "How To Take The Headache Out Of ____"
621
- msgstr ""
622
-
623
- #: classes/class-wp-message.php:453
624
- msgid "How To ____ ... Legally"
625
- msgstr ""
626
-
627
- #: classes/class-wp-message.php:454
628
- msgid "How To ____ That ____"
629
- msgstr ""
630
-
631
- #: classes/class-wp-message.php:455
632
- msgid "How To Discover The ____ That Lies Hidden In Your ____"
633
- msgstr ""
634
-
635
- #: classes/class-wp-message.php:456
636
- msgid "How To ____ Even When Your Not ____"
637
- msgstr ""
638
-
639
- #: classes/class-wp-message.php:457
640
- msgid "____ With No ____!"
641
- msgstr ""
642
-
643
- #: classes/class-wp-message.php:458
644
- msgid "Greatest Goldmine of ____ Ever Jammed Into One Big ____"
645
- msgstr ""
646
-
647
- #: classes/class-wp-message.php:459
648
- msgid "Free ____ Tells How To Get Better ____"
649
- msgstr ""
650
-
651
- #: classes/class-wp-message.php:460
652
- msgid ""
653
- "FREE ____ Worth $____ for the first 100 People to take Advantage of this "
654
- "Offer"
655
- msgstr ""
656
-
657
- #: classes/class-wp-message.php:461
658
- msgid "Don't Try This With Any Other ____"
659
- msgstr ""
660
-
661
- #: classes/class-wp-message.php:462
662
- msgid "Do You Honestly Want To ____?"
663
- msgstr ""
664
-
665
- #: classes/class-wp-message.php:463
666
- msgid "Discover The Magic ____ That Will Bring You ____ & ____!"
667
- msgstr ""
668
-
669
- #: classes/class-wp-message.php:464
670
- msgid "____ Man Reveals A Short-Cut To ____"
671
- msgstr ""
672
-
673
- #: classes/class-wp-message.php:465
674
- msgid "Confessions Of A ____"
675
- msgstr ""
676
-
677
- #: classes/class-wp-message.php:466
678
- msgid "Are You Ready To ____?"
679
- msgstr ""
680
-
681
- #: classes/class-wp-message.php:467
682
- msgid "An Open Letter To Everyone Who ____ More Than ____ Per ____"
683
- msgstr ""
684
-
685
- #: classes/class-wp-message.php:468
686
- msgid "An Amazing ____ You Can Carry In Your ____"
687
- msgstr ""
688
-
689
- #: classes/class-wp-message.php:469
690
- msgid "21 Secret ____ that will ____... NOW!"
691
- msgstr ""
692
-
693
- #: icegram-includes/class-icegram-upgrade.php:360
694
- msgid "Send"
695
- msgstr ""
696
-
697
- #: icegram-includes/class-icegram-upgrade.php:385
698
- msgid "Submit your query"
699
- msgstr ""
700
-
701
- #: icegram-includes/class-icegram-upgrade.php:385
702
- msgid "Support"
703
- msgstr ""
704
-
705
- #: icegram-includes/class-icegram-upgrade.php:387
706
- msgid "Documentation"
707
- msgstr ""
708
-
709
- #: icegram-includes/class-icegram-upgrade.php:387
710
- msgid "Docs"
711
- msgstr ""
712
-
713
- #: icegram.php:98
714
- msgid "Docs & Support"
715
- msgstr ""
716
-
717
- #: icegram.php:175
718
- msgid "Powered by Icegram"
719
- msgstr ""
720
-
721
- #: icegram.php:409
722
- msgid "Campaign"
723
- msgstr ""
724
-
725
- #: icegram.php:410 icegram.php:411
726
- msgid "Add New Campaign"
727
- msgstr ""
728
-
729
- #: icegram.php:412
730
- msgid "Edit Campaign"
731
- msgstr ""
732
-
733
- #: icegram.php:413
734
- msgid "New Campaign"
735
- msgstr ""
736
-
737
- #: icegram.php:415
738
- msgid "View Campaign"
739
- msgstr ""
740
-
741
- #: icegram.php:416
742
- msgid "Search Campaigns"
743
- msgstr ""
744
-
745
- #: icegram.php:417
746
- msgid "No campaigns found"
747
- msgstr ""
748
-
749
- #: icegram.php:418
750
- msgid "No campaigns found in Trash"
751
- msgstr ""
752
-
753
- #. #-#-#-#-# plugin.pot (Icegram 1.1) #-#-#-#-#
754
- #. Plugin Name of the plugin/theme
755
- #. #-#-#-#-# plugin.pot (Icegram 1.1) #-#-#-#-#
756
- #. Author of the plugin/theme
757
- #: icegram.php:420
758
- msgid "Icegram"
759
- msgstr ""
760
-
761
- #: icegram.php:447
762
- msgid "Create New"
763
- msgstr ""
764
-
765
- #: icegram.php:448
766
- msgid "Create New Message"
767
- msgstr ""
768
-
769
- #: icegram.php:450
770
- msgid "New Message"
771
- msgstr ""
772
-
773
- #: icegram.php:452
774
- msgid "View Message"
775
- msgstr ""
776
-
777
- #: icegram.php:453
778
- msgid "Search Messages"
779
- msgstr ""
780
-
781
- #: icegram.php:454
782
- msgid "No messages found"
783
- msgstr ""
784
-
785
- #: icegram.php:455
786
- msgid "No messages found in Trash"
787
- msgstr ""
788
-
789
- #. #-#-#-#-# plugin.pot (Icegram 1.1) #-#-#-#-#
790
- #. Plugin URI of the plugin/theme
791
- #. #-#-#-#-# plugin.pot (Icegram 1.1) #-#-#-#-#
792
- #. Author URI of the plugin/theme
793
- msgid "http://www.icegram.com/"
794
- msgstr ""
795
-
796
- #. Description of the plugin/theme
797
- msgid ""
798
- "All in one solution to inspire, convert and engage your audiences. Action "
799
- "bars, Popup windows, Messengers, Toast notifications and more. Awesome "
800
- "themes and powerful rules."
801
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 Icegram
2
+ # This file is distributed under the same license as the Icegram package.
3
+ # Loco Gettext template
4
+ #, fuzzy
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: Icegram 1.1.1\n"
8
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/icegram\n"
9
+ "POT-Creation-Date: 2014-06-10 06:09:11+00:00\n"
10
+ "POT-Revision-Date: Tue Aug 02 2016 12:36:40 GMT+0530 (IST)\n"
11
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: Icegram Team <hello@icegram.com>\n"
13
+ "Language-Team: Icegram Team <hello@icegram.com>\n"
14
+ "Language: \n"
15
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION\n"
16
+ "MIME-Version: 1.0\n"
17
+ "Content-Type: text/plain; charset=UTF-8\n"
18
+ "Content-Transfer-Encoding: 8bit\n"
19
+ "X-Poedit-SourceCharset: UTF-8\n"
20
+ "X-Poedit-Basepath: .\n"
21
+ "X-Poedit-SearchPath-0: ../..\n"
22
+ "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
23
+ "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
24
+ "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
25
+ "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
26
+ "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
27
+ "X-Generator: Loco - https://localise.biz/"
28
+
29
+ #: ../../gallery.php:22
30
+ msgid "Gallery items"
31
+ msgstr ""
32
+
33
+ #: ../../gallery.php:23
34
+ msgid "Here's a collection of some "
35
+ msgstr ""
36
+
37
+ #: ../../gallery.php:23
38
+ msgid "beautiful, powerful ready-to-use Icegram Campaigns."
39
+ msgstr ""
40
+
41
+ #: ../../gallery.php:24
42
+ msgid "No coding or special skills required. Simply click to"
43
+ msgstr ""
44
+
45
+ #: ../../gallery.php:24
46
+ msgid " Use This "
47
+ msgstr ""
48
+
49
+ #: ../../gallery.php:24
50
+ msgid "and the campaign will automatically appear in your Icegram dashboard."
51
+ msgstr ""
52
+
53
+ #: ../../gallery.php:40 ../../gallery.php:83 ../../classes/class-icegram-campaign-
54
+ #: admin.php:63 ../../classes/class-icegram-campaign-admin.php:673
55
+ msgid "Preview"
56
+ msgstr ""
57
+
58
+ #: ../../gallery.php:41 ../../gallery.php:56
59
+ #, php-format
60
+ msgid "By %s"
61
+ msgstr ""
62
+
63
+ #: ../../gallery.php:48
64
+ msgid "Close"
65
+ msgstr ""
66
+
67
+ #: ../../gallery.php:49
68
+ msgctxt "Button label for a theme"
69
+ msgid "Previous"
70
+ msgstr ""
71
+
72
+ #: ../../gallery.php:50
73
+ msgctxt "Button label for a theme"
74
+ msgid "Next"
75
+ msgstr ""
76
+
77
+ #: ../../gallery.php:51
78
+ msgid "Use This"
79
+ msgstr ""
80
+
81
+ #: ../../gallery.php:68
82
+ msgid "This theme has not been rated yet."
83
+ msgstr ""
84
+
85
+ #: ../../gallery.php:70 ../../about-icegram.php:182
86
+ #, php-format
87
+ msgid "Version: %s"
88
+ msgstr ""
89
+
90
+ #: ../../gallery.php:76
91
+ msgid "Collapse Sidebar"
92
+ msgstr ""
93
+
94
+ #: ../../gallery.php:78
95
+ msgid "Collapse"
96
+ msgstr ""
97
+
98
+ #. Name of the plugin
99
+ msgid "Icegram - Popups, Optins, CTAs & lot more..."
100
+ msgstr ""
101
+
102
+ #. URI of the plugin
103
+ msgid "http://www.icegram.com"
104
+ msgstr ""
105
+
106
+ #. Description of the plugin/theme
107
+ msgid ""
108
+ "All in one solution to inspire, convert and engage your audiences. Action "
109
+ "bars, Popup windows, Messengers, Toast notifications and more. Awesome "
110
+ "themes and powerful rules."
111
+ msgstr ""
112
+
113
+ #. Author of the plugin
114
+ msgid "icegram"
115
+ msgstr ""
116
+
117
+ #: ../../icegram.php:106
118
+ msgid "Addons"
119
+ msgstr ""
120
+
121
+ #: ../../icegram.php:107 ../../icegram.php:518
122
+ msgid "Settings"
123
+ msgstr ""
124
+
125
+ #: ../../icegram.php:108
126
+ msgid "Support"
127
+ msgstr ""
128
+
129
+ #: ../../icegram.php:196
130
+ msgid "No, I don't like offers..."
131
+ msgstr ""
132
+
133
+ #: ../../icegram.php:204
134
+ msgid "No, I don't want to save money "
135
+ msgstr ""
136
+
137
+ #: ../../icegram.php:205
138
+ msgid "No, I will buy at full price later"
139
+ msgstr ""
140
+
141
+ #: ../../icegram.php:206
142
+ msgid "No, I don't like insider deals"
143
+ msgstr ""
144
+
145
+ #: ../../icegram.php:223
146
+ msgid "Begin installation"
147
+ msgstr ""
148
+
149
+ #: ../../icegram.php:223
150
+ msgid "No, I don't need it"
151
+ msgstr ""
152
+
153
+ #: ../../icegram.php:247
154
+ msgid "Free Add-ons, Proven Marketing Tricks and Updates"
155
+ msgstr ""
156
+
157
+ #: ../../icegram.php:252
158
+ msgid "Get add-ons and tips..."
159
+ msgstr ""
160
+
161
+ #: ../../icegram.php:343
162
+ msgid "Housekeeping"
163
+ msgstr ""
164
+
165
+ #: ../../icegram.php:347
166
+ msgid "Remove all Icegram shortcodes"
167
+ msgstr ""
168
+
169
+ #: ../../icegram.php:352
170
+ msgid "Remove all Icegram campaigns and messages"
171
+ msgstr ""
172
+
173
+ #: ../../icegram.php:356
174
+ msgid "Clean Up"
175
+ msgstr ""
176
+
177
+ #: ../../icegram.php:365
178
+ msgid ""
179
+ "You won't be able to recover this data once you proceed. Do you really want "
180
+ "to perform this action?"
181
+ msgstr ""
182
+
183
+ #: ../../icegram.php:380
184
+ msgid "Done!"
185
+ msgstr ""
186
+
187
+ #: ../../icegram.php:516
188
+ msgid "Welcome to Icegram"
189
+ msgstr ""
190
+
191
+ #: ../../icegram.php:517
192
+ msgid "Gallery"
193
+ msgstr ""
194
+
195
+ #: ../../icegram.php:519
196
+ msgid "Add-ons"
197
+ msgstr ""
198
+
199
+ #: ../../icegram.php:532
200
+ msgid "Docs & Support"
201
+ msgstr ""
202
+
203
+ #: ../../icegram.php:577
204
+ msgid ""
205
+ "Are you sure you want to delete this theme?\n"
206
+ "\n"
207
+ "Click 'Cancel' to go back, 'OK' to confirm the delete."
208
+ msgstr ""
209
+
210
+ #: ../../icegram.php:581
211
+ msgid "Add New Gallery Item"
212
+ msgstr ""
213
+
214
+ #: ../../icegram.php:582
215
+ msgid "Search Installed Gallery Item"
216
+ msgstr ""
217
+
218
+ #: ../../icegram.php:583
219
+ msgid "Search installed Gallery Item..."
220
+ msgstr ""
221
+
222
+ #: ../../icegram.php:584
223
+ #, php-format
224
+ msgid "Number of Gallery Item found: %d"
225
+ msgstr ""
226
+
227
+ #: ../../icegram.php:585
228
+ msgid "No Gallery Item found. Try a different search."
229
+ msgstr ""
230
+
231
+ #: ../../icegram.php:754
232
+ msgid "Powered by Icegram"
233
+ msgstr ""
234
+
235
+ #: ../../icegram.php:1164 ../../icegram.php:1170 ../../about-icegram.php:231
236
+ msgid "Campaigns"
237
+ msgstr ""
238
+
239
+ #: ../../icegram.php:1165
240
+ msgid "Campaign"
241
+ msgstr ""
242
+
243
+ #: ../../icegram.php:1166 ../../icegram.php:1167
244
+ msgid "Add New Campaign"
245
+ msgstr ""
246
+
247
+ #: ../../icegram.php:1168
248
+ msgid "Edit Campaign"
249
+ msgstr ""
250
+
251
+ #: ../../icegram.php:1169
252
+ msgid "New Campaign"
253
+ msgstr ""
254
+
255
+ #: ../../icegram.php:1171
256
+ msgid "View Campaign"
257
+ msgstr ""
258
+
259
+ #: ../../icegram.php:1172
260
+ msgid "Search Campaigns"
261
+ msgstr ""
262
+
263
+ #: ../../icegram.php:1173
264
+ msgid "No campaigns found"
265
+ msgstr ""
266
+
267
+ #: ../../icegram.php:1174
268
+ msgid "No campaigns found in Trash"
269
+ msgstr ""
270
+
271
+ #. #-#-#-#-# plugin.pot (Icegram 1.1) #-#-#-#-#
272
+ #. Plugin Name of the plugin/theme
273
+ #. #-#-#-#-# plugin.pot (Icegram 1.1) #-#-#-#-#
274
+ #. Author of the plugin/theme
275
+ #: ../../icegram.php:1176
276
+ msgid "Icegram"
277
+ msgstr ""
278
+
279
+ #: ../../icegram.php:1202 ../../icegram.php:1208 ../../icegram.php:1214 ../..
280
+ #: /about-icegram.php:200
281
+ msgid "Messages"
282
+ msgstr ""
283
+
284
+ #: ../../icegram.php:1203 ../../classes/class-icegram-campaign-admin.php:48 ../..
285
+ #: /classes/class-icegram-campaign-admin.php:65 ../../about-icegram.php:137
286
+ msgid "Message"
287
+ msgstr ""
288
+
289
+ #: ../../icegram.php:1204
290
+ msgid "Create New"
291
+ msgstr ""
292
+
293
+ #: ../../icegram.php:1205
294
+ msgid "Create New Message"
295
+ msgstr ""
296
+
297
+ #: ../../icegram.php:1206 ../../classes/class-icegram-campaign-admin.php:105 ../..
298
+ #: /classes/class-icegram-campaign-admin.php:512
299
+ msgid "Edit Message"
300
+ msgstr ""
301
+
302
+ #: ../../icegram.php:1207
303
+ msgid "New Message"
304
+ msgstr ""
305
+
306
+ #: ../../icegram.php:1209
307
+ msgid "View Message"
308
+ msgstr ""
309
+
310
+ #: ../../icegram.php:1210
311
+ msgid "Search Messages"
312
+ msgstr ""
313
+
314
+ #: ../../icegram.php:1211
315
+ msgid "No messages found"
316
+ msgstr ""
317
+
318
+ #: ../../icegram.php:1212
319
+ msgid "No messages found in Trash"
320
+ msgstr ""
321
+
322
+ #: ../../icegram.php:1648
323
+ msgid "Copy"
324
+ msgstr ""
325
+
326
+ #: ../../classes/class-icegram-campaign-admin.php:50 ../../about-icegram.php:245
327
+ msgid "Targeting Rules"
328
+ msgstr ""
329
+
330
+ #: ../../classes/class-icegram-campaign-admin.php:57
331
+ msgid "Search to add / Create new&hellip;"
332
+ msgstr ""
333
+
334
+ #: ../../classes/class-icegram-campaign-admin.php:60 ../../classes/class-icegram-
335
+ #: campaign-admin.php:449
336
+ msgid "Create new"
337
+ msgstr ""
338
+
339
+ #: ../../classes/class-icegram-campaign-admin.php:97 ../../classes/class-icegram-
340
+ #: campaign-admin.php:505
341
+ msgid "Give this message a name for your own reference"
342
+ msgstr ""
343
+
344
+ #: ../../classes/class-icegram-campaign-admin.php:102 ../../classes/class-icegram-
345
+ #: campaign-admin.php:509
346
+ msgid " sec"
347
+ msgstr ""
348
+
349
+ #: ../../classes/class-icegram-campaign-admin.php:106 ../../classes/class-icegram-
350
+ #: campaign-admin.php:513
351
+ msgid "Remove from Campaign"
352
+ msgstr ""
353
+
354
+ #: ../../classes/class-icegram-campaign-admin.php:124
355
+ msgid ""
356
+ "No messages yet. Use search / create bar above to add messages to this "
357
+ "campaign."
358
+ msgstr ""
359
+
360
+ #: ../../classes/class-icegram-campaign-admin.php:162
361
+ msgid "Where?"
362
+ msgstr ""
363
+
364
+ #: ../../classes/class-icegram-campaign-admin.php:165
365
+ msgid "Sitewide"
366
+ msgstr ""
367
+
368
+ #: ../../classes/class-icegram-campaign-admin.php:171
369
+ msgid "Select pages to exclude&hellip;"
370
+ msgstr ""
371
+
372
+ #: ../../classes/class-icegram-campaign-admin.php:186
373
+ msgid "Homepage"
374
+ msgstr ""
375
+
376
+ #: ../../classes/class-icegram-campaign-admin.php:193
377
+ msgid "Selected pages"
378
+ msgstr ""
379
+
380
+ #: ../../classes/class-icegram-campaign-admin.php:199
381
+ msgid "Select a page&hellip;"
382
+ msgstr ""
383
+
384
+ #: ../../classes/class-icegram-campaign-admin.php:214
385
+ msgid "Specific URLs on this site"
386
+ msgstr ""
387
+
388
+ #: ../../classes/class-icegram-campaign-admin.php:230
389
+ msgid " Add another"
390
+ msgstr ""
391
+
392
+ #: ../../classes/class-icegram-campaign-admin.php:239
393
+ #, php-format
394
+ msgid ""
395
+ "Additionally you can insert <code>[%s]</code> wherever you want to run this "
396
+ "campaign."
397
+ msgstr ""
398
+
399
+ #: ../../classes/class-icegram-campaign-admin.php:246
400
+ msgid "When?"
401
+ msgstr ""
402
+
403
+ #: ../../classes/class-icegram-campaign-admin.php:249
404
+ msgid "Always"
405
+ msgstr ""
406
+
407
+ #: ../../classes/class-icegram-campaign-admin.php:256
408
+ msgid "Schedule"
409
+ msgstr ""
410
+
411
+ #: ../../classes/class-icegram-campaign-admin.php:259
412
+ msgid "From&hellip;"
413
+ msgstr ""
414
+
415
+ #: ../../classes/class-icegram-campaign-admin.php:262
416
+ msgid "To&hellip;"
417
+ msgstr ""
418
+
419
+ #: ../../classes/class-icegram-campaign-admin.php:273
420
+ msgid "Device?"
421
+ msgstr ""
422
+
423
+ #: ../../classes/class-icegram-campaign-admin.php:274
424
+ msgid "Mobile / Smartphones"
425
+ msgstr ""
426
+
427
+ #: ../../classes/class-icegram-campaign-admin.php:278
428
+ msgid "Tablet"
429
+ msgstr ""
430
+
431
+ #: ../../classes/class-icegram-campaign-admin.php:282
432
+ msgid "Desktop / Laptop"
433
+ msgstr ""
434
+
435
+ #: ../../classes/class-icegram-campaign-admin.php:290
436
+ msgid "Who?"
437
+ msgstr ""
438
+
439
+ #: ../../classes/class-icegram-campaign-admin.php:293
440
+ msgid "All users"
441
+ msgstr ""
442
+
443
+ #: ../../classes/class-icegram-campaign-admin.php:300
444
+ msgid "Logged in users only"
445
+ msgstr ""
446
+
447
+ #: ../../classes/class-icegram-campaign-admin.php:319
448
+ msgid "Select a user role&hellip;"
449
+ msgstr ""
450
+
451
+ #: ../../classes/class-icegram-campaign-admin.php:335
452
+ msgid "Not Logged in users"
453
+ msgstr ""
454
+
455
+ #: ../../classes/class-icegram-campaign-admin.php:339 ../../classes/class-icegram-
456
+ #: campaign-admin.php:349
457
+ msgid "Current Session"
458
+ msgstr ""
459
+
460
+ #: ../../classes/class-icegram-campaign-admin.php:340 ../../classes/class-icegram-
461
+ #: campaign-admin.php:348
462
+ msgid "Never"
463
+ msgstr ""
464
+
465
+ #: ../../classes/class-icegram-campaign-admin.php:341 ../../classes/class-icegram-
466
+ #: campaign-admin.php:350
467
+ msgid "Today"
468
+ msgstr ""
469
+
470
+ #: ../../classes/class-icegram-campaign-admin.php:342 ../../classes/class-icegram-
471
+ #: campaign-admin.php:351
472
+ msgid "One week"
473
+ msgstr ""
474
+
475
+ #: ../../classes/class-icegram-campaign-admin.php:343 ../../classes/class-icegram-
476
+ #: campaign-admin.php:352
477
+ msgid "Two weeks"
478
+ msgstr ""
479
+
480
+ #: ../../classes/class-icegram-campaign-admin.php:344 ../../classes/class-icegram-
481
+ #: campaign-admin.php:353
482
+ msgid "One Month "
483
+ msgstr ""
484
+
485
+ #: ../../classes/class-icegram-campaign-admin.php:345 ../../classes/class-icegram-
486
+ #: campaign-admin.php:354
487
+ msgid "Three Months "
488
+ msgstr ""
489
+
490
+ #: ../../classes/class-icegram-campaign-admin.php:346 ../../classes/class-icegram-
491
+ #: campaign-admin.php:355
492
+ msgid "One year"
493
+ msgstr ""
494
+
495
+ #: ../../classes/class-icegram-campaign-admin.php:347 ../../classes/class-icegram-
496
+ #: campaign-admin.php:356
497
+ msgid "Two Years"
498
+ msgstr ""
499
+
500
+ #: ../../classes/class-icegram-campaign-admin.php:362
501
+ msgid "Retargeting"
502
+ msgstr ""
503
+
504
+ #: ../../classes/class-icegram-campaign-admin.php:365
505
+ msgid " Once shown, do NOT show this campaign again for "
506
+ msgstr ""
507
+
508
+ #: ../../classes/class-icegram-campaign-admin.php:381
509
+ msgid "Once CTA is clicked, do NOT show this campaign again for"
510
+ msgstr ""
511
+
512
+ #: ../../classes/class-icegram-campaign-admin.php:445
513
+ msgid "- - - - - - - - - - - - - - - - - - - - - - - - - -"
514
+ msgstr ""
515
+
516
+ #: ../../classes/class-icegram-campaign-admin.php:462 ../../classes/class-icegram-
517
+ #: message-admin.php:113 ../../classes/class-icegram-message-admin.php:556
518
+ msgid "Type"
519
+ msgstr ""
520
+
521
+ #: ../../classes/class-icegram-campaign-admin.php:463 ../../about-icegram.php:125
522
+ msgid "Name"
523
+ msgstr ""
524
+
525
+ #: ../../classes/class-icegram-campaign-admin.php:464
526
+ msgid "Show after"
527
+ msgstr ""
528
+
529
+ #: ../../classes/class-icegram-campaign-admin.php:465
530
+ msgid "Actions"
531
+ msgstr ""
532
+
533
+ #: ../../classes/class-icegram-campaign-admin.php:671 ../../classes/class-icegram-
534
+ #: message-admin.php:753
535
+ msgid "Duplicate"
536
+ msgstr ""
537
+
538
+ #: ../../classes/class-icegram-message-admin.php:41
539
+ msgid "Message Settings"
540
+ msgstr ""
541
+
542
+ #: ../../classes/class-icegram-message-admin.php:130 ../../classes/class-icegram-
543
+ #: message-admin.php:557
544
+ msgid "Theme"
545
+ msgstr ""
546
+
547
+ #: ../../classes/class-icegram-message-admin.php:147
548
+ msgid "Animation"
549
+ msgstr ""
550
+
551
+ #: ../../classes/class-icegram-message-admin.php:162
552
+ msgid "Headline"
553
+ msgstr ""
554
+
555
+ #: ../../classes/class-icegram-message-admin.php:163
556
+ msgid ""
557
+ "Shown with highest prominence. Click on idea button on right to get a new "
558
+ "headline."
559
+ msgstr ""
560
+
561
+ #: ../../classes/class-icegram-message-admin.php:169
562
+ msgid "Give Me Another Headline"
563
+ msgstr ""
564
+
565
+ #: ../../classes/class-icegram-message-admin.php:175
566
+ msgid "Icon / Avatar Image"
567
+ msgstr ""
568
+
569
+ #: ../../classes/class-icegram-message-admin.php:176
570
+ msgid "This image will appear in message content."
571
+ msgstr ""
572
+
573
+ #: ../../classes/class-icegram-message-admin.php:179
574
+ msgid "Upload / Select an image"
575
+ msgstr ""
576
+
577
+ #: ../../classes/class-icegram-message-admin.php:179
578
+ msgid "Upload / Select Image"
579
+ msgstr ""
580
+
581
+ #: ../../classes/class-icegram-message-admin.php:195
582
+ msgid "Message Body"
583
+ msgstr ""
584
+
585
+ #: ../../classes/class-icegram-message-admin.php:226
586
+ msgid "Form"
587
+ msgstr ""
588
+
589
+ #: ../../classes/class-icegram-message-admin.php:227
590
+ msgid "Use Opt-in / Subscription / Lead capture form"
591
+ msgstr ""
592
+
593
+ #: ../../classes/class-icegram-message-admin.php:249 ../../classes/class-icegram-
594
+ #: message-admin.php:251
595
+ msgid "Left"
596
+ msgstr ""
597
+
598
+ #: ../../classes/class-icegram-message-admin.php:256 ../../classes/class-icegram-
599
+ #: message-admin.php:258
600
+ msgid "Right"
601
+ msgstr ""
602
+
603
+ #: ../../classes/class-icegram-message-admin.php:263 ../../classes/class-icegram-
604
+ #: message-admin.php:265
605
+ msgid "Bottom"
606
+ msgstr ""
607
+
608
+ #: ../../classes/class-icegram-message-admin.php:274 ../../classes/class-icegram-
609
+ #: message-admin.php:276
610
+ msgid "Inline"
611
+ msgstr ""
612
+
613
+ #: ../../classes/class-icegram-message-admin.php:286
614
+ msgid "Background Color"
615
+ msgstr ""
616
+
617
+ #: ../../classes/class-icegram-message-admin.php:287
618
+ msgid "Text Color"
619
+ msgstr ""
620
+
621
+ #: ../../classes/class-icegram-message-admin.php:298
622
+ msgid "Text / HTML to show before the form"
623
+ msgstr ""
624
+
625
+ #: ../../classes/class-icegram-message-admin.php:304
626
+ msgid "Add form embed code"
627
+ msgstr ""
628
+
629
+ #: ../../classes/class-icegram-message-admin.php:304
630
+ msgid " or easily embed using "
631
+ msgstr ""
632
+
633
+ #: ../../classes/class-icegram-message-admin.php:308
634
+ msgid "Use Rainmaker form "
635
+ msgstr ""
636
+
637
+ #: ../../classes/class-icegram-message-admin.php:310
638
+ msgid "Select form "
639
+ msgstr ""
640
+
641
+ #: ../../classes/class-icegram-message-admin.php:314
642
+ msgid " or add "
643
+ msgstr ""
644
+
645
+ #: ../../classes/class-icegram-message-admin.php:314
646
+ msgid "form embed code"
647
+ msgstr ""
648
+
649
+ #: ../../classes/class-icegram-message-admin.php:322
650
+ msgid "Paste HTML / shortcode of your form here..."
651
+ msgstr ""
652
+
653
+ #: ../../classes/class-icegram-message-admin.php:326
654
+ msgid "Show labels above fields"
655
+ msgstr ""
656
+
657
+ #: ../../classes/class-icegram-message-admin.php:331
658
+ msgid "Text / HTML to show after the form"
659
+ msgstr ""
660
+
661
+ #: ../../classes/class-icegram-message-admin.php:334
662
+ msgid ""
663
+ "Insert <code>[ig_form]</code> where you want to show this form in message "
664
+ "body."
665
+ msgstr ""
666
+
667
+ #: ../../classes/class-icegram-message-admin.php:341
668
+ msgid "Button Label"
669
+ msgstr ""
670
+
671
+ #: ../../classes/class-icegram-message-admin.php:342
672
+ msgid "Your call to action text. Something unusual will increase conversions."
673
+ msgstr ""
674
+
675
+ #: ../../classes/class-icegram-message-admin.php:352
676
+ msgid "Target Link"
677
+ msgstr ""
678
+
679
+ #: ../../classes/class-icegram-message-admin.php:353
680
+ msgid "Enter destination URL here. Clicking will redirect to this link."
681
+ msgstr ""
682
+
683
+ #: ../../classes/class-icegram-message-admin.php:376
684
+ msgid "Body"
685
+ msgstr ""
686
+
687
+ #: ../../classes/class-icegram-message-admin.php:377 ../../classes/class-icegram-
688
+ #: message-admin.php:383
689
+ msgid "Background"
690
+ msgstr ""
691
+
692
+ #: ../../classes/class-icegram-message-admin.php:378 ../../classes/class-icegram-
693
+ #: message-admin.php:384
694
+ msgid "Text"
695
+ msgstr ""
696
+
697
+ #: ../../classes/class-icegram-message-admin.php:382
698
+ msgid "Button"
699
+ msgstr ""
700
+
701
+ #: ../../classes/class-icegram-message-admin.php:389
702
+ msgid "Colors"
703
+ msgstr ""
704
+
705
+ #: ../../classes/class-icegram-message-admin.php:390
706
+ msgid "Use theme's default colors"
707
+ msgstr ""
708
+
709
+ #: ../../classes/class-icegram-message-admin.php:396
710
+ msgid "Position"
711
+ msgstr ""
712
+
713
+ #: ../../classes/class-icegram-message-admin.php:452
714
+ msgid "Custom Code"
715
+ msgstr ""
716
+
717
+ #: ../../classes/class-icegram-message-admin.php:453
718
+ msgid "Add custom code for this message"
719
+ msgstr ""
720
+
721
+ #: ../../classes/class-icegram-message-admin.php:457
722
+ msgid "CSS"
723
+ msgstr ""
724
+
725
+ #: ../../classes/class-icegram-message-admin.php:463
726
+ msgid "JS"
727
+ msgstr ""
728
+
729
+ #: ../../classes/class-icegram-message-admin.php:466
730
+ msgid "Add Custom javaScript for this message here..."
731
+ msgstr ""
732
+
733
+ #: ../../classes/class-icegram-message-admin.php:486
734
+ #, php-format
735
+ msgid "You may add <code>[%s]</code> where you want to show this message."
736
+ msgstr ""
737
+
738
+ #: ../../classes/class-icegram-message-admin.php:558
739
+ msgid "Thumbnail"
740
+ msgstr ""
741
+
742
+ #: ../../classes/class-icegram-message-admin.php:701
743
+ msgid "Here Is A Method That Is Helping ____ To ____"
744
+ msgstr ""
745
+
746
+ #: ../../classes/class-icegram-message-admin.php:702
747
+ msgid "__ Little Known Ways To ____"
748
+ msgstr ""
749
+
750
+ #: ../../classes/class-icegram-message-admin.php:703
751
+ msgid "Get Rid Of ____ Once And For All"
752
+ msgstr ""
753
+
754
+ #: ../../classes/class-icegram-message-admin.php:704
755
+ msgid "How To ____ So You Can ____"
756
+ msgstr ""
757
+
758
+ #: ../../classes/class-icegram-message-admin.php:705
759
+ msgid "They Didn't Think I Could ____, But I Did"
760
+ msgstr ""
761
+
762
+ #: ../../classes/class-icegram-message-admin.php:706
763
+ msgid "How ____ Made Me ____"
764
+ msgstr ""
765
+
766
+ #: ../../classes/class-icegram-message-admin.php:707
767
+ msgid "Are You ____ ?"
768
+ msgstr ""
769
+
770
+ #: ../../classes/class-icegram-message-admin.php:708
771
+ msgid "Warning: ____ !"
772
+ msgstr ""
773
+
774
+ #: ../../classes/class-icegram-message-admin.php:709
775
+ msgid "Do You Make These Mistakes With ____ ?"
776
+ msgstr ""
777
+
778
+ #: ../../classes/class-icegram-message-admin.php:710
779
+ msgid "7 Ways To ____"
780
+ msgstr ""
781
+
782
+ #: ../../classes/class-icegram-message-admin.php:711
783
+ msgid "If You're ____, You Can ____"
784
+ msgstr ""
785
+
786
+ #: ../../classes/class-icegram-message-admin.php:712
787
+ msgid "Turn your ____ into a ____"
788
+ msgstr ""
789
+
790
+ #: ../../classes/class-icegram-message-admin.php:713
791
+ msgid "Want To Be A ____?"
792
+ msgstr ""
793
+
794
+ #: ../../classes/class-icegram-message-admin.php:714
795
+ msgid "The Ugly Truth About Your Beautiful ____"
796
+ msgstr ""
797
+
798
+ #: ../../classes/class-icegram-message-admin.php:715
799
+ msgid "The Secret to ____ Is Simply ____!"
800
+ msgstr ""
801
+
802
+ #: ../../classes/class-icegram-message-admin.php:716
803
+ msgid "The Quickest Way I Know To ____"
804
+ msgstr ""
805
+
806
+ #: ../../classes/class-icegram-message-admin.php:717
807
+ msgid "The Lazy Man's Way To ____"
808
+ msgstr ""
809
+
810
+ #: ../../classes/class-icegram-message-admin.php:718
811
+ msgid "The Amazing Story Of ____ That Requires So Little Of ____ You Could ____"
812
+ msgstr ""
813
+
814
+ #: ../../classes/class-icegram-message-admin.php:719
815
+ msgid "The Amazing Secret Of The ____ Genius Who Is Afraid Of ____"
816
+ msgstr ""
817
+
818
+ #: ../../classes/class-icegram-message-admin.php:720
819
+ msgid "The 10 Wackiest Ideas That ____... And How You Can Too!"
820
+ msgstr ""
821
+
822
+ #: ../../classes/class-icegram-message-admin.php:721
823
+ msgid "The Inside Secrets To ____ With Crazy, Outlandish And Outrageous ____"
824
+ msgstr ""
825
+
826
+ #: ../../classes/class-icegram-message-admin.php:722
827
+ msgid "____ Like A ____"
828
+ msgstr ""
829
+
830
+ #: ../../classes/class-icegram-message-admin.php:723
831
+ msgid "Remember When You Could Have ____, And You Didn't?"
832
+ msgstr ""
833
+
834
+ #: ../../classes/class-icegram-message-admin.php:724
835
+ msgid "Is The ____ Worth $x To You?"
836
+ msgstr ""
837
+
838
+ #: ../../classes/class-icegram-message-admin.php:725
839
+ msgid "Increase your ____, reduce ____, maintain ____ and ____ with ____"
840
+ msgstr ""
841
+
842
+ #: ../../classes/class-icegram-message-admin.php:726
843
+ msgid "If You Can ____ You Can ____"
844
+ msgstr ""
845
+
846
+ #: ../../classes/class-icegram-message-admin.php:727
847
+ msgid "I Discovered How To ____... Now I'm Revealing My Secret"
848
+ msgstr ""
849
+
850
+ #: ../../classes/class-icegram-message-admin.php:728
851
+ msgid "How To Turn Your ____ Into The Most ____"
852
+ msgstr ""
853
+
854
+ #: ../../classes/class-icegram-message-admin.php:729
855
+ msgid "How To Take The Headache Out Of ____"
856
+ msgstr ""
857
+
858
+ #: ../../classes/class-icegram-message-admin.php:730
859
+ msgid "How To ____ ... Legally"
860
+ msgstr ""
861
+
862
+ #: ../../classes/class-icegram-message-admin.php:731
863
+ msgid "How To ____ That ____"
864
+ msgstr ""
865
+
866
+ #: ../../classes/class-icegram-message-admin.php:732
867
+ msgid "How To Discover The ____ That Lies Hidden In Your ____"
868
+ msgstr ""
869
+
870
+ #: ../../classes/class-icegram-message-admin.php:733
871
+ msgid "How To ____ Even When Your Not ____"
872
+ msgstr ""
873
+
874
+ #: ../../classes/class-icegram-message-admin.php:734
875
+ msgid "____ With No ____!"
876
+ msgstr ""
877
+
878
+ #: ../../classes/class-icegram-message-admin.php:735
879
+ msgid "Greatest Goldmine of ____ Ever Jammed Into One Big ____"
880
+ msgstr ""
881
+
882
+ #: ../../classes/class-icegram-message-admin.php:736
883
+ msgid "Free ____ Tells How To Get Better ____"
884
+ msgstr ""
885
+
886
+ #: ../../classes/class-icegram-message-admin.php:737
887
+ msgid ""
888
+ "FREE ____ Worth $____ for the first 100 People to take Advantage of this "
889
+ "Offer"
890
+ msgstr ""
891
+
892
+ #: ../../classes/class-icegram-message-admin.php:738
893
+ msgid "Don't Try This With Any Other ____"
894
+ msgstr ""
895
+
896
+ #: ../../classes/class-icegram-message-admin.php:739
897
+ msgid "Do You Honestly Want To ____?"
898
+ msgstr ""
899
+
900
+ #: ../../classes/class-icegram-message-admin.php:740
901
+ msgid "Discover The Magic ____ That Will Bring You ____ & ____!"
902
+ msgstr ""
903
+
904
+ #: ../../classes/class-icegram-message-admin.php:741
905
+ msgid "____ Man Reveals A Short-Cut To ____"
906
+ msgstr ""
907
+
908
+ #: ../../classes/class-icegram-message-admin.php:742
909
+ msgid "Confessions Of A ____"
910
+ msgstr ""
911
+
912
+ #: ../../classes/class-icegram-message-admin.php:743
913
+ msgid "Are You Ready To ____?"
914
+ msgstr ""
915
+
916
+ #: ../../classes/class-icegram-message-admin.php:744
917
+ msgid "An Open Letter To Everyone Who ____ More Than ____ Per ____"
918
+ msgstr ""
919
+
920
+ #: ../../classes/class-icegram-message-admin.php:745
921
+ msgid "An Amazing ____ You Can Carry In Your ____"
922
+ msgstr ""
923
+
924
+ #: ../../classes/class-icegram-message-admin.php:746
925
+ msgid "21 Secret ____ that will ____... NOW!"
926
+ msgstr ""
927
+
928
+ #: ../../addons.php:54
929
+ msgid "Icegram Add-ons"
930
+ msgstr ""
931
+
932
+ #: ../../addons.php:58
933
+ msgid "All"
934
+ msgstr ""
935
+
936
+ #: ../../addons.php:59
937
+ msgid "Installed"
938
+ msgstr ""
939
+
940
+ #: ../../addons.php:60
941
+ msgid "Message Type"
942
+ msgstr ""
943
+
944
+ #: ../../addons.php:61
945
+ msgid "Themes"
946
+ msgstr ""
947
+
948
+ #: ../../addons.php:62
949
+ msgid "Targeting"
950
+ msgstr ""
951
+
952
+ #: ../../addons.php:63
953
+ msgid "Reporting"
954
+ msgstr ""
955
+
956
+ #: ../../addons.php:84
957
+ msgid "Get This Addon"
958
+ msgstr ""
959
+
960
+ #: ../../addons.php:87
961
+ msgid "Already Installed"
962
+ msgstr ""
963
+
964
+ #: ../../addons.php:99
965
+ msgid "Sorry! No Add-ons available currently."
966
+ msgstr ""
967
+
968
+ #: ../../about-icegram.php:129
969
+ msgid "E-mail"
970
+ msgstr ""
971
+
972
+ #: ../../about-icegram.php:133
973
+ msgid "Subject"
974
+ msgstr ""
975
+
976
+ #: ../../about-icegram.php:167
977
+ msgid "Welcome to Icegram."
978
+ msgstr ""
979
+
980
+ #: ../../about-icegram.php:168
981
+ msgid " Your sample campaign is ready!"
982
+ msgstr ""
983
+
984
+ #: ../../about-icegram.php:176
985
+ msgid "Preview Your First Campaign"
986
+ msgstr ""
987
+
988
+ #: ../../about-icegram.php:177
989
+ msgid "OR"
990
+ msgstr ""
991
+
992
+ #: ../../about-icegram.php:178
993
+ msgid "Edit & Publish it."
994
+ msgstr ""
995
+
996
+ #: ../../about-icegram.php:185
997
+ msgid "Questions? Need Help?"
998
+ msgstr ""
999
+
1000
+ #: ../../about-icegram.php:186 ../../about-icegram.php:293
1001
+ msgid "Contact Us"
1002
+ msgstr ""
1003
+
1004
+ #: ../../about-icegram.php:194
1005
+ msgid ""
1006
+ "Do read Icegram's core concepts below to understand how you can use Icegram "
1007
+ "to "
1008
+ msgstr ""
1009
+
1010
+ #: ../../about-icegram.php:195
1011
+ msgid "inspire, convert and engage"
1012
+ msgstr ""
1013
+
1014
+ #: ../../about-icegram.php:196
1015
+ msgid "your audience."
1016
+ msgstr ""
1017
+
1018
+ #: ../../about-icegram.php:202
1019
+ msgid "A 'Message' is a communication you want to deliver to your audience."
1020
+ msgstr ""
1021
+
1022
+ #: ../../about-icegram.php:203
1023
+ msgid "And Icegram comes with not one, but four message types."
1024
+ msgstr ""
1025
+
1026
+ #: ../../about-icegram.php:204
1027
+ msgid ""
1028
+ "Different message types look and behave differently, but they all have many "
1029
+ "common characteristics. For instance, most message types will allow you to "
1030
+ "set a headline, a body text, label for the ‘call to action’ button, a link "
1031
+ "for that button, theme and styling options, animation effect and position on "
1032
+ "screen where that message should show."
1033
+ msgstr ""
1034
+
1035
+ #: ../../about-icegram.php:208
1036
+ msgid "Action Bar"
1037
+ msgstr ""
1038
+
1039
+ #: ../../about-icegram.php:210
1040
+ msgid ""
1041
+ "An action bar is a proven attention grabber. It shows up as a solid bar "
1042
+ "either at top or bottom. Use it for your most important messages or time "
1043
+ "sensitive announcements. Put longer content in it and it acts like a "
1044
+ "collapsible panel!"
1045
+ msgstr ""
1046
+
1047
+ #: ../../about-icegram.php:211
1048
+ msgid "Messenger"
1049
+ msgstr ""
1050
+
1051
+ #: ../../about-icegram.php:213
1052
+ msgid ""
1053
+ "A messenger is best used to invoke interest while your visitor is reading "
1054
+ "your content. Users perceive it as something new, important and urgent and "
1055
+ "are highly likely to click on it."
1056
+ msgstr ""
1057
+
1058
+ #: ../../about-icegram.php:217
1059
+ msgid "Toast Notification"
1060
+ msgstr ""
1061
+
1062
+ #: ../../about-icegram.php:219
1063
+ msgid ""
1064
+ "Want to alert your visitor about some news, an update from your blog, a "
1065
+ "social proof or an offer? Use Icegram’s unique toast notification, it will "
1066
+ "catch their attention, let them click on the message, and disappear after a "
1067
+ "while."
1068
+ msgstr ""
1069
+
1070
+ #: ../../about-icegram.php:220
1071
+ msgid "Popup"
1072
+ msgstr ""
1073
+
1074
+ #: ../../about-icegram.php:222
1075
+ msgid ""
1076
+ "Lightbox popup windows are most widely used for lead capture, promotions and "
1077
+ "additional content display. Ask visitors to sign up to your newsletter, or "
1078
+ "like you on social networks, or tell them about a special offer..."
1079
+ msgstr ""
1080
+
1081
+ #: ../../about-icegram.php:233
1082
+ msgid "Campaign = Messages + Rules"
1083
+ msgstr ""
1084
+
1085
+ #: ../../about-icegram.php:234
1086
+ msgid ""
1087
+ "A campaign allows sequencing multiple messages and defining targeting rules. "
1088
+ "Create different campaigns for different marketing goals. Icegram supports "
1089
+ "showing multiple campaigns on any page."
1090
+ msgstr ""
1091
+
1092
+ #: ../../about-icegram.php:235
1093
+ msgid ""
1094
+ "You can always preview your campaign to ensure campaign works the way you "
1095
+ "want, before making it live."
1096
+ msgstr ""
1097
+
1098
+ #: ../../about-icegram.php:239
1099
+ msgid "Multiple Messages & Sequencing"
1100
+ msgstr ""
1101
+
1102
+ #: ../../about-icegram.php:241
1103
+ msgid ""
1104
+ "Add one or as many messages to a campaign as you want. Also choose the "
1105
+ "number of seconds after which each message should show up. Showing multiple "
1106
+ "messages for same goal, but with slightly different content / presentation, "
1107
+ "greatly improves conversions."
1108
+ msgstr ""
1109
+
1110
+ #: ../../about-icegram.php:247
1111
+ msgid ""
1112
+ "You can control who sees a campaign – and on what device, which pages does "
1113
+ "it show on, and what time period will it stay active for. You can run "
1114
+ "different campaigns with different rules to maximize engagement."
1115
+ msgstr ""
1116
+
1117
+ #: ../../about-icegram.php:256
1118
+ msgid "FAQ / Common Problems"
1119
+ msgstr ""
1120
+
1121
+ #: ../../about-icegram.php:259
1122
+ msgid "Messages look broken / formatting is weird..."
1123
+ msgstr ""
1124
+
1125
+ #: ../../about-icegram.php:260
1126
+ msgid ""
1127
+ "This is most likely due to CSS conflicts with current theme. We suggest "
1128
+ "using simple formatting for messages. You can also write custom CSS in your "
1129
+ "theme to fix any problems."
1130
+ msgstr ""
1131
+
1132
+ #: ../../about-icegram.php:262
1133
+ msgid "Extra Line Breaks / Paragraphs in messages..."
1134
+ msgstr ""
1135
+
1136
+ #: ../../about-icegram.php:263
1137
+ msgid ""
1138
+ "Go to HTML mode in content editor and pull your custom HTML code all "
1139
+ "together in one line. Don't leave blank lines between two tags. That should "
1140
+ "fix it."
1141
+ msgstr ""
1142
+
1143
+ #: ../../about-icegram.php:265
1144
+ msgid "How do I add custom CSS for messages?"
1145
+ msgstr ""
1146
+
1147
+ #: ../../about-icegram.php:266
1148
+ msgid ""
1149
+ "You can use custom CSS/JS inline in your message HTML. You can also use your "
1150
+ "theme's custom JS / CSS feature to add your changes."
1151
+ msgstr ""
1152
+
1153
+ #: ../../about-icegram.php:268
1154
+ msgid "Optin Forms / Mailing service integration..."
1155
+ msgstr ""
1156
+
1157
+ #: ../../about-icegram.php:269
1158
+ msgid ""
1159
+ "You can embed any optin / subscription form to your Icegram messages using "
1160
+ "'Embed Form' button above text editor. Paste in form HTML code and let "
1161
+ "Icegram clean it up! You may even use a shortcode if you are using a WP "
1162
+ "plugin from your newsletter / lead capture service."
1163
+ msgstr ""
1164
+
1165
+ #: ../../about-icegram.php:271
1166
+ msgid "How many messages should I show on a page?"
1167
+ msgstr ""
1168
+
1169
+ #: ../../about-icegram.php:272
1170
+ msgid ""
1171
+ "While Icegram provides you lots of different message types and ability to "
1172
+ "add multiple messages to a campaign, we discourage you to go overboard. "
1173
+ "We've observed two messages on a page work well, but YMMV!"
1174
+ msgstr ""
1175
+
1176
+ #: ../../about-icegram.php:278
1177
+ msgid "Preview does not work / not refreshing..."
1178
+ msgstr ""
1179
+
1180
+ #: ../../about-icegram.php:279
1181
+ msgid ""
1182
+ "Doing a browser refresh while previewing will not show your most recent "
1183
+ "changes. Click 'Preview' button to see a preview with your latest changes."
1184
+ msgstr ""
1185
+
1186
+ #: ../../about-icegram.php:281
1187
+ msgid "Can I use shortcodes in a message?"
1188
+ msgstr ""
1189
+
1190
+ #: ../../about-icegram.php:282
1191
+ msgid ""
1192
+ "Yes! Messages support shortcodes. You may need to adjust CSS so the "
1193
+ "shortcode output looks good in your message."
1194
+ msgstr ""
1195
+
1196
+ #: ../../about-icegram.php:284
1197
+ msgid "WPML / Multilingual usage..."
1198
+ msgstr ""
1199
+
1200
+ #: ../../about-icegram.php:285
1201
+ msgid ""
1202
+ "Go to <code>Messages</code> from Icegram menu. Edit a message and translate "
1203
+ "it like any other post. Icegram will show translated message where possible. "
1204
+ "Choose <code>All posts</code> under WPML Language setting - Blog Posts to "
1205
+ "display, to fall back to default language messages."
1206
+ msgstr ""
1207
+
1208
+ #: ../../about-icegram.php:289
1209
+ msgid "I can't find a way to do X..."
1210
+ msgstr ""
1211
+
1212
+ #: ../../about-icegram.php:290
1213
+ msgid ""
1214
+ "Icegram is actively developed. If you can't find your favorite feature (or "
1215
+ "have a suggestion) contact us. We'd love to hear from you."
1216
+ msgstr ""
1217
+
1218
+ #: ../../about-icegram.php:292
1219
+ msgid "I'm facing a problem and can't find a way out..."
1220
+ msgstr ""
1221
+
1222
+ #: ../../about-icegram.php:293
1223
+ msgid ""
1224
+ ", provide as much detail of the problem as you can. We will try to solve the "
1225
+ "problem ASAP."
1226
+ msgstr ""
1227
+
1228
+ #: ../../settings.php:19
1229
+ msgid "Icegram Settings"
1230
+ msgstr ""
1231
+
1232
+ #: ../../settings.php:23
1233
+ msgid "Share Icegram"
1234
+ msgstr ""
1235
+
1236
+ #: ../../settings.php:27
1237
+ msgid "Show \"Powered by\" link"
1238
+ msgstr ""
1239
+
1240
+ #: ../../settings.php:32
1241
+ msgid "Cache Friendly?"
1242
+ msgstr ""
1243
+
1244
+ #: ../../settings.php:36
1245
+ msgid ""
1246
+ "Turn on \"Lazy Load\" - load Icegram scripts and messages after page load to "
1247
+ "avoid caching problems."
1248
+ msgstr ""
readme.txt CHANGED
@@ -1,110 +1,164 @@
1
- === Icegram - Popups, Optins, CTAs & lot more... ===
2
  Contributors: icegram, storeapps, niravmehta, putler
3
  Donate link: http://www.icegram.com/
4
  Tags: popup, window, hellobar, optin, lead capture, marketing, form, notification, messenger, targeting, monster, ninja ,wordpress lead generation, wordpress lightbox optin, wordpress lightbox optin form, wordpress lightbox optins, wordpress mobile optin forms, wordpress mobile popup, wordpress mobile popups, wordpress optin form, wordpress overlay popup, wordpress popup, wordpress popup form, wordpress popup plugin, wordpress popup solution, wordpress popups , popups, subscribe, wp popups, optin bars, action grabber, constant contact, toast notifications, leads, lists, builder, action bar, floating bar, footer bar, hellobar alternative, pop over, Popup plugin, aweber, campaign monitor, constant contact, email list, exit-intent, getresponse, analytics, Hubspot, icontact, infusionsoft, newsletter, Mailing list pop-up, retargeting, Animation,Popups with Animation ,Responsive Popup, split testing, AB testing
5
  Requires at least: 3.9
6
  Tested up to: 4.5.3
7
- Stable tag: 1.9.20.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
- The best WordPress plugin for beautiful popups, hellobars, slide-ins & notifications. Capture leads, Instant results and awesome support.
12
 
13
  == Description ==
14
 
15
- The Ultimate Plugin To Capture Leads And Connect With Your Audience
 
 
16
 
17
- **Decrease bounce rates, increase engagement and grab your visitors' attention with this unique marketing plugin.**
18
 
19
- Most similar plugins are paid and still offer a lot less. Icegram is full featured, easy to use, and still free!
 
20
 
21
- = Includes: =
22
- * Popups, header / footer bars, toast notifications, messengers - everything!
23
- * Powerful targeting rules
24
- * All-in-one, fully integrated WordPress plugin
25
- * Compatible with auto responders, other plugins and themes
26
- * Unique headline generator for ideas
27
- * No forceful display of Icegram branding in your messages!
28
- * And a lot more...
29
 
30
- [youtube http://www.youtube.com/watch?v=89N0SXDDvOI]
 
31
 
32
- = Proven to Engage & Convert =
33
- Icegram is based on time tested marketing and behavior science principles. Icegram messages have given **phenomenal 60% click through rates** to people and they never fail to deliver. When you use Icegram, you don't need to learn all those marketing secrets.. Icegram does that for you...
34
 
35
- = Zero Learning Curve =
36
- Most other plugins are full of complicated screens and options. Icegram was designed to be easy from the ground up. You can manage campaigns and messages from a single screen. And most importantly, you won't have to call a tech friend to understand a thing!
37
 
38
- = Beautiful, Customizable Theme Designs =
39
- Icegram comes with 20 beautiful themes. They integrate well with your favorite WordPress theme and do not slow down your site. When you want to customize override styling with custom CSS.
 
 
40
 
41
- = Complete Control Over Message Content & Delivery =
42
- Determine where, when and how to show on-site marketing messages to visitors. Use fine grained targeting rules for niche segmentation. Plus, Icegram gives you the fully powered WordPress editor for your content. You can use any layout and formatting for content within each message container.
43
 
44
- * Continue using powerful **short codes your theme provides** for layout and styling
45
- * Add **HD Videos / Audio or any other multimedia** content
46
- * Embed subscription forms from **mailing list service of your choice**
47
- * Use short codes **other plugins** provide – embed forms, widgets, social sharing buttons, twitter feed…
48
- * Add **inline JavaScript or CSS** for customizations
49
- * Target campaigns on different pages - with Wildcard URLs, page selection and more...
50
- * **Full HTML** editing capability for maximum control
51
 
52
- = Works with Multi Site, WPML and even non WordPress sites =
53
- Icegram and its addons are WordPress Multisite compatible. Each site becomes an independent Icegram installation.
54
 
55
- Icegram is also *WPML Compatible*. You can show multilingual messages in different languages as you wish.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
- And, as a matter of fact you can show Icegram campaign and messages on non WordPress sites too! Use the premium Icegram Remote addon, and you can show Icegram campaigns anywhere.
 
58
 
59
- = Icegram is a Good Neighbour =
60
- Icegram works with most WordPress plugins and themes. It can integrate with all mailing list / newsletter / optin / CRM / form services that provide embeddable HTML form too.
61
 
62
- Icegram works with MailChimp, Aweber, Constant Contact, MadMimi, Campaign Monitor, Get Response, Klawoo, iContact, e-GOI, SendPress, MailPoet, Infusion Soft, Email Buddy, My Mail and all others..
63
 
64
- Similarly, you can embed forms in Icegram messages using shortcodes / HTML from Gravity Forms, Contact Form 7, Ninja Forms, JetPack, Formidable Pro, Inbound Now, Quform, Fast Secure Form, Visual Form Builder and many others...
65
 
66
- Icegram campaigns and messages can be shown anywhere in WordPress using shortcodes. And Icegram has a fairly extensive API for creating new message types, themes and addons.
67
 
 
 
 
 
68
 
69
- = Do More with Addons =
70
- Icegram is an open platform. The core is already powerful, but you can do even more with free and premium addons.
71
 
72
- * Analytics - track impressions, click throughs and conversions with a free addon
73
- * Themes Pack 2014 - additional 17 themes as a bonus
74
- * Exit Intent, Scroll Position, Time Delay, JavaScript, Another Message... Show and Hide messages based on user behavior
75
- * Geo Targeting - based on visitor's location - continent, country, city, region or IP address
76
- * CTA Actions - Open link, in new window, submit form, AJAX submission, show another message, hide this message... New actions for CTA buttons
77
- * Remote - Show Icegram messages on any site - WordPress or otherwise
78
- * Additional message types - Overlay, Inline, Sidebars, Interstitial, Ribbons, Stickies, Badges...
79
 
80
- = Ok, there is even more =
81
- There is no end to Icegram's awesomeness!!
82
 
83
- * Unlimited campaigns
84
- * Unlimited messages
85
- * Breakthrough conversions
86
- * Smart, Responsive template designs
87
- * Display animations
88
- * Time delayed message display
89
- * Multiple display positions - top, middle, bottom, left, right, center...
90
- * Reuse messages across campaigns
91
- * Automatic Updates
92
- * Professional Support
93
 
94
- = Help Fellow WordPressers by Writing a Review =
95
 
96
- If you like Icegram, please leave a five star review on WordPress. That helps fellow website owners assess Icegram easily and benefit from it!
 
 
 
97
 
 
 
98
 
99
- = Website, Demos, Shop, Social, Love =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  * [Official Icegram website](http://www.icegram.com/)
102
- * **[Dozens of Demos](http://www.icegram.com/demos/)** of different Icegram messages
103
- * **[Shop for free and paid add-ons](http://www.icegram.com/addons/)**
104
  * [A few customer reviews](http://www.icegram.com/customers/)
105
  * Follow Icegram on Twitter [@icegram](https://twitter.com/icegram/)
106
 
107
-
108
  == Installation ==
109
 
110
  1. Unzip and upload contents of the plugin to your /wp-content/plugins/ directory
@@ -149,10 +203,15 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
149
 
150
  == Screenshots ==
151
  1. Different Icegram messages
152
- 2. The Icegram workflow
153
- 3. Editing an Icegram campaign - add multiple messages, edit them, targeting rules, full HTML editor, themes and more
 
 
154
 
155
  == Upgrade Notice ==
 
 
 
156
  = 1.9.20.1 =
157
  Bug Fix release
158
 
@@ -293,6 +352,9 @@ Initial Release
293
 
294
 
295
  == Changelog ==
 
 
 
296
  = 1.9.20.1 =
297
  * Fix: Solve "Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')'"
298
 
1
+ === All in One Email Optin, Popup, Subscription and Traffic Conversion Plugin - Icegram ===
2
  Contributors: icegram, storeapps, niravmehta, putler
3
  Donate link: http://www.icegram.com/
4
  Tags: popup, window, hellobar, optin, lead capture, marketing, form, notification, messenger, targeting, monster, ninja ,wordpress lead generation, wordpress lightbox optin, wordpress lightbox optin form, wordpress lightbox optins, wordpress mobile optin forms, wordpress mobile popup, wordpress mobile popups, wordpress optin form, wordpress overlay popup, wordpress popup, wordpress popup form, wordpress popup plugin, wordpress popup solution, wordpress popups , popups, subscribe, wp popups, optin bars, action grabber, constant contact, toast notifications, leads, lists, builder, action bar, floating bar, footer bar, hellobar alternative, pop over, Popup plugin, aweber, campaign monitor, constant contact, email list, exit-intent, getresponse, analytics, Hubspot, icontact, infusionsoft, newsletter, Mailing list pop-up, retargeting, Animation,Popups with Animation ,Responsive Popup, split testing, AB testing
5
  Requires at least: 3.9
6
  Tested up to: 4.5.3
7
+ Stable tag: 1.9.21
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
+ Grow your subscriber list, engage and convert visitors, decrease bounce rate with this best in class plugin. Proven, easy to use & well supported.
12
 
13
  == Description ==
14
 
15
+ Icegram is the best plugin to easily create beautiful optins and call to actions of your choice, show them to targeted visitors and convert them to customers and fans.
16
+ Icegram totally eliminates the need to hire a developer. You can easily set it up within minutes and start recording results right away.
17
+ Most similar quality plugins are paid and still offer a lot less. Icegram is full featured, easy to use, trusted by 20,000+ users, and is still free.
18
 
 
19
 
20
+ = The Only Multi Purpose Plugin - a lot beyond optins =
21
+ Icegram is not the typical optin / list-building / email subscription plugin. You can do a lot more than that!
22
 
23
+ * **Easily Grow Your Subscriber List:**Show attention grabbing, high converting email optin forms and build your subscriber list.
24
+ * **Instantly Drive Traffic** Display powerful call to action (CTA) buttons and drive visitors to any page you like.
25
+ * **Start Engaging and Converting Visitors:**Grab visitors’ attention, make an announcement, engage them to reduce bounce rate or offer them any other call to action.
 
 
 
 
 
26
 
27
+ >**Icegram doubled my Optin rates Overnight** - by [Remo Homer](https://wordpress.org/support/profile/remohomer)
28
+ Icegram **doubled our opt-in rates** overnight. Simple as that. It's fast to setup and easy for our client to manage. Support is great, and best of all - FREE!
29
 
 
 
30
 
31
+ = Get Multiple Message Styles - popups, header bars and much more =
32
+ Icegram provides not one or two, but four different optin types - **Lightbox Popups, Header & Footer Action Bars, Toast Notifications and Slide in Messengers.**
33
 
34
+ * **Well Timed Popups -** Create time targeted popups / lightboxes that are optimized for conversion. Lots of customization possible.
35
+ * **Sleek Action Bars -** Great for announcements, lead generation and CTAs. Icegram provides both header bars as well as footer bars.
36
+ * **Attention Grabbing Toast Notifications -** Super useful for alerts, invitations, and multi step CTAs.
37
+ * **Appealing Slide-in Messengers -** Welcome new visitors, recommend blog posts, provide links to support resources and more with slide in messengers.
38
 
39
+ If you want more, Icegram also provides eight more innovative message styles - Sidebars, Overlays, After / Before Post and Inlines, Stickies, Badges, Ribbons, Tabs & Interstitials as premium add-ons.[ Check the premium collection here.](http://www.icegram.com/addons/)
 
40
 
41
+ >Icegram is better than premium plugins! Trust me By [princegift2892](https://profiles.wordpress.org/princegift2892)
42
+ I have used premium plugins too. But this plugin is better than premium one! So many options, customizations, and best support! I am using this plugin on both of my websites ;)
 
 
 
 
 
43
 
 
 
44
 
45
+ = Lots of Powerful Features =
46
+ * Easy to use, user friendly interface
47
+ * Easily create and target unlimited optin forms and messages
48
+ * Multiple Different Opt-in Form / Message Styles: Popups, Header / Footer bars, Toast notifications, Slide-in Messengers. Plus 8 other premium styles.
49
+ * Multiple Theme Designs: Extensive range of beautiful and fully customizable themes to make your CTA messages and email optin popups look amazing
50
+ * Easy Integrations with Email Marketing Service: MailChimp, Constant Contact, AWeber, Campaign Monitor, GetResponse, InfusionSoft and all other email marketing services
51
+ * Mobile Responsive design
52
+ * Time and sequence different messages
53
+ * Multiple display positions - top, middle, bottom, left, right, center
54
+ * Powerful Display Targeting Rules: Decide where and when to show your campaigns and optin forms- On specific pages, categories or posts; to certain users; on specific schedule, via shortcode - and many other rules.
55
+ * Track results of each optin form
56
+ * Analytics and Reporting: View conversion and impression analytics of all campaigns and messages using a free add-on
57
+ * Extensive Customization for power users - custom HTML, CSS, JS option; extensive JavaScript API; make it suit your needs
58
+ * Split A/B Testing (premium feature): Create variations and automatically determine which messages convert better
59
+ * Exit Intent (premium feature): Target abandoning visitors by showing popups and other messages when they are about to exit your site
60
+ * Unique Headline Generator that creates engaging headlines - so you get a copywriting headstart
61
+ * No compulsion to show Icegram name or branding
62
+ * No need to create an account on our site to use Icegram
63
+ * Automatic Updates
64
+ * Range of premium add-ons to supercharge your results
65
+ * Friendly and Professional Support Team
66
+ * Plus a lot more!!
67
 
68
+ > **I have 20 Different Plugins across 3 websites but Icegram is my go-to plugin** said [JamieTurner1313](https://wordpress.org/support/topic/one-of-the-best-plugins-ive-used-3) from 60 Second Marketer,
69
+ There are plenty of similar plug-ins like this on WordPress, but none of them provide as much bang for the buck as Icegram. I have, I'm guessing, 20 different plugins across 3 websites and this is **my go-to plugin to drive downloads of my e-books**. I especially like the A/B split testing feature. And the customer support has been very prompt. Five stars for sure.
70
 
 
 
71
 
72
+ = Create an Optin Form within minutes. No Need to Hire a Developer! =
73
 
74
+ Icegram is easy and you don’t need a developer to figure this out. Icegram lets you create optins and CTA messages in under a minute. You can choose from variety of optin types, customize it as per your liking and target it instantly. Creating an Icegram message is very simple and you don’t need technical knowledge to get it to work.
75
 
 
76
 
77
+ >
78
+ **Icegram simplified things for a non-programmer like me**
79
+ By [varunjadhav](https://profiles.wordpress.org/varunjadhav),
80
+ Icegram simplified things for a non-programmer startup entrepreneur like me, and has become a tool I recommend to everyone else. It’s a **wonderfully productive On-site Retargeting Plugin!** And it's free. In one week of using Icegram, our **bounce rate went down significantly** and visitor’s time on site went up.
81
 
 
 
82
 
83
+ = Choose from Beautiful, Mobile Responsive Design Templates =
 
 
 
 
 
 
84
 
85
+ Icegram provides you with **20 high converting** and very responsive design templates. You can customize the colors of these design templates to match the color pallette of your brand/ website.
 
86
 
87
+ = Start Growing Your Email Subscriber List Instantly =
88
+ Icegram optins **specialize in converting visitors to subscribers**. Icegram allows you to create high converting subscriber forms and target them strategically at various places on your website.
 
 
 
 
 
 
 
 
89
 
 
90
 
91
+ >
92
+ **I doubled my subscriber list with Icegram within 1 month**
93
+ By [infinity80](https://profiles.wordpress.org/infinity80),
94
+ One month into using icegram, and the **number of subscribers doubled**. This plugin is really great. Icegram messages have given me **phenomenal 60% click through rates** and it never fails to deliver. When you use Icegram, **you don't need to learn all those marketing secrets.. Icegram does that for you…**
95
 
96
+ = Increase Your Optin Conversions with Advanced, Powerful Display Targeting Rules =
97
+ Well targeted optins is a must. Thus, Icegram provides you various **advanced targeting optins.** It allows you to target visitors depending on various factors like:
98
 
99
+ * Page level targeting
100
+ * Time based targeting
101
+ * User based targeting
102
+ * Device based targeting ( 100% Mobile Responsive)
103
+
104
+ = Measure Optins Performance based on Detailed Reports =
105
+
106
+ The most important way of measuring the effect of an optin is checking out the analytics. Icegram provides an easy to understand but in-depth stats of how your optin is performing.
107
+
108
+ >**Track impressions and Conversion for FREE** - by [GroNovaAcademy](https://wordpress.org/support/profile/gronovaacademy)
109
+ An **easy-to-use software** to capture the attention of web visitors, as well to track impressions and conversion rate for free. I also experienced a very **reactive and supportive team.**
110
+
111
+
112
+ = Convert Abandoning Visitors by Showing them Exit Intent Opt-ins =
113
+ Icegram also gives you an excellent option to target optins at exit intent. This is available in Icegram’s paid addon - [Behavior Triggers and Advanced Targeting](http://www.icegram.com/addons/behavior-triggers-advanced-retargeting/). That is, you can show an optin just before the visitor is leaving your website. Such optins are highly converting and are mostly used by Top Internet Marketers to grow their lists.
114
+
115
+ > **This Plugins A Lifesafer!**
116
+ By [_Krucial_](https://profiles.wordpress.org/_krucial_)
117
+ The exit popup addon was just what I needed. I will be using this plugin on many sites, and only have good things to say about it. It is **very very handy** and generous enough to give away features for FREE. **Icegram seriously makes a WP user’s life easy!**
118
+
119
+ = Create and Test out Optin Variations using Split Testing (A/B Testing) =
120
+ Icegram also has a premium addon [Split Testing](http://www.icegram.com/addons/split-testing/) which allows you to split test various aspects of the optins like - content, headlines, cta, color, design templates etc.
121
+
122
+ = Easily integrate with your Email Marketing Service =
123
+ Icegram provides an **easy html based integration** with Email Marketing Services like MailChimp, AWeber, Infusionsoft, GetResponse, ConstantContact, CampaignMonitor, ActiveCampaign, Emma, iContact, MailerLite, MailPoet, MadMimi, Klawoo, e-GOI, SendPress, Email Buddy, My Mail etc.
124
+ Infact any Email Marketing Service which provides an html form code can be easily integrated with any of Icegram’s Optins.
125
+
126
+ = Also, Fully Compatible with Third Party Plugins =
127
+ Not just Email Marketing Services, Icegram is compatible with most third party lead capture/form plugins, themes and CRM like - Jetpack, Gravity, Contact Form 7, Visual Form Builder and many others. Hence, causing no inconsistencies to your WordPress site.
128
 
129
+
130
+ = Get more Features with Premium Addons =Icegram is an open platform. The core is already powerful, but you can do even more with free and premium add-ons.
131
+
132
+ * [Split Testing](http://www.icegram.com/addons/split-testing/) - Split test Icegram campaigns and decide which variation works best for your audience.
133
+ * [Behavior Triggers and Advanced Targeting](http://www.icegram.com/addons/behavior-triggers-advanced-retargeting/) - Show and hide campaigns based on visitors on-page behavior. Like on Exit Intent, Scroll Position, Time Delay, JavaScript, On-click of another message…
134
+ * [Geo Targeting](http://www.icegram.com/addons/geo-targeting/) - target optins based on visitor's location - continent, country, city, region or IP address
135
+ * [CTA Actions](http://www.icegram.com/addons/cta-actions/) - Open link in new window, submit form, AJAX submission, show another message, hide this message... New actions for CTA buttons
136
+ * [Remote](http://www.icegram.com/addons/remote/) - Show Icegram messages on Non - WordPress sites.
137
+ * [Additional optin types](http://www.icegram.com/addons/) - Overlay, Inline, Sidebars, Interstitial, Ribbons, Stickies, Badges, Tabs
138
+
139
+ > **Icegram addons are very handy! Definitely recommended**
140
+ By [vinnymickey](https://profiles.wordpress.org/vinnymickey), January 15, 2016
141
+ Searched around to accomplish what this plugin does with its addons. And **Icegram worked out perfect** for me. Also tested out the support and they were **very helpful** with all my questions :)
142
+
143
+
144
+ = Icegram vs It’s Alternatives - Here’s what you need to know.. =
145
+ We compared Icegram with some similar plugins and here’s the complete one-on-one review.
146
+
147
+ * [Sumo Me vs Icegram - Full Review](http://www.icegram.com/sumo-me-vs-icegram-comparison/)
148
+ * [Optin Monster vs Icegram - Complete Feature Analysis](http://www.icegram.com/optinmonster-vs-icegram-comparison/)
149
+ * [Ninja Popups vs Icegram - Plugin Faceoff](http://www.icegram.com/ninja-popups-vs-icegram-the-better-popup-and-why/)
150
+ * [Hellobar vs Icegram - Comparative Analysis ](http://www.icegram.com/hello-bar-vs-icegram/)
151
+
152
+ >**Icegram is the best of them ALL** by Maurits Heijstek
153
+ I want to say that Icegram is the **best and most simple** solution I have found. I tested everything including Optin Monster, Bloom, Ninja Popup, etc...but Icegram is the best and has the **most potential**.
154
+
155
+ = Website, Demos, Shop, Social, Love =
156
  * [Official Icegram website](http://www.icegram.com/)
157
+ * [Dozens of Demos](http://www.icegram.com/demos/) of different Icegram messages
158
+ * [Shop for free and paid add-ons](http://www.icegram.com/addons/)
159
  * [A few customer reviews](http://www.icegram.com/customers/)
160
  * Follow Icegram on Twitter [@icegram](https://twitter.com/icegram/)
161
 
 
162
  == Installation ==
163
 
164
  1. Unzip and upload contents of the plugin to your /wp-content/plugins/ directory
203
 
204
  == Screenshots ==
205
  1. Different Icegram messages
206
+ 2. High converting design templates
207
+ 3. The Icegram workflow
208
+ 4. Editing an Icegram campaign - add multiple messages, edit them, full HTML editor, themes and more
209
+ 5. Target your Icegram message using these display rules
210
 
211
  == Upgrade Notice ==
212
+ = 1.9.21 =
213
+ Revamp admin UI
214
+
215
  = 1.9.20.1 =
216
  Bug Fix release
217
 
352
 
353
 
354
  == Changelog ==
355
+ = 1.9.21 =
356
+ * New: Revamped the old admin UI and made it more user friendly and simple
357
+
358
  = 1.9.20.1 =
359
  * Fix: Solve "Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')'"
360