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

Version Description

Form embed functionality improvements , Added forms styles.

Download this release

Release Info

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

Code changes from version 1.8.10 to 1.9

assets/css/admin.css CHANGED
@@ -1 +1 @@
1
- .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:normal;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}.message_seconds,.action_links{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:before{content:"\f348"}.shortcode_description.light{content:"\f348";color:#777}.campaign_shortcode{display:block;width:45%;color:#777}.campaign_shortcode.light{margin-left:50%;border:1px dashed #ccc;padding-left:0.6%;padding-right:0.2%;position:absolute;margin-top:-1.5em}.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{font-family:dashicons;content:"\f145";position:relative;top:5px;font:normal 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:0.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:0.7}.action_links{vertical-align:middle}.message_header_label{color:#fff;text-align:center;font-size:0.7em!important;margin:0!important;padding:3px 5px;cursor:auto;text-transform:uppercase}.message_label{float:left;width:25%;padding:0}.message_field{width:65%;display:inline-block}.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.top,.location-selector .location.bottom,.location-selector .location.middle{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.right,.location-selector .location.left{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 #upload_image,.message-setting-fields #message_title{width:58%}.wp-editor-container span .mceLayout{width:50%}#ui-datepicker-div,#wp-admin-bar-view,#edit-slug-box,.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:0.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}table#icegram_post_query_table{padding:5px}table#icegram_post_query_table tr td{padding:5px}input.sm_text_field{padding:5px}#icegram_post_query_table label{font-weight:bold}.icegram-dashicons:before{font-family:dashicons;position:relative;font-family:dashicons;font-style:normal;vertical-align:middle;font-size:2em}.about-wrap.icegram h2{color:#3754a8}.about-wrap.icegram h2{padding-top:19px;font-weight:600}.icegram-dashicons-testimonial h4{font-size:1.5em}.icegram-badge{background:#3754a8 url(../images/icegram-logo-branding-64-white.png) no-repeat;background-position:center 24px;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;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.2);box-shadow:0 1px 3px rgba(0,0,0,0.2)}.about-wrap .icegram-badge{position:absolute;top:0;right:0}.icegram-support{font-size:14px;color:black;margin:15px 0 0;height:10px;width:180px;text-align:center;text-rendering:optimizeLegibility;position:absolute;top:0;right:0;margin-top:178px;text-align:right}.icegram-contact-us{font-size:20px;line-height:1.5em;font-weight:800;margin-right:18px}.icegram-contact-us a{color:#3754a8}.ig_addons_wrap .addons{overflow:hidden}.ig_addons_wrap .addons li{float:left;margin:0 1em 1em 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;padding:0 0 5px 5px;float:right}.ig_addons_wrap .addons li a h3{margin:0!important;padding:20px!important;background:#fff}.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;border-radius:.3em}.ig_addons_wrap .addons li .ig_addon_category span.free{background-color:#C3D3FF;color:#3754a8}.ig_addons_special_message{font-size:60%;line-height:60%;margin-left:3em;padding:3px 10px;background-color:#FCF0AD;border:1px solid #CCC}#popup_container{width:550px;background-color:#FFF;margin:0 auto;padding:.5em 1em 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:normal}.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:#f00;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)no-repeat 0 2px!important}
1
+ .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:normal;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}.message_seconds,.action_links{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:before{content:"\f348"}.shortcode_description.light{content:"\f348";color:#777}.campaign_shortcode{display:block;width:45%;color:#777}.campaign_shortcode.light{margin-left:50%;border:1px dashed #ccc;padding-left:0.6%;padding-right:0.2%;position:absolute;margin-top:-1.5em}.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{font-family:dashicons;content:"\f145";position:relative;top:5px;font:normal 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:0.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:0.7}.action_links{vertical-align:middle}.message_header_label{color:#fff;text-align:center;font-size:0.7em!important;margin:0!important;padding:3px 5px;cursor:auto;text-transform:uppercase}.message_label{float:left;width:25%;padding:0}.message_field{width:65%;display:inline-block}.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.top,.location-selector .location.bottom,.location-selector .location.middle{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.right,.location-selector .location.left{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 #upload_image,.message-setting-fields #message_title{width:58%}.wp-editor-container span .mceLayout{width:50%}#ui-datepicker-div,#wp-admin-bar-view,#edit-slug-box,.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:0.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}table#icegram_post_query_table{padding:5px}table#icegram_post_query_table tr td{padding:5px}input.sm_text_field{padding:5px}#icegram_post_query_table label{font-weight:bold}.icegram-dashicons:before{font-family:dashicons;position:relative;font-family:dashicons;font-style:normal;vertical-align:middle;font-size:2em}.about-wrap.icegram h2{color:#3754a8}.about-wrap.icegram h2{padding-top:19px;font-weight:600}.icegram-dashicons-testimonial h4{font-size:1.5em}.icegram-badge{background:#3754a8 url(../images/icegram-logo-branding-64-white.png) no-repeat;background-position:center 24px;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,0.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.2);box-shadow:0 1px 3px rgba(0,0,0,0.2)}.about-wrap .icegram-badge{position:absolute;top:0;right:0}.icegram-support{font-size:14px;color:black;margin:15px 0 0;height:10px;width:180px;text-align:center;text-rendering:optimizeLegibility;position:absolute;top:0;right:0;margin-top:178px;text-align:right}.icegram-contact-us{font-size:20px;line-height:1.5em;font-weight:800;margin-right:18px}.icegram-contact-us a{color:#3754a8}.ig_addons_wrap .addons{overflow:hidden}.ig_addons_wrap .addons li{float:left;margin:0 1em 1em 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;padding:0 0 5px 5px;float:right}.ig_addons_wrap .addons li a h3{margin:0!important;padding:20px!important;background:#fff}.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_special_message{font-size:60%;line-height:60%;margin-left:3em;padding:3px 10px;background-color:#FCF0AD;border:1px solid #CCC}#popup_container{width:550px;background-color:#FFF;margin:0 auto;padding:.5em 1em 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:normal}.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:#f00;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)no-repeat 0 2px!important}.message_form_options{width:75%;margin-left:25%}.message_form_options label.message_label{display:none}.message_form_options textarea{resize:none}.message_form_options p > input,.message_form_options p > textarea,.message_form_options p > div{}.message_form_options p > div.form_radio_group{width:60%}.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;padding-bottom:0;margin-right:1em;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:92%!important;height:80px!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_options .chosen-container{width:86%!important}#message_form_style + .chosen-container .chosen-results li:first-child{color:inherit;height:1.5em!important}
assets/css/frontend.css CHANGED
@@ -1,2 +1,2 @@
1
  /* Powered By link */
2
- .ig_powered_by,.ig_powered_by a,a.ig_powered_by{color:#A8A8A8!important;text-decoration:none}div.icegram form{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}div.icegram input,div.icegram label{margin:.2em .2em .2em .5em;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;vertical-align:middle!important}div.icegram .ig_embed_form{text-align:left;margin-bottom:1%}.ig_embed_form ul.ig_embed_form_container{list-style-type:none!important;margin:0;padding:1%}div.icegram .ig_embed_form.ig_full .ig_embed_form_container{width:100%}div.icegram .ig_embed_form.ig_half .ig_embed_form_container{width:50%}div.icegram .ig_embed_form.ig_quarter .ig_embed_form_container{width:25%}div.icegram .ig_embed_form.ig_auto .ig_embed_form_container{width:25%;margin-right:2%}div.icegram .ig_embed_form.ig_left .ig_embed_form_container{float:left;overflow:hidden}div.icegram .ig_embed_form.ig_right .ig_embed_form_container{float:right}div.icegram .ig_embed_form.ig_center .ig_embed_form_container{margin:0 auto;display:block;text-align:center}div.icegram .ig_embed_form.ig_inline .ig_embed_form_container{display:inline-block;margin:1% 1% 0 1%;padding:0 1%;vertical-align:bottom}div.icegram .ig_embed_form input{margin-top:0}div.icegram .ig_embed_form .ig_embed_form_container{font-size:.9em;text-align:left!important}div.icegram .ig_embed_form.ig_vertical.ig_quarter label,div.icegram .ig_embed_form.ig_vertical.ig_quarter textarea,div.icegram .ig_embed_form.ig_vertical.ig_quarter select,div.icegram .ig_embed_form.ig_vertical.ig_quarter input{}div.icegram .ig_embed_form.ig_vertical label,div.icegram .ig_embed_form.ig_vertical textarea,div.icegram .ig_embed_form.ig_vertical select,div.icegram .ig_embed_form.ig_vertical input{width:96%;margin-right:4%}div.icegram .ig_embed_form.ig_horizontal .ig_embed_form_container li{display:inline-block;min-width:24%}div.icegram .ig_embed_form.ig_horizontal label,div.icegram .ig_embed_form.ig_horizontal textarea,div.icegram .ig_embed_form.ig_horizontal select,div.icegram .ig_embed_form.ig_horizontal input{width:96%;margin-right:4%}div.icegram .ig_embed_form .ig_form_el_group.ig_form_el_radio input{width:auto}div.icegram .ig_embed_form.ig_horizontal .ig_form_el_group.ig_form_el_radio label{}div.icegram .ig_embed_form .ig_form_el_group.ig_form_el_radio label{width:92%;margin-right:4%;font-size:1em;margin-bottom:0.2em;margin-top:0.2em}div.icegram .ig_embed_form select{padding:.3em 0}div.icegram .ig_embed_form select,div.icegram .ig_embed_form textarea{margin:.2em .2em .2em .5em;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle!important}div.icegram .ig_embed_form .ig_form_el_group textarea{height:4em}div.icegram .ig_embed_form input[type="submit"],div.icegram .ig_embed_form input[type="button"]{line-height:1em;font-size:1em;margin:.2em .2em .2em .5em!important;width:auto}div.icegram .ig_embed_form .ig_detected_bot_fields{display:none}div.icegram .ig_clear:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}@media only screen and (max-device-width:319px){div.icegram .ig_embed_form.ig_left .ig_embed_form_container{margin-bottom:.7em}}@media only screen and (min-device-width:320px) and (max-device-width:359px){div.icegram .ig_embed_form.ig_left .ig_embed_form_container{margin-bottom:.7em}}@media only screen and (min-device-width:360px) and (max-device-width:413px){div.icegram .ig_embed_form.ig_left .ig_embed_form_container{margin-bottom:.7em}}@media only screen and (min-device-width:414px) and (max-device-width:643px){div.icegram .ig_embed_form.ig_left .ig_embed_form_container{margin-bottom:.7em}}
1
  /* Powered By link */
2
+ .ig_powered_by,.ig_powered_by a,a.ig_powered_by{color:#A8A8A8!important;text-decoration:none}.icegram .ig_button,.icegram input[type="submit"],.icegram input[type="button"]{border:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ig_message p{margin:.3em 0}div.icegram .ig_clear_fix:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.ig_form_container{display:none;position:relative;height:100%;z-index:10;padding:1em;text-align:left;line-height:1.1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ig_form_container .ig_form_header{width:98%;text-align:left}.ig_form_container .ig_form_footer{font-size:.8em;width:98%;clear:both;text-align:left}.ig_form_container .ig_form_els{margin:.5em .5em .5em 0}.ig_form_left .ig_form_container.layout_left{display:block}.ig_form_right .ig_form_container.layout_right{display:block;float:left}.ig_form_bottom .ig_form_container.layout_bottom{display:block;width:100%;height:auto}.ig_form_inline .ig_form_container.layout_inline{display:block;width:100%;padding:.6em;background-color:transparent!important;color:inherit!important}.ig_form_bottom .ig_form_container.layout_bottom .ig_embed_form_container,.ig_form_inline .ig_form_container.layout_inline .ig_embed_form_container{}.ig_form_left .ig_form_container.layout_left .ig_form_els,.ig_form_right .ig_form_container.layout_right .ig_form_els{margin:.5em auto}.ig_form_bottom .ig_form_container.layout_bottom .ig_form_els{display:inline-block}.ig_form_inline .ig_form_container.layout_inline .ig_form_els{display:inline-block}.ig_form_bottom .ig_form_container.layout_bottom .ig_full .ig_form_els,.ig_form_inline .ig_form_container.layout_inline .ig_full .ig_form_els{width:90%}.ig_form_bottom .ig_form_container.layout_bottom .ig_half .ig_form_els,.ig_form_inline .ig_form_container.layout_inline .ig_half .ig_form_els{width:45%}.ig_form_bottom .ig_form_container.layout_bottom .ig_third .ig_form_els,.ig_form_inline .ig_form_container.layout_inline .ig_third .ig_form_els{width:30%}.ig_form_bottom .ig_form_container.layout_bottom .ig_quater .ig_form_els,.ig_form_inline .ig_form_container.layout_inline .ig_quater .ig_form_els{width:22%}.ig_form_container .ig_form_els input,.ig_form_container .ig_form_els label,.ig_form_container .ig_form_els textarea,.ig_form_container .ig_form_els select{width:98%;text-align:left;display:block;margin:0 auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ig_form_container .ig_form_els.ig_form_el_radio input{width:auto;display:inline;margin-right:.3em}.ig_form_bottom .ig_form_container.layout_bottom .ig_quater .ig_form_els.ig_form_el_radio,.ig_form_inline .ig_form_container.layout_inline .ig_quater .ig_form_els.ig_form_el_radio{display:inline}.ig_form_bottom .ig_form_container.layout_bottom .ig_quater .ig_form_els.ig_form_el_radio label,.ig_form_inline .ig_form_container.layout_inline .ig_quater .ig_form_els.ig_form_el_radio label{width:auto;display:inline}.ig_form_left .ig_form_container.layout_left .ig_button_label,.ig_form_right .ig_form_container.layout_right .ig_button_label{display:none}.ig_form_inline .ig_form_container.layout_inline .ig_button_label,.ig_form_bottom .ig_form_container.layout_bottom .ig_button_label{display:block;visibility:hidden;opacity:0}.ig_form_inline .ig_form_container.layout_inline .ig_button,.ig_form_inline .ig_form_container.layout_inline input[type="submit"],.ig_form_inline .ig_form_container.layout_inline input[type="button"],.ig_form_bottom .ig_form_container.layout_bottom .ig_button,.ig_form_bottom .ig_form_container.layout_bottom input[type="submit"],.ig_form_bottom .ig_form_container.layout_bottom input[type="button"],.ig_form_left .ig_form_container.layout_left .ig_button,.ig_form_left .ig_form_container.layout_left input[type="submit"],.ig_form_left .ig_form_container.layout_left input[type="button"],.ig_form_right .ig_form_container.layout_right .ig_button,.ig_form_right .ig_form_container.layout_right input[type="submit"],.ig_form_right .ig_form_container.layout_right input[type="button"]{width:98%;font-size:1em;float:none;margin:0 auto!important;text-align:center;display:block}.ig_form_container:before{content:'';padding:0;margin:0;position:absolute}.ig_form_style_1 .ig_form_container:before{border-width:0;border-style:solid;border-color:#000!important;opacity:.3;top:0}.ig_form_left.ig_form_style_1 .ig_form_container:before{right:0;height:inherit;border-left-width:.22em}.ig_form_right.ig_form_style_1 .ig_form_container:before{left:0;height:inherit;border-left-width:.22em}.ig_form_bottom.ig_form_style_1 .ig_form_container:before{left:0;width:100%;border-top-width:.22em}.ig_form_inline.ig_form_style_1 .ig_form_container:before{display:none}.ig_form_style_1 .ig_form_container .ig_form_els input{height:2.5em!important;border:1px solid #ccc;-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;padding:inherit;padding-left:.5em}.ig_form_style_1 .ig_form_container .ig_form_els input:focus,.ig_form_style_1 .ig_form_container .ig_form_els input:hover{border-color:#999;height:2.5em!important;padding:inherit;padding-left:.5em}.ig_form_style_1 .ig_form_container .ig_form_els .ig_button:hover,.ig_form_style_1 .ig_form_container .ig_form_els .ig_button:focus,.ig_form_style_1 .ig_form_container .ig_form_els .ig_button{height:2.5em!important;border:inherit;padding:inherit}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els{margin-right:0;margin-left:0}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els .ig_button,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els .ig_button,.ig_form_left.ig_form_style_2 .ig_form_container.layout_left .ig_form_els .ig_button,.ig_form_right.ig_form_style_2 .ig_form_container.layout_right .ig_form_els .ig_button{padding:inherit}.ig_form_left.ig_form_style_2 .ig_form_container.layout_left .ig_form_els input,.ig_form_right.ig_form_style_2 .ig_form_container.layout_right .ig_form_els input{padding-left:1em}.ig_form_left.ig_form_style_2 .ig_form_container.layout_left .ig_form_els .ig_button,.ig_form_left.ig_form_style_2 .ig_form_container.layout_left .ig_form_els input,.ig_form_right.ig_form_style_2 .ig_form_container.layout_right .ig_form_els .ig_button,.ig_form_right.ig_form_style_2 .ig_form_container.layout_right .ig_form_els input{height:2.5em!important;-webkit-border-radius:2em;-moz-border-radius:2em;border-radius:2em}.ig_form_left.ig_form_style_2 .ig_form_container.layout_left .ig_form_els label,.ig_form_right.ig_form_style_2 .ig_form_container.layout_right .ig_form_els label{padding-left:1em}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els .ig_button,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els .ig_button,.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els input,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els input{height:2.5em!important;width:100%;border-right-width:0}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:first-child input,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:first-child input{-webkit-border-radius:2em 0 0 2em;-moz-border-radius:2em 0 0 2em;border-radius:2em 0 0 2em;padding-left:1em}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:first-child label,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:first-child label{padding-left:1em}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:last-child input,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:last-child input{-webkit-border-radius:0 2em 2em 0;-moz-border-radius:0 2em 2em 0;border-radius:0 2em 2em 0}.ig_form_style_3 .ig_form_container .ig_form_els input{height:2.5em!important;border:1px solid rgba(255,255,255,.3);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;padding:inherit;padding-left:.5em;background-color:rgba(0,0,0,.3);color:inherit}.ig_form_style_3 .ig_form_container .ig_form_els input:focus,.ig_form_style_3 .ig_form_container .ig_form_els input:hover{border-color:rgba(255,255,255,.6);height:2.5em!important;padding:inherit;padding-left:.5em}.ig_form_style_3 .ig_form_container .ig_form_els .ig_button:hover,.ig_form_style_3 .ig_form_container .ig_form_els .ig_button:focus,.ig_form_style_3 .ig_form_container .ig_form_els .ig_button{height:2.5em!important;border:inherit;padding:inherit}.ig_form_style_3 .ig_form_container .ig_form_els::-webkit-input-placeholder{color:rgba(255,255,255,.5)}.ig_form_style_3 .ig_form_container .ig_form_els:-moz-placeholder{color:rgba(255,255,255,.5);opacity:1}.ig_form_style_3 .ig_form_container .ig_form_els::-moz-placeholder{color:rgba(255,255,255,.5);opacity:1}.ig_form_style_3 .ig_form_container .ig_form_els:-ms-input-placeholder{color:rgba(255,255,255,.5)}.ig_form_style_4 .ig_form_container:before{border-style:solid;top:-1.2em;left:-1.3em;width:100%;height:100%;border-width:1.3em;z-index:-1;-moz-box-shadow:0 0 15px rgba(0,0,0,0.7);-webkit-box-shadow:0 0 15px rgba(0,0,0,0.7);box-shadow:0 0 15px rgba(0,0,0,0.7)}.ig_form_bottom.ig_form_style_4 .ig_form_container:before{top:0;border-bottom-width:0}.ig_form_right.ig_form_style_4 .ig_form_container:before{left:inherit;right:-1.3em}.ig_form_inline.ig_form_style_4 .ig_form_container:before{display:none}
assets/images/from_layouts.png ADDED
Binary file
assets/images/style_1.png ADDED
Binary file
assets/images/style_2.png ADDED
Binary file
assets/images/style_3.png ADDED
Binary file
assets/images/style_4.png ADDED
Binary file
assets/js/admin.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(){function e(e){var t=jQuery(e).find(".message_type option:selected").val(),a=jQuery(e).find(".message_row.ig_"+t).find(".message_theme").val(),i=jQuery(e).find("#message_theme_ig_"+t).find("."+a).attr("style");jQuery(e).find("#embed_form_but").hide(),jQuery(e).find(".message_row, .location").hide(),jQuery(e).find(".ig_"+t).show(),jQuery(e).find(".message_row.ig_"+t).find(".message_theme").next().find(".chosen-single span").attr("style",i),"block"!==jQuery(e).find(".message_body").parent().css("display")?jQuery(e).find(".message_body").parent().next(".wp-editor-wrap").hide():jQuery(e).find(".message_body").parent().next(".wp-editor-wrap").show()}function t(e,a,i){var r=Math.floor(Math.random()*(i-a+1))+a;return r==e?t(r,a,i):r}function a(){var e='<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="'+r+'*"/><span class="delete-url"></span></span>';return e}function i(){0==jQuery(".message-row").length?jQuery(".empty_campaign").show():jQuery(".empty_campaign").hide()}var r=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 a=window.send_to_editor;jQuery("#postdivrich").hide(),jQuery(".color-field").wpColorPicker().each(function(e){var t=jQuery(this).data("color-label")||"";""!==t&&jQuery(this).closest(".wp-picker-container").find("a.wp-color-result").attr("title",t)}),jQuery("#campaign_data").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),i(),jQuery(".message_edit:first").trigger("click"),this_data=jQuery(".message_type option:selected").closest(".message-setting-fields");for(var r=0;r<this_data.length;r++)e(this_data[r]);jQuery(".inside").on("change",".message_type",function(t){var a=jQuery(t.target).parents(".message-setting-fields");e(a)}),jQuery("#campaign_data,#message-settings").on("change",".message_theme",function(e){var t=jQuery(e.target).parents(".message-setting-fields"),a=jQuery(t).find(".message_type").val(),i=jQuery(t).find(".message_row.ig_"+a).find(".message_theme").val(),r=jQuery(t).find("#message_theme_ig_"+a).find("."+i).attr("style");jQuery(t).find(".message_row.ig_"+a).find(".message_theme").next().find(".chosen-single span").attr("style",r)}),jQuery("#campaign_data").on("click",".message_image_button",function(e){var t=this;return window.send_to_editor=function(e){imgurl=jQuery("img",e).attr("src"),jQuery(t).parent().find("#upload_image").val(imgurl),tb_remove(),window.send_to_editor=a},!1}),jQuery("#campaign_data ,#message-settings").on("click",".message_headline_button",function(){var e=jQuery(this).prev().attr("data-headline"),a=icegram_writepanel_params.available_headlines.length,i=t(e,0,a),r=icegram_writepanel_params.available_headlines[i];jQuery(this).prev().val(r)}),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("#campaign_data").on("click",".message_delete",function(){jQuery(this).parent().parent().next().remove(),jQuery(this).parent().parent().remove(),i()}),jQuery("#campaign_data").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").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(e){var t={};return jQuery.each(e,function(e,a){t[e]=a}),t}),jQuery(document).on("click","#embed_form_but",function(e){jQuery.magnificPopup.open({items:{src:"#popup_container",type:"inline"},modal:!0})}),jQuery(document).on("click",".cancel_parse_form",function(e){return jQuery.magnificPopup.close({items:{src:"#popup_container",type:"inline"}}),jQuery(this).closest("form").get(0).reset(),!1}),jQuery(document).on("click",".parse_form",function(e){var t=this,a=jQuery(t).closest("form"),i=jQuery(a).find(".embed_form_layouts input[type=radio]:checked").val(),r=jQuery(a).find("#embed_form_width option:selected").val(),n=jQuery(a).find("#embed_form_positions option:selected").val(),s=jQuery('<ul class="ig_embed_form_container"></ul>').addClass("ig_clear"),o=jQuery(a).find(".has_label_check input[type=checkbox]:checked").length>0?!0:!1,l=jQuery(a).find("textarea#form_data").val().trim(),u=jQuery("<div/>").html(l).find("input, label, select, textarea, button").not("br");jQuery(a).find(".use_cta_check input[type=checkbox]:checked").length>0&&(u=u.not("input[type=submit]"),u=u.not("button[type=submit]"));var c=jQuery("<div/>").html(l).find("form").removeAttr("class").addClass("ig_embed_form").addClass(i).addClass(r).addClass(n).addClass("ig_clear").empty(),d=null,p=0;if(jQuery.each(u,function(e,t){var a=jQuery(t),i=jQuery('<li class="ig_form_el_group"></li>');if(a.removeAttr("class").removeAttr("style"),(-1==a.attr("tabindex")||"hidden"==a.attr("type"))&&(a.addClass("ig_detected_bot_fields"),p--),a.is("label"))d=a.not("input, select, textarea, button, span, br").text().replace(/\s+/g," ");else if((a.is("input")||a.is("button")||a.is("textarea"))&&!a.is("input[type=radio]")){if(a.removeAttr("id"),a.is("button")){var r=a.not("br, span, div").text().trim()||"";a.remove(),a=jQuery('<input type="submit">'),r&&a.attr("value",r)}o?(a.removeAttr("placeholder"),d&&(jQuery("<label>"+d+"</label>").appendTo(i),d=null)):d&&(a.attr("placeholder",d),d=null),i.append(a),i.append(a).addClass(a.is("textarea")?"ig_form_el_textarea":"ig_form_el_input"),s.append(i),p++}else a.is("select")?(d&&(o?jQuery("<label>"+d+"</label>").appendTo(i):jQuery("<option>"+d+"</option>").prependTo(a),d=null),i.append(a).addClass("ig_form_el_select"),s.append(i),p++):a.is("input[type=radio]")&&(d&&(jQuery("<label>"+d+"</label>").prepend(a).appendTo(i),d=null),i.addClass("ig_form_el_radio"),s.append(i),p++)}),"ig_horizontal"==i){var _="ig_full"==r?4:"ig_half"==r?2:1;p=p>_?_:p;var g=(100-p)/p;s.find("input, select, textarea").not("input[type=submit]").not("input[type=radio]").not("input[type=hidden]").parent().css("width",g+"%"),s.find("input[type=radio]").parent().parent().css("width",g+"%")}return s.find(".ig_detected_bot_fields").parent().css("display","none"),c.append(s),jQuery.magnificPopup.close({items:{src:"#popup_container",type:"inline"}}),jQuery(t).closest("form").get(0).reset(),window.send_to_editor(jQuery("<div/>").append(c).html()),!1}),jQuery(".ajax_chosen_select_messages").chosen(),jQuery("#campaign_data").on("change",".ajax_chosen_select_messages",function(){var t=jQuery("#ig-tabs li.current").attr("variation_id"),a=jQuery.extend({},tinyMCEPreInit.mceInit.content),r=jQuery.extend({},tinyMCEPreInit.qtInit.content),n=jQuery(this).parent().siblings(".campaign_target_rules_panel"),s=jQuery(n).find(".message-row").length,o=jQuery(this).val();return""==o?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:o,row:s},success:function(o){if(s++,jQuery(n).find(".messages-list .messages_list_table tbody").append(o.main),jQuery(".color-field").wpColorPicker().each(function(e){var t=jQuery(this).data("color-label")||"";""!==t&&jQuery(this).closest(".wp-picker-container").find("a.wp-color-result").attr("title",t)}),jQuery("#campaign_data").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),e(jQuery("#"+o.id)),jQuery(".ajax_chosen_select_messages").val("").trigger("chosen:updated"),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),i(),jQuery(".message-setting-fields").trigger("change"),jQuery(".tips, .help_tip").tipTip({attribute:"data-tip"}),"undefined"==typeof tinyMCEPreInit.mceInit["edit"+o.id]){for(_prop in a)"string"==typeof a[_prop]&&"content_css"!==_prop&&(a[_prop]=a[_prop].replace(new RegExp("content","g"),"edit"+o.id));tinyMCEPreInit.mceInit["edit"+o.id]=a}if("undefined"==typeof tinyMCEPreInit.qtInit["edit"+o.id]){for(_prop in r)"string"==typeof r[_prop]&&"content_css"!==_prop&&(r[_prop]=r[_prop].replace(new RegExp("content","g"),"edit"+o.id));tinyMCEPreInit.qtInit["edit"+o.id]=r}tinyMCE.init({id:tinyMCEPreInit.mceInit["edit"+o.id]}),quicktags({id:"edit"+o.id}),QTags._buttonsInit(),jQuery("#wp-edit"+o.id+"-wrap").hasClass("tmce-active")?jQuery("#edit"+o.id+"-tmce").click():jQuery("#edit"+o.id+"-html").click(),"undefined"!=typeof t&&jQuery(window).trigger("icegram_tab_selected",[t])}}))}),jQuery("#campaign_target_rules").on("click","#add_local_url_row",function(e){e.preventDefault();var t=a();jQuery(".local_url").find(".url_input_field").length?jQuery(t).insertAfter(jQuery(".local_url").find(".url_input_field").last().parent("span")):jQuery(t).insertBefore(jQuery(".local_url").find("#add_local_url_row_label"))}),jQuery("#campaign_target_rules").on("click",".delete-url",function(e){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(e){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(e){""!=e&&window.open(e,"preview_window")}}))}),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(this).is(":checked")&&jQuery("#exclude_page_id_chosen").find("input").trigger("click")}),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 e=this;if(jQuery(e).parent().find("span#valid-field").removeClass("error"),"undefine"!==jQuery(e).data("option")&&"local_url"==jQuery(e).data("option")&&"*"!=jQuery(e).val()){var t=e.value;if(t.indexOf(r)<0)return void jQuery(e).val(r+t)}})});
1
+ jQuery(function(){function e(e){var t=jQuery(e).find(".message_type option:selected").val(),a=jQuery(e).find(".message_row.ig_"+t).find(".message_theme").val(),i=jQuery(e).find("#message_theme_ig_"+t).find("."+a).attr("style");jQuery(e).find(".message_row, .location").hide(),jQuery(e).find(".ig_"+t).show(),jQuery(e).find(".message_row.ig_"+t).find(".message_theme").next().find(".chosen-single span").attr("style",i),"block"!==jQuery(e).find(".message_body").parent().css("display")?jQuery(e).find(".message_body").parent().next(".wp-editor-wrap").hide():jQuery(e).find(".message_body").parent().next(".wp-editor-wrap").show(),jQuery(e).find(".message_form_layout:checked").is(":visible")||jQuery(e).find(".message_form_layout:visible").first().prop("checked",!0),jQuery(".message_form_layout").change()}function t(e,a,i){var r=Math.floor(Math.random()*(i-a+1))+a;return r==e?t(r,a,i):r}function a(){var e='<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="'+r+'*"/><span class="delete-url"></span></span>';return e}function i(){0==jQuery(".message-row").length?jQuery(".empty_campaign").show():jQuery(".empty_campaign").hide()}var r=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 a=window.send_to_editor;jQuery("#postdivrich").hide(),jQuery(".color-field").wpColorPicker().each(function(e){var t=jQuery(this).data("color-label")||"";""!==t&&jQuery(this).closest(".wp-picker-container").find("a.wp-color-result").attr("title",t)}),jQuery("#campaign_data").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),i(),jQuery(".message_edit:first").trigger("click"),this_data=jQuery(".message_type option:selected").closest(".message-setting-fields");for(var r=0;r<this_data.length;r++)e(this_data[r]);jQuery(".inside").on("change",".message_type",function(t){var a=jQuery(t.target).parents(".message-setting-fields");e(a)}),jQuery("#campaign_data, #message-settings").on("change",".message_theme",function(e){var t=jQuery(e.target).parents(".message-setting-fields"),a=jQuery(t).find(".message_type").val(),i=jQuery(t).find(".message_row.ig_"+a).find(".message_theme").val(),r=jQuery(t).find("#message_theme_ig_"+a).find("."+i).attr("style");jQuery(t).find(".message_row.ig_"+a).find(".message_theme").next().find(".chosen-single span").attr("style",r)}),jQuery("#campaign_data").on("click",".message_image_button",function(e){var t=this;return window.send_to_editor=function(e){imgurl=jQuery("img",e).attr("src"),jQuery(t).parent().find("#upload_image").val(imgurl),tb_remove(),window.send_to_editor=a},!1}),jQuery("#campaign_data ,#message-settings").on("click",".message_headline_button",function(){var e=jQuery(this).prev().attr("data-headline"),a=icegram_writepanel_params.available_headlines.length,i=t(e,0,a),r=icegram_writepanel_params.available_headlines[i];jQuery(this).prev().val(r)}),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("#campaign_data").on("click",".message_delete",function(){jQuery(this).parent().parent().next().remove(),jQuery(this).parent().parent().remove(),i()}),jQuery("#campaign_data").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").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(e){var t={};return jQuery.each(e,function(e,a){t[e]=a}),t}),jQuery("#campaign_data").on("change",".show_form_options",function(e){var t=jQuery(this).closest("p");jQuery(t).siblings(".message_form_options").slideToggle(this.checked).find(".message_form_layout").change(),this.checked||jQuery(t).siblings("p.cta-actions").find("select option").removeAttr("disabled")}).change(),jQuery("#campaign_data, #message-settings").on("change",".message_form_style",function(e){var t=jQuery(e.target).parents(".message-setting-fields"),a=jQuery(t).find("#message_form_style").val(),i=jQuery(t).find("#message_form_style").find("."+a).attr("style");jQuery(t).find(".message_form_style").next().find(".chosen-single span").attr("style",i)}),jQuery("#campaign_data").on("change",".message_form_layout ",function(){if(jQuery(this).is(":visible")){var e=this;jQuery(e).closest(".form_radio_group").siblings(".message_form_color").show().end().siblings(".form_inline_shortcode").hide();var t=jQuery(e).closest(".message_form_options").siblings(".wp-editor-wrap").find(".wp-editor-area"),a=jQuery(t).val().trim().replace("[ig_form]","");jQuery(e).closest(".form_radio_group").siblings(".form_inline_shortcode").hide(),"inline"==jQuery(e).val()&&jQuery(e).is(":checked")&&jQuery(e).closest(".message_form_options").prev("p.message_form_options_check").find(".show_form_options").is(":checked")&&(a+="[ig_form]",jQuery(e).closest(".form_radio_group").siblings(".message_form_color, .form_inline_shortcode").toggle()),jQuery(t).val(a)}}),jQuery("#campaign_data").on("blur",".message_form_html_original",function(e){var t=this,a=jQuery("<div/>").html(jQuery(t).val()).find("input[type=submit], button, input[type=button]");if(jQuery(i).parent().find("p.cta-actions select option").removeAttr("disabled"),a.length>0){var i=jQuery(t).closest(".message_form_options"),r=jQuery(a[a.length-1]),n=r.is("button")?r.not("br, span, div").text():r.val();jQuery(i).siblings("p").find("#message_label").val(n.trim()),jQuery(i).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")}}),jQuery(".ajax_chosen_select_messages").chosen(),jQuery("#campaign_data").on("change",".ajax_chosen_select_messages",function(){var t=jQuery("#ig-tabs li.current").attr("variation_id"),a=jQuery.extend({},tinyMCEPreInit.mceInit.content),r=jQuery.extend({},tinyMCEPreInit.qtInit.content),n=jQuery(this).parent().siblings(".campaign_target_rules_panel"),s=jQuery(n).find(".message-row").length,o=jQuery(this).val();return""==o?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:o,row:s},success:function(o){if(s++,jQuery(n).find(".messages-list .messages_list_table tbody").append(o.main),jQuery(".color-field").wpColorPicker().each(function(e){var t=jQuery(this).data("color-label")||"";""!==t&&jQuery(this).closest(".wp-picker-container").find("a.wp-color-result").attr("title",t)}),jQuery("#campaign_data").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),e(jQuery("#"+o.id)),jQuery(".ajax_chosen_select_messages").val("").trigger("chosen:updated"),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),i(),jQuery(".message-setting-fields").trigger("change"),jQuery(".tips, .help_tip").tipTip({attribute:"data-tip"}),"undefined"==typeof tinyMCEPreInit.mceInit["edit"+o.id]){for(_prop in a)"string"==typeof a[_prop]&&"content_css"!==_prop&&(a[_prop]=a[_prop].replace(new RegExp("content","g"),"edit"+o.id));tinyMCEPreInit.mceInit["edit"+o.id]=a}if("undefined"==typeof tinyMCEPreInit.qtInit["edit"+o.id]){for(_prop in r)"string"==typeof r[_prop]&&"content_css"!==_prop&&(r[_prop]=r[_prop].replace(new RegExp("content","g"),"edit"+o.id));tinyMCEPreInit.qtInit["edit"+o.id]=r}tinyMCE.init({id:tinyMCEPreInit.mceInit["edit"+o.id]}),quicktags({id:"edit"+o.id}),QTags._buttonsInit(),jQuery("#wp-edit"+o.id+"-wrap").hasClass("tmce-active")?jQuery("#edit"+o.id+"-tmce").click():jQuery("#edit"+o.id+"-html").click(),"undefined"!=typeof t&&jQuery(window).trigger("icegram_tab_selected",[t])}}))}),jQuery("#campaign_target_rules").on("click","#add_local_url_row",function(e){e.preventDefault();var t=a();jQuery(".local_url").find(".url_input_field").length?jQuery(t).insertAfter(jQuery(".local_url").find(".url_input_field").last().parent("span")):jQuery(t).insertBefore(jQuery(".local_url").find("#add_local_url_row_label"))}),jQuery("#campaign_target_rules").on("click",".delete-url",function(e){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(e){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(e){""!=e&&window.open(e,"preview_window")}}))}),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(this).is(":checked")&&jQuery("#exclude_page_id_chosen").find("input").trigger("click")}),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 e=this;if(jQuery(e).parent().find("span#valid-field").removeClass("error"),"undefine"!==jQuery(e).data("option")&&"local_url"==jQuery(e).data("option")&&"*"!=jQuery(e).val()){var t=e.value;if(t.indexOf(r)<0)return void jQuery(e).val(r+t)}})});
assets/js/icegram.js CHANGED
@@ -1 +1 @@
1
- function Icegram(){}function Icegram_Message_Type(e){var e;this.root_container="#icegram_messages_container",this.data=e,this.type=e.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(e){if(void 0!=e){jQuery(window).trigger("preinit.icegram",[e]),this.data=e,this.defaults=jQuery.extend({},e.defaults),this.message_data=e.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 t=this;this.message_data.length>0&&jQuery.each(this.message_data,function(e,i){try{if(-1==window.location.href.indexOf("campaign_preview_id")){if("yes"==i.retargeting&&1==jQuery.cookie("icegram_messages_shown_"+i.id))return;if("yes"==i.retargeting_clicked&&1==jQuery.cookie("icegram_messages_clicked_"+i.id))return}var a=null,r=i.type.split("-").join(" ").ucwords().split(" ").join("_");a="function"==typeof window["Icegram_Message_Type_"+r]?new window["Icegram_Message_Type_"+r](i):new Icegram_Message_Type(i),t.messages.push(a),t.map_id_to_index["_"+i.id]=e,t.map_type_to_index[i.type]=jQuery.isArray(t.map_type_to_index[i.type])?t.map_type_to_index[i.type]:new Array,t.map_type_to_index[i.type].push(e)}catch(s){}}),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(e){return this.message_template_cache[e]},Icegram.prototype.set_template_fn=function(e,t){this.message_template_cache[e]=t},Icegram.prototype.get_message=function(e){return this.messages.length>e?this.messages[e]:void 0},Icegram.prototype.get_message_by_id=function(e){if(this.map_id_to_index.hasOwnProperty("_"+e)){var t=this.map_id_to_index["_"+e];return this.get_message(t)}return void 0},Icegram.prototype.get_messages_by_type=function(e){if(this.map_type_to_index.hasOwnProperty(e)){var t=this.map_type_to_index[e],i=[];if(jQuery.isArray(t)){var a=this;jQuery.each(t,function(e,t){i.push(a.get_message(t))})}return i}return void 0},Icegram.prototype.get_powered_by=function(e){var t=jQuery.extend({},this.powered_by);return t.link=t.link+(e||""),t},Icegram.prototype.track=function(e,t){"object"==typeof t&&t.hasOwnProperty("message_id")&&t.hasOwnProperty("campaign_id")&&(jQuery(window).trigger("track.icegram",[e,t]),this.tracking_data.push({type:e,params:t}))},Icegram.prototype.submit_tracking_data=function(e){if(this.tracking_data.length>0&&-1==window.location.href.indexOf("campaign_preview_id")){var t={type:"POST",url:this.data.ajax_url,async:e||!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(e,t,i){},error:function(e,t,i){}};"remote"==this.mode&&(t.xhrFields={withCredentials:!0},t.crossDomain=!0,t.async=!0),jQuery.ajax(t),this.tracking_data=[]}},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.render=function(){this.pre_render();var e=this.render_template();try{jQuery(this.root_container).append(e)}catch(t){}this.dom_id="icegram_message_"+this.data.id,this.el=jQuery("#"+this.dom_id),this.set_position();var i=window.icegram.get_powered_by(this.type);if(i.hasOwnProperty("link")&&i.hasOwnProperty("text")&&""!=i.text&&this.add_powered_by(i),(void 0==this.data.headline||""==this.data.headline)&&this.el.find(".ig_headline").hide(),(void 0==this.data.icon||""==this.data.icon)&&this.el.find(".ig_icon").remove(),void 0==this.data.message||""==this.data.message)this.el.find(".ig_message").hide();else{var a=this.el.find(".ig_embed_form").get(0);if(a){jQuery(window).width()<644&&jQuery(a).removeClass("ig_horizontal ig_full ig_half ig_quarter").addClass("ig_vertical ig_full").find(".ig_form_el_group").css("width","96%");var r=jQuery(a).html();a=jQuery(a).empty(),jQuery(a).replaceWith(r),this.el.find(".ig_message").html(a.append(this.el.find(".ig_message").html()));var s=this.el.find(".ig_embed_form_container").prev(),o=this.el.find(".ig_embed_form_container").next();a.hasClass("ig_inline")&&s.get(0)&&(this.el.find(".ig_embed_form_container").appendTo(s),o.get(0)&&o.get(0).tagName==s.get(0).tagName&&(s.append(o.html()),o.remove()))}}if((void 0==this.data.label||""==this.data.label)&&this.el.find(".ig_button").hide(),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 n=window.icegram.hexToHsl(this.data.cta_bg_color);this.el.find('.ig_button, form input[type="submit"]').css("border-color","hsl("+n.h+","+(n.s-5)+"%,"+(n.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)}(void 0==this.data.label||""==this.data.label)&&this.el.find(".ig_button").hide(),"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_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 e=this;this.timer=setTimeout(function(){e.show()},1e3*this.data.delay_time)}},Icegram_Message_Type.prototype.set_template=function(e){this.template=e},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(e,t){this.is_visible()||(this.el.show(e),t!==!0&&this.track("shown"))},Icegram_Message_Type.prototype.hide=function(e,t){this.is_visible()&&(this.el.hide(e),t!==!0&&this.track("closed"))},Icegram_Message_Type.prototype.set_position=function(){},Icegram_Message_Type.prototype.add_powered_by=function(e){},Icegram_Message_Type.prototype.track=function(e,t){"function"==typeof window.icegram.track&&(t=t||{},jQuery.extend(t,{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(e,t))},Icegram_Message_Type.prototype.is_visible=function(){return this.el.is(":visible")},Icegram_Message_Type.prototype.toggle=function(e){this.is_visible()?this.hide(e):this.show(e)},Icegram_Message_Type.prototype.on_click=function(e){if(e.data=e.data||{self:this},jQuery(e.target).filter(".ig_close").length)return void e.data.self.hide();var t=jQuery(e.target).closest(".icegram").find("form").first();(jQuery(e.target).filter(".ig_button, .ig_cta ,:submit").length||jQuery(e.target).parents(".ig_button, .ig_cta ").length&&!(t.find("ig_button").length>0||t.find("input[type=button]").length>0||t.find("input[type=submit]").length>0))&&e.data.self.on_cta_click(e)},Icegram_Message_Type.prototype.on_resize=function(e){},Icegram_Message_Type.prototype.on_cta_click=function(e){if(e.data=e.data||{self:this},e.data.self.track("clicked"),jQuery(e.target).closest(".icegram").find("form").length){var t=jQuery(e.target).closest(".icegram").find("form").first();jQuery(t).submit()}else"string"==typeof e.data.self.data.link&&""!=e.data.self.data.link?window.location.href=e.data.self.data.link:e.data.self.data.hide!==!1&&e.data.self.hide()},String.prototype.ucwords=function(){return this.toLowerCase().replace(/\b[a-z]/g,function(e){return e.toUpperCase()})},Icegram.prototype.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},Icegram.prototype.rgbToHsl=function(e,t,i){e/=255,t/=255,i/=255;var a,r,s=Math.max(e,t,i),o=Math.min(e,t,i),n=(s+o)/2;if(s==o)a=r=0;else{var d=s-o;switch(r=n>.5?d/(2-s-o):d/(s+o),s){case e:a=(t-i)/d;break;case t:a=(i-e)/d+2;break;case i:a=(e-t)/d+4}n=Math.floor(100*n),r=Math.floor(100*r),a=Math.floor(60*a),0>a&&(a+=360)}return{h:a,s:r,l:n}},Icegram.prototype.hexToHsl=function(e){var t=window.icegram.hexToRgb(e);return window.icegram.rgbToHsl(t.r,t.g,t.b)},"function"!=typeof Object.create&&!function(){var e=function(){};Object.create=function(t){if(arguments.length>1)throw Error("Second argument not supported");if(null===t)throw Error("Cannot set a null [[Prototype]]");if("object"!=typeof t)throw TypeError("Argument must be an object");return e.prototype=t,new e}}(),void 0!==typeof jQuery.cookie&&!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function t(e){return n.raw?e:encodeURIComponent(e)}function i(e){return n.raw?e:decodeURIComponent(e)}function a(e){return t(n.json?JSON.stringify(e):String(e))}function r(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(o," ")),n.json?JSON.parse(e):e}catch(t){}}function s(t,i){var a=n.raw?t:r(t);return e.isFunction(i)?i(a):a}var o=/\+/g,n=e.cookie=function(r,o,d){if(void 0!==o&&!e.isFunction(o)){if(d=e.extend({},n.defaults,d),"number"==typeof d.expires){var c=d.expires,_=d.expires=new Date;_.setTime(+_+864e5*c)}return document.cookie=[t(r),"=",a(o),d.expires?"; expires="+d.expires.toUTCString():"",d.path?"; path="+d.path:"",d.domain?"; domain="+d.domain:"",d.secure?"; secure":""].join("")}for(var p=r?void 0:{},g=document.cookie?document.cookie.split("; "):[],h=0,l=g.length;l>h;h++){var m=g[h].split("="),u=i(m.shift()),f=m.join("=");if(r&&r===u){p=s(f,o);break}r||void 0===(f=s(f))||(p[u]=f)}return p};n.defaults={},e.removeCookie=function(t,i){return void 0===e.cookie(t)?!1:(e.cookie(t,"",e.extend({},i,{expires:-1})),!e.cookie(t))}});
1
+ function Icegram(){}function Icegram_Message_Type(e){var e;this.root_container="#icegram_messages_container",this.data=e,this.type=e.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(e){if(void 0!=e){jQuery(window).trigger("preinit.icegram",[e]),this.data=e,this.defaults=jQuery.extend({},e.defaults),this.message_data=e.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 t=this;this.message_data.length>0&&jQuery.each(this.message_data,function(e,i){try{if(-1==window.location.href.indexOf("campaign_preview_id")){if("yes"==i.retargeting&&1==jQuery.cookie("icegram_messages_shown_"+i.id))return;if("yes"==i.retargeting_clicked&&1==jQuery.cookie("icegram_messages_clicked_"+i.id))return}var a=null,r=i.type.split("-").join(" ").ucwords().split(" ").join("_");a="function"==typeof window["Icegram_Message_Type_"+r]?new window["Icegram_Message_Type_"+r](i):new Icegram_Message_Type(i),t.messages.push(a),t.map_id_to_index["_"+i.id]=e,t.map_type_to_index[i.type]=jQuery.isArray(t.map_type_to_index[i.type])?t.map_type_to_index[i.type]:new Array,t.map_type_to_index[i.type].push(e)}catch(o){}}),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(e){return this.message_template_cache[e]},Icegram.prototype.set_template_fn=function(e,t){this.message_template_cache[e]=t},Icegram.prototype.get_message=function(e){return this.messages.length>e?this.messages[e]:void 0},Icegram.prototype.get_message_by_id=function(e){if(this.map_id_to_index.hasOwnProperty("_"+e)){var t=this.map_id_to_index["_"+e];return this.get_message(t)}return void 0},Icegram.prototype.get_messages_by_type=function(e){if(this.map_type_to_index.hasOwnProperty(e)){var t=this.map_type_to_index[e],i=[];if(jQuery.isArray(t)){var a=this;jQuery.each(t,function(e,t){i.push(a.get_message(t))})}return i}return void 0},Icegram.prototype.get_powered_by=function(e){var t=jQuery.extend({},this.powered_by);return t.link=t.link+(e||""),t},Icegram.prototype.track=function(e,t){"object"==typeof t&&t.hasOwnProperty("message_id")&&t.hasOwnProperty("campaign_id")&&(jQuery(window).trigger("track.icegram",[e,t]),this.tracking_data.push({type:e,params:t}))},Icegram.prototype.submit_tracking_data=function(e){if(this.tracking_data.length>0&&-1==window.location.href.indexOf("campaign_preview_id")){var t={type:"POST",url:this.data.ajax_url,async:e||!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(e,t,i){},error:function(e,t,i){}};"remote"==this.mode&&(t.xhrFields={withCredentials:!0},t.crossDomain=!0,t.async=!0),jQuery.ajax(t),this.tracking_data=[]}},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.render=function(){this.pre_render();var e=this.render_template();try{jQuery(this.root_container).append(e)}catch(t){}this.dom_id="icegram_message_"+this.data.id,this.el=jQuery("#"+this.dom_id),this.set_position();var i=window.icegram.get_powered_by(this.type);if(i.hasOwnProperty("link")&&i.hasOwnProperty("text")&&""!=i.text&&this.add_powered_by(i),(void 0==this.data.headline||""==this.data.headline)&&this.el.find(".ig_headline").hide(),(void 0==this.data.icon||""==this.data.icon)&&this.el.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(),-1===jQuery.inArray(this.data.type,["toast","badge","ribbon","exit-redirect"])){var a=null,r=this.data.form_layout,o=this.data.form_has_label,s=this.data.form_style||"none",n=this.data.label||"Submit";if(s=s.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 _=this.el.find("form.ig_embed_form");r=_.hasClass("ig_left")?"left":_.hasClass("ig_right")?"right":"inline","inline"==r&&this.el.find("form.ig_embed_form").replaceWith('<div class="ig_form_container layout_inline"></div>'),o=_.find(".ig_form_el_group label").length>0?"yes":void 0,0==_.find(".ig_button").length&&_.append('<input class="ig_button" type="submit" value="'+n+'">'),a=jQuery("<div/>").append(_).html()}if(null==a)this.el.find(".ig_form_container").remove();else{var d=window.icegram.formProcess(this,a);if(d){var l=void 0!=this.data.form_header&&""!=this.data.form_header?'<div class="ig_form_header">'+this.data.form_header+"</div>":"",c=void 0!=this.data.form_footer&&""!=this.data.form_footer?'<div class="ig_form_footer">'+this.data.form_footer+"</div>":"";this.el.find(".ig_form_container").append(l).append(d).append(c),void 0==o?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(),this.el.find(".ig_button").val(n)),this.el.addClass("ig_form_"+r);var p="";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),p+=".ig_form_"+r+".ig_form_"+s+" .ig_form_container:before{ background-color:"+this.data.form_bg_color+"; border-color:"+this.data.form_bg_color+";}"):p+=".ig_form_"+r+".ig_form_"+s+" .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),"none"!=s&&this.el.addClass("ig_form_"+s).find(".ig_form_container").prepend('<style type="text/css">'+p+"</style>")}}}if(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 g=window.icegram.hexToHsl(this.data.cta_bg_color);this.el.find('.ig_button, form input[type="submit"]').css("border-color","hsl("+g.h+","+(g.s-5)+"%,"+(g.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)}"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(e,t){var i=jQuery("<div/>").html(t).find("input, label, select, textarea, button").not("br");if(i.length>0){var a=jQuery('<div class="ig_embed_form_container ig_clear_fix"></div>'),r=jQuery("<div/>").html(t).find("form").removeAttr("class").removeAttr("style").addClass("ig_clear_fix").empty(),o=".",s=0;jQuery.each(i,function(e,t){var i=jQuery(t),r=jQuery('<div class="ig_form_els"></div>');if(i.removeAttr("class").removeAttr("style"),(-1==i.attr("tabindex")||"hidden"==i.attr("type"))&&(i.addClass("ig_detected_bot_fields"),s--),i.is("label"))o=i.not("input, select, textarea, button, span, br").text().replace(/\s+/g," ")||".";else if((i.is("input")||i.is("button")||i.is("textarea")||i.is("select"))&&!i.is("input[type=radio]")){if(i.removeAttr("id"),i.is("button")){var n=i.not("br, span, div").text().trim()||"";i.remove(),i=jQuery('<input type="submit" value="'+n+'">')}(i.is("input[type=submit]")||i.is("input[type=button]"))&&i.addClass("ig_button"),label_class="ig_el_label ig_button_label","."!=o&&(label_class="ig_el_label",i.is("select")?jQuery('<option class="ig_el_placeholder">'+o+"</option>").prependTo(i):i.attr("placeholder",o)),jQuery('<label class="'+label_class+'">'+o+"</label>").appendTo(r),o=".",r.append(i),a.append(r),s++}else i.is("input[type=radio]")&&(label_class="ig_el_label ig_button_label","."!=o&&(label_class="ig_el_label"),jQuery('<label><span class="'+label_class+'">'+o+"</span></label>").prepend(i).appendTo(r),o=".",r.addClass("ig_form_el_radio"),a.append(r),s++)});var n=["","ig_full","ig_half","ig_third","ig_quater"];return s=4>s?s:4,a.addClass(n[s]).find(".ig_detected_bot_fields").parent().css("display","none"),r.append(a),jQuery("<div/>").append(r).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 e=this;this.timer=setTimeout(function(){e.show()},1e3*this.data.delay_time)}},Icegram_Message_Type.prototype.set_template=function(e){this.template=e},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(e,t){this.is_visible()||(this.el.show(e),t!==!0&&this.track("shown"));var i=this;window.icegram.adjustFormContainerHeight(i)},Icegram_Message_Type.prototype.hide=function(e,t){this.is_visible()&&(this.el.hide(e),t!==!0&&this.track("closed"))},Icegram_Message_Type.prototype.set_position=function(){},Icegram_Message_Type.prototype.add_powered_by=function(e){},Icegram_Message_Type.prototype.track=function(e,t){"function"==typeof window.icegram.track&&(t=t||{},jQuery.extend(t,{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(e,t))},Icegram_Message_Type.prototype.is_visible=function(){return this.el.is(":visible")},Icegram_Message_Type.prototype.toggle=function(e){this.is_visible()?this.hide(e):this.show(e)},Icegram_Message_Type.prototype.on_click=function(e){if(e.data=e.data||{self:this},jQuery(e.target).filter(".ig_close").length)return void e.data.self.hide();var t=jQuery(e.target).closest(".icegram").find("form:visible").first();(jQuery(e.target).filter(".ig_button, .ig_cta ,:submit").length||jQuery(e.target).parents(".ig_button, .ig_cta ").length&&!(t.find("ig_button").length>0||t.find("input[type=button]").length>0||t.find("input[type=submit]").length>0))&&e.data.self.on_cta_click(e)},Icegram_Message_Type.prototype.on_resize=function(e){},Icegram_Message_Type.prototype.on_cta_click=function(e){if(e.data=e.data||{self:this},e.data.self.track("clicked"),jQuery(e.target).closest(".icegram").find("form").length){var t=jQuery(e.target).closest(".icegram").find("form:visible").first();jQuery(t).submit()}else"string"==typeof e.data.self.data.link&&""!=e.data.self.data.link?window.location.href=e.data.self.data.link:e.data.self.data.hide!==!1&&e.data.self.hide()},String.prototype.ucwords=function(){return this.toLowerCase().replace(/\b[a-z]/g,function(e){return e.toUpperCase()})},Icegram.prototype.adjustFormContainerHeight=function(e){var t="";if(e.el.hasClass("ig_form_left")||e.el.hasClass("ig_form_right")){t=e.el.hasClass("ig_form_left")?"left":"right";var i=e.el.find(".ig_data").outerHeight()>e.el.find(".ig_form_container.layout_"+t).outerHeight()?e.el.find(".ig_data").outerHeight():e.el.find(".ig_form_container.layout_"+t).outerHeight();e.el.find(".ig_form_container").outerHeight(i)}if(e.el.hasClass("ig_form_bottom")||e.el.hasClass("ig_form_inline")){t=e.el.hasClass("ig_form_bottom")?"bottom":"inline";var i=e.el.find(".ig_form_container.layout_"+t+" .ig_button").innerHeight()>e.el.find(".ig_form_container input").first().outerHeight()?e.el.find(".ig_form_container.layout_"+t+" .ig_button").innerHeight():e.el.find(".ig_form_container input").first().outerHeight();e.el.find(".ig_form_container input, .ig_form_container select, .ig_form_container textarea").not(".ig_form_container.layout_"+t+" .ig_button, .ig_form_el_radio input").outerHeight(i)}},Icegram.prototype.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},Icegram.prototype.rgbToHsl=function(e,t,i){e/=255,t/=255,i/=255;var a,r,o=Math.max(e,t,i),s=Math.min(e,t,i),n=(o+s)/2;if(o==s)a=r=0;else{var _=o-s;switch(r=n>.5?_/(2-o-s):_/(o+s),o){case e:a=(t-i)/_;break;case t:a=(i-e)/_+2;break;case i:a=(e-t)/_+4}n=Math.floor(100*n),r=Math.floor(100*r),a=Math.floor(60*a),0>a&&(a+=360)}return{h:a,s:r,l:n}},Icegram.prototype.hexToHsl=function(e){var t=window.icegram.hexToRgb(e);return window.icegram.rgbToHsl(t.r,t.g,t.b)},"function"!=typeof Object.create&&!function(){var e=function(){};Object.create=function(t){if(arguments.length>1)throw Error("Second argument not supported");if(null===t)throw Error("Cannot set a null [[Prototype]]");if("object"!=typeof t)throw TypeError("Argument must be an object");return e.prototype=t,new e}}(),void 0!==typeof jQuery.cookie&&!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function t(e){return n.raw?e:encodeURIComponent(e)}function i(e){return n.raw?e:decodeURIComponent(e)}function a(e){return t(n.json?JSON.stringify(e):String(e))}function r(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(s," ")),n.json?JSON.parse(e):e}catch(t){}}function o(t,i){var a=n.raw?t:r(t);return e.isFunction(i)?i(a):a}var s=/\+/g,n=e.cookie=function(r,s,_){if(void 0!==s&&!e.isFunction(s)){if(_=e.extend({},n.defaults,_),"number"==typeof _.expires){var d=_.expires,l=_.expires=new Date;l.setTime(+l+864e5*d)}return document.cookie=[t(r),"=",a(s),_.expires?"; expires="+_.expires.toUTCString():"",_.path?"; path="+_.path:"",_.domain?"; domain="+_.domain:"",_.secure?"; secure":""].join("")}for(var c=r?void 0:{},p=document.cookie?document.cookie.split("; "):[],g=0,h=p.length;h>g;g++){var f=p[g].split("="),m=i(f.shift()),u=f.join("=");if(r&&r===m){c=o(u,s);break}r||void 0===(u=o(u))||(c[m]=u)}return c};n.defaults={},e.removeCookie=function(t,i){return void 0===e.cookie(t)?!1:(e.cookie(t,"",e.extend({},i,{expires:-1})),!e.cookie(t))}});
classes/class-icegram-campaign.php CHANGED
@@ -131,7 +131,7 @@ if ( !class_exists( 'Icegram_Campaign' ) ) {
131
  return true;
132
  }
133
  }
134
- if ( !empty( $campaign->rules_summary['where']['homepage'] ) && $campaign->rules_summary['where']['homepage'] == 'yes' && ( $_REQUEST['is_home'] === 'true') ) {
135
  return true;
136
  }
137
  if ( !empty( $page_id ) ) {
@@ -146,7 +146,6 @@ if ( !class_exists( 'Icegram_Campaign' ) ) {
146
  if(!empty($_POST['ig_remote_url'])){
147
  return;
148
  }
149
-
150
  foreach ($campaign->rules['local_urls'] as $local_url_pattern) {
151
  $result = $this->is_valid_url($local_url_pattern , $current_page_url);
152
  if($result){
131
  return true;
132
  }
133
  }
134
+ if ( !empty( $campaign->rules_summary['where']['homepage'] ) && $campaign->rules_summary['where']['homepage'] == 'yes' && ( $_REQUEST['is_home'] === 'true' || is_home() || is_front_page() )) {
135
  return true;
136
  }
137
  if ( !empty( $page_id ) ) {
146
  if(!empty($_POST['ig_remote_url'])){
147
  return;
148
  }
 
149
  foreach ($campaign->rules['local_urls'] as $local_url_pattern) {
150
  $result = $this->is_valid_url($local_url_pattern , $current_page_url);
151
  if($result){
classes/class-icegram-message-admin.php CHANGED
@@ -21,8 +21,6 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
21
  add_filter( 'manage_edit-ig_message_columns', array( $this, 'edit_columns' ) );
22
  add_action( 'manage_ig_message_posts_custom_column', array( $this, 'custom_columns' ), 2 );
23
  add_filter( 'icegram_available_headlines', array( &$this, 'available_headlines' ) );
24
- add_action( 'media_buttons', array(&$this, 'embed_form_button'), 11, 1);
25
- add_action( 'admin_footer', array(&$this, 'embed_form_popup_content') );
26
 
27
  //duplicate message
28
  add_filter( 'post_row_actions', array(&$this , 'add_message_action'), 10, 2 );
@@ -36,72 +34,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
36
  }
37
  return $ig_message_admin;
38
  }
39
-
40
- function embed_form_button($editor_id ){
41
- global $icegram , $post;
42
- if( !$this->is_icegram_editor && empty($_POST['message_id']) && !in_array($post->post_type , array('ig_message' , 'ig_campaign') ) ){
43
- echo "";
44
- }else{
45
- foreach ( $icegram->message_types as $type => $value ) {
46
- if(!empty($value['settings']['embed_form'])){
47
- $message_types[] = $type;
48
- }
49
- }
50
- echo $out = '<a href="#popup_container" class="ig_'.implode( ' ig_', $message_types).' button" id="embed_form_but">'.__('Embed Form' , 'icegram' ).'</a>';
51
- }
52
- }
53
-
54
- function embed_form_popup_content(){
55
- $screen = get_current_screen();
56
- if ( !in_array( $screen->id, array( 'ig_campaign', 'ig_message' ), true ) ) return;
57
- ?>
58
- <div id="popup_container" class="mfp-hide" >
59
- <h3><?php _e('Add an optin / subscription form', 'icegram' ); ?>
60
- <a id="embed_howto_link" target="_blank" href="http://www.icegram.com/icegram_form_integration/" ><?php _e('Need help?', 'icegram' ); ?></a>
61
- </h3>
62
- <form id="embed_form" action="#">
63
- <p>
64
- <textarea rows="10" autocomplete="off" cols="65" name="form_data" id="form_data" value="" placeholder="<?php _e('Paste HTML code of your form here...', 'icegram' ); ?>"></textarea>
65
- </p>
66
- <p class="use_cta_check">
67
- <label><input type="checkbox" name="use_cta_to_submit" value="" checked> <?php _e('Use message\'s Call to Action button to submit this form' , 'icegram' ); ?></label>
68
- </p>
69
- <p class="embed_form_layouts">
70
- <label class="message_label"><strong><?php _e('Form Layout', 'icegram' ); ?></strong></label>
71
- <label><input type="radio" name="embed_form_layout" value="ig_horizontal" checked="checked" /> <?php _e('Horizontal', 'icegram' ); ?> </label>
72
- <label><input type="radio" name="embed_form_layout" value="ig_vertical"/> <?php _e('Vertical', 'icegram' ); ?> </label>
73
- </p>
74
- <p>
75
- <label class="message_label"><strong><?php _e('Width', 'icegram' ); ?></strong></label>
76
- <select id="embed_form_width" name="embed_form_width">
77
- <option value="ig_full" selected="selected"><?php _e('Full', 'icegram' ); ?></option>
78
- <option value="ig_half"><?php _e('Half', 'icegram' ); ?></option>
79
- <option value="ig_quarter"><?php _e('Quarter', 'icegram' ); ?></option>
80
- <!-- <option value="ig_auto" selected="selected"><?php _e('Auto', 'icegram' ); ?></option> -->
81
- </select>
82
- </p>
83
- <p>
84
- <label class="message_label"><strong><?php _e('Position', 'icegram' ); ?></strong></label>
85
- <select id="embed_form_positions" name="embed_form_positions">
86
- <option value="ig_left" selected="selected"><?php _e('Left', 'icegram' ); ?></option>
87
- <option value="ig_right"><?php _e('Right', 'icegram' ); ?></option>
88
- <option value="ig_center"><?php _e('Center', 'icegram' ); ?></option>
89
- <option value="ig_inline"><?php _e('Inline', 'icegram' ); ?></option>
90
- </select>
91
- </p>
92
- <p class="has_label_check">
93
- <label class="message_label"><strong><?php _e('Keep Labels' , 'icegram' ); ?> </strong></label>
94
- <label><input type="checkbox" name="has_label" value="" checked> <?php _e('Show them above the field.' , 'icegram' ); ?></label>
95
- </p>
96
- <p>
97
- <input type="submit" name="submit" class="parse_form button-primary" value="Insert Form"/>&nbsp;&nbsp;&nbsp;
98
- <a class="button cancel_parse_form" style="color:#bbb;" href="#" ><?php _e('Cancel', 'icegram' ); ?></a>
99
- </p>
100
- </form>
101
- </div>
102
- <?php
103
- }
104
-
105
  // Initialize message metabox
106
  function add_message_meta_boxes() {
107
  global $icegram;
@@ -111,9 +44,8 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
111
 
112
  // Display all message settings fields
113
  function message_form_fields( $post = '', $action = array() ) {
114
-
115
  global $icegram, $pagenow;
116
-
117
  if( ( is_object( $post ) && $post->post_type != 'ig_message' ) )
118
  return;
119
  ?>
@@ -235,6 +167,164 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
235
  <span class="headline-buttons-icon admin_field_icon"></span>
236
  </a>
237
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['label'] )?>">
239
  <label for="message_label" class="message_label">
240
  <strong><?php _e( 'Button Label', 'icegram' ); ?></strong>
@@ -255,18 +345,7 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
255
  $icegram_message_target_link = apply_filters('icegram_message_field_link' , array( 'html' => $target_link_field ,'message_id' => $message_id ,'message_data' => $message_data) );
256
  echo $icegram_message_target_link['html'];
257
  ?>
258
-
259
 
260
- <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['icon'] )?>">
261
- <label for="upload_image" class="message_label">
262
- <strong><?php _e( 'Icon / Avatar Image', 'icegram' ); ?></strong>
263
- <span class="help_tip admin_field_icon" data-tip="<?php _e( 'This image will appear in message content.', 'icegram' ); ?>"></span>
264
- </label>
265
- <input id="upload_image" type="text" class="message_field" name="message_data[<?php echo $message_id; ?>][icon]" value="<?php if( isset( $message_data['icon'] ) ) echo esc_attr( $message_data['icon'] ); ?>"/>
266
- <a class="button message_image_button tips" data-tip="<?php _e( 'Upload / Select an image', 'icegram' ); ?>" onclick="tb_show('<?php _e( 'Upload / Select Image' ); ?>', 'media-upload.php?type=image&TB_iframe=true', false);" >
267
- <span class="image-buttons-icon admin_field_icon"></span>
268
- </a>
269
- </p>
270
  <?php
271
  $text_color = ( !empty( $message_data['text_color'] ) ) ? $message_data['text_color'] : '';
272
  $bg_color = ( !empty( $message_data['bg_color'] ) ) ? $message_data['bg_color'] : '';
@@ -299,21 +378,6 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
299
  echo $colors_options_html;
300
 
301
  ?>
302
- <?php
303
- $editor_args = array(
304
- 'textarea_name' => 'message_data[' . $message_id . '][message]',
305
- 'textarea_rows' => 10,
306
- 'editor_class' => 'wp-editor-message',
307
- 'media_buttons' => true,
308
- 'tinymce' => true
309
- );
310
- ?>
311
- <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['message'] )?>">
312
- <style type="text/css">.wp-editor-tools:after {display: inline-block !important; }</style>
313
- <label for="message_body" class="message_body message_label"><strong><?php _e( 'Message Body', 'icegram' ); ?></strong></label>
314
- <?php $message = ( !empty( $message_data['message'] ) ) ? $message_data['message'] : ''; ?>
315
- <?php wp_editor( $message, 'edit'.$message_id, $editor_args ); ?>
316
- </p>
317
  <p class="message_row position <?php echo "ig_".implode( ' ig_', $settings['position'] )?>">
318
  <label for="message_position" class="message_label"><strong><?php _e( 'Position', 'icegram' ); ?></strong></label>
319
  <span class="message_field location-selector message_label">
@@ -507,7 +571,28 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
507
  return apply_filters( 'icegram_message_settings_to_show', $settings );
508
 
509
  }
510
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
511
  // Create array for positions available for all message types
512
  function message_positions_to_show() {
513
 
@@ -549,9 +634,20 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
549
  'theme' => $default_themes
550
  );
551
  return apply_filters( 'icegram_default_message_data', $default_message_data );
 
552
 
 
 
 
 
 
 
 
 
 
 
 
553
  }
554
-
555
  // All headline to generate randomly for messages
556
  function available_headlines( $available_headlines = array() ) {
557
  $available_headlines = array_merge( $available_headlines, array(
21
  add_filter( 'manage_edit-ig_message_columns', array( $this, 'edit_columns' ) );
22
  add_action( 'manage_ig_message_posts_custom_column', array( $this, 'custom_columns' ), 2 );
23
  add_filter( 'icegram_available_headlines', array( &$this, 'available_headlines' ) );
 
 
24
 
25
  //duplicate message
26
  add_filter( 'post_row_actions', array(&$this , 'add_message_action'), 10, 2 );
34
  }
35
  return $ig_message_admin;
36
  }
37
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  // Initialize message metabox
39
  function add_message_meta_boxes() {
40
  global $icegram;
44
 
45
  // Display all message settings fields
46
  function message_form_fields( $post = '', $action = array() ) {
 
47
  global $icegram, $pagenow;
48
+
49
  if( ( is_object( $post ) && $post->post_type != 'ig_message' ) )
50
  return;
51
  ?>
167
  <span class="headline-buttons-icon admin_field_icon"></span>
168
  </a>
169
  </p>
170
+ <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['icon'] )?>">
171
+ <label for="upload_image" class="message_label">
172
+ <strong><?php _e( 'Icon / Avatar Image', 'icegram' ); ?></strong>
173
+ <span class="help_tip admin_field_icon" data-tip="<?php _e( 'This image will appear in message content.', 'icegram' ); ?>"></span>
174
+ </label>
175
+ <input id="upload_image" type="text" class="message_field" name="message_data[<?php echo $message_id; ?>][icon]" value="<?php if( isset( $message_data['icon'] ) ) echo esc_attr( $message_data['icon'] ); ?>"/>
176
+ <a class="button message_image_button tips" data-tip="<?php _e( 'Upload / Select an image', 'icegram' ); ?>" onclick="tb_show('<?php _e( 'Upload / Select Image' ); ?>', 'media-upload.php?type=image&TB_iframe=true', false);" >
177
+ <span class="image-buttons-icon admin_field_icon"></span>
178
+ </a>
179
+ </p>
180
+
181
+ <?php
182
+ $editor_args = array(
183
+ 'textarea_name' => 'message_data[' . $message_id . '][message]',
184
+ 'textarea_rows' => 10,
185
+ 'editor_class' => 'wp-editor-message',
186
+ 'media_buttons' => true,
187
+ 'tinymce' => true
188
+ );
189
+ ?>
190
+ <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['message'] )?>">
191
+ <style type="text/css">.wp-editor-tools:after {display: inline-block !important; }</style>
192
+ <label for="message_body" class="message_body message_label"><strong><?php _e( 'Message Body', 'icegram' ); ?></strong></label>
193
+ <?php
194
+ $message = ( !empty( $message_data['message'] ) ) ? $message_data['message'] : '';
195
+ //TODO :: check need of exit-redirect Type
196
+ if(in_array($message_data['type'], array('toast', 'badge', 'ribbon' , 'exit-redirect'))){
197
+ $message = str_replace('[ig_form]', '', $message);
198
+ }
199
+ ?>
200
+
201
+ <?php wp_editor( $message, 'edit'.$message_id, $editor_args ); ?>
202
+ </p>
203
+
204
+ <!-- Embed Form options -->
205
+
206
+ <?php
207
+ $form_html = ( !empty( $message_data['form_html'] ) ) ? $message_data['form_html'] : '';
208
+ $form_html_original = ( !empty( $message_data['form_html_original'] ) ) ? $message_data['form_html_original'] : '';
209
+ $form_header = ( !empty( $message_data['form_header'] ) ) ? $message_data['form_header'] : '';
210
+ $form_footer = ( !empty( $message_data['form_footer'] ) ) ? $message_data['form_footer'] : '';
211
+ $form_bg_color = ( !empty( $message_data['form_bg_color'] ) ) ? $message_data['form_bg_color'] : '';
212
+ $form_text_color = ( !empty( $message_data['form_text_color'] ) ) ? $message_data['form_text_color'] : '';
213
+ $form_has_label = ( !empty( $message_data['form_has_label'] ) ) ? checked( $message_data['form_has_label'], 'yes', 0 ) : '';
214
+ $form_layouts = $this->message_form_layouts_to_show();
215
+ $default_form_layout = !empty($icegram->message_types[$message_data['type']]['settings']['form_layout']['default']) ? $icegram->message_types[$message_data['type']]['settings']['form_layout']['default'] : '';
216
+ $use_form_check = ( !empty( $message_data['use_form'] ) )
217
+ ? checked( $message_data['use_form'], 'yes', 0)
218
+ : '';
219
+ $show_form_options = empty($use_form_check) ? 'style="display:none;"' : '';
220
+ ?>
221
+ <p class="message_row message_form_options_check <?php echo "ig_".implode( ' ig_', $settings['embed_form'] )?>" message_id="<?php echo $message_id; ?>">
222
+ <label for="message_use_form" class="message_label"><strong><?php _e( 'Form', 'icegram' ); ?></strong></label> <label >
223
+ <input class="show_form_options" type="checkbox" name="message_data[<?php echo $message_id; ?>][use_form]" id="message_use_form" value="yes" <?php echo $use_form_check ?>/> <?php _e('Use Opt-in / Subscription / Lead capture form' , 'icegram' ); ?></label>
224
+ </p>
225
+
226
+ <div class="message_form_options" <?php echo $show_form_options; ?> message_id="<?php echo $message_id; ?>">
227
+ <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['embed_form'] )?>">
228
+ <label for="message_form_style" class="message_label">&nbsp;</label>
229
+ <span class="message_label"> <?php _e('Style', 'icegram' ); ?></span>
230
+ <label for="message_form_style" class="message_label">&nbsp;</label>
231
+ <select id="message_form_style" name="message_data[<?php echo $message_id; ?>][form_style]" class="icegram_chosen_page message_form_style ">
232
+ <?php
233
+ $available_form_styles = $this->available_form_styles();
234
+ foreach ( $available_form_styles as $style ) {
235
+ $bg_img = "background-image: url(" . $icegram->plugin_url.'/assets/images/' . strtolower(str_replace( ' ', '_', $style['name'])) . ".png)";
236
+ ?>
237
+ <option style="<?php echo $bg_img; ?>" value="<?php echo esc_attr( strtolower(str_replace( ' ', '_', $style['name'])) ) ?>" class="<?php echo strtolower(str_replace( ' ', '_', $style['name'])) ?>" <?php echo ( !empty( $message_data['form_style'] ) && esc_attr( strtolower($style['name']) ) == $message_data['form_style'] ) ? 'selected' : ''; ?>><?php echo esc_html( $style['name'] ) ?></option>
238
+ <?php } ?>
239
+ </select>
240
+ </p>
241
+
242
+ <p class="form_layouts message_row <?php echo "ig_".implode( ' ig_', $settings['embed_form'] )?>">
243
+ <label for="message_form_layouts" class="message_label">&nbsp;</label>
244
+ <div class="form_radio_group" >
245
+ <span class="message_label message_row <?php echo "ig_".implode( ' ig_', $settings['embed_form'] )?>"> <?php _e('Position', 'icegram' ); ?></span>
246
+ <span class="location <?php if( !empty( $form_layouts['left'] ) ) { echo "ig_".implode( ' ig_', $form_layouts['left'] ); } ?>" >
247
+ <label style="background-position:0px 23px;" for="form_layout_left_<?php echo $message_id;?>" title="<?php _e('Left', 'icegram' ); ?>">
248
+ <input class="message_form_layout" type="radio" id="form_layout_left_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][form_layout]" value="left" <?php echo ( !empty($message_data['form_layout']) && "left" == $message_data['form_layout'] ) ? 'checked' : ( empty($message_data['form_layout']) && "left" == $default_form_layout ? 'checked' : '') ; ?> />
249
+ <?php _e('Left', 'icegram' ); ?>
250
+ </label>
251
+ </span>
252
+
253
+ <span class="location <?php if( !empty( $form_layouts['right'] ) ) { echo "ig_".implode( ' ig_', $form_layouts['right'] ); } ?>">
254
+ <label style="background-position:-100px 23px;" for="form_layout_right_<?php echo $message_id;?>" title="<?php _e('Right', 'icegram' ); ?>">
255
+ <input class="message_form_layout" type="radio" id="form_layout_right_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][form_layout]" value="right" <?php echo ( !empty( $message_data['form_layout'] ) && "right" == $message_data['form_layout'] ) ? 'checked' : ( empty($message_data['form_layout']) && "right" == $default_form_layout ? 'checked' : '') ; ?> />
256
+ <?php _e('Right', 'icegram' ); ?>
257
+ </label>
258
+ </span>
259
+
260
+ <span class="location <?php if( !empty( $form_layouts['bottom'] ) ) { echo "ig_".implode( ' ig_', $form_layouts['bottom'] ); } ?>">
261
+ <label style="background-position:-200px 23px;"for="form_layout_bottom_<?php echo $message_id;?>" title="<?php _e('Bottom', 'icegram' ); ?>">
262
+ <input class="message_form_layout" type="radio" id="form_layout_bottom_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][form_layout]" value="bottom" <?php echo ( !empty( $message_data['form_layout'] ) && "bottom" == $message_data['form_layout'] ) ? 'checked' : ( empty($message_data['form_layout']) && "bottom" == $default_form_layout ? 'checked' : '') ; ?> />
263
+ <?php _e('Bottom', 'icegram' ); ?>
264
+ </label>
265
+ </span>
266
+
267
+ <span class="location <?php if( !empty( $form_layouts['top'] ) ) { echo "ig_".implode( ' ig_', $form_layouts['top'] ); } ?>">
268
+ <label for="form_layout_top_<?php echo $message_id;?>" title="<?php _e('Top', 'icegram' ); ?>">
269
+ <input class="message_form_layout" type="radio" id="form_layout_top_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][form_layout]" value="top" <?php echo ( !empty( $message_data['form_layout'] ) && "top" == $message_data['form_layout'] ) ? 'checked' : ( empty($message_data['form_layout']) && "top" == $default_form_layout ? 'checked' : '') ; ?> />
270
+ <?php _e('Top', 'icegram' ); ?>
271
+ </label>
272
+ </span>
273
+ <?php
274
+ $inline_position_checked = ( !empty( $message_data['form_layout'] ) && "inline" == $message_data['form_layout'] ) ? 'checked' : ( empty($message_data['form_layout']) && "inline" == $default_form_layout ? 'checked' : '') ;
275
+ $show_color_options = !empty( $inline_position_checked ) ? 'style="display:none;"' : '';
276
+ ?>
277
+ <span class="location <?php if( !empty( $form_layouts['inline'] ) ) { echo "ig_".implode( ' ig_', $form_layouts['inline'] ); } ?>">
278
+ <label style="background-position:-300px 23px;" for="form_layout_inline_<?php echo $message_id;?>" title="<?php _e('Inline', 'icegram' ); ?>">
279
+ <input class="message_form_layout" type="radio" id="form_layout_inline_<?php echo $message_id;?>" name="message_data[<?php echo $message_id; ?>][form_layout]" value="inline" <?php echo $inline_position_checked;?> />
280
+ <?php _e('Inline', 'icegram' ); ?>
281
+ </label>
282
+ </span>
283
+ </div>
284
+ <div class="form_inline_shortcode campaign_shortcode light">
285
+ <?php echo __( 'You can insert <code>[ig_form]</code> wherever you want a form as inline in message body.', 'icegram' ); ?>
286
+ </div>
287
+ </p>
288
+ <?php
289
+
290
+ $color_field_html = '<p class="message_form_color message_row ig_"'.implode( ' ig_', $settings['embed_form'] ) .'" '. $show_color_options.'>
291
+ <label for="message_form_bg_color" class="message_label">&nbsp;</label>
292
+ <span class="message_label" > '.__( 'Color', 'icegram' ).'</span>
293
+ <label for="message_form_bg_color" class="message_label">&nbsp;</label>
294
+ <input type="text" class="message_field color-field" data-color-label="'.__( 'Background', 'icegram' ).'" name="message_data['.$message_id.'][form_bg_color]" id="message_form_bg_color" value="'. $form_bg_color .'" />
295
+ <input type="text" class="message_field color-field" data-color-label="'.__( 'Text', 'icegram' ).'" name="message_data['.$message_id.'][form_text_color]" id="message_form_text_color" value="'.$form_text_color.'" style="margin-left:5em !important" />
296
+ </p>';
297
+ $color_field = apply_filters('icegram_color_fields' , array( 'html' => $color_field_html ,'message_id' => $message_id ,'message_data' => $message_data) );
298
+
299
+ echo $color_field['html'];
300
+ ?>
301
+
302
+ <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['embed_form'] )?>">
303
+ <label for="" class="message_label">&nbsp;</label>
304
+ <span class="message_label"> <?php _e('Header', 'icegram' ); ?></span>
305
+ <label for="" class="message_label">&nbsp;</label>
306
+ <textarea class="message_field message_form_header" rows="2" autocomplete="off" cols="65" name="message_data[<?php echo $message_id; ?>][form_header]" id="" value="" placeholder="<?php _e('Text / HTML to show before the form', 'icegram' ); ?>"><?php echo esc_attr( $form_header ); ?></textarea>
307
+ </p>
308
+ <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['embed_form'] )?>">
309
+ <label for="" class="message_label">&nbsp;</label>
310
+ <span class="message_label"> <?php _e('Form Embed Code', 'icegram' ); ?></span>
311
+ <label for="" class="message_label">&nbsp;</label>
312
+ <textarea class="message_field message_form_html_original" rows="6" autocomplete="off" cols="65" name="message_data[<?php echo $message_id; ?>][form_html_original]" id="message_form_html_original_<?php echo $message_id; ?>" value="" placeholder="<?php _e('Paste HTML / shortcode of your form here...', 'icegram' ); ?>"><?php if( isset( $form_html_original ) ) echo esc_attr( $form_html_original ); ?></textarea>
313
+ <br>
314
+ <label for="" class="message_label">&nbsp;</label>
315
+ <label style="font-size:.9em;"><input class="message_form_has_label" type="checkbox" name="message_data[<?php echo $message_id; ?>][form_has_label]" value="yes" <?php echo $form_has_label ?> />
316
+ <?php _e('Show labels above fields' , 'icegram' ); ?></label>
317
+ </p>
318
+
319
+ <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['embed_form'] )?>">
320
+ <label for="" class="message_label">&nbsp;</label>
321
+ <span class="message_label"> <?php _e('Footer', 'icegram' ); ?></span>
322
+ <label for="" class="message_label">&nbsp;</label>
323
+ <textarea class="message_field message_form_footer" rows="2" autocomplete="off" cols="65" name="message_data[<?php echo $message_id; ?>][form_footer]" id="" value="" placeholder="<?php _e('Text / HTML to show after the form', 'icegram' ); ?>"><?php echo esc_attr( $form_footer ); ?></textarea>
324
+ </p>
325
+ </div>
326
+
327
+ <!-- Embed Form options : End -->
328
  <p class="message_row <?php echo "ig_".implode( ' ig_', $settings['label'] )?>">
329
  <label for="message_label" class="message_label">
330
  <strong><?php _e( 'Button Label', 'icegram' ); ?></strong>
345
  $icegram_message_target_link = apply_filters('icegram_message_field_link' , array( 'html' => $target_link_field ,'message_id' => $message_id ,'message_data' => $message_data) );
346
  echo $icegram_message_target_link['html'];
347
  ?>
 
348
 
 
 
 
 
 
 
 
 
 
 
349
  <?php
350
  $text_color = ( !empty( $message_data['text_color'] ) ) ? $message_data['text_color'] : '';
351
  $bg_color = ( !empty( $message_data['bg_color'] ) ) ? $message_data['bg_color'] : '';
378
  echo $colors_options_html;
379
 
380
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
  <p class="message_row position <?php echo "ig_".implode( ' ig_', $settings['position'] )?>">
382
  <label for="message_position" class="message_label"><strong><?php _e( 'Position', 'icegram' ); ?></strong></label>
383
  <span class="message_field location-selector message_label">
571
  return apply_filters( 'icegram_message_settings_to_show', $settings );
572
 
573
  }
574
+
575
+ // Create array for positions available for all message types
576
+ function message_form_layouts_to_show() {
577
+
578
+ global $icegram;
579
+ $form_layouts = array();
580
+ foreach ( $icegram->message_types as $type => $value ) {
581
+ if( empty( $value['settings']['form_layout'] ) )
582
+ continue;
583
+
584
+ if( !empty( $value['settings']['form_layout']['values'] ) ) {
585
+ foreach ( $value['settings']['form_layout']['values'] as $form_layout ) {
586
+ $form_layouts[$form_layout][] = $type;
587
+ }
588
+ }
589
+ }
590
+ // return apply_filters( 'icegram_message_form_layouts_to_show', $form_layouts );
591
+ return $form_layouts;
592
+
593
+ }
594
+
595
+
596
  // Create array for positions available for all message types
597
  function message_positions_to_show() {
598
 
634
  'theme' => $default_themes
635
  );
636
  return apply_filters( 'icegram_default_message_data', $default_message_data );
637
+ }
638
 
639
+ // Form styles for the form
640
+ //TODO :: check this and do changes if required
641
+ function available_form_styles( ) {
642
+ $available_form_styles = array(
643
+ array('name' => 'None'),
644
+ array('name' => 'Style 1'),
645
+ array('name' => 'Style 2'),
646
+ array('name' => 'Style 3'),
647
+ array('name' => 'Style 4')
648
+ ) ;
649
+ return $available_form_styles;
650
  }
 
651
  // All headline to generate randomly for messages
652
  function available_headlines( $available_headlines = array() ) {
653
  $available_headlines = array_merge( $available_headlines, array(
classes/class-icegram-message-type.php CHANGED
@@ -100,7 +100,8 @@ abstract class Icegram_Message_Type {
100
  'bg_color' => array( 'type' => 'color' ),
101
  'text_color' => array( 'type' => 'color' ),
102
  'position' => array( 'type' => 'position' ),
103
- 'embed_form' => array( 'type' => 'form' )
 
104
  );
105
 
106
  }
100
  'bg_color' => array( 'type' => 'color' ),
101
  'text_color' => array( 'type' => 'color' ),
102
  'position' => array( 'type' => 'position' ),
103
+ 'form_layout' => array( 'type' => 'position' ), //TODO :: check this , remove if not required
104
+ 'embed_form' => array( 'type' => 'form' ) // TODO :: remove this setting from all MS type
105
  );
106
 
107
  }
icegram.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Icegram
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.8.10
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.8.10";
39
  $this->shortcode_instances = array();
40
  $this->mode = 'local';
41
  $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
@@ -65,6 +65,7 @@ class Icegram {
65
  add_action( 'wp_footer', array( &$this, 'display_messages' ) );
66
  }
67
  add_shortcode( 'icegram', array( &$this, 'execute_shortcode' ) );
 
68
  // WPML compatibility
69
  add_filter( 'icegram_identify_current_page', array( &$this, 'wpml_get_parent_id' ), 10 );
70
 
@@ -485,6 +486,11 @@ class Icegram {
485
  }
486
  return $icegram_branding_data;
487
  }
 
 
 
 
 
488
 
489
  function execute_shortcode( $atts = array() ) {
490
  // When shortcode is called, it will only prepare an array with conditions
@@ -662,6 +668,7 @@ class Icegram {
662
  $css [] = $theme['baseurl'] . $theme_default.'.css';
663
  $icegram_data['messages'][$key]['theme'] = $theme_default;
664
  }
 
665
  }
666
  $icegram_data['scripts'] = apply_filters('add_icegram_script' , $scripts);
667
  $icegram_data['css'] = apply_filters('add_icegram_css' , $css);
@@ -680,6 +687,11 @@ class Icegram {
680
  $message_data['message'] = $content;
681
  //do_shortcode in headline
682
  $message_data['headline'] = do_shortcode( shortcode_unautop( $message_data['headline'] ) );
 
 
 
 
 
683
  }
684
 
685
  function enqueue_admin_styles_and_scripts() {
@@ -696,10 +708,6 @@ class Icegram {
696
  wp_enqueue_script( 'icegram_writepanel' );
697
  wp_enqueue_script( 'icegram_ajax-chosen' );
698
  wp_enqueue_script( 'icegram_tiptip' );
699
- wp_register_script( 'magnific_popup_js', $this->plugin_url . '/assets/js/magnific-popup.js', array ( 'jquery' ), $this->version, true);
700
- if( !wp_script_is( 'magnific_popup_js' ) ) {
701
- wp_enqueue_script( 'magnific_popup_js' );
702
- }
703
 
704
  $icegram_writepanel_params = array ( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'search_message_nonce' => wp_create_nonce( "search-messages" ), 'home_url' => home_url( '/' ) );
705
  $this->available_headlines = apply_filters( 'icegram_available_headlines', array() );
@@ -712,7 +720,6 @@ class Icegram {
712
  wp_enqueue_style( 'icegram_admin_styles', $this->plugin_url . '/assets/css/admin.css', array(), $this->version );
713
  wp_enqueue_style( 'icegram_jquery-ui-style', $this->plugin_url . '/assets/css/jquery-ui.min.css', array(), $this->version );
714
  wp_enqueue_style( 'icegram_chosen_styles', $this->plugin_url . '/assets/css/chosen.min.css', array(), $this->version );
715
- wp_enqueue_style( 'magnific_popup_css', $this->plugin_url . '/assets/css/magnific-popup.css', array(), $this->version );
716
 
717
  if ( !wp_script_is( 'jquery-ui-datepicker' ) ) {
718
  wp_enqueue_script( 'jquery-ui-datepicker' );
@@ -903,7 +910,12 @@ class Icegram {
903
  //local url
904
  $sql .= " OR ( pm.meta_value LIKE '%%%s%%' )";
905
  $sql_params[] = 's:9:"local_url";s:3:"yes";';
906
- if (!empty($_REQUEST['is_home']) && $_REQUEST['is_home'] === 'true' ) {
 
 
 
 
 
907
  $sql .= " OR ( pm.meta_value LIKE '%%%s%%' )";
908
  $sql_params[] = 's:8:"homepage";s:3:"yes";';
909
  }
3
  * Plugin Name: Icegram
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
7
  * Author: icegram
8
  * Author URI: http://www.icegram.com/
9
  *
35
 
36
  function __construct() {
37
 
38
+ $this->version = "1.9";
39
  $this->shortcode_instances = array();
40
  $this->mode = 'local';
41
  $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
65
  add_action( 'wp_footer', array( &$this, 'display_messages' ) );
66
  }
67
  add_shortcode( 'icegram', array( &$this, 'execute_shortcode' ) );
68
+ add_shortcode( 'ig_form', array( &$this, 'execute_form_shortcode' ) );
69
  // WPML compatibility
70
  add_filter( 'icegram_identify_current_page', array( &$this, 'wpml_get_parent_id' ), 10 );
71
 
486
  }
487
  return $icegram_branding_data;
488
  }
489
+
490
+ //Execute Form shortcode
491
+ function execute_form_shortcode( $atts = array() ) {
492
+ return '<div class="ig_form_container layout_inline"></div>';
493
+ }
494
 
495
  function execute_shortcode( $atts = array() ) {
496
  // When shortcode is called, it will only prepare an array with conditions
668
  $css [] = $theme['baseurl'] . $theme_default.'.css';
669
  $icegram_data['messages'][$key]['theme'] = $theme_default;
670
  }
671
+ $css = array_unique($css);
672
  }
673
  $icegram_data['scripts'] = apply_filters('add_icegram_script' , $scripts);
674
  $icegram_data['css'] = apply_filters('add_icegram_css' , $css);
687
  $message_data['message'] = $content;
688
  //do_shortcode in headline
689
  $message_data['headline'] = do_shortcode( shortcode_unautop( $message_data['headline'] ) );
690
+ //TODO :: Test short codes
691
+ //shortcode support for Third party forms
692
+ if(!empty($message_data['form_html_original'] )){
693
+ $message_data['form_html'] = do_shortcode( shortcode_unautop( $message_data['form_html_original'] ) );
694
+ }
695
  }
696
 
697
  function enqueue_admin_styles_and_scripts() {
708
  wp_enqueue_script( 'icegram_writepanel' );
709
  wp_enqueue_script( 'icegram_ajax-chosen' );
710
  wp_enqueue_script( 'icegram_tiptip' );
 
 
 
 
711
 
712
  $icegram_writepanel_params = array ( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'search_message_nonce' => wp_create_nonce( "search-messages" ), 'home_url' => home_url( '/' ) );
713
  $this->available_headlines = apply_filters( 'icegram_available_headlines', array() );
720
  wp_enqueue_style( 'icegram_admin_styles', $this->plugin_url . '/assets/css/admin.css', array(), $this->version );
721
  wp_enqueue_style( 'icegram_jquery-ui-style', $this->plugin_url . '/assets/css/jquery-ui.min.css', array(), $this->version );
722
  wp_enqueue_style( 'icegram_chosen_styles', $this->plugin_url . '/assets/css/chosen.min.css', array(), $this->version );
 
723
 
724
  if ( !wp_script_is( 'jquery-ui-datepicker' ) ) {
725
  wp_enqueue_script( 'jquery-ui-datepicker' );
910
  //local url
911
  $sql .= " OR ( pm.meta_value LIKE '%%%s%%' )";
912
  $sql_params[] = 's:9:"local_url";s:3:"yes";';
913
+ if(!empty($_REQUEST['cache_compatibility']) && $_REQUEST['cache_compatibility'] == 'yes'){
914
+ $is_home = (!empty($_REQUEST['is_home']) && $_REQUEST['is_home'] === 'true') ? true : false ;
915
+ }else{
916
+ $is_home = (is_home() || is_front_page()) ? true : false;
917
+ }
918
+ if ($is_home === true ) {
919
  $sql .= " OR ( pm.meta_value LIKE '%%%s%%' )";
920
  $sql_params[] = 's:8:"homepage";s:3:"yes";';
921
  }
message-types/action-bar/default.css CHANGED
@@ -1 +1 @@
1
- .ig_action_bar.ig_container{z-index:100000;width:100%;padding:0;margin:0;display:none;left:0}.ig_action_bar.ig_container.ig_top.ig_show{position:fixed;z-index:9999999}.ig_action_bar.ig_container.ig_top{top:0}.ig_action_bar.ig_container.ig_bottom{bottom:0}.ig_action_bar .ig_content{}.ig_action_bar.hello .ig_headline{}.ig_action_bar .ig_message{line-height:1.3em}.ig_action_bar img.icon{width:50px}.ig_action_bar .ig_data{}.ig_action_bar .ig_button,.ig_action_bar input[type="submit"],.ig_action_bar input[type="button"]{border-bottom:none;cursor:pointer}.ig_action_bar .ig_button:active,.ig_action_bar input[type="submit"]:active,.ig_action_bar input[type="button"]:active{border-top:none}.ig_action_bar .ig_close{cursor:pointer}.ig_action_bar .ig_powered_by{vertical-align:top;opacity:.5;display:inline-block;float:left}.ig_action_bar .ig_powered_by img{width:2em;margin-left:1em;margin-top:1em}.ig_action_bar .ig_arrow_block{font-weight:700;z-index:1000000;right:10px;text-align:right;font-size:20px;cursor:pointer;line-height:0;padding:4px!important;float:right}.ig_action_bar .ig_arrow_block span{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";filter:alpha(opacity=60);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";filter:alpha(opacity=60);opacity:0.6}.ig_action_bar .ig_arrow_block span:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);opacity:0.9}.ig_action_bar .ig_rotate{transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg)}.ig_action_bar .ig_arrow_block span{cursor:pointer;display:inline-block;padding:2px;overflow:hidden}.ig_action_bar.ig_top .ig_arrow_block span,.ig_action_bar.ig_bottom .ig_arrow_block span{background-image:url(../../assets/images/arrows-sprite.png);background-repeat:no-repeat;width:28px;height:28px}.ig_action_bar.ig_top .ig_arrow_block span{background-position:-2px -5px}.ig_action_bar.ig_bottom .ig_arrow_block span{background-position:-4px -5px}div.icegram .ig_action_bar form{margin:0;padding:0}div.icegram .ig_action_bar input,div.icegram .ig_action_bar label{display:inline-block}@mediaonly screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){.icegram .ig_action_bar .ig_button{margin:.4em!important}}
1
+ .ig_action_bar.ig_container{z-index:100000;width:100%;padding:0;margin:0;display:none;left:0}.ig_action_bar.ig_container.ig_top.ig_show{position:fixed;z-index:9999999}.ig_action_bar.ig_container.ig_top{top:0}.ig_action_bar.ig_container.ig_bottom{bottom:0}.ig_action_bar .ig_content{}.ig_action_bar .ig_message{line-height:1.3em}.ig_action_bar img.icon{width:50px}.ig_action_bar .ig_button,.ig_action_bar input[type="submit"],.ig_action_bar input[type="button"]{border-bottom:none;cursor:pointer}.ig_action_bar .ig_button:active,.ig_action_bar input[type="submit"]:active,.ig_action_bar input[type="button"]:active{border-top:none}.ig_action_bar .ig_close{cursor:pointer}.ig_action_bar .ig_powered_by{vertical-align:top;opacity:.5;display:inline-block;float:left;z-index:22;position:absolute}.ig_action_bar .ig_powered_by img{width:2em;margin-left:.5em;margin-top:.5em}.ig_action_bar .ig_arrow_block{font-weight:700;z-index:1000000;right:10px;text-align:right;font-size:20px;cursor:pointer;line-height:0;padding:4px!important;float:right}.ig_action_bar.ig_show .ig_arrow_block{position:absolute}.ig_action_bar.ig_hide .ig_arrow_block{position:fixed}.ig_action_bar.ig_hide.ig_top .ig_arrow_block{top:0}.ig_action_bar.ig_hide.ig_bottom .ig_arrow_block{bottom:0}.ig_action_bar .ig_arrow_block span{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";filter:alpha(opacity=60);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";filter:alpha(opacity=60);opacity:0.6}.ig_action_bar .ig_arrow_block span:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);opacity:0.9}.ig_action_bar .ig_rotate{transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg)}.ig_action_bar .ig_arrow_block span{cursor:pointer;display:inline-block;padding:2px;overflow:hidden}.ig_action_bar.ig_top .ig_arrow_block span,.ig_action_bar.ig_bottom .ig_arrow_block span{background-image:url(../../assets/images/arrows-sprite.png);background-repeat:no-repeat;width:28px;height:28px}.ig_action_bar.ig_top .ig_arrow_block span{background-position:-2px -5px}.ig_action_bar.ig_bottom .ig_arrow_block span{background-position:-4px -5px}.ig_action_bar .ig_content{padding:0!important}.ig_action_bar .ig_data{padding:1em}.ig_action_bar .ig_button{float:right;margin:1em!important;margin-right:3.5em!important}.ig_action_bar .ig_form_container{width:20%;float:left}.ig_action_bar.ig_form_right .ig_form_container.layout_right{float:right;padding-right:3em}.ig_action_bar.ig_form_left.ig_has_pwby .ig_form_container.layout_left{padding-left:3em;width:20%}.ig_action_bar.ig_form_bottom.ig_has_pwby .ig_form_container.layout_bottom{padding-left:3em}.ig_action_bar.ig_form_left .ig_data,.ig_action_bar.ig_form_right .ig_data{width:75%;float:left}.ig_action_bar.ig_has_pwby .ig_data{padding-left:3em}.ig_action_bar.ig_form_left.ig_has_pwby .ig_data{width:75%;padding-left:1em}.ig_action_bar.ig_form_right .ig_data{float:left}.ig_action_bar.ig_form_bottom .ig_data,.ig_action_bar.ig_form_inline .ig_data{max-width:100%!important}
message-types/action-bar/main.js CHANGED
@@ -1 +1 @@
1
- function Icegram_Message_Type_Action_Bar(e){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}}" id="icegram_message_{{=id}}"><div class="ig_content ig_clear"><div class="ig_arrow_block" id="action_bar_close_{{=id}}"><span class="ig_arrow"></span></div><div><div class="ig_close"></div></div><div class="ig_data"><div class="ig_headline">{{=headline}}</div><div class="ig_message">{{=message}}</div></div><div class="ig_button">{{=label}}</div></div></div></div>'},Icegram_Message_Type_Action_Bar.prototype.post_render=function(){if((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_arrow_block").css("background-color",this.data.bg_color),"hello"==this.data.theme){var e=this.el.find(".ig_button");this.el.find(".ig_data").append(e),this.el.find(".ig_embed_form").get(0)&&this.el.find(".ig_data").addClass("ig_valign_form_fix")}},Icegram_Message_Type_Action_Bar.prototype.set_position=function(){switch(this.data.position){case"21":this.el.addClass("ig_bottom"),this.el.css("position","fixed");break;case"01":default:this.el.addClass("ig_top")}},Icegram_Message_Type_Action_Bar.prototype.is_visible=function(){return this.el.find(".ig_arrow_block").hasClass("ig_open")},Icegram_Message_Type_Action_Bar.prototype.show=function(e,i){if(!this.is_visible()){switch(this.data.position){case"21":var a=this;this.el.delay(this.data.delay_time).animate({bottom:0,marginBottom:-this.el.outerHeight()},0,"linear",function(){a.el.show(),a.el.addClass("ig_show").removeClass("ig_hide"),a.el.find(".ig_arrow").show(),a.el.find(".ig_arrow_block").addClass("ig_open").removeClass("ig_rotate").removeClass("ig_border").css("position","initial")}),this.el.animate({marginBottom:0},300);break;case"01":default:var t=this.el.parent().find(".ig_arrow_block"),s=this.el.parent();this.el.parent().find(".ig_arrow_block").remove(),this.el.parent().find(".ig_content").prepend(t),jQuery("body").prepend(s),this.el.find(".ig_arrow").hide(),this.el.find(".ig_arrow_block").addClass("ig_open").removeClass("ig_border").css("position","initial");var a=this;this.el.delay(this.data.delay_time).animate({marginTop:-this.el.outerHeight()},0,"linear",function(){a.el.show(),a.el.addClass("ig_show").removeClass("ig_hide"),a.el.find(".ig_arrow").show(),a.el.find(".ig_arrow_block").addClass("ig_open").addClass("ig_rotate").removeClass("ig_border").css("position","initial"),a.el.find(".ig_arrow_block").css("background-color","")}),this.el.animate({marginTop:0},300)}i!==!0&&this.track("shown")}},Icegram_Message_Type_Action_Bar.prototype.add_powered_by=function(e){"ig_air-mail"!=this.data.theme?this.el.find(".ig_content").before('<div class="ig_powered_by" ><a href="'+e.link+'" target="_blank"><img src="'+e.logo+'" title="'+e.text+'"/></a></div>'):this.el.find(".ig_content").prepend('<div class="ig_powered_by" ><a href="'+e.link+'" target="_blank"><img src="'+e.logo+'" title="'+e.text+'"/></a></div>')},Icegram_Message_Type_Action_Bar.prototype.hide=function(e,i){if(this.is_visible()){var a=this;switch(this.data.position){case"21":this.el.animate({marginBottom:-this.el.outerHeight()},300,"linear",function(){a.el.find(".ig_arrow").show(),a.el.addClass("ig_hide").removeClass("ig_show"),a.el.find(".ig_arrow_block").removeClass("ig_open").addClass("ig_border").addClass("ig_rotate").css({position:"fixed",bottom:"0"})});break;case"01":default:this.el.animate({marginTop:-this.el.outerHeight()},300,"linear",function(){(void 0==a.data.use_theme_defaults||"yes"!=a.data.use_theme_defaults)&&void 0!=a.data.bg_color&&""!=a.data.bg_color&&a.el.find(".ig_arrow_block").css("background-color",a.data.bg_color),a.el.find(".ig_arrow_block").css("margin-top","0"),a.el.find(".ig_arrow").show(),a.el.addClass("ig_hide").removeClass("ig_show"),a.el.find(".ig_arrow_block").removeClass("ig_open").removeClass("ig_rotate").addClass("ig_border").css({position:"fixed",top:"0"})})}i!==!0&&this.track("closed")}},Icegram_Message_Type_Action_Bar.prototype.on_click=function(e){return e.data=e.data||{self:this},jQuery(e.target).filter(".ig_open,.ig_open span.ig_arrow,.ig_close").length?void e.data.self.hide():jQuery(e.target).filter(".ig_border,.ig_border span.ig_arrow").length?void e.data.self.show():void Icegram_Message_Type.prototype.on_click.apply(this,arguments)};
1
+ function Icegram_Message_Type_Action_Bar(e){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}}" id="icegram_message_{{=id}}"><div class="ig_content ig_clear_fix"><div class="ig_arrow_block" id="action_bar_close_{{=id}}"><span class="ig_arrow"></span></div><div><div class="ig_close"></div></div><div class="ig_form_container layout_left"></div><div class="ig_data"><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_arrow_block").css("background-color",this.data.bg_color)},Icegram_Message_Type_Action_Bar.prototype.set_position=function(){switch(this.data.position){case"21":this.el.addClass("ig_bottom"),this.el.css("position","fixed");break;case"01":default:this.el.addClass("ig_top")}},Icegram_Message_Type_Action_Bar.prototype.is_visible=function(){return this.el.find(".ig_arrow_block").hasClass("ig_open")},Icegram_Message_Type_Action_Bar.prototype.show=function(e,i){if(!this.is_visible()){switch(this.data.position){case"21":var a=this;this.el.delay(this.data.delay_time).animate({bottom:0,marginBottom:-this.el.outerHeight()},0,"linear",function(){a.el.show(),a.el.addClass("ig_show").removeClass("ig_hide"),a.el.find(".ig_arrow").show(),a.el.find(".ig_arrow_block").addClass("ig_open").removeClass("ig_rotate").removeClass("ig_border"),window.icegram.adjustFormContainerHeight(a)}),this.el.animate({marginBottom:0},300);break;case"01":default:var t=this.el.parent().find(".ig_arrow_block"),s=this.el.parent();this.el.parent().find(".ig_arrow_block").remove(),this.el.parent().find(".ig_content").prepend(t),jQuery("body").prepend(s),this.el.find(".ig_arrow").hide();var a=this;this.el.delay(this.data.delay_time).animate({marginTop:-this.el.outerHeight()},0,"linear",function(){a.el.show(),a.el.addClass("ig_show").removeClass("ig_hide"),a.el.find(".ig_arrow").show(),a.el.find(".ig_arrow_block").addClass("ig_open").addClass("ig_rotate").removeClass("ig_border").css("background-color",""),window.icegram.adjustFormContainerHeight(a)}),this.el.animate({marginTop:0},300)}i!==!0&&this.track("shown")}},Icegram_Message_Type_Action_Bar.prototype.add_powered_by=function(e){this.el.addClass("ig_has_pwby"),"ig_air-mail"!=this.data.theme?this.el.find(".ig_content").before('<div class="ig_powered_by" ><a href="'+e.link+'" target="_blank"><img src="'+e.logo+'" title="'+e.text+'"/></a></div>'):this.el.find(".ig_content").prepend('<div class="powered_by" ><a href="'+e.link+'" target="_blank"><img src="'+e.logo+'" title="'+e.text+'"/></a></div>')},Icegram_Message_Type_Action_Bar.prototype.hide=function(e,i){if(this.is_visible()){var a=this;switch(this.data.position){case"21":this.el.animate({marginBottom:-this.el.outerHeight()},300,"linear",function(){a.el.find(".ig_arrow").show(),a.el.addClass("ig_hide").removeClass("ig_show"),a.el.find(".ig_arrow_block").removeClass("ig_open").addClass("ig_border").addClass("ig_rotate")});break;case"01":default:this.el.animate({marginTop:-this.el.outerHeight()},300,"linear",function(){(void 0==a.data.use_theme_defaults||"yes"!=a.data.use_theme_defaults)&&void 0!=a.data.bg_color&&""!=a.data.bg_color&&a.el.find(".ig_arrow_block").css("background-color",a.data.bg_color),a.el.find(".ig_arrow_block").css("margin-top","0"),a.el.find(".ig_arrow").show(),a.el.addClass("ig_hide").removeClass("ig_show"),a.el.find(".ig_arrow_block").removeClass("ig_open").removeClass("ig_rotate").addClass("ig_border")})}i!==!0&&this.track("closed")}},Icegram_Message_Type_Action_Bar.prototype.on_click=function(e){return e.data=e.data||{self:this},jQuery(e.target).filter(".ig_open,.ig_open span.ig_arrow,.ig_close").length?void e.data.self.hide():jQuery(e.target).filter(".ig_border,.ig_border span.ig_arrow").length?void e.data.self.show():void Icegram_Message_Type.prototype.on_click.apply(this,arguments)};
message-types/action-bar/main.php CHANGED
@@ -16,6 +16,8 @@ class Icegram_Message_Type_Action_Bar extends Icegram_Message_Type {
16
  parent::define_settings();
17
  $this->settings['position']['values'] = array( '01', '21' );
18
  $this->settings['position']['default'] = '01';
 
 
19
  $this->settings['theme']['default'] = 'hello';
20
  $this->settings['bg_color']['default'] = ''; //#eb593c
21
  $this->settings['text_color']['default'] = ''; //#ffffff
16
  parent::define_settings();
17
  $this->settings['position']['values'] = array( '01', '21' );
18
  $this->settings['position']['default'] = '01';
19
+ $this->settings['form_layout']['values'] = array( 'left', 'right', 'bottom', 'inline' );
20
+ $this->settings['form_layout']['default'] = 'bottom';
21
  $this->settings['theme']['default'] = 'hello';
22
  $this->settings['bg_color']['default'] = ''; //#eb593c
23
  $this->settings['text_color']['default'] = ''; //#ffffff
message-types/action-bar/themes/air-mail.css CHANGED
@@ -1 +1 @@
1
- .ig_action_bar.ig_air-mail.ig_container{background-color:#F2F2F2;color:#707070;-moz-border-image:-moz-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-webkit-border-image:-webkit-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-o-border-image:-o-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;border-image:repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round}.ig_action_bar.ig_air-mail.ig_container.ig_top{border-width:0 0 8px 0}.ig_action_bar.ig_air-mail.ig_container.ig_bottom{border-width:8px 0 0 0}.ig_action_bar.ig_air-mail .ig_content{position:relative;padding:1em 1em .25em 1em}.ig_action_bar.ig_air-mail .ig_headline{font-size:1.3em;font-weight:700;line-height:1.2em;padding:0 10px}.ig_action_bar.ig_air-mail .ig_message{line-height:1.2em;padding:5px 10px}.ig_action_bar.ig_air-mail img.icon{width:50px}.ig_action_bar.ig_air-mail .ig_button{float:right;margin-right:1em!important}.ig_action_bar.ig_air-mail input[type="submit"],.ig_action_bar.ig_air-mail input[type="button"],.ig_action_bar.ig_air-mail .ig_button{background:hsl(6,78%,57%);color:hsl(0,0%,100%);-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;border-bottom:3px solid hsl(6,63%,46%);text-transform:uppercase;font-family:"Open Sans",sans-serif;font-weight:600;text-align:center;margin:0 auto;display:inline-block;padding:.5em 2em}.ig_action_bar.ig_air-mail input[type="submit"]:hover,.ig_action_bar.ig_air-mail input[type="button"]:hover,.ig_action_bar.ig_air-mail .ig_button:hover{margin-top:-3px;border-bottom:6px solid #c0392b}.ig_action_bar.ig_air-mail input[type="submit"]:active,.ig_action_bar.ig_air-mail input[type="button"]:active,.ig_action_bar.ig_air-mail .ig_button:active{}.ig_action_bar.ig_air-mail .ig_data{max-width:75%;display:inline-block;float:left}.ig_action_bar.ig_air-mail .ig_close{background:url(../images/chosen-sprite.png) no-repeat -43px 0;height:10px;width:10px;-moz-box-sizing:content-box;box-sizing:content-box;position:absolute!important;top:7px;right:7px;zoom:1.3}.ig_action_bar.ig_air-mail .ig_close:hover{background:url(../images/chosen-sprite.png) no-repeat -43px -11px}.ig_action_bar.ig_air-mail .ig_arrow_block{display:none}.ig_action_bar.ig_air-mail .ig_powered_by img{margin:0!important}
1
+ .ig_action_bar.ig_air-mail.ig_container{background-color:#F2F2F2;color:#707070;-moz-border-image:-moz-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-webkit-border-image:-webkit-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-o-border-image:-o-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;border-image:repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round}.ig_action_bar.ig_air-mail.ig_container.ig_top{border-width:0 0 8px 0}.ig_action_bar.ig_air-mail.ig_container.ig_bottom{border-width:8px 0 0 0}.ig_action_bar.ig_air-mail .ig_content{position:relative;padding:1em 1em .25em 1em}.ig_action_bar.ig_air-mail .ig_headline{font-size:1.3em;font-weight:700;line-height:1.2em;padding:0 10px}.ig_action_bar.ig_air-mail .ig_message{line-height:1.2em;padding:5px 10px}.ig_action_bar.ig_air-mail img.icon{width:50px}.ig_action_bar.ig_air-mail .ig_button,.ig_action_bar.ig_air-mail input[type="submit"],.ig_action_bar.ig_air-mail input[type="button"]{background:hsl(6,78%,57%);color:hsl(0,0%,100%);-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;border-bottom:3px solid hsl(6,63%,46%);text-transform:uppercase;font-family:"Open Sans",sans-serif;font-weight:600;text-align:center;margin-right:2em!important;display:inline-block;padding:.5em 2em}.ig_action_bar.ig_air-mail .ig_data{max-width:75%;display:inline-block;float:left}.ig_action_bar.ig_air-mail .ig_close{background:url(../images/chosen-sprite.png) no-repeat -43px 0;height:10px;width:10px;-moz-box-sizing:content-box;box-sizing:content-box;position:absolute!important;top:7px;right:7px;z-index:22;zoom:1.3}.ig_action_bar.ig_air-mail .ig_close:hover{background:url(../images/chosen-sprite.png) no-repeat -43px -11px}.ig_action_bar.ig_air-mail .ig_arrow_block{display:none}.ig_action_bar.ig_air-mail .ig_powered_by img{}.ig_action_bar.ig_form_right.ig_air-mail .ig_form_container.layout_right{padding-right:2em}.ig_action_bar.ig_form_right.ig_form_style_4.ig_bottom.ig_air-mail .ig_close,.ig_action_bar.ig_form_right.ig_form_style_4.ig_bottom.ig_air-mail .ig_close:hover{top:-3px}
message-types/action-bar/themes/bold.css CHANGED
@@ -1 +1 @@
1
- .ig_action_bar.ig_bold.ig_container{background-color:#BC0933;color:hsl(0,100%,100%)}.ig_action_bar.ig_bold.ig_container.ig_top{border-bottom:solid 3px #f3eeee;-moz-box-shadow:0 -6px 16px 7px #000;-webkit-box-shadow:0 -6px 16px 7px #000;box-shadow:0 -6px 16px 7px #000}.ig_action_bar.ig_bold.ig_container.ig_bottom{border-top:solid 3px #f3eeee;-moz-box-shadow:0 8px 23px 7px #000;-webkit-box-shadow:0 8px 23px 7px #000;box-shadow:0 8px 23px 7px #000}.ig_action_bar.ig_bold .ig_content{padding:1em 0 0 1em}.ig_action_bar.ig_bold .ig_headline{font-size:1.3em;font-weight:700;line-height:1.2em;padding:0 10px}.ig_action_bar.ig_bold .ig_message{line-height:1.2em;padding:5px 10px}.ig_action_bar.ig_bold img.icon{width:50px}.ig_action_bar.ig_bold .ig_data{max-width:75%;display:inline-block;float:left}.ig_action_bar.ig_bold input[type="submit"],.ig_action_bar.ig_bold input[type="button"],.ig_action_bar.ig_bold .ig_button{background:#00BB58;color:#FFF;display:inline-block;font-size:1em;letter-spacing:1px;vertical-align:text-bottom;font-weight:700;text-align:center;-moz-box-shadow:inset 0 -3px 1px rgba(0,0,0,0.35),0 2px 2px rgba(0,0,0,0.25);-webkit-box-shadow:inset 0 -3px 1px rgba(0,0,0,0.35),0 2px 2px rgba(0,0,0,0.25);box-shadow:inset 0 -3px 1px rgba(0,0,0,0.35),0 2px 2px rgba(0,0,0,0.25);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-shadow:0 0 1px rgba(0,0,0,0.1);padding:.7em 2em}.ig_action_bar.ig_bold input[type="submit"]:active,.ig_action_bar.ig_bold input[type="button"]:active,.ig_action_bar.ig_bold .ig_button:active{position:relative;top:3px;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.ig_action_bar.ig_bold .ig_button{float:right;margin-right:1em!important;margin-bottom:.5em}.ig_action_bar.ig_bold .ig_arrow_block.ig_border{border:3px solid #fff;background-color:#BC0933;border-top-width:0;-moz-box-shadow:0 0 5px rgba(0,0,0,0.35);-webkit-box-shadow:0 0 5px rgba(0,0,0,0.35);box-shadow:0 0 5px rgba(0,0,0,0.35);-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px}
1
+ .ig_action_bar.ig_bold.ig_container{background-color:#BC0933;color:hsl(0,100%,100%)}.ig_action_bar.ig_bold.ig_container.ig_top{border-bottom:solid 3px #f3eeee;-moz-box-shadow:0 -6px 16px 7px #000;-webkit-box-shadow:0 -6px 16px 7px #000;box-shadow:0 -6px 16px 7px #000}.ig_action_bar.ig_bold.ig_container.ig_bottom{border-top:solid 3px #f3eeee;-moz-box-shadow:0 8px 23px 7px #000;-webkit-box-shadow:0 8px 23px 7px #000;box-shadow:0 8px 23px 7px #000}.ig_action_bar.ig_bold .ig_content{padding:1em 0 0 1em}.ig_action_bar.ig_bold .ig_headline{font-size:1.3em;font-weight:700;line-height:1.2em;padding:0 10px}.ig_action_bar.ig_bold .ig_message{line-height:1.2em;padding:5px 10px}.ig_action_bar.ig_bold img.icon{width:50px}.ig_action_bar.ig_bold .ig_data{max-width:75%;display:inline-block;float:left}.ig_action_bar.ig_bold .ig_button,.ig_action_bar.ig_bold input[type="submit"],.ig_action_bar.ig_bold input[type="button"]{background:#00BB58;color:#FFF;display:inline-block;font-size:1em;letter-spacing:1px;vertical-align:text-bottom;font-weight:700;text-align:center;-moz-box-shadow:inset 0 -3px 1px rgba(0,0,0,0.35),0 2px 2px rgba(0,0,0,0.25);-webkit-box-shadow:inset 0 -3px 1px rgba(0,0,0,0.35),0 2px 2px rgba(0,0,0,0.25);box-shadow:inset 0 -3px 1px rgba(0,0,0,0.35),0 2px 2px rgba(0,0,0,0.25);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-shadow:0 0 1px rgba(0,0,0,0.1);padding:.7em 2em}.ig_action_bar.ig_bold .ig_button:active,.ig_action_bar.ig_bold input[type="submit"]:active,.ig_action_bar.ig_bold input[type="button"]:active{position:relative;top:3px;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.ig_action_bar.ig_bold .ig_arrow_block.ig_border{border:3px solid #fff;background-color:#BC0933;border-top-width:0;-moz-box-shadow:0 0 5px rgba(0,0,0,0.35);-webkit-box-shadow:0 0 5px rgba(0,0,0,0.35);box-shadow:0 0 5px rgba(0,0,0,0.35);-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px}
message-types/action-bar/themes/hello.css CHANGED
@@ -1 +1 @@
1
- .ig_action_bar.ig_hello.ig_container{background-color:#EB5B31;color:hsl(0,100%,100%);line-height:1.5em}.ig_action_bar.ig_hello.ig_container.ig_top{border-bottom:3px solid #fff;-moz-box-shadow:0 -6px 16px 7px #000;-webkit-box-shadow:0 -6px 16px 7px #000;box-shadow:0 -6px 16px 7px #000}.ig_action_bar.ig_hello.ig_container.ig_bottom{border-top:3px solid #fff;-moz-box-shadow:0 8px 23px 7px #000;-webkit-box-shadow:0 8px 23px 7px #000;box-shadow:0 8px 23px 7px #000}.ig_action_bar.ig_hello .ig_content{padding:.5em}.ig_action_bar.ig_hello .ig_content p{margin:0;line-height:1.2em}.ig_action_bar.ig_hello .ig_headline{display:inline-block;font-weight:bold;margin-right:1.5em}.ig_action_bar.ig_hello .ig_message{display:inline-block;margin-right:1.5em}.ig_action_bar.ig_hello .ig_icon{width:32px;height:32px}.ig_action_bar.ig_hello .ig_data{text-align:center}.ig_action_bar.ig_hello .ig_embed_form input[type="submit"],.ig_action_bar.ig_hello .ig_embed_form input[type="button"]{line-height:1.5em}.ig_action_bar.ig_hello .ig_button,.ig_action_bar.ig_hello input[type="submit"],.ig_action_bar.ig_hello input[type="button"]{display:inline-block;background-color:#4A4844;background-image:-moz-linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);background-image:-o-linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);background-image:-webkit-linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);background-image:linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.28);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.28);box-shadow:1px 1px 3px rgba(0,0,0,0.28);color:#FFF;font-weight:400;text-align:center;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;text-decoration:none;font-size:1em;margin:4px 0 0 10px;padding:.25em 1em}.ig_action_bar.ig_hello .ig_button:hover,.ig_action_bar.ig_hello input[type="submit"]:hover,.ig_action_bar.ig_hello input[type="button"]:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";filter:alpha(opacity=80);opacity:0.8}.ig_action_bar.ig_hello .ig_embed_form{position:relative;bottom:-1.2em}.ig_action_bar.ig_hello .ig_valign_form_fix{position:relative;bottom:.5em;margin-right:4%}.ig_action_bar.ig_hello .ig_valign_form_fix .ig_button{margin:10px 0 0 10px}.ig_action_bar.ig_hello .ig_arrow_block.ig_border{background-color:#EB5B31;border:3px solid #fff;border-top-width:0;-moz-box-shadow:0 0 7px rgba(0,0,0,0.35);-webkit-box-shadow:0 0 7px rgba(0,0,0,0.35);box-shadow:0 0 7px rgba(0,0,0,0.35);-moz-border-radius:0 0 7px 7px;-webkit-border-radius:0 0 7px 7px;border-radius:0 0 7px 7px}.ig_action_bar.ig_hello .ig_powered_by{margin-top:0;height:32px}.ig_action_bar.ig_hello .ig_powered_by img{width:24px;width:1.5em!important;margin-left:1em!important;margin-top:.4em!important}
1
+ .ig_action_bar.ig_hello.ig_container{background-color:#EB5B31;color:hsl(0,100%,100%);line-height:1.5em}.ig_action_bar.ig_hello.ig_container.ig_top{border-bottom:3px solid #fff;-moz-box-shadow:0 -6px 16px 7px #000;-webkit-box-shadow:0 -6px 16px 7px #000;box-shadow:0 -6px 16px 7px #000}.ig_action_bar.ig_hello.ig_container.ig_bottom{border-top:3px solid #fff;-moz-box-shadow:0 8px 23px 7px #000;-webkit-box-shadow:0 8px 23px 7px #000;box-shadow:0 8px 23px 7px #000}.ig_action_bar.ig_hello .ig_content{padding:.5em;text-align:center}.ig_action_bar.ig_hello .ig_content p{margin:0;line-height:1.2em}.ig_action_bar.ig_hello .ig_data{text-align:center;display:inline-block}.ig_action_bar.ig_hello .ig_headline{display:inline-block;font-weight:bold;margin-right:1.5em}.ig_action_bar.ig_hello .ig_message{display:inline-block;margin-right:1.5em}.ig_action_bar.ig_hello .ig_icon{width:32px;height:32px}.ig_action_bar.ig_hello .ig_button,.ig_action_bar.ig_hello input[type="submit"],.ig_action_bar.ig_hello input[type="button"]{display:inline-block;background-color:#4A4844;background-image:-moz-linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);background-image:-o-linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);background-image:-webkit-linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);background-image:linear-gradient(top,transparent 0%,rgba(51,51,51,0.4) 100%);-moz-box-shadow:1px 1px 3px rgba(0,0,0,0.28);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,0.28);box-shadow:1px 1px 3px rgba(0,0,0,0.28);color:#FFF;font-weight:400;text-align:center;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;text-decoration:none;font-size:1em;padding:.25em 1em;float:none;margin:0 0 .8em 0!important}.ig_action_bar.ig_hello .ig_button:hover,.ig_action_bar.ig_hello input[type="submit"]:hover,.ig_action_bar.ig_hello input[type="button"]:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";filter:alpha(opacity=80);opacity:0.8}.ig_action_bar.ig_hello .ig_arrow_block.ig_border{background-color:#EB5B31;border:3px solid #fff;border-top-width:0;-moz-box-shadow:0 0 7px rgba(0,0,0,0.35);-webkit-box-shadow:0 0 7px rgba(0,0,0,0.35);box-shadow:0 0 7px rgba(0,0,0,0.35);-moz-border-radius:0 0 7px 7px;-webkit-border-radius:0 0 7px 7px;border-radius:0 0 7px 7px}.ig_action_bar.ig_hello .ig_powered_by{margin-top:0;height:32px}.ig_action_bar.ig_hello .ig_powered_by img{width:24px;width:1.5em!important;margin-left:1em!important;margin-top:.4em!important}.ig_action_bar.ig_form_inline.ig_hello .ig_form_container.layout_inline .ig_form_header,.ig_action_bar.ig_form_bottom.ig_hello .ig_form_container.layout_bottom .ig_form_header,.ig_action_bar.ig_form_inline.ig_hello .ig_form_container.layout_inline .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_hello .ig_form_container.layout_bottom .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_hello .ig_form_container.layout_bottom .ig_embed_form_container,.ig_action_bar.ig_form_inline.ig_hello .ig_form_container.layout_inline .ig_embed_form_container{text-align:center}.ig_form_bottom .ig_form_container.layout_bottom .ig_embed_form_container,.ig_form_inline .ig_form_container.layout_inline .ig_embed_form_container.ig_action_bar.ig_form_inline.ig_hello .ig_data{width:auto!important;padding:.3em 3em .3em 3em}.ig_action_bar.ig_form_inline.ig_hello .ig_data{padding-top:0;padding-bottom:0}.ig_action_bar.ig_form_inline.ig_hello .ig_message{vertical-align:middle}.ig_action_bar.ig_form_inline.ig_hello .ig_headline{line-height:2em;vertical-align:middle;padding:.5em 0;margin-right:.5em}
message-types/action-bar/themes/solid.css CHANGED
@@ -1 +1 @@
1
- .ig_action_bar.ig_solid.ig_container{background-color:#4E3363;color:hsl(0,100%,100%)}.ig_action_bar.ig_solid .ig_content{padding:1em 0 1em 1em}.ig_action_bar.ig_solid .ig_headline{font-size:1.2em;line-height:1em;padding:0 10px}.ig_action_bar.ig_solid .ig_message{line-height:1em;padding:5px 10px}.ig_action_bar.ig_solid img.icon{width:50px}.ig_action_bar.ig_solid .ig_data{max-width:75%;display:inline-block;float:left}.ig_action_bar.ig_solid .ig_button,.ig_action_bar.ig_solid input[type="submit"],.ig_action_bar.ig_solid input[type="button"]{background:#008010;color:#FFF;display:inline-block;font-size:1em;letter-spacing:.1em;-moz-border-radius:0.1em;-webkit-border-radius:0.1em;border-radius:0.1em;vertical-align:text-bottom;font-weight:700;padding:.6em 2em}.ig_action_bar.ig_solid .ig_button{float:right;margin-right:1em!important}.ig_action_bar.ig_solid .ig_button:hover,.ig_action_bar.ig_solid input[type="submit"]:hover,.ig_action_bar.ig_solid input[type="button"]:hover{-moz-box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15);-webkit-box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15);box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15)}.ig_action_bar.ig_solid .ig_arrow_block.ig_border{background-color:#4E3363;border:none}
1
+ .ig_action_bar.ig_solid.ig_container{background-color:#4E3363;color:hsl(0,100%,100%)}.ig_action_bar.ig_solid .ig_content{padding:1em 0 1em 1em}.ig_action_bar.ig_solid .ig_headline{font-size:1.2em;line-height:1em;padding:0 10px}.ig_action_bar.ig_solid .ig_message{line-height:1em;padding:5px 10px}.ig_action_bar.ig_solid img.icon{width:50px}.ig_action_bar.ig_solid .ig_data{max-width:75%;display:inline-block;float:left}.ig_action_bar.ig_solid .ig_button,.ig_action_bar.ig_solid input[type="submit"],.ig_action_bar.ig_solid input[type="button"]{background:#008010;color:#FFF;display:inline-block;font-size:1em;letter-spacing:.1em;-moz-border-radius:0.1em;-webkit-border-radius:0.1em;border-radius:0.1em;vertical-align:text-bottom;font-weight:700;padding:.6em 2em}.ig_action_bar.ig_solid .ig_button:hover,.ig_action_bar.ig_solid input[type="submit"]:hover,.ig_action_bar.ig_solid input[type="button"]:hover{-moz-box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15);-webkit-box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15);box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15)}.ig_action_bar.ig_solid .ig_arrow_block.ig_border{background-color:#4E3363;border:none}
message-types/messenger/default.css CHANGED
@@ -1 +1 @@
1
- .ig_messenger.ig_container{display:block;position:fixed;cursor:pointer;z-index:100000;margin:0;padding:0;font-family:"Lucida Grande",Arial,sans-serif;overflow:hidden;text-align:left;background-color:transparent!important}.ig_messenger .ig_header{position:relative;overflow:hidden;display:block;white-space:nowrap}.ig_messenger .ig_header_image{display:inline-block}.ig_messenger .ig_header_text{text-decoration:none;font-weight:700;overflow:hidden}.ig_messenger .ig_headline{overflow:hidden;display:inline-block;text-decoration:none;white-space:nowrap}.ig_messenger .ig_header2_image{height:30px;position:relative;display:block;border:1px solid #BFBFBF;border-bottom:none;border-top:none}.ig_messenger .ig_body{overflow-x:hidden;display:block;border-bottom:none}.ig_messenger .ig_message{text-align:left;word-wrap:break-word;display:inline-block}.ig_messenger .ig_message p{margin-bottom:0.25em}.ig_messenger .ig_no_icon.ig_message{width:91%}.ig_messenger .ig_separator{color:transparent;background:transparent;border:none;display:block;font-size:13px;line-height:15px;margin:1px 0 2px}.ig_messenger .ig_footer{position:relative;display:block;background-repeat:no-repeat}.ig_messenger .ig_footer_image{background-repeat:no-repeat;position:relative;display:block}.ig_messenger .ig_close{position:absolute;display:inline-block;background-repeat:no-repeat}.ig_messenger .ig_icon{height:28px;width:28px;vertical-align:top;display:inline-block}.ig_messenger .ig_powered_by{font-size:10px;position:relative}.ig_messenger .ig_embed_form.ig_vertical.ig_quarter .ig_embed_form_container,.ig_messenger .ig_embed_form.ig_horizontal.ig_quarter .ig_embed_form_container{width:50%!important}.ig_messenger .ig_embed_form.ig_vertical.ig_half li,.ig_messenger .ig_embed_form.ig_vertical.ig_quarter li,.ig_messenger .ig_embed_form.ig_horizontal.ig_half li,.ig_messenger .ig_embed_form.ig_horizontal.ig_quarter li{min-width:96%!important}.ig_messenger .ig_button,.ig_messenger input[type="submit"],.ig_messenger input[type="button"]{border-bottom:none;cursor:pointer}.ig_messenger .ig_button:active,.ig_messenger input[type="submit"]:active,.ig_messenger input[type="button"]:active{border-top:none}.ig_messenger .ig_close{background:no-repeat url(../messenger/images/clear-header.png) 0 -195px;right:10px;top:20px;width:21px;height:13px}
1
+ .ig_messenger.ig_container{display:block;position:fixed;cursor:pointer;z-index:100000;margin:0;padding:0;font-family:"Lucida Grande",Arial,sans-serif;overflow:hidden;text-align:left;background-color:transparent!important}.ig_messenger .ig_header{position:relative;overflow:hidden;display:block;white-space:nowrap}.ig_messenger .ig_header_image{display:inline-block}.ig_messenger .ig_header_text{text-decoration:none;font-weight:700;overflow:hidden}.ig_messenger .ig_headline{overflow:hidden;display:inline-block;text-decoration:none;white-space:nowrap}.ig_messenger .ig_header2_image{height:30px;position:relative;display:block;border:1px solid #BFBFBF;border-bottom:none;border-top:none}.ig_messenger .ig_body{overflow-x:hidden;display:block;border-bottom:none}.ig_messenger .ig_message{text-align:left;word-wrap:break-word;display:inline-block}.ig_messenger .ig_message p{margin-bottom:0.25em}.ig_messenger .ig_no_icon.ig_message{width:91%}.ig_messenger .ig_separator{color:transparent;background:transparent;border:none;display:block;font-size:13px;line-height:15px;margin:1px 0 2px}.ig_messenger .ig_footer{position:relative;display:block;background-repeat:no-repeat}.ig_messenger .ig_footer_image{background-repeat:no-repeat;position:relative;display:block}.ig_messenger .ig_close{position:absolute;display:inline-block;background-repeat:no-repeat}.ig_messenger .ig_icon{height:28px;width:28px;vertical-align:top;display:inline-block}.ig_messenger .ig_powered_by{font-size:10px;position:relative}.ig_messenger .ig_button,.ig_messenger input[type="submit"],.ig_messenger input[type="button"]{border-bottom:none;cursor:pointer}.ig_messenger .ig_button:active,.ig_messenger input[type="submit"]:active,.ig_messenger input[type="button"]:active{border-top:none}.ig_messenger .ig_close{background:no-repeat url(../messenger/images/clear-header.png) 0 -195px;right:10px;top:20px;width:21px;height:13px}.ig_messenger.ig_form_left .ig_form_container.layout_left,.ig_messenger.ig_form_right .ig_form_container.layout_right,.ig_messenger.ig_form_bottom .ig_form_container.layout_bottom{display:none}.ig_messenger.ig_form_inline .ig_form_container.layout_inline{padding:.5em 0}.ig_messenger.ig_form_inline .ig_form_container.layout_inline .ig_full .ig_form_els,.ig_messenger.ig_form_inline .ig_form_container.layout_inline .ig_half .ig_form_els,.ig_messenger.ig_form_inline .ig_form_container.layout_inline .ig_third .ig_form_els,.ig_messenger.ig_form_inline .ig_form_container.layout_inline .ig_quater .ig_form_els{width:98%;margin:.3em auto}.ig_messenger.ig_form_inline .ig_form_container.layout_inline .ig_button_label{display:none}.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els{margin-right:0;margin-left:0}.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:first-child input,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:last-child input,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els input{padding-left:1em;height:2.5em!important;-webkit-border-radius:2em;-moz-border-radius:2em;border-radius:2em}.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els input.ig_button{padding:inherit}.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:first-child label,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:last-child label,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els label{padding-left:1em}
message-types/messenger/main.js CHANGED
@@ -1 +1 @@
1
- function Icegram_Message_Type_Messenger(e){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_{{=animation}} ig_container ig_cta" data="{{=id}}" id="icegram_message_{{=id}}"><div class="ig_content"><div class="ig_header"><div class="ig_header_image"></div><div class="ig_header_text"><div class="ig_headline">{{=headline}}</div></div></div><div class="ig_header2_image"></div><div class="ig_body"><img class="ig_icon" src="{{=icon}}"/><div class="ig_message">{{=message}}</div><div class="ig_separator"></div></div><div class="ig_footer"><div class="ig_footer_image"></div></div></div><div class="ig_close" id="ig_close_{{=id}}"></div></div>'},Icegram_Message_Type_Messenger.prototype.post_render=function(){""==this.data.icon&&(this.el.find(".ig_icon").remove(),this.el.find(".ig_message").addClass("ig_no_icon"))},Icegram_Message_Type_Messenger.prototype.set_position=function(){switch(this.data.position){case"20":this.el.css({left:5,bottom:0}),this.el.addClass("ig_left");break;case"22":default:this.el.css({left:jQuery(window).width()-this.el.outerWidth()-5,bottom:0}),this.el.addClass("ig_right")}},Icegram_Message_Type_Messenger.prototype.show=function(e,s){if(!this.is_visible()){var i=s!==!0?1e3:0;switch(this.data.animation){case"appear":this.el.fadeIn(i);break;case"slide":this.el.slideDown(i)}s!==!0&&this.track("shown")}},Icegram_Message_Type_Messenger.prototype.add_powered_by=function(e){this.el.find(".ig_content").after('<div class="ig_powered_by"><a href="'+e.link+'" target="_blank">'+e.text+"</a></div>")},Icegram_Message_Type_Messenger.prototype.hide=function(e,s){if(this.is_visible()){var i=s!==!0?1e3:0;switch(this.data.animation){case"appear":this.el.fadeOut(i);break;case"slide":this.el.slideUp(i)}s!==!0&&this.track("closed")}};
1
+ function Icegram_Message_Type_Messenger(e){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_{{=animation}} ig_container ig_cta" data="{{=id}}" id="icegram_message_{{=id}}"><div class="ig_content"><div class="ig_header"><div class="ig_header_image"></div><div class="ig_header_text"><div class="ig_headline">{{=headline}}</div></div></div><div class="ig_header2_image"></div><div class="ig_body"><img class="ig_icon" src="{{=icon}}"/><div class="ig_message">{{=message}}</div><div class="ig_form_container layout_bottom"></div><div class="ig_separator"></div></div><div class="ig_footer"><div class="ig_footer_image"></div></div></div><div class="ig_close" id="ig_close_{{=id}}"></div></div>'},Icegram_Message_Type_Messenger.prototype.post_render=function(){""==this.data.icon&&(this.el.find(".ig_icon").remove(),this.el.find(".ig_message").addClass("ig_no_icon"))},Icegram_Message_Type_Messenger.prototype.set_position=function(){switch(this.data.position){case"20":this.el.css({left:5,bottom:0}),this.el.addClass("ig_left");break;case"22":default:this.el.css({left:jQuery(window).width()-this.el.outerWidth()-5,bottom:0}),this.el.addClass("ig_right")}},Icegram_Message_Type_Messenger.prototype.show=function(e,s){if(!this.is_visible()){var i=s!==!0?1e3:0;switch(this.data.animation){case"appear":this.el.fadeIn(i);break;case"slide":this.el.slideDown(i)}s!==!0&&this.track("shown")}},Icegram_Message_Type_Messenger.prototype.add_powered_by=function(e){this.el.addClass("ig_has_pwby"),this.el.find(".ig_content").after('<div class="ig_powered_by"><a href="'+e.link+'" target="_blank">'+e.text+"</a></div>")},Icegram_Message_Type_Messenger.prototype.hide=function(e,s){if(this.is_visible()){var i=s!==!0?1e3:0;switch(this.data.animation){case"appear":this.el.fadeOut(i);break;case"slide":this.el.slideUp(i)}s!==!0&&this.track("closed")}};
message-types/messenger/main.php CHANGED
@@ -21,6 +21,8 @@ class Icegram_Message_Type_Messenger extends Icegram_Message_Type {
21
  "appear" => __( 'Appear', 'icegram' ) );
22
  $this->settings['animation']['default'] = 'slide';
23
  $this->settings['theme']['default'] = 'social';
 
 
24
  unset ( $this->settings['text_color'],
25
  $this->settings['bg_color'],
26
  $this->settings['label']
21
  "appear" => __( 'Appear', 'icegram' ) );
22
  $this->settings['animation']['default'] = 'slide';
23
  $this->settings['theme']['default'] = 'social';
24
+ $this->settings['form_layout']['values'] = array('inline' ); // May be 'bottom'
25
+ $this->settings['form_layout']['default'] = 'inline';
26
  unset ( $this->settings['text_color'],
27
  $this->settings['bg_color'],
28
  $this->settings['label']
message-types/messenger/themes/canvas.css CHANGED
@@ -1 +1 @@
1
- .ig_messenger.ig_canvas.ig_container{max-height:80%;max-width:400px;font-family:inherit}.ig_messenger.ig_canvas .ig_content{border:1px solid #BFBFBF;margin:10px;padding:10px;overflow:hidden;-webkit-box-shadow:0 0.15em 0.35em 0 rgba(0,0,0,0.135);box-shadow:0 0.15em 0.35em 0 rgba(0,0,0,0.13);background-color:#FFF!important}.ig_messenger.ig_canvas .ig_header{}.ig_messenger.ig_canvas .ig_header_image{display:none}.ig_messenger.ig_canvas .ig_header_text{line-height:1.2em}.ig_messenger.ig_canvas .ig_headline{margin:-.35em 35px inherit inherit;display:inline-block;font-size:1.5em;font-weight:bold;color:#111;line-height:1.5em;max-width:350px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ig_messenger.ig_canvas .ig_header2_image{display:none}.ig_messenger.ig_canvas .ig_body{}.ig_messenger.ig_canvas .ig_message{color:#444;line-height:1.2em;display:inline}.ig_messenger.ig_canvas .ig_no_icon.ig_message{width:98%}.ig_messenger.ig_canvas .ig_separator{display:none}.ig_messenger.ig_canvas .ig_footer{}.ig_messenger.ig_canvas .ig_footer_image{display:none}.ig_messenger.ig_canvas .ig_close{background:no-repeat url(../images/clear-header.png) 0 -195px;right:10px;top:20px;width:21px;height:13px}.ig_messenger.ig_canvas .ig_powered_by{margin:-0.5em 10px 0.5em 10px}.ig_messenger.ig_canvas .ig_icon{float:right;border-radius:5%;max-width:400px;height:auto!important;width:auto!important}
1
+ .ig_messenger.ig_canvas.ig_container{max-height:80%;max-width:400px;font-family:inherit}.ig_messenger.ig_canvas .ig_content{border:1px solid #BFBFBF;margin:10px;padding:10px;overflow:hidden;-webkit-box-shadow:0 0.15em 0.35em 0 rgba(0,0,0,0.135);box-shadow:0 0.15em 0.35em 0 rgba(0,0,0,0.13);background-color:#FFF!important}.ig_messenger.ig_canvas .ig_header_image{display:none}.ig_messenger.ig_canvas .ig_header_text{line-height:1.2em}.ig_messenger.ig_canvas .ig_headline{margin:-.35em 35px inherit inherit;display:inline-block;font-size:1.5em;font-weight:bold;color:#111;line-height:1.5em;max-width:350px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ig_messenger.ig_canvas .ig_body{max-height:350px;overflow-y:auto;padding:0 15px}.ig_messenger.ig_canvas .ig_header2_image{display:none}.ig_messenger.ig_canvas .ig_message{color:#444;display:inline}.ig_messenger.ig_canvas .ig_no_icon.ig_message{width:98%}.ig_messenger.ig_canvas .ig_separator{display:none}.ig_messenger.ig_canvas .ig_footer_image{display:none}.ig_messenger.ig_canvas .ig_close{background:no-repeat url(../images/clear-header.png) 0 -195px;right:10px;top:20px;width:21px;height:13px}.ig_messenger.ig_canvas .ig_powered_by{margin:-0.5em 10px 0.5em 10px}.ig_messenger.ig_canvas .ig_icon{float:right;border-radius:5%;max-width:400px;height:auto!important;width:auto!important}.ig_messenger.ig_form_inline.ig_canvas .ig_form_container.layout_inline{padding:.5em 0}
message-types/messenger/themes/clear.css CHANGED
@@ -1 +1 @@
1
- .ig_messenger.ig_clear.ig_container{width:250px;height:260px}.ig_messenger.ig_clear .ig_content{}.ig_messenger.ig_clear .ig_header{height:31px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;background:#F9F9F9;border:1px solid #BFBFBF;-moz-border-radius:3px 3px 0 0;-webkit-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;color:#333;line-height:20px!important;padding:0 4px 0 5px}.ig_messenger.ig_clear .ig_header_image{background:no-repeat url(../images/clear-header.png) 0 -181px;position:relative;height:13px;width:35px;margin-left:206px;margin-top:9px;line-height:20px!important;padding:0}.ig_messenger.ig_clear .ig_header_text{background:no-repeat url(../images/clear-header.png) 0 0;font-size:13px;height:15px;white-space:nowrap;position:relative;display:block;margin-top:-19px;margin-left:3px;line-height:16px}.ig_messenger.ig_clear .ig_headline{margin-left:20px;margin-right:55px;width:161px;font-size:13px;height:16px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ig_messenger.ig_clear .ig_header2_image{background-image:url(../images/clear-option.png)}.ig_messenger.ig_clear .ig_body{background:#fff;height:152px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;border:1px solid #BFBFBF;font-family:Arial,Helvetica,sans-serif;color:#222;font-size:13px;line-height:15px;padding:6px 6px 0}.ig_messenger.ig_clear .ig_message{color:#3E454C;line-height:1.28em;width:180px;margin-left:.5em}.ig_messenger.ig_clear .ig_no_icon.ig_message{width:97%}.ig_messenger.ig_clear .ig_separator{border-bottom:1px solid hsl(0,0%,98%);border-top:1px solid #DFDFDF;-webkit-margin-before:0.5em;-webkit-margin-after:0.5em;-moz-margin-start:auto;-webkit-margin-start:auto;margin-start:auto;-moz-margin-end:auto;-webkit-margin-end:auto;margin-end:auto;-moz-margin-before:0.5em;-moz-margin-after:0.5em}.ig_messenger.ig_clear .ig_footer{background-image:url(../images/clear-footer.png);height:36px;border:1px solid #BFBFBF;border-top:none;padding:0 12px;-webkit-background-size:96%;background-size:96%;background-color:#F5F5F5;background-position:5px 5px}.ig_messenger.ig_clear .ig_footer_image{}.ig_messenger.ig_clear .ig_close{background:no-repeat url(../images/clear-header.png) 0 -195px;right:5px;top:10px;margin-right:-5px;width:21px;height:13px;vertical-align:top}.ig_messenger.ig_clear .ig_powered_by{top:-20px;left:120px}.ig_messenger.ig_clear .ig_icon{border-radius:2px}
1
+ .ig_messenger.ig_clear.ig_container{width:250px;height:260px}.ig_messenger.ig_clear .ig_header{height:31px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;background:#F9F9F9;border:1px solid #BFBFBF;-moz-border-radius:3px 3px 0 0;-webkit-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;color:#333;line-height:20px!important;padding:0 4px 0 5px}.ig_messenger.ig_clear .ig_header_image{background:no-repeat url(../images/clear-header.png) 0 -181px;position:relative;height:13px;width:35px;margin-left:206px;margin-top:9px;line-height:20px!important;padding:0}.ig_messenger.ig_clear .ig_header_text{background:no-repeat url(../images/clear-header.png) 0 0;font-size:13px;height:15px;white-space:nowrap;position:relative;display:block;margin-top:-19px;margin-left:3px;line-height:16px}.ig_messenger.ig_clear .ig_headline{margin-left:20px;margin-right:55px;width:161px;font-size:13px;height:16px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ig_messenger.ig_clear .ig_header2_image{background-image:url(../images/clear-option.png)}.ig_messenger.ig_clear .ig_body{background:#fff;height:152px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;border:1px solid #BFBFBF;font-family:Arial,Helvetica,sans-serif;color:#222;font-size:13px;line-height:15px;padding:6px 6px 0}.ig_messenger.ig_clear .ig_message{color:#3E454C;line-height:1.28em;width:180px;margin-left:.5em}.ig_messenger.ig_clear .ig_no_icon.ig_message{width:97%}.ig_messenger.ig_clear .ig_separator{border-bottom:1px solid hsl(0,0%,98%);border-top:1px solid #DFDFDF;-webkit-margin-before:0.5em;-webkit-margin-after:0.5em;-moz-margin-start:auto;-webkit-margin-start:auto;margin-start:auto;-moz-margin-end:auto;-webkit-margin-end:auto;margin-end:auto;-moz-margin-before:0.5em;-moz-margin-after:0.5em}.ig_messenger.ig_clear .ig_footer{background-image:url(../images/clear-footer.png);height:36px;border:1px solid #BFBFBF;border-top:none;padding:0 12px;-webkit-background-size:96%;background-size:96%;background-color:#F5F5F5;background-position:5px 5px}.ig_messenger.ig_clear .ig_close{background:no-repeat url(../images/clear-header.png) 0 -195px;right:5px;top:10px;margin-right:-5px;width:21px;height:13px;vertical-align:top}.ig_messenger.ig_clear .ig_powered_by{top:-20px;left:120px}.ig_messenger.ig_clear .ig_icon{border-radius:2px}.ig_messenger.ig_form_inline.ig_clear .ig_form_container.layout_inline{padding-right:.9em}
message-types/messenger/themes/social.css CHANGED
@@ -1 +1 @@
1
- .ig_messenger.ig_social.ig_container{width:250px;height:260px;-webkit-background-clip:padding-box;background-clip:padding-box}.ig_messenger.ig_social .ig_content{}.ig_messenger.ig_social .ig_header{background-color:#627BAE;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid rgba(0,39,121,0.76);border-bottom:none;-webkit-border-top-left-radius:1px 1px;-moz-border-radius-topleft:1px 1px;border-top-left-radius:1px 1px;-webkit-border-top-right-radius:1px 1px;-moz-border-radius-topright:1px 1px;border-top-right-radius:1px 1px;height:26px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis;color:#FFF;font-weight:400;line-height:18px}.ig_messenger.ig_social .ig_header_image{position:absolute;height:25px;vertical-align:top;background-image:url(../images/social-img.png);background-repeat:no-repeat;background-position:-92px -332px;border:0;right:20px;top:2px;margin-right:3px;width:21px}.ig_messenger.ig_social .ig_header_text{font-size:11px;vertical-align:top;zoom:1;margin:3px 7px 4px}.ig_messenger.ig_social .ig_headline{margin-left:5px;margin-right:40px;line-height:20px;width:195px;text-overflow:ellipsis}.ig_messenger.ig_social .ig_header2_image{display:none}.ig_messenger.ig_social .ig_body{right:0;bottom:0;padding-left:5px;padding-top:5px;padding-right:5px;height:194px;overflow-y:auto;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:#FFF;border:1px solid rgba(0,0,0,0.3);font-size:12px;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;color:#3e454c;line-height:1.28;text-align:left;position:relative;border-width:0 1px;background-color:#edeff4}.ig_messenger.ig_social .ig_message{background-color:#F7F7F7;background-image:-webkit-gradient(linear,center bottom,center top,from(#F2F2F2),to(#FFF));background-image:-webkit-linear-gradient(bottom,#F2F2F2,#FFF);margin-left:10px;padding:4px 6px 3px 5px;border:1px solid rgba(0,0,0,.18);border-bottom-color:rgba(0,0,0,.29);-webkit-border-radius:4px;-webkit-box-shadow:0 1px 0 #DCE0E6;color:#3E454C;line-height:1.28;min-height:14px;position:relative;text-shadow:rgba(255,255,255,.5) 0 1px 0;width:170px}.ig_messenger.ig_social .ig_message:after{content:"";display:block;position:absolute;top:11px;left:0;margin:0 0 0 -12px;border:6px solid #FAFAFA;border-color:rgba(0,0,0,0) #FAFAFA rgba(0,0,0,0) rgba(0,0,0,0)}.ig_messenger.ig_social .ig_message:before{content:"";display:block;position:absolute;top:9px;left:0;margin:0 0 0 -16px;border:8px solid #DFDFDF;border-color:rgba(0,0,0,0) #DFDFDF rgba(0,0,0,0) rgba(0,0,0,0)}.ig_messenger.ig_social .ig_no_icon.ig_message{width:91%}.ig_messenger.ig_social .ig_no_icon.ig_message:after,.ig_messenger.ig_social .ig_no_icon.ig_message:before{content:none}.ig_messenger.ig_social .ig_separator{display:none}.ig_messenger.ig_social .ig_footer{right:0;bottom:0;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:#FFF;border:1px solid rgba(0,0,0,0.3);border-top:1px solid #C9D0DA;max-height:77px;overflow-x:hidden;overflow-y:auto;font-size:11px;color:#333;line-height:1.28;padding:5px 23px 3px 5px}.ig_messenger.ig_social .ig_footer_image{background-image:url(../images/social-img.png);background-position:-269px -137px;width:24px;height:24px;left:221px}.ig_messenger.ig_social .ig_close{background-image:url(../images/social-img.png);background-position:-137px -332px;right:0;top:2px;margin-right:3px;width:21px;height:25px;vertical-align:top}.ig_messenger.ig_social .ig_powered_by{top:-16px;left:130px}.ig_messenger.ig_social .ig_icon{border-radius:2px}
1
+ .ig_messenger.ig_social.ig_container{width:250px;height:260px;-webkit-background-clip:padding-box;background-clip:padding-box}.ig_messenger.ig_social .ig_header{background-color:#627BAE;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid rgba(0,39,121,0.76);border-bottom:none;-webkit-border-top-left-radius:1px 1px;-moz-border-radius-topleft:1px 1px;border-top-left-radius:1px 1px;-webkit-border-top-right-radius:1px 1px;-moz-border-radius-topright:1px 1px;border-top-right-radius:1px 1px;height:26px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis;color:#FFF;font-weight:400;line-height:18px}.ig_messenger.ig_social .ig_header_image{position:absolute;height:25px;vertical-align:top;background-image:url(../images/social-img.png);background-repeat:no-repeat;background-position:-92px -332px;border:0;right:20px;top:2px;margin-right:3px;width:21px}.ig_messenger.ig_social .ig_header_text{font-size:11px;vertical-align:top;zoom:1;margin:3px 7px 4px}.ig_messenger.ig_social .ig_headline{margin-left:5px;margin-right:40px;line-height:20px;width:195px;text-overflow:ellipsis}.ig_messenger.ig_social .ig_header2_image{display:none}.ig_messenger.ig_social .ig_body{right:0;bottom:0;padding-left:5px;padding-top:5px;padding-right:5px;height:194px;overflow-y:auto;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:#FFF;border:1px solid rgba(0,0,0,0.3);font-size:12px;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;color:#3e454c;line-height:1.28;text-align:left;position:relative;border-width:0 1px;background-color:#edeff4}.ig_messenger.ig_social .ig_message{background-color:#F7F7F7;background-image:-webkit-gradient(linear,center bottom,center top,from(#F2F2F2),to(#FFF));background-image:-webkit-linear-gradient(bottom,#F2F2F2,#FFF);margin-left:10px;padding:4px 6px 3px 5px;border:1px solid rgba(0,0,0,.18);border-bottom-color:rgba(0,0,0,.29);-webkit-border-radius:4px;-webkit-box-shadow:0 1px 0 #DCE0E6;color:#3E454C;line-height:1.28;min-height:14px;position:relative;text-shadow:rgba(255,255,255,.5) 0 1px 0;width:170px}.ig_messenger.ig_social .ig_message:after{content:"";display:block;position:absolute;top:11px;left:0;margin:0 0 0 -12px;border:6px solid #FAFAFA;border-color:rgba(0,0,0,0) #FAFAFA rgba(0,0,0,0) rgba(0,0,0,0)}.ig_messenger.ig_social .ig_message:before{content:"";display:block;position:absolute;top:9px;left:0;margin:0 0 0 -16px;border:8px solid #DFDFDF;border-color:rgba(0,0,0,0) #DFDFDF rgba(0,0,0,0) rgba(0,0,0,0)}.ig_messenger.ig_social .ig_no_icon.ig_message{width:91%}.ig_messenger.ig_social .ig_no_icon.ig_message:after,.ig_messenger.ig_social .ig_no_icon.ig_message:before{content:none}.ig_messenger.ig_social .ig_separator{display:none}.ig_messenger.ig_social .ig_footer{right:0;bottom:0;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:#FFF;border:1px solid rgba(0,0,0,0.3);border-top:1px solid #C9D0DA;max-height:77px;overflow-x:hidden;overflow-y:auto;font-size:11px;color:#333;line-height:1.28;padding:5px 23px 3px 5px}.ig_messenger.ig_social .ig_footer_image{background-image:url(../images/social-img.png);background-position:-269px -137px;width:24px;height:24px;left:221px}.ig_messenger.ig_social .ig_close{background-image:url(../images/social-img.png);background-position:-137px -332px;right:0;top:2px;margin-right:3px;width:21px;height:25px;vertical-align:top}.ig_messenger.ig_social .ig_powered_by{top:-16px;left:130px}.ig_messenger.ig_social .ig_icon{border-radius:2px}
message-types/messenger/themes/talk.css CHANGED
@@ -1 +1 @@
1
- .ig_messenger.ig_talk.ig_container{width:210px;height:260px}.ig_messenger.ig_talk .ig_content{background:transparent!important}.ig_messenger.ig_talk .ig_header{height:25px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;background:#F5FAFF;border:1px solid #BFBFBF;-moz-border-radius:7px 7px 0 0;-webkit-border-radius:7px 7px 0 0;border-radius:7px 7px 0 0;color:#00008B;font-weight:700!important;line-height:20px!important;padding:0}.ig_messenger.ig_talk .ig_header_image{background-image:url(../images/talk-header-1.png);margin-top:4px;position:relative;height:15px;width:15px;margin-left:173px;line-height:20px!important;padding:0}.ig_messenger.ig_talk .ig_header_text{background:no-repeat url(../images/clear-header.png) 0 0;background-repeat:no-repeat;font-size:12px;height:18px;white-space:nowrap;position:relative;display:block;margin-top:-19px;line-height:16px;margin-left:10px}.ig_messenger.ig_talk .ig_headline{margin-left:17px;margin-right:40px;line-height:16px;width:141px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ig_messenger.ig_talk .ig_header2_image{background-image:url(../images/talk-header-2.png)}.ig_messenger.ig_talk .ig_body{background:#fff;height:160px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;border:1px solid #BFBFBF;font-family:Arial,Helvetica,sans-serif;color:#222;font-size:12px;top:0;left:0;right:0;line-height:15px;padding:6px 6px 0}.ig_messenger.ig_talk .ig_message{color:#3E454C;width:142px;margin-left:7px}.ig_messenger.ig_talk .ig_no_icon.ig_message{width:98%}.ig_messenger.ig_talk .ig_separator{border-bottom:1px solid hsl(0,0%,98%);border-top:1px solid #DFDFDF;-webkit-margin-before:0.5em;-webkit-margin-after:0.5em;-moz-margin-start:auto;-webkit-margin-start:auto;margin-start:auto;-moz-margin-end:auto;-webkit-margin-end:auto;margin-end:auto;-moz-margin-before:0.5em;-moz-margin-after:0.5em}.ig_messenger.ig_talk .ig_footer{background-image:url(../images/talk-footer-1.png);height:33px;border:1px solid #BFBFBF;border-bottom:none}.ig_messenger.ig_talk .ig_footer_image{margin-top:.8px}.ig_messenger.ig_talk .ig_close{background-image:url(../images/talk-close.png)!important;background-repeat:no-repeat;background-position:0 0;top:4.5px;right:-1px;width:21px;height:25px}.ig_messenger.ig_talk .ig_powered_by{top:-24px;left:93px}.ig_messenger.ig_talk .ig_icon{}
1
+ .ig_messenger.ig_talk.ig_container{width:210px;height:260px}.ig_messenger.ig_talk .ig_content{background:transparent!important}.ig_messenger.ig_talk .ig_header{height:25px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;background:#F5FAFF;border:1px solid #BFBFBF;-moz-border-radius:7px 7px 0 0;-webkit-border-radius:7px 7px 0 0;border-radius:7px 7px 0 0;color:#00008B;font-weight:700!important;line-height:20px!important;padding:0}.ig_messenger.ig_talk .ig_header_image{background-image:url(../images/talk-header-1.png);margin-top:4px;position:relative;height:15px;width:15px;margin-left:173px;line-height:20px!important;padding:0}.ig_messenger.ig_talk .ig_header_text{background:no-repeat url(../images/clear-header.png) 0 0;background-repeat:no-repeat;font-size:12px;height:18px;white-space:nowrap;position:relative;display:block;margin-top:-19px;line-height:16px;margin-left:10px}.ig_messenger.ig_talk .ig_headline{margin-left:17px;margin-right:40px;line-height:16px;width:141px;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ig_messenger.ig_talk .ig_header2_image{background-image:url(../images/talk-header-2.png)}.ig_messenger.ig_talk .ig_body{background:#fff;height:160px;-moz-box-shadow:inset 0 0 3px 0 #FFF;-webkit-box-shadow:inset 0 0 3px 0 #FFF;box-shadow:inset 0 0 3px 0 #FFF;border:1px solid #BFBFBF;font-family:Arial,Helvetica,sans-serif;color:#222;font-size:12px;top:0;left:0;right:0;line-height:15px;padding:6px 6px 0}.ig_messenger.ig_talk .ig_message{color:#3E454C;width:142px;margin-left:7px}.ig_messenger.ig_talk .ig_no_icon.ig_message{width:95%}.ig_messenger.ig_talk .ig_separator{border-bottom:1px solid hsl(0,0%,98%);border-top:1px solid #DFDFDF;-webkit-margin-before:0.5em;-webkit-margin-after:0.5em;-moz-margin-start:auto;-webkit-margin-start:auto;margin-start:auto;-moz-margin-end:auto;-webkit-margin-end:auto;margin-end:auto;-moz-margin-before:0.5em;-moz-margin-after:0.5em}.ig_messenger.ig_talk .ig_footer{background-image:url(../images/talk-footer-1.png);height:33px;border:1px solid #BFBFBF;border-bottom:none}.ig_messenger.ig_talk .ig_footer_image{margin-top:.8px}.ig_messenger.ig_talk .ig_close{background-image:url(../images/talk-close.png)!important;background-repeat:no-repeat;background-position:0 0;top:4.5px;right:-1px;width:21px;height:25px}.ig_messenger.ig_talk .ig_powered_by{top:-24px;left:93px}.ig_messenger.ig_form_inline.ig_talk .ig_form_container.layout_inline{padding-right:.8em}
message-types/popup/default.css CHANGED
@@ -1,2 +1,2 @@
1
  /* Magnific popup css */
2
- .mfp-bg{top:0;left:0;width:100%;height:100%;z-index:1042;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8;filter:alpha(opacity=80)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:999999;position:fixed;outline:0!important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-ajax-holder .mfp-content,.mfp-inline-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-arrow,.mfp-close,.mfp-counter,.mfp-preloader{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none!important}.mfp-preloader{color:#CCC;position:absolute;top:50%;width:auto;text-align:center;margin-top:-.8em;left:8px;right:8px;z-index:1044}.mfp-preloader a{color:#CCC}.mfp-preloader a:hover{color:#FFF}.mfp-s-error .mfp-content,.mfp-s-ready .mfp-preloader{display:none}button.mfp-arrow,button.mfp-close{overflow:visible;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;display:block;outline:0;padding:0;z-index:1046;-webkit-box-shadow:none;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;filter:alpha(opacity=65);padding:0 0 18px 10px;color:#FFF;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.mfp-close:focus,.mfp-close:hover{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{position:absolute;opacity:.65;filter:alpha(opacity=65);margin:-55px 0 0;top:50%;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:focus,.mfp-arrow:hover{opacity:1;filter:alpha(opacity=100)}.mfp-arrow .mfp-a,.mfp-arrow .mfp-b,.mfp-arrow:after,.mfp-arrow:before{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:inset transparent}.mfp-arrow .mfp-a,.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow .mfp-b,.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:.7}.mfp-arrow-left{left:0}.mfp-arrow-left .mfp-a,.mfp-arrow-left:after{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left .mfp-b,.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right .mfp-a,.mfp-arrow-right:after{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right .mfp-b,.mfp-arrow-right:before{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:40px 0;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width:800px) and (orientation:landscape),screen and (max-height:300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,.6);position:fixed;text-align:center;padding:0}}@media all and (max-width:900px){.mfp-arrow{-webkit-transform:scale(.75);transform:scale(.75)}.mfp-arrow-left{-webkit-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-ie7 .mfp-img{padding:0}.mfp-ie7 .mfp-bottom-bar{width:600px;left:50%;margin-left:-300px;margin-top:5px;padding-bottom:5px}.mfp-ie7 .mfp-container{padding:0}.mfp-ie7 .mfp-content{padding-top:44px}.mfp-ie7 .mfp-close{top:0;right:0;padding-top:0}.ig_popup{opacity:1;display:block;z-index:100000;background-color:transparent!important;color:transparent!important;width:60%;margin:32px auto 20px auto!important}.ig_popup .ig_container{position:relative}.ig_popup .ig_container,.ig_popup .ig_container .ig_content{background-color:transparent}.ig_popup .ig_container .ig_bg_overlay{background-color:transparent;width:100%;height:100%;top:0;left:0;margin:0;padding:0;position:absolute;display:none}.ig_popup .ig_headline{text-decoration:none;font-weight:800;font-size:2em;line-height:1.2em}.ig_popup .ig_data{position:relative}.ig_popup .ig_image{margin:0 1em}.ig_popup .ig_message{line-height:1.2em;font-size:1.2em}.ig_popup .ig_message p{margin-bottom:.9em}.ig_popup .ig_close{background-image:url(../popup/images/popup-close.png);background-repeat:no-repeat;background-position:left bottom;height:32px;width:30px;cursor:pointer;-webkit-background-size:100%;background-size:100%;float:right;margin:-2em -1em 0 0;top:1em;position:relative;z-index:10}.ig_popup .ig_close:hover{height:32px;width:30px;background-position:left top}.ig_popup .ig_button,.ig_popup input[type="submit"],.ig_popup input[type="button"]{cursor:pointer;display:block;border-bottom:none;background-image:none;position:relative}.ig_popup .ig_button:hover,.ig_popup input[type="submit"]:hover,.ig_popup input[type="button"]:hover{}.ig_popup .ig_button:active,.ig_popup input[type="submit"]:active,.ig_popup input[type="button"]:active{}.mfp-wrap .ig_powered_by{position:fixed;bottom:1em;left:1em;font-size:14px;padding:0.1em}div.icegram .ig_popup input[type="submit"],div.icegram .ig_popup input[type="button"]{font-size:100%}@media only screen and (max-device-width:319px){.ig_popup{width:90%;top:3%!important;margin:5px auto!important;font-size:8px}.ig_popup .ig_button,div.ig_popup input[type="submit"],div.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup{width:85%;top:5%!important;margin:10px auto!important;font-size:10px}.ig_popup .ig_button,div.ig_popup input[type="submit"],div.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup{width:85%;top:5%!important;margin:10px auto!important;font-size:12px}.ig_popup .ig_button,div.ig_popup input[type="submit"],div.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup{width:85%;top:5%!important;margin:10px auto!important;font-size:13px}.ig_popup .ig_button,div.ig_popup input[type="submit"],div.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:portrait){.ig_popup{top:5%!important;margin:10px auto!important;font-size:14px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape){.ig_popup{top:5%!important;margin:10px auto!important;font-size:11px}}@media only screen and (min-width:768px) and (max-device-width:992px){.ig_popup{top:5%!important;margin:10px auto!important;font-size:14px}}
1
  /* Magnific popup css */
2
+ .mfp-bg{top:0;left:0;width:100%;height:100%;z-index:1042;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8;filter:alpha(opacity=80)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:999999;position:fixed;outline:0!important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-ajax-holder .mfp-content,.mfp-inline-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-arrow,.mfp-close,.mfp-counter,.mfp-preloader{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none!important}.mfp-preloader{color:#CCC;position:absolute;top:50%;width:auto;text-align:center;margin-top:-.8em;left:8px;right:8px;z-index:1044}.mfp-preloader a{color:#CCC}.mfp-preloader a:hover{color:#FFF}.mfp-s-error .mfp-content,.mfp-s-ready .mfp-preloader{display:none}button.mfp-arrow,button.mfp-close{overflow:visible;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;display:block;outline:0;padding:0;z-index:1046;-webkit-box-shadow:none;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;filter:alpha(opacity=65);padding:0 0 18px 10px;color:#FFF;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.mfp-close:focus,.mfp-close:hover{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close{color:#FFF;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{position:absolute;opacity:.65;filter:alpha(opacity=65);margin:-55px 0 0;top:50%;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:focus,.mfp-arrow:hover{opacity:1;filter:alpha(opacity=100)}.mfp-arrow .mfp-a,.mfp-arrow .mfp-b,.mfp-arrow:after,.mfp-arrow:before{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:inset transparent}.mfp-arrow .mfp-a,.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow .mfp-b,.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:.7}.mfp-arrow-left{left:0}.mfp-arrow-left .mfp-a,.mfp-arrow-left:after{border-right:17px solid #FFF;margin-left:31px}.mfp-arrow-left .mfp-b,.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right .mfp-a,.mfp-arrow-right:after{border-left:17px solid #FFF;margin-left:39px}.mfp-arrow-right .mfp-b,.mfp-arrow-right:before{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:40px 0;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width:800px) and (orientation:landscape),screen and (max-height:300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,.6);position:fixed;text-align:center;padding:0}}@media all and (max-width:900px){.mfp-arrow{-webkit-transform:scale(.75);transform:scale(.75)}.mfp-arrow-left{-webkit-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-ie7 .mfp-img{padding:0}.mfp-ie7 .mfp-bottom-bar{width:600px;left:50%;margin-left:-300px;margin-top:5px;padding-bottom:5px}.mfp-ie7 .mfp-container{padding:0}.mfp-ie7 .mfp-content{padding-top:44px}.mfp-ie7 .mfp-close{top:0;right:0;padding-top:0}.ig_popup{opacity:1;display:block;z-index:100000;background-color:transparent!important;color:transparent!important;width:60%;margin:32px auto 20px auto!important}.ig_popup .ig_container{position:relative}.ig_popup .ig_container,.ig_popup .ig_container .ig_content{background-color:transparent}.ig_popup .ig_container .ig_bg_overlay{background-color:transparent;width:100%;height:100%;top:0;left:0;margin:0;padding:0;position:absolute;display:none}.ig_popup .ig_headline{text-decoration:none;font-weight:800;font-size:2em;line-height:1.2em}.ig_popup .ig_data{position:relative}.ig_popup .ig_image{margin:0 1em}.ig_popup .ig_message{line-height:1.2em;font-size:1.2em}.ig_popup .ig_close{background-image:url(../popup/images/popup-close.png);background-repeat:no-repeat;background-position:left bottom;height:32px;width:30px;cursor:pointer;-webkit-background-size:100%;background-size:100%;float:right;margin:-2em -1em 0 0;top:1em;position:relative;z-index:20}.ig_popup .ig_close:hover{height:32px;width:30px;background-position:left top}.ig_popup .ig_button,.ig_popup input[type="submit"],.ig_popup input[type="button"]{cursor:pointer;display:block;border-bottom:none;background-image:none;position:relative}.ig_popup .ig_button:hover,.ig_popup input[type="submit"]:hover,.ig_popup input[type="button"]:hover{}.ig_popup .ig_button:active,.ig_popup input[type="submit"]:active,.ig_popup input[type="button"]:active{}.mfp-wrap .ig_powered_by{position:fixed;bottom:1em;left:1em;font-size:14px;padding:0.1em}@media only screen and (max-device-width:319px){.ig_popup{width:90%;top:3%!important;margin:5px auto!important;font-size:8px}.ig_popup .ig_button,.ig_popup input[type="submit"],.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup{width:85%;top:5%!important;margin:10px auto!important;font-size:10px}.ig_popup .ig_button,.ig_popup input[type="submit"],.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup{width:85%;top:5%!important;margin:10px auto!important;font-size:12px}.ig_popup .ig_button,.ig_popup input[type="submit"],.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup{width:85%;top:5%!important;margin:10px auto!important;font-size:13px}.ig_popup .ig_button,.ig_popup input[type="submit"],.ig_popup input[type="button"]{width:90%!important}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:portrait){.ig_popup{top:5%!important;margin:10px auto!important;font-size:14px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape){.ig_popup{top:5%!important;margin:10px auto!important;font-size:11px}}@media only screen and (min-width:768px) and (max-device-width:992px){.ig_popup{top:5%!important;margin:10px auto!important;font-size:14px}}.ig_popup .ig_form_container{width:30%;float:left;padding-top:2em}.ig_popup.ig_form_left .ig_data{position:relative}.ig_popup.ig_form_left .ig_data,.ig_popup.ig_form_right .ig_data{width:70%;float:left}.ig_popup.ig_form_right.ig_form_style_4 .ig_close,.ig_popup.ig_form_right.ig_form_style_4 .ig_close:hover{margin:-4em -2em 0 0;top:2em}@media only screen and (max-device-width:319px),(min-device-width:320px) and (max-device-width:359px),(min-device-width:360px) and (max-device-width:413px),(min-device-width:414px) and (max-device-width:643px),(min-device-width:644px) and (max-device-width:767px) and (orientation:portrait),(min-device-width:644px) and (max-device-width:767px) and (orientation:landscape),(min-width:768px) and (max-device-width:992px){.ig_popup.ig_form_left .ig_form_container.layout_left,.ig_popup.ig_form_right .ig_form_container.layout_right{display:none}.ig_popup.ig_form_left .ig_form_container.layout_bottom,.ig_popup.ig_form_right .ig_form_container.layout_bottom,.ig_popup.ig_form_bottom .ig_form_container.layout_bottom{display:block;width:100%;font-size:1.5em;height:auto!important}.ig_popup.ig_form_inline .ig_form_container.layout_inline{padding:.6em 0}.ig_popup.ig_form_left .ig_data,.ig_popup.ig_form_right .ig_data{width:100%}.ig_popup .ig_form_container.layout_bottom .ig_full .ig_form_els,.ig_popup .ig_form_container.layout_inline .ig_full .ig_form_els,.ig_popup .ig_form_container.layout_bottom .ig_half .ig_form_els,.ig_popup .ig_form_container.layout_inline .ig_half .ig_form_els,.ig_popup .ig_form_container.layout_bottom .ig_third .ig_form_els,.ig_popup .ig_form_container.layout_inline .ig_third .ig_form_els,.ig_popup .ig_form_container.layout_bottom .ig_quater .ig_form_els,.ig_popup .ig_form_container.layout_inline .ig_quater .ig_form_els{width:98%;margin:.5em auto 0 auto}.ig_popup .ig_form_container.layout_inline .ig_button_label,.ig_popup .ig_form_container.layout_bottom .ig_button_label{display:none}.ig_popup .ig_form_container.layout_inline .ig_button,.ig_popup .ig_form_container.layout_inline input[type="submit"],.ig_popup .ig_form_container.layout_inline input[type="button"],.ig_popup .ig_form_container.layout_bottom .ig_button,.ig_popup .ig_form_container.layout_bottom input[type="submit"],.ig_popup .ig_form_container.layout_bottom input[type="button"]{width:98%!important;font-size:1em}.ig_popup.ig_form_bottom .ig_form_container.layout_bottom .ig_form_els.ig_form_el_radio,.ig_popup.ig_form_inline .ig_form_container.layout_inline .ig_form_els.ig_form_el_radio{display:block}.ig_popup.ig_form_bottom .ig_form_container.layout_bottom .ig_form_els.ig_form_el_radio label,.ig_popup.ig_form_inline .ig_form_container.layout_inline .ig_form_els.ig_form_el_radio label{display:block}.ig_form_style_1 .ig_form_container:before{border-width:0;border-style:solid;border-color:#000!important;opacity:.3;top:0}.ig_popup.ig_form_left.ig_form_style_1 .ig_form_container.layout_bottom:before,.ig_popup.ig_form_right.ig_form_style_1 .ig_form_container.layout_bottom:before{width:100%;border-top-width:.22em}.ig_popup.ig_form_bottom.ig_form_style_1 .ig_form_container.layout_bottom:before{border-top-width:.22em}.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els{margin-right:0;margin-left:0}.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:first-child input,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:first-child input,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:last-child input,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:last-child input,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els input,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els input{height:2.5em!important;-webkit-border-radius:2em;-moz-border-radius:2em;border-radius:2em;padding-left:1em}.ig_popup .ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els input.ig_button,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline input.ig_form_els .ig_button{padding:inherit}.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:first-child label,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:first-child label,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:last-child label,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:last-child label,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els label,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els label{padding-left:1em}.ig_popup.ig_form_right.ig_form_style_4 .ig_close,.ig_popup.ig_form_right.ig_form_style_4 .ig_close:hover{margin:-2em -1em 0 0;top:1em}.ig_popup.ig_form_left.ig_form_style_4 .ig_form_container:before,.ig_popup.ig_form_right.ig_form_style_4 .ig_form_container:before{border-bottom-width:0}}
message-types/popup/main.js CHANGED
@@ -1 +1 @@
1
- function Icegram_Message_Type_Popup(e){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="mfp-hide icegram ig_popup ig_{{=theme}}" data={{=id}}><div class="ig_close" id="popup_box_close_{{=id}}"></div><div class="ig_container" data={{=id}}><div class="ig_bg_overlay"></div><div class="ig_data ig_clear"><div class="ig_headline">{{=headline}}</div><div class="ig_content"><div class="ig_message">{{=message}}</div></div></div><div class="ig_button" >{{=label}}</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(e,t){if(!this.is_visible()){var i=this,n="#icegram_message_"+this.data.id;jQuery.magnificPopup.open({items:{src:n,type:"inline"},showCloseBtn:!1,callbacks:{close:function(){t!==!0&&i.track("closed")}}}),t!==!0&&this.track("shown")}},Icegram_Message_Type_Popup.prototype.add_powered_by=function(e){setTimeout(function(){jQuery(".mfp-wrap").append('<div class="ig_powered_by"><a href="'+e.link+'" target="_blank">'+e.text+"</a></div>")},1e3+1e3*this.data.delay_time)},Icegram_Message_Type_Popup.prototype.hide=function(e,t){if(this.is_visible()){var i="#icegram_message_"+this.data.id;jQuery.magnificPopup.close({items:{src:i,type:"inline"}})}},void 0!==typeof jQuery.magnificPopup&&!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,i,n,o,a,s,r="Close",l="BeforeClose",c="AfterClose",p="BeforeAppend",d="MarkupParse",u="Open",m="Change",f="mfp",g="."+f,v="mfp-ready",h="mfp-removing",_="mfp-prevent-close",y=function(){},C=!!window.jQuery,b=e(window),I=function(e,i){t.ev.on(f+e+g,i)},w=function(t,i,n,o){var a=document.createElement("div");return a.className="mfp-"+t,n&&(a.innerHTML=n),o?i&&i.appendChild(a):(a=e(a),i&&a.appendTo(i)),a},T=function(i,n){t.ev.triggerHandler(f+i,n),t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,e.isArray(n)?n:[n]))},P=function(i){return i===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=i),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||(t=new y,t.init(),e.magnificPopup.instance=t)},S=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};y.prototype={constructor:y,init:function(){var i=navigator.appVersion;t.isIE7=-1!==i.indexOf("MSIE 7."),t.isIE8=-1!==i.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.supportsTransition=S(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=e(document),t.popupsCache={}},open:function(i){var o;if(i.isObj===!1){t.items=i.items.toArray(),t.index=0;var s,r=i.items;for(o=0;o<r.length;o++)if(s=r[o],s.parsed&&(s=s.el[0]),s===i.el[0]){t.index=o;break}}else t.items=e.isArray(i.items)?i.items:[i.items],t.index=i.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],a="",i.mainEl&&i.mainEl.length?t.ev=i.mainEl.eq(0):t.ev=n,i.key?(t.popupsCache[i.key]||(t.popupsCache[i.key]={}),t.currTemplate=t.popupsCache[i.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,i),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=w("bg").on("click"+g,function(){t.close()}),t.wrap=w("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=w("container",t.wrap)),t.contentContainer=w("content"),t.st.preloader&&(t.preloader=w("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var c=l[o];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}T("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(I(d,function(e,t,i,n){i.close_replaceWith=P(n.type)}),a+=" mfp-close-btn-in"):t.wrap.append(P())),t.st.alignTop&&(a+=" mfp-align-top"),t.wrap.css(t.fixedContentPos?{overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}:{top:b.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:n.height(),position:"absolute"}),t.st.enableEscapeKey&&n.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),b.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var p=t.wH=b.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(p)){var f=t._getScrollbarSize();f&&(m.marginRight=f)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),T("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),n.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),T(u),i},close:function(){t.isOpen&&(T(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){T(r);var i=h+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}n.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),t.st.showCloseBtn&&(!t.st.closeBtnInside||t.currTemplate[t.currItem.type]===!0)&&t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,T(c)},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;t.wrap.css("height",n),t.wH=n}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),T("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var n=i.type;if(T("BeforeChange",[t.currItem?t.currItem.type:"",n]),t.currItem=i,!t.currTemplate[n]){var a=t.st[n]?t.st[n].markup:!1;T("FirstMarkupParse",a),a?t.currTemplate[n]=e(a):t.currTemplate[n]=!0}o&&o!==i.type&&t.container.removeClass("mfp-"+o+"-holder");var s=t["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,t.currTemplate[n]);t.appendContent(s,n),i.preloaded=!0,T(m,i),o=i.type,t.container.prepend(t.contentContainer),T("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[i]===!0?t.content.find(".mfp-close").length||t.content.append(P()):t.content=e:t.content="",T(p),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var n,o=t.items[i];if(o.tagName?o={el:e(o)}:(n=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,s=0;s<a.length;s++)if(o.el.hasClass("mfp-"+a[s])){n=a[s];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=n||t.st.type||"inline",o.index=i,o.parsed=!0,t.items[i]=o,T("ElementParse",o),t.items[i]},addGroup:function(e,i){var n=function(n){n.mfpEl=this,t._openClick(n,e,i)};i||(i={});var o="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(o).on(o,n)):(i.isObj=!1,i.delegate?e.off(o).on(o,i.delegate,n):(i.items=e,e.off(o).on(o,n)))},_openClick:function(i,n,o){var a=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(a||2!==i.which&&!i.ctrlKey&&!i.metaKey){var s=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(s)if(e.isFunction(s)){if(!s.call(t))return!0}else if(b.width()<s)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),o.el=e(i.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),t.open(o)}},updateStatus:function(e,n){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),!n&&"loading"===e&&(n=t.st.tLoading);var o={status:e,text:n};T("UpdateStatus",o),e=o.status,n=o.text,t.preloader.html(n),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).hasClass(_)){var n=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(n&&o)return!0;if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(n)return!0}else if(o&&e.contains(document,i))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?n.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){return i.target===t.wrap[0]||e.contains(t.wrap[0],i.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,i,n){var o;n.data&&(i=e.extend(n.data,i)),T(d,[t,i,n]),e.each(i,function(e,i){if(void 0===i||i===!1)return!0;if(o=e.split("_"),o.length>1){var n=t.find(g+"-"+o[0]);if(n.length>0){var a=o[1];"replaceWith"===a?n[0]!==i[0]&&n.replaceWith(i):"img"===a?n.is("img")?n.attr("src",i):n.replaceWith('<img src="'+i+'" class="'+n.attr("class")+'" />'):n.attr(o[1],i)}}else t.find(g+"-"+e).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:y.prototype,modules:[],open:function(t,i){return k(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},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..."}},e.fn.magnificPopup=function(i){k();var n=e(this);if("string"==typeof i)if("open"===i){var o,a=C?n.data("magnificPopup"):n[0].magnificPopup,s=parseInt(arguments[1],10)||0;a.items?o=a.items[s]:(o=n,a.delegate&&(o=o.find(a.delegate)),o=o.eq(s)),t._openClick({mfpEl:o},n,a)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1));else i=e.extend(!0,{},i),C?n.data("magnificPopup",i):n[0].magnificPopup=i,t.addGroup(n,i);return n};var E,O,x,z="inline",M=function(){x&&(O.after(x.addClass(E)).detach(),x=null)};e.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(z),I(r+"."+z,function(){M()})},getInline:function(i,n){if(M(),i.src){var o=t.st.inline,a=e(i.src);if(a.length){var s=a[0].parentNode;s&&s.tagName&&(O||(E=o.hiddenClass,O=w(E),E="mfp-"+E),x=a.after(O).detach().removeClass(E)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return i.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(n,{},i),n}}});var B,H=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=t.st.image.titleSrc;if(n){if(e.isFunction(n))return n.call(t,i);if(i.el)return i.el.attr(n)||""}return""};e.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 i=t.st.image,n=".image";t.types.push("image"),I(u+n,function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),I(r+n,function(){i.cursor&&e(document.body).removeClass(i.cursor),b.off("resize"+g)}),I("Resize"+n,t.resizeImage),t.isLowIE&&I("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,B&&clearInterval(B),e.isCheckingImgSize=!1,T("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,n=e.img[0],o=function(a){B&&clearInterval(B),B=setInterval(function(){return n.naturalWidth>0?void t._onImageHasSize(e):(i>200&&clearInterval(B),i++,3===i?o(10):40===i?o(50):100===i&&o(500),void 0)},a)};o(1)},getImage:function(i,n){var o=0,a=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,T("ImageLoadComplete")):(o++,200>o?setTimeout(a,100):s()))},s=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",r.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},r=t.st.image,l=n.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=e(c).on("load.mfploader",a).on("error.mfploader",s),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),c=i.img[0],c.naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(n,{title:H(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(B&&clearInterval(B),i.loadError?(n.addClass("mfp-loading"),t.updateStatus("error",r.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),t.updateStatus("ready")),n):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),t.findImageSize(i)),n)}}});var F,A=function(){return void 0===F&&(F=void 0!==document.createElement("p").style.MozTransform),F};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,n=".zoom";if(i.enabled&&t.supportsTransition){var o,a,s=i.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=n,t.css(o),t},p=function(){t.content.css("visibility","visible")};I("BuildControls"+n,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void p();a=c(e),a.css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){p(),setTimeout(function(){a.remove(),e=a=null,T("ZoomAnimationEnded")},16)},s)},16)}}),I(l+n,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=s,!e){if(e=t._getItemToZoom(),!e)return;a=c(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),I(r+n,function(){t._allowZoom()&&(p(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var n;n=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=n.offset(),a=parseInt(n.css("padding-top"),10),s=parseInt(n.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var r={width:n.width(),height:(C?n.innerHeight():n[0].offsetHeight)-s-a};return A()?r["-moz-transform"]=r.transform="translate("+o.left+"px,"+o.top+"px)":(r.left=o.left,r.top=o.top),r}}});var j="retina";e.magnificPopup.registerModule(j,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;i=isNaN(i)?i():i,i>1&&(I("ImageHasSize."+j,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),I("ElementParse."+j,function(t,n){n.src=e.replaceSrc(n,i)}))}}}}),k()});
1
+ function Icegram_Message_Type_Popup(e){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="mfp-hide icegram ig_popup ig_{{=theme}}" data={{=id}}><div class="ig_close" id="popup_box_close_{{=id}}"></div><div class="ig_container 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">{{=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(e,t){if(!this.is_visible()){var i=this,o="#icegram_message_"+this.data.id;jQuery.magnificPopup.open({items:{src:o,type:"inline"},showCloseBtn:!1,callbacks:{close:function(){t!==!0&&i.track("closed")},open:function(){window.icegram.adjustFormContainerHeight(i)}}}),t!==!0&&this.track("shown")}},Icegram_Message_Type_Popup.prototype.add_powered_by=function(e){setTimeout(function(){jQuery(".mfp-wrap").append('<div class="ig_powered_by"><a href="'+e.link+'" target="_blank">'+e.text+"</a></div>")},1e3+1e3*this.data.delay_time)},Icegram_Message_Type_Popup.prototype.hide=function(e,t){if(this.is_visible()){var i="#icegram_message_"+this.data.id;jQuery.magnificPopup.close({items:{src:i,type:"inline"}})}},void 0!==typeof jQuery.magnificPopup&&!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,i,o,n,a,s,r="Close",l="BeforeClose",c="AfterClose",p="BeforeAppend",d="MarkupParse",u="Open",m="Change",f="mfp",g="."+f,v="mfp-ready",h="mfp-removing",_="mfp-prevent-close",y=function(){},C=!!window.jQuery,b=e(window),I=function(e,i){t.ev.on(f+e+g,i)},w=function(t,i,o,n){var a=document.createElement("div");return a.className="mfp-"+t,o&&(a.innerHTML=o),n?i&&i.appendChild(a):(a=e(a),i&&a.appendTo(i)),a},T=function(i,o){t.ev.triggerHandler(f+i,o),t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,e.isArray(o)?o:[o]))},P=function(i){return i===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=i),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||(t=new y,t.init(),e.magnificPopup.instance=t)},S=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};y.prototype={constructor:y,init:function(){var i=navigator.appVersion;t.isIE7=-1!==i.indexOf("MSIE 7."),t.isIE8=-1!==i.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.supportsTransition=S(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=e(document),t.popupsCache={}},open:function(i){var n;if(i.isObj===!1){t.items=i.items.toArray(),t.index=0;var s,r=i.items;for(n=0;n<r.length;n++)if(s=r[n],s.parsed&&(s=s.el[0]),s===i.el[0]){t.index=n;break}}else t.items=e.isArray(i.items)?i.items:[i.items],t.index=i.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],a="",i.mainEl&&i.mainEl.length?t.ev=i.mainEl.eq(0):t.ev=o,i.key?(t.popupsCache[i.key]||(t.popupsCache[i.key]={}),t.currTemplate=t.popupsCache[i.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,i),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=w("bg").on("click"+g,function(){t.close()}),t.wrap=w("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=w("container",t.wrap)),t.contentContainer=w("content"),t.st.preloader&&(t.preloader=w("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(n=0;n<l.length;n++){var c=l[n];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}T("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(I(d,function(e,t,i,o){i.close_replaceWith=P(o.type)}),a+=" mfp-close-btn-in"):t.wrap.append(P())),t.st.alignTop&&(a+=" mfp-align-top"),t.wrap.css(t.fixedContentPos?{overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}:{top:b.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),b.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var p=t.wH=b.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(p)){var f=t._getScrollbarSize();f&&(m.marginRight=f)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),T("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),o.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),T(u),i},close:function(){t.isOpen&&(T(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){T(r);var i=h+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var n={marginRight:""};t.isIE7?e("body, html").css("overflow",""):n.overflow="",e("html").css(n)}o.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),t.st.showCloseBtn&&(!t.st.closeBtnInside||t.currTemplate[t.currItem.type]===!0)&&t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,T(c)},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,o=window.innerHeight*i;t.wrap.css("height",o),t.wH=o}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),T("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var o=i.type;if(T("BeforeChange",[t.currItem?t.currItem.type:"",o]),t.currItem=i,!t.currTemplate[o]){var a=t.st[o]?t.st[o].markup:!1;T("FirstMarkupParse",a),a?t.currTemplate[o]=e(a):t.currTemplate[o]=!0}n&&n!==i.type&&t.container.removeClass("mfp-"+n+"-holder");var s=t["get"+o.charAt(0).toUpperCase()+o.slice(1)](i,t.currTemplate[o]);t.appendContent(s,o),i.preloaded=!0,T(m,i),n=i.type,t.container.prepend(t.contentContainer),T("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[i]===!0?t.content.find(".mfp-close").length||t.content.append(P()):t.content=e:t.content="",T(p),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var o,n=t.items[i];if(n.tagName?n={el:e(n)}:(o=n.type,n={data:n,src:n.src}),n.el){for(var a=t.types,s=0;s<a.length;s++)if(n.el.hasClass("mfp-"+a[s])){o=a[s];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=o||t.st.type||"inline",n.index=i,n.parsed=!0,t.items[i]=n,T("ElementParse",n),t.items[i]},addGroup:function(e,i){var o=function(o){o.mfpEl=this,t._openClick(o,e,i)};i||(i={});var n="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(n).on(n,o)):(i.isObj=!1,i.delegate?e.off(n).on(n,i.delegate,o):(i.items=e,e.off(n).on(n,o)))},_openClick:function(i,o,n){var a=void 0!==n.midClick?n.midClick:e.magnificPopup.defaults.midClick;if(a||2!==i.which&&!i.ctrlKey&&!i.metaKey){var s=void 0!==n.disableOn?n.disableOn:e.magnificPopup.defaults.disableOn;if(s)if(e.isFunction(s)){if(!s.call(t))return!0}else if(b.width()<s)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),n.el=e(i.mfpEl),n.delegate&&(n.items=o.find(n.delegate)),t.open(n)}},updateStatus:function(e,o){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),!o&&"loading"===e&&(o=t.st.tLoading);var n={status:e,text:o};T("UpdateStatus",n),e=n.status,o=n.text,t.preloader.html(o),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).hasClass(_)){var o=t.st.closeOnContentClick,n=t.st.closeOnBgClick;if(o&&n)return!0;if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(o)return!0}else if(n&&e.contains(document,i))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?o.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){return i.target===t.wrap[0]||e.contains(t.wrap[0],i.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,i,o){var n;o.data&&(i=e.extend(o.data,i)),T(d,[t,i,o]),e.each(i,function(e,i){if(void 0===i||i===!1)return!0;if(n=e.split("_"),n.length>1){var o=t.find(g+"-"+n[0]);if(o.length>0){var a=n[1];"replaceWith"===a?o[0]!==i[0]&&o.replaceWith(i):"img"===a?o.is("img")?o.attr("src",i):o.replaceWith('<img src="'+i+'" class="'+o.attr("class")+'" />'):o.attr(n[1],i)}}else t.find(g+"-"+e).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:y.prototype,modules:[],open:function(t,i){return k(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},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..."}},e.fn.magnificPopup=function(i){k();var o=e(this);if("string"==typeof i)if("open"===i){var n,a=C?o.data("magnificPopup"):o[0].magnificPopup,s=parseInt(arguments[1],10)||0;a.items?n=a.items[s]:(n=o,a.delegate&&(n=n.find(a.delegate)),n=n.eq(s)),t._openClick({mfpEl:n},o,a)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1));else i=e.extend(!0,{},i),C?o.data("magnificPopup",i):o[0].magnificPopup=i,t.addGroup(o,i);return o};var x,E,O,z="inline",M=function(){O&&(E.after(O.addClass(x)).detach(),O=null)};e.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(z),I(r+"."+z,function(){M()})},getInline:function(i,o){if(M(),i.src){var n=t.st.inline,a=e(i.src);if(a.length){var s=a[0].parentNode;s&&s.tagName&&(E||(x=n.hiddenClass,E=w(x),x="mfp-"+x),O=a.after(E).detach().removeClass(x)),t.updateStatus("ready")}else t.updateStatus("error",n.tNotFound),a=e("<div>");return i.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(o,{},i),o}}});var B,H=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var o=t.st.image.titleSrc;if(o){if(e.isFunction(o))return o.call(t,i);if(i.el)return i.el.attr(o)||""}return""};e.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 i=t.st.image,o=".image";t.types.push("image"),I(u+o,function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),I(r+o,function(){i.cursor&&e(document.body).removeClass(i.cursor),b.off("resize"+g)}),I("Resize"+o,t.resizeImage),t.isLowIE&&I("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,B&&clearInterval(B),e.isCheckingImgSize=!1,T("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,o=e.img[0],n=function(a){B&&clearInterval(B),B=setInterval(function(){return o.naturalWidth>0?void t._onImageHasSize(e):(i>200&&clearInterval(B),i++,3===i?n(10):40===i?n(50):100===i&&n(500),void 0)},a)};n(1)},getImage:function(i,o){var n=0,a=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,T("ImageLoadComplete")):(n++,200>n?setTimeout(a,100):s()))},s=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",r.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},r=t.st.image,l=o.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=e(c).on("load.mfploader",a).on("error.mfploader",s),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),c=i.img[0],c.naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(o,{title:H(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(B&&clearInterval(B),i.loadError?(o.addClass("mfp-loading"),t.updateStatus("error",r.tError.replace("%url%",i.src))):(o.removeClass("mfp-loading"),t.updateStatus("ready")),o):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,o.addClass("mfp-loading"),t.findImageSize(i)),o)}}});var F,A=function(){return void 0===F&&(F=void 0!==document.createElement("p").style.MozTransform),F};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,o=".zoom";if(i.enabled&&t.supportsTransition){var n,a,s=i.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+i.duration/1e3+"s "+i.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return n["-webkit-"+a]=n["-moz-"+a]=n["-o-"+a]=n[a]=o,t.css(n),t},p=function(){t.content.css("visibility","visible")};I("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(n),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void p();a=c(e),a.css(t._getOffset()),t.wrap.append(a),n=setTimeout(function(){a.css(t._getOffset(!0)),n=setTimeout(function(){p(),setTimeout(function(){a.remove(),e=a=null,T("ZoomAnimationEnded")},16)},s)},16)}}),I(l+o,function(){if(t._allowZoom()){if(clearTimeout(n),t.st.removalDelay=s,!e){if(e=t._getItemToZoom(),!e)return;a=c(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),I(r+o,function(){t._allowZoom()&&(p(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var o;o=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var n=o.offset(),a=parseInt(o.css("padding-top"),10),s=parseInt(o.css("padding-bottom"),10);n.top-=e(window).scrollTop()-a;var r={width:o.width(),height:(C?o.innerHeight():o[0].offsetHeight)-s-a};return A()?r["-moz-transform"]=r.transform="translate("+n.left+"px,"+n.top+"px)":(r.left=n.left,r.top=n.top),r}}});var j="retina";e.magnificPopup.registerModule(j,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;i=isNaN(i)?i():i,i>1&&(I("ImageHasSize."+j,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),I("ElementParse."+j,function(t,o){o.src=e.replaceSrc(o,i)}))}}}}),k()});
message-types/popup/main.php CHANGED
@@ -18,6 +18,8 @@ class Icegram_Message_Type_Popup extends Icegram_Message_Type {
18
  function define_settings() {
19
  parent::define_settings();
20
  $this->settings['theme']['default'] = 'persuade';
 
 
21
  $this->settings['bg_color']['default'] = '';
22
  $this->settings['text_color']['default'] = '';
23
  unset ( $this->settings['position'],
18
  function define_settings() {
19
  parent::define_settings();
20
  $this->settings['theme']['default'] = 'persuade';
21
+ $this->settings['form_layout']['values'] = array( 'left', 'right', 'bottom', 'inline' );
22
+ $this->settings['form_layout']['default'] = 'left';
23
  $this->settings['bg_color']['default'] = '';
24
  $this->settings['text_color']['default'] = '';
25
  unset ( $this->settings['position'],
message-types/popup/themes/air-mail.css CHANGED
@@ -1 +1 @@
1
- .ig_popup.ig_air-mail .ig_container{border-width:8px;-moz-border-image:-moz-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-webkit-border-image:-webkit-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-o-border-image:-o-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;border-image:repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;background-color:#F2F2F2;color:hsl(0,0%,44%)}.ig_popup.ig_air-mail .ig_container .ig_bg_overlay{display:block;background:-webkit-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:-o-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:-moz-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);opacity:.1}.ig_popup.ig_air-mail .ig_headline{padding:.5em;font-size:2.5em;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.5)}.ig_popup.ig_air-mail .ig_image{float:right}.ig_popup.ig_air-mail .ig_message{padding:.2em 1.2em;font-size:1.2em}.ig_popup.ig_air-mail .ig_close{background:url(../images/chosen-sprite.png) no-repeat -43px 0;height:10px;width:10px;cursor:pointer;zoom:1.5;margin:0;top:12px;right:12px}.ig_popup.ig_air-mail .ig_close:hover{background:url(../images/chosen-sprite.png) no-repeat -43px -11px;height:10px;width:10px;top:12px;right:12px}.ig_popup.ig_air-mail .ig_button,div.ig_popup.ig_air-mail input[type="submit"],div.ig_popup.ig_air-mail input[type="button"]{background:hsl(6,78%,57%);color:hsl(0,0%,100%);width:50%!important;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;border-top:0 solid transparent;border-bottom:0 solid transparent;font-size:1.1em;text-transform:uppercase;font-weight:600;text-align:center;margin:10px auto 20px auto;padding:1em .15em .85em}.ig_popup.ig_air-mail .ig_button:hover,div.ig_popup.ig_air-mail input[type="submit"]:hover,div.ig_popup.ig_air-mail input[type="button"]:hover{margin:7px auto 17px auto;border-top:3px solid #c0392b;border-bottom:3px solid #c0392b}.ig_popup.ig_air-mail .ig_button:active,div.ig_popup.ig_air-mail input[type="submit"]:active,div.ig_popup.ig_air-mail input[type="button"]:active{margin:10px auto 20px auto;border:none}@media only screen and (max-device-width:319px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}
1
+ .ig_popup.ig_air-mail .ig_container{border-width:8px;-moz-border-image:-moz-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-webkit-border-image:-webkit-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-o-border-image:-o-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;border-image:repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;background-color:#F2F2F2;color:hsl(0,0%,44%)}.ig_popup.ig_air-mail .ig_container .ig_bg_overlay{display:block;background:-webkit-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:-o-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:-moz-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);opacity:.1}.ig_popup.ig_air-mail .ig_headline{padding:.5em;font-size:2.5em;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.5)}.ig_popup.ig_air-mail .ig_image{float:right}.ig_popup.ig_air-mail .ig_message{padding:.2em 1.2em;font-size:1.2em}.ig_popup.ig_air-mail .ig_close{background:url(../images/chosen-sprite.png) no-repeat -43px 0;height:10px;width:10px;cursor:pointer;zoom:1.5;margin:-32px -32px 0 0;top:42px;right:42px}.ig_popup.ig_air-mail .ig_close:hover{background:url(../images/chosen-sprite.png) no-repeat -43px -11px;height:10px;width:10px;margin:-32px -32px 0 0;top:42px;right:42px}.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{background:hsl(6,78%,57%);color:hsl(0,0%,100%);width:50%;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;border-top:0 solid transparent;border-bottom:0 solid transparent;font-size:1.1em;text-transform:uppercase;font-weight:600;text-align:center;margin:.8em auto 1.2em auto;padding:1em .15em .85em;border-top:3px solid #c0392b;border-bottom:3px solid #c0392b}@media only screen and (max-device-width:319px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_air-mail .ig_button,.ig_popup.ig_air-mail input[type="submit"],.ig_popup.ig_air-mail input[type="button"]{width:90%!important}}.ig_popup.ig_air-mail .ig_form_container .ig_button{width:98%}.ig_popup.ig_form_right.ig_air-mail .ig_form_container.layout_right{padding-right:2em}.ig_popup.ig_form_right.ig_form_style_4.ig_air-mail .ig_close,.ig_popup.ig_form_right.ig_form_style_4.ig_air-mail .ig_close:hover{margin:-32px -32px 0 0;top:34px;right:32px}
message-types/popup/themes/amaze.css CHANGED
@@ -1 +1 @@
1
- .ig_popup.ig_amaze .ig_container{border:.3em solid #444;background-color:#444;color:#FFF}.ig_popup.ig_amaze .ig_container .ig_bg_overlay{display:block;background-image:url(../images/popup-amaze-bg.jpg);opacity:.5}.ig_popup.ig_amaze .ig_headline{padding:.5em;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.5);font-size:2em}.ig_popup.ig_amaze .ig_image{float:left}.ig_popup.ig_amaze .ig_message{font-size:1.2em;padding:0 1.2em;font-family:Georgia,Times,"Times New Roman",serif;margin:0 2em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{background:hsl(145,63%,49%);color:hsl(0,100%,100%);font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif;font-size:1.3em;letter-spacing:1px;vertical-align:top;font-weight:700;text-align:center;line-height:1.8em;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border-bottom:.2em solid rgba(63,63,63,0.6);text-shadow:1px 1px 0 rgba(0,0,0,0.5);margin:.2em auto 1em auto;width:40%;padding:0.3em 1em}.ig_popup.ig_amaze .ig_button:active,.ig_popup.ig_amaze input[type="submit"]:active,.ig_popup.ig_amaze input[type="button"]:active{border:none;margin:.4em auto 1em auto}@media only screen and (max-device-width:319px){.ig_popup.ig_amaze{font-size:10px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_amaze{font-size:12px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_amaze{font-size:14px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_amaze{font-size:16px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:portrait){.ig_popup.ig_amaze{font-size:18px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape){.ig_popup.ig_amaze{font-size:12px}}@media only screen and (min-width:768px) and (max-device-width:992px){.ig_popup.ig_amaze{font-size:14px}}
1
+ .ig_popup.ig_amaze .ig_container{border:.3em solid #444;background-color:#444;color:#FFF}.ig_popup.ig_amaze .ig_container .ig_bg_overlay{display:block;background-image:url(../images/popup-amaze-bg.jpg);opacity:.5}.ig_popup.ig_amaze .ig_headline{padding:.5em;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.5);font-size:2em}.ig_popup.ig_amaze .ig_image{float:left}.ig_popup.ig_amaze .ig_message{font-size:1.2em;padding:0 1.2em;font-family:Georgia,Times,"Times New Roman",serif;margin:0 2em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{background:hsl(145,63%,49%);color:hsl(0,100%,100%);font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif;font-size:1.3em;letter-spacing:1px;vertical-align:top;font-weight:700;text-align:center;line-height:1.8em;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border-bottom:.2em solid rgba(63,63,63,0.6);text-shadow:1px 1px 0 rgba(0,0,0,0.5);margin:.5em auto 1.2em auto;width:40%;padding:0.3em 1em}@media only screen and (max-device-width:319px){.ig_popup.ig_amaze{font-size:10px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_amaze{font-size:12px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_amaze{font-size:14px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_amaze{font-size:16px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:portrait){.ig_popup.ig_amaze{font-size:18px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape){.ig_popup.ig_amaze{font-size:12px}}@media only screen and (min-width:768px) and (max-device-width:992px){.ig_popup.ig_amaze{font-size:14px}}.ig_popup.ig_amaze .ig_form_container .ig_button{width:98%}
message-types/popup/themes/compel.css CHANGED
@@ -1 +1 @@
1
- .ig_popup.ig_compel .ig_container{background:hsl(0,0%,100%);color:hsl(0,0%,44%);border:4px dashed #c0392b}.ig_popup.ig_compel .ig_headline{padding:.5em;font-size:2em;text-shadow:0 1px 0 rgba(0,0,0,.2);margin-bottom:0.2em;text-align:center}.ig_popup.ig_compel .ig_image{float:left;padding-right:1em}.ig_popup.ig_compel .ig_message{padding:0 1.25em;font-size:1.25em;font-family:"Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;margin:0 .5em .5em .5em}.ig_popup.ig_compel .ig_close{background:url(../images/chosen-sprite.png) no-repeat -43px 0;height:10px;width:10px;cursor:pointer;zoom:1.5;margin:0;top:7px;right:7px}.ig_popup.ig_compel .ig_close:hover{background:url(../images/chosen-sprite.png) no-repeat -43px -11px;height:10px;width:10px;top:7px;right:7px}.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_compel input[type="button"]{background:hsl(6,78%,57%);color:hsl(0,0%,100%);width:50%!important;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;border-bottom:3px solid hsl(6,63%,46%);font-size:1.1em;text-transform:uppercase;font-weight:600;text-align:center;margin:0 auto;margin-bottom:1em;padding:1em .15em .85em}.ig_popup.ig_compel .ig_button:hover,.ig_popup.ig_compel input[type="submit"]:hover,.ig_popup.ig_compel input[type="button"]:hover{margin-top:-3px;margin-bottom:1em;border-bottom:6px solid #c0392b}.ig_popup.ig_compel .ig_button:active,div.ig_popup.ig_compel input[type="submit"]:active,div.ig_popup.ig_compel input[type="button"]:active{border-top:none;margin:0 auto;margin-bottom:1em}@media only screen and (max-device-width:319px){.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}
1
+ .ig_popup.ig_compel .ig_container{background:hsl(0,0%,100%);color:hsl(0,0%,44%);border:4px dashed #c0392b}.ig_popup.ig_compel .ig_headline{padding:.5em;padding-right:1em;font-size:2em;text-shadow:0 1px 0 rgba(0,0,0,.2);margin-bottom:0.2em;text-align:center}.ig_popup.ig_compel .ig_image{float:left;padding-right:1em}.ig_popup.ig_compel .ig_message{padding:0 1.25em;font-size:1.25em;font-family:"Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;margin:0 .5em .5em .5em}.ig_popup.ig_compel .ig_close{background:url(../images/chosen-sprite.png) no-repeat -43px 0;height:10px;width:10px;cursor:pointer;zoom:1.5;margin:0;margin:-32px -32px 0 0;top:42px;right:42px}.ig_popup.ig_compel .ig_close:hover{background:url(../images/chosen-sprite.png) no-repeat -43px -11px;height:10px;width:10px;margin:-32px -32px 0 0;top:42px;right:42px}.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_compel input[type="button"]{background:hsl(6,78%,57%);color:hsl(0,0%,100%);width:50%;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;border-bottom:3px solid hsl(6,63%,46%);font-size:1.1em;text-transform:uppercase;font-weight:600;text-align:center;padding:1em .15em .85em;margin:.5em auto 1.2em auto}@media only screen and (max-device-width:319px){.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_compel .ig_button,.ig_popup.ig_compel input[type="submit"],.ig_popup.ig_compel input[type="button"]{width:90%!important;padding:16px 4px 13px}}.ig_popup.ig_compel .ig_form_container .ig_button{width:98%}.ig_popup.ig_form_right.ig_compel .ig_form_container.layout_right{padding-right:2em}.ig_popup.ig_form_right.ig_form_style_4.ig_compel .ig_close,.ig_popup.ig_form_right.ig_form_style_4.ig_compel .ig_close:hover{margin:-32px -32px 0 0;top:34px;right:32px}
message-types/popup/themes/convert.css CHANGED
@@ -1 +1 @@
1
- .ig_popup.ig_convert .ig_container{background-color:hsl(58,100%,90%);color:hsl(0,1%,28%);-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;padding-bottom:1.5em}.ig_popup.ig_convert .ig_headline{font-size:2.5em;padding:.8em .8em .3em .8em;letter-spacing:0;text-align:left}.ig_popup.ig_convert .ig_image{float:right}.ig_popup.ig_convert .ig_message{font-size:1.5em;padding:0.5em 1.5em;font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif;vertical-align:baseline}.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{background:hsl(0,94%,41%);color:hsl(0,33%,98%);text-transform:uppercase;font-weight:700;text-decoration:none;font-size:1.75em;border:.25em solid hsl(0,6%,71%)!important;width:60%;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em;text-align:center;line-height:1.5em;-moz-box-sizing:content-box;box-sizing:content-box;margin:0.1em auto;padding:0.1em 1em;clear:both}@media only screen and (max-device-width:319px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}
1
+ .ig_popup.ig_convert .ig_container{background-color:hsl(58,100%,90%);color:hsl(0,1%,28%);-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.ig_popup.ig_convert .ig_headline{font-size:2.5em;padding:.8em .8em .3em .8em;letter-spacing:0;text-align:left}.ig_popup.ig_convert .ig_image{float:right}.ig_popup.ig_convert .ig_message{font-size:1.5em;padding:0.5em 1.5em;font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif;vertical-align:baseline}.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{background:hsl(0,94%,41%);color:hsl(0,33%,98%);text-transform:uppercase;font-weight:700;text-decoration:none;font-size:1.75em;border:.25em solid hsl(0,6%,71%)!important;width:60%;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em;text-align:center;line-height:1.5em;padding:0.1em 1em;margin:.5em auto 1.2em auto;clear:both}.ig_popup.ig_convert .ig_form_container .ig_button{width:98%}@media only screen and (max-device-width:319px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}
message-types/popup/themes/inspire.css CHANGED
@@ -1 +1 @@
1
- .ig_popup.ig_inspire .ig_container{background:hsl(0,100%,100%);color:#333;padding-bottom:1.5em}.ig_popup.ig_inspire .ig_headline{text-align:center;padding:.8em .8em .3em .8em;font-size:2.5em}.ig_popup.ig_inspire .ig_image{float:left}.ig_popup.ig_inspire .ig_message{padding:0.5em 1.25em;font-size:1.25em;font-weight:400;text-align:justify}.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{background:hsl(79,93%,35%);color:hsl(0,100%,100%);vertical-align:middle;font-size:2em;font-weight:700;font-style:normal;text-decoration:none;text-align:center;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1;width:60%;margin:.25em auto;padding:0.5em;line-height:1.2em}.ig_popup.ig_inspire .ig_button:active,.ig_popup.ig_inspire input[type="submit"]:active,.ig_popup.ig_inspire input[type="button"]:active{border-top:none}@media only screen and (max-device-width:319px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}
1
+ .ig_popup.ig_inspire .ig_container{background:hsl(0,100%,100%);color:#333}.ig_popup.ig_inspire .ig_headline{text-align:center;padding:.8em .8em .3em .8em;font-size:2.5em}.ig_popup.ig_inspire .ig_image{float:left}.ig_popup.ig_inspire .ig_message{padding:0.5em 1.25em 0.9em;font-size:1.25em;font-weight:400;text-align:justify}.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{background:hsl(79,93%,35%);color:hsl(0,100%,100%);vertical-align:middle;font-size:2em;font-weight:700;font-style:normal;text-decoration:none;text-align:center;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1;width:60%;line-height:1.2em;padding:0.5em;margin:.5em auto 1em auto}.ig_popup.ig_inspire .ig_button:active,.ig_popup.ig_inspire input[type="submit"]:active,.ig_popup.ig_inspire input[type="button"]:active{border-top:none}.ig_popup.ig_inspire .ig_form_container .ig_button{width:98%}@media only screen and (max-device-width:319px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}
message-types/popup/themes/persuade.css CHANGED
@@ -1 +1 @@
1
- .ig_popup.ig_persuade .ig_container{background:hsl(1,83%,62%);color:#FFF;border:.4em dashed hsl(0,100%,100%);padding-bottom:.1em}.ig_popup.ig_persuade .ig_headline{letter-spacing:0;font-size:2.8em;text-align:center;-webkit-font-smoothing:antialiased;line-height:1em;padding:.7em .7em 0.5em .7em}.ig_popup.ig_persuade .ig_image{float:left}.ig_popup.ig_persuade .ig_message{padding:0.5em 1.5em;font-size:1.5em;font-weight:300;text-align:center;-webkit-font-smoothing:antialiased}.ig_popup.ig_persuade .ig_button,.ig_popup.ig_persuade input[type="submit"],.ig_popup.ig_persuade input[type="button"]{background:hsl(0,0%,26%);color:hsl(0,100%,100%);text-decoration:none;font-size:2em;font-weight:400;width:55%;border:none;-moz-border-radius:.6em;-webkit-border-radius:.6em;border-radius:.6em;border-bottom:.3em solid hsl(0,0%,20%);-moz-box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;-webkit-box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;text-align:center;margin:.2em auto .5em auto;padding:0.4em;line-height:1.2em;clear:both;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.ig_popup.ig_persuade .ig_button:hover,.ig_popup.ig_persuade input[type="submit"]:hover,.ig_popup.ig_persuade input[type="button"]:hover{border-bottom:.1em solid hsl(0,0%,20%);-moz-box-shadow:0 .1em .2em rgba(0,0,0,0.9)!important;-webkit-box-shadow:0 .1em .2em rgba(0,0,0,0.9)!important;box-shadow:0 .1em .2em rgba(0,0,0,0.9)!important;margin:.4em auto .5em auto}.ig_popup.ig_persuade .ig_button:active,.ig_popup.ig_persuade input[type="submit"]:active,.ig_popup.ig_persuade input[type="button"]:active{border-top:none;margin:.4em auto .5em auto}
1
+ .ig_popup.ig_persuade .ig_container{background:hsl(1,83%,62%);color:#FFF;border:.4em dashed hsl(0,100%,100%);padding-bottom:.1em}.ig_popup.ig_persuade .ig_headline{letter-spacing:0;font-size:2.8em;text-align:center;-webkit-font-smoothing:antialiased;line-height:1em;padding:.7em .7em 0.5em .7em}.ig_popup.ig_persuade .ig_image{float:left}.ig_popup.ig_persuade .ig_message{padding:0.5em 1.5em;font-size:1.5em;font-weight:300;text-align:center;-webkit-font-smoothing:antialiased}.ig_popup.ig_persuade .ig_button,.ig_popup.ig_persuade input[type="submit"],.ig_popup.ig_persuade input[type="button"]{background:hsl(0,0%,26%);color:hsl(0,100%,100%);text-decoration:none;font-size:2em;font-weight:400;width:55%;border:none;-moz-border-radius:.6em;-webkit-border-radius:.6em;border-radius:.6em;border-bottom:.28em solid hsl(0,0%,20%);-moz-box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;-webkit-box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;text-align:center;margin:.2em auto .5em auto;padding:0.4em;line-height:1.2em;clear:both;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.ig_popup.ig_persuade .ig_button:active,.ig_popup.ig_persuade input[type="submit"]:active,.ig_popup.ig_persuade input[type="button"]:active{-moz-box-shadow:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.ig_popup.ig_persuade .ig_form_container .ig_button{width:98%}.ig_popup.ig_form_style_2.ig_persuade .ig_form_container.layout_bottom .ig_form_els .ig_button,.ig_popup.ig_form_style_2.ig_persuade .ig_form_container.layout_inline .ig_form_els .ig_button{top:-.14em!important}
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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, Responsive Popup, split testing, AB testing
5
  Requires at least: 3.9
6
  Tested up to: 4.1.1
7
- Stable tag: 1.8.10
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -153,6 +153,9 @@ Contact Us, provide as much detail of the problem as you can. We will try to sol
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.8.10 =
157
  Fixes for minified js and css. Changes for WP themes compatibility.
158
 
@@ -218,6 +221,13 @@ Initial Release
218
 
219
 
220
  == Changelog ==
 
 
 
 
 
 
 
221
  = 1.8.10 =
222
  * Fix: Comapatibility for themes with CSS class name conflicts
223
  * Fix: Comaptibility with "autoptimize" and other minification plugins
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, Responsive Popup, split testing, AB testing
5
  Requires at least: 3.9
6
  Tested up to: 4.1.1
7
+ Stable tag: 1.9
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
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 =
157
+ Form embed functionality improvements , Added forms styles.
158
+
159
  = 1.8.10 =
160
  Fixes for minified js and css. Changes for WP themes compatibility.
161
 
221
 
222
 
223
  == Changelog ==
224
+ = 1.9 =
225
+ * New:Forms now comes with various form styles and multiple positions
226
+ * New:Forms also provides background and text color
227
+ * New:Forms also supports header,footer-text/HTML
228
+ * Update: Updated form embed functionality
229
+ * Fix: Homepage page targeting not working when "Lazy loading" was off
230
+
231
  = 1.8.10 =
232
  * Fix: Comapatibility for themes with CSS class name conflicts
233
  * Fix: Comaptibility with "autoptimize" and other minification plugins