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

Version Description

Added sprite image for close buttons and other fixes.

Download this release

Release Info

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

Code changes from version 1.9.6 to 1.9.8.1

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}.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;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ig_message p{margin:0;padding:0;line-height:inherit;font-size:inherit}.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:.7em 1em;text-align:left;line-height:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ig_form_container form{margin:0;padding:0;font-size:100%}.ig_form_container select,.ig_form_container textarea{height:2.25em}.ig_form_container input[type=checkbox]{height:1.25em!important}.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:.3em 1% .3em 0}.ig_form_left .ig_form_container.layout_left{display:block;padding:1em .7em}.ig_form_right .ig_form_container.layout_right{display:block;padding:1em .7em;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:.5em;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;float:left}.ig_form_inline .ig_form_container.layout_inline .ig_form_els{display:inline-block;float:left}.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:99%}.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:49%}.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:32%}.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:24%}.ig_form_container .ig_form_els input{height:2.25em;line-height:2.2em}.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:99%;font-size:1em;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 textarea,.ig_form_container .ig_form_els select{padding-left:.5em}.ig_form_container .ig_form_els textarea{padding-top:.5em}.ig_form_container .ig_form_els.ig_form_el_radio{height:2.25em!important;line-height:2.2em}.ig_form_container .ig_form_els.ig_form_el_radio input{width:auto ! important;display:inline;margin:0 .3em;height:1em!important}.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:99%;font-size:1em;float:none;margin:0 auto!important;text-align:center;display:block;-ms-transform:inherit;-webkit-transform:inherit;transform:inherit;opacity:1}.ig_form_container:before{content:'';padding:0;margin:0;position:absolute;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.ig_form_style_0 .ig_form_container:before{display:none}.ig_form_style_0 .ig_form_container .ig_form_els input{height:2.25em;line-height:2.2em;padding:inherit;padding-left:.5em}.ig_form_style_0 .ig_form_container .ig_form_els .ig_button:hover,.ig_form_style_0 .ig_form_container .ig_form_els .ig_button:focus,.ig_form_style_0 .ig_form_container .ig_form_els .ig_button{height:2.25em;line-height:2.2em;padding:inherit}.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:not(.ig_button){border:1px solid #ccc}.ig_form_style_1 .ig_form_container .ig_form_els input{height:2.25em;line-height:2.2em;-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:not(.ig_button),.ig_form_style_1 .ig_form_container .ig_form_els input:hover:not(.ig_button){border-color:#999}.ig_form_style_1 .ig_form_container .ig_form_els input:focus,.ig_form_style_1 .ig_form_container .ig_form_els input:hover{height:2.25em;line-height:2.2em;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.25em;line-height:2.2em;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.25em;line-height:2.2em;-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.25em;line-height:2.2em;width:100%;border-width:2px;border-right-width:0}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_first input,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_first 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.ig_form_els_first label,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_first label{padding-left:1em}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_last input,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last 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:not(.ig_button){border:1px solid rgba(255,255,255,.3)}.ig_form_style_3 .ig_form_container .ig_form_els input{height:2.25em;line-height:2.2em;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;padding:inherit;padding-left:.5em;background-color:rgba(0,0,0,.3)}.ig_form_style_3 .ig_form_container .ig_form_els input:focus:not(.ig_button),.ig_form_style_3 .ig_form_container .ig_form_els input:hover:not(.ig_button){border-color:rgba(255,255,255,.6)}.ig_form_style_3 .ig_form_container .ig_form_els input:focus,.ig_form_style_3 .ig_form_container .ig_form_els input:hover{height:2.25em;line-height:2.2em;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.25em;line-height:2.2em;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:-1em;left:-1em;width:100%;height:100%;border-width:1em;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{}.ig_form_right.ig_form_style_4 .ig_form_container:before{left:inherit;right:-1em}.ig_form_inline.ig_form_style_4 .ig_form_container:before{display:none}.ig_form_style_4 .ig_form_container .ig_form_els input{height:2.25em;line-height:2.2em;padding:inherit;padding-left:.5em}.ig_form_style_4 .ig_form_container .ig_form_els .ig_button:hover,.ig_form_style_4 .ig_form_container .ig_form_els .ig_button:focus,.ig_form_style_4 .ig_form_container .ig_form_els .ig_button{height:2.25em;line-height:2.2em;padding:inherit}.ig_anim_appear_in{-webkit-animation:IgFadeIn 0.9s;-moz-animation:IgFadeIn 0.9s;animation:IgFadeIn 0.9s;visibility:visible}@-webkit-keyframes IgFadeIn{0%{opacity:0}50%{opacity:0.5}100%{opacity:1}}@-moz-keyframes IgFadeIn{0%{opacity:0}50%{opacity:0.5}100%{opacity:1}}@keyframes IgFadeIn{0%{opacity:0}50%{opacity:0.5}100%{opacity:1}}.ig_anim_appear_out{-webkit-animation:IgFadeOut 0.9s;-moz-animation:IgFadeOut 0.9s;animation:IgFadeOut 0.9s}@-webkit-keyframes IgFadeOut{0%{opacity:1}99.5%{opacity:0.5}100%{opacity:1}}@-moz-keyframes IgFadeOut{0%{opacity:1}99.5%{opacity:0.5}100%{opacity:1}}@keyframes IgFadeOut{0%{opacity:1}99.5%{opacity:0.5}100%{opacity:1}}.ig_left.ig_anim_slide_in{animation-name:IgSlideInLeft;-moz-animation-name:IgSlideInLeft;-webkit-animation-name:IgSlideInLeft;animation-duration:0.5s;-moz-animation-duration:0.5s;-webkit-animation-duration:0.5s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease}@-webkit-keyframes IgSlideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{-webkit-transform:none;transform:none}}@-moz-keyframes IgSlideInLeft{0%{-moz-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{-moz-transform:none;transform:none}}@keyframes IgSlideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{-webkit-transform:none;transform:none}}.ig_left.ig_anim_slide_out{animation-name:IgFadeOutLeft;-moz-animation-name:IgFadeOutLeft;-webkit-animation-name:IgFadeOutLeft;animation-duration:0.9s;-moz-animation-duration:0.9s;-webkit-animation-duration:0.9s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes IgFadeOutLeft{0%{opacity:1}99.5%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{opacity:1}}@-moz-keyframes IgFadeOutLeft{0%{opacity:1}99.5%{opacity:0;-moz-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{opacity:1}}@keyframes IgFadeOutLeft{0%{opacity:1}99.5%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{opacity:1}}.ig_right.ig_anim_slide_in{animation-name:IgSlideInRight;-moz-animation-name:IgSlideInRight;-webkit-animation-name:IgSlideInRight;animation-duration:0.5s;-moz-animation-duration:0.5s;-webkit-animation-duration:0.5s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease}@-webkit-keyframes IgSlideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{-webkit-transform:none;transform:none}}@-moz-keyframes IgSlideInRight{0%{-moz-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{-moz-transform:none;transform:none}}@keyframes IgSlideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{-webkit-transform:none;transform:none}}.ig_right.ig_anim_slide_out{animation-name:IgFadeOutRight;-moz-animation-name:IgFadeOutRight;-webkit-animation-name:IgFadeOutRight;animation-duration:0.9s;-moz-animation-duration:0.9s;-webkit-animation-duration:0.9s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes IgFadeOutRight{0%{opacity:1}99.5%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{opacity:1}}@-moz-keyframes IgFadeOutRight{0%{opacity:1}99.5%{opacity:0;-moz-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{opacity:1}}@keyframes IgFadeOutRight{0%{opacity:1}99.5%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{opacity:1}}.ig_bottom.ig_anim_slide_in,.ig_bottom .ig_anim_slide_in{animation-name:IgSlideInUp;-moz-animation-name:IgSlideInUp;-webkit-animation-name:IgSlideInUp;animation-duration:0.5s;-moz-animation-duration:0.5s;-webkit-animation-duration:0.5s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease}@-webkit-keyframes IgSlideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{-webkit-transform:none;transform:none}}@-moz-keyframes IgSlideInUp{0%{-moz-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{-moz-transform:none;transform:none}}@keyframes IgSlideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{-webkit-transform:none;transform:none}}.ig_bottom.ig_anim_slide_out,.ig_bottom .ig_anim_slide_out{animation-name:IgFadeOutDown;-moz-animation-name:IgFadeOutDown;-webkit-animation-name:IgFadeOutDown;animation-duration:0.9s;-moz-animation-duration:0.9s;-webkit-animation-duration:0.9s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes IgFadeOutDown{0%{opacity:1}99.5%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1}}@-moz-keyframes IgFadeOutDown{0%{opacity:1}99.5%{opacity:0;-moz-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1}}@keyframes IgFadeOutDown{0%{opacity:1}99.5%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1}}.ig_anim_slide_in,.ig_top.ig_anim_slide_in,.ig_top .ig_anim_slide_in{animation-name:IgSlideInDown;-moz-animation-name:IgSlideInDown;-webkit-animation-name:IgSlideInDown;animation-duration:0.5s;-moz-animation-duration:0.5s;-webkit-animation-duration:0.5s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease}@-webkit-keyframes IgSlideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{-webkit-transform:none;transform:none}}@-moz-keyframes IgSlideInDown{0%{-moz-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{-moz-transform:none;transform:none}}@keyframes IgSlideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{-webkit-transform:none;transform:none}}.ig_anim_slide_out,.ig_top.ig_anim_slide_out,.ig_top .ig_anim_slide_out{animation-name:IgFadeOutUp;-moz-animation-name:IgFadeOutUp;-webkit-animation-name:IgFadeOutUp;animation-duration:0.9s;-moz-animation-duration:0.9s;-webkit-animation-duration:0.9s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes IgFadeOutUp{0%{opacity:1}99.5%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1}}@-moz-keyframes IgFadeOutUp{0%{opacity:1}99.5%{opacity:0;-moz-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1}}@keyframes IgFadeOutUp{0%{opacity:1}99.5%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1}}
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;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ig_message p{margin:0;padding:0;line-height:inherit;font-size:inherit}.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:.7em 1em;text-align:left;line-height:1;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ig_form_container form{margin:0;padding:0;font-size:100%}.ig_form_container select,.ig_form_container textarea{height:2.25em}.ig_form_container input[type=checkbox]{height:1.25em!important}.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:.3em 1% .3em 0}.ig_form_left .ig_form_container.layout_left{display:block;padding:1em .7em}.ig_form_right .ig_form_container.layout_right{display:block;padding:1em .7em;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:.5em;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;float:left}.ig_form_inline .ig_form_container.layout_inline .ig_form_els{display:inline-block;float:left}.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:99%}.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:49%}.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:32%}.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:24%}.ig_form_container .ig_form_els input{height:2.25em;line-height:2.2em}.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:99%;font-size:1em;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 textarea,.ig_form_container .ig_form_els select{padding-left:.5em}.ig_form_container .ig_form_els textarea{padding-top:.5em}.ig_form_container .ig_form_els.ig_form_el_radio{height:2.25em!important;line-height:2.2em}.ig_form_container .ig_form_els.ig_form_el_radio input{width:auto ! important;display:inline;margin:0 .3em;height:1em!important}.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:99%;font-size:1em;float:none;margin:0 auto!important;text-align:center;display:block;-ms-transform:inherit;-webkit-transform:inherit;transform:inherit;opacity:1}.ig_form_container:before{content:'';padding:0;margin:0;position:absolute;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.ig_form_style_0 .ig_form_container:before{display:none}.ig_form_style_0 .ig_form_container .ig_form_els input{height:2.25em;line-height:2.2em;padding:inherit;padding-left:.5em}.ig_form_style_0 .ig_form_container .ig_form_els .ig_button:hover,.ig_form_style_0 .ig_form_container .ig_form_els .ig_button:focus,.ig_form_style_0 .ig_form_container .ig_form_els .ig_button{height:2.25em;line-height:2.2em;padding:inherit}.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:not(.ig_button){border:1px solid #ccc}.ig_form_style_1 .ig_form_container .ig_form_els input{height:2.25em;line-height:2.2em;-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:not(.ig_button),.ig_form_style_1 .ig_form_container .ig_form_els input:hover:not(.ig_button){border-color:#999}.ig_form_style_1 .ig_form_container .ig_form_els input:focus,.ig_form_style_1 .ig_form_container .ig_form_els input:hover{height:2.25em;line-height:2.2em;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.25em;line-height:2.2em;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.25em;line-height:2.2em;-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.25em;line-height:2.2em;width:100%;border-width:2px;border-right-width:0}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_first input,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_first 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.ig_form_els_first label,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_first label{padding-left:1em}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_last input,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last 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:not(.ig_button){border:1px solid rgba(255,255,255,.3)}.ig_form_style_3 .ig_form_container .ig_form_els input{height:2.25em;line-height:2.2em;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;padding:inherit;padding-left:.5em;background-color:rgba(0,0,0,.3)}.ig_form_style_3 .ig_form_container .ig_form_els input:focus:not(.ig_button),.ig_form_style_3 .ig_form_container .ig_form_els input:hover:not(.ig_button){border-color:rgba(255,255,255,.6)}.ig_form_style_3 .ig_form_container .ig_form_els input:focus,.ig_form_style_3 .ig_form_container .ig_form_els input:hover{height:2.25em;line-height:2.2em;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.25em;line-height:2.2em;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:-1em;left:-1em;width:100%;height:100%;border-width:1em;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{}.ig_form_right.ig_form_style_4 .ig_form_container:before{left:inherit;right:-1em}.ig_form_inline.ig_form_style_4 .ig_form_container:before{display:none}.ig_form_style_4 .ig_form_container .ig_form_els input{height:2.25em;line-height:2.2em;padding:inherit;padding-left:.5em}.ig_form_style_4 .ig_form_container .ig_form_els .ig_button:hover,.ig_form_style_4 .ig_form_container .ig_form_els .ig_button:focus,.ig_form_style_4 .ig_form_container .ig_form_els .ig_button{height:2.25em;line-height:2.2em;padding:inherit}.ig_anim_appear_in{-webkit-animation:IgFadeIn 0.9s;-moz-animation:IgFadeIn 0.9s;animation:IgFadeIn 0.9s;visibility:visible}@-webkit-keyframes IgFadeIn{0%{opacity:0}50%{opacity:0.5}100%{opacity:1}}@-moz-keyframes IgFadeIn{0%{opacity:0}50%{opacity:0.5}100%{opacity:1}}@keyframes IgFadeIn{0%{opacity:0}50%{opacity:0.5}100%{opacity:1}}.ig_anim_appear_out{-webkit-animation:IgFadeOut 0.9s;-moz-animation:IgFadeOut 0.9s;animation:IgFadeOut 0.9s}@-webkit-keyframes IgFadeOut{0%{opacity:1}99.5%{opacity:0.5}100%{opacity:1}}@-moz-keyframes IgFadeOut{0%{opacity:1}99.5%{opacity:0.5}100%{opacity:1}}@keyframes IgFadeOut{0%{opacity:1}99.5%{opacity:0.5}100%{opacity:1}}.ig_left.ig_anim_slide_in{animation-name:IgSlideInLeft;-moz-animation-name:IgSlideInLeft;-webkit-animation-name:IgSlideInLeft;animation-duration:0.5s;-moz-animation-duration:0.5s;-webkit-animation-duration:0.5s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease}@-webkit-keyframes IgSlideInLeft{0%{-webkit-transform:translate3d(-100%,0,0)}100%{-webkit-transform:none}}@-moz-keyframes IgSlideInLeft{0%{-moz-transform:translate3d(-100%,0,0)}100%{-moz-transform:none}}@keyframes IgSlideInLeft{0%{transform:translate3d(-100%,0,0)}100%{transform:none}}.ig_left.ig_anim_slide_out{animation-name:IgFadeOutLeft;-moz-animation-name:IgFadeOutLeft;-webkit-animation-name:IgFadeOutLeft;animation-duration:0.9s;-moz-animation-duration:0.9s;-webkit-animation-duration:0.9s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes IgFadeOutLeft{0%{opacity:1;-webkit-transform:translate3d( 0%,0,0)}99.5%{opacity:0;-webkit-transform:translate3d(-100%,0,0)}100%{opacity:1;-webkit-transform:translate3d(-100%,0,0)}}@-moz-keyframes IgFadeOutLeft{0%{opacity:1;-moz-transform:translate3d( 0%,0,0)}99.5%{opacity:0;-moz-transform:translate3d(-100%,0,0)}100%{opacity:1;-moz-transform:translate3d(-100%,0,0)}}@keyframes IgFadeOutLeft{0%{opacity:1;transform:translate3d(0%,0,0)}99.5%{opacity:0;transform:translate3d(-100%,0,0)}100%{opacity:1;transform:translate3d(-100%,0,0)}}.ig_right.ig_anim_slide_in{animation-name:IgSlideInRight;-moz-animation-name:IgSlideInRight;-webkit-animation-name:IgSlideInRight;animation-duration:0.5s;-moz-animation-duration:0.5s;-webkit-animation-duration:0.5s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease}@-webkit-keyframes IgSlideInRight{0%{-webkit-transform:translate3d(100%,0,0)}100%{-webkit-transform:none}}@-moz-keyframes IgSlideInRight{0%{-moz-transform:translate3d(100%,0,0)}100%{-moz-transform:none}}@keyframes IgSlideInRight{0%{transform:translate3d(100%,0,0)}100%{transform:none}}.ig_right.ig_anim_slide_out{animation-name:IgFadeOutRight;-moz-animation-name:IgFadeOutRight;-webkit-animation-name:IgFadeOutRight;animation-duration:0.9s;-moz-animation-duration:0.9s;-webkit-animation-duration:0.9s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes IgFadeOutRight{0%{opacity:1;-webkit-transform:translate3d(0%,0,0)}99.5%{opacity:0;-webkit-transform:translate3d(100%,0,0)}100%{opacity:1;-webkit-transform:translate3d(100%,0,0)}}@-moz-keyframes IgFadeOutRight{0%{opacity:1;-moz-transform:translate3d(0%,0,0)}99.5%{opacity:0;-moz-transform:translate3d(100%,0,0)}100%{opacity:1;-moz-transform:translate3d(100%,0,0)}}@keyframes IgFadeOutRight{0%{opacity:1;transform:translate3d(0%,0,0)}99.5%{opacity:0;transform:translate3d(100%,0,0)}100%{opacity:1;transform:translate3d(100%,0,0)}}.ig_bottom.ig_anim_slide_in,.ig_bottom .ig_anim_slide_in{animation-name:IgSlideInUp;-moz-animation-name:IgSlideInUp;-webkit-animation-name:IgSlideInUp;animation-duration:0.5s;-moz-animation-duration:0.5s;-webkit-animation-duration:0.5s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease}@-webkit-keyframes IgSlideInUp{0%{-webkit-transform:translate3d(0,100%,0)}100%{-webkit-transform:none}}@-moz-keyframes IgSlideInUp{0%{-moz-transform:translate3d(0,100%,0)}100%{-moz-transform:none}}@keyframes IgSlideInUp{0%{transform:translate3d(0,100%,0)}100%{transform:none}}.ig_bottom.ig_anim_slide_out,.ig_bottom .ig_anim_slide_out{animation-name:IgFadeOutDown;-moz-animation-name:IgFadeOutDown;-webkit-animation-name:IgFadeOutDown;animation-duration:0.9s;-moz-animation-duration:0.9s;-webkit-animation-duration:0.9s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes IgFadeOutDown{0%{opacity:1;-webkit-transform:translate3d(0,0%,0)}99.5%{opacity:0;-webkit-transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:translate3d(0,100%,0)}}@-moz-keyframes IgFadeOutDown{0%{opacity:1;-moz-transform:translate3d(0,0%,0)}99.5%{opacity:0;-moz-transform:translate3d(0,100%,0)}100%{opacity:1;-moz-transform:translate3d(0,100%,0)}}@keyframes IgFadeOutDown{0%{opacity:1;transform:translate3d(0,0%,0)}99.5%{opacity:0;transform:translate3d(0,100%,0)}100%{opacity:1;transform:translate3d(0,100%,0)}}.ig_anim_slide_in,.ig_top.ig_anim_slide_in,.ig_top .ig_anim_slide_in{animation-name:IgSlideInDown;-moz-animation-name:IgSlideInDown;-webkit-animation-name:IgSlideInDown;animation-duration:0.5s;-moz-animation-duration:0.5s;-webkit-animation-duration:0.5s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease}@-webkit-keyframes IgSlideInDown{0%{-webkit-transform:translate3d(0,-100%,0)}100%{-webkit-transform:none}}@-moz-keyframes IgSlideInDown{0%{-moz-transform:translate3d(0,-100%,0)}100%{-moz-transform:none}}@keyframes IgSlideInDown{0%{transform:translate3d(0,-100%,0)}100%{transform:none}}.ig_anim_slide_out,.ig_top.ig_anim_slide_out,.ig_top .ig_anim_slide_out{animation-name:IgFadeOutUp;-moz-animation-name:IgFadeOutUp;-webkit-animation-name:IgFadeOutUp;animation-duration:0.9s;-moz-animation-duration:0.9s;-webkit-animation-duration:0.9s;animation-timing-function:ease;-moz-animation-timing-function:ease;-webkit-animation-timing-function:ease;-webkit-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes IgFadeOutUp{0%{opacity:1;-webkit-transform:translate3d(0,0%,0)}99.5%{opacity:0;-webkit-transform:translate3d(0,-100%,0)}100%{opacity:1;-webkit-transform:translate3d(0,-100%,0)}}@-moz-keyframes IgFadeOutUp{0%{opacity:1;-moz-transform:translate3d(0,0%,0)}99.5%{opacity:0;-moz-transform:translate3d(0,-100%,0)}100%{opacity:1;-moz-transform:translate3d(0,-100%,0)}}@keyframes IgFadeOutUp{0%{opacity:1;transform:translate3d(0,0%,0)}99.5%{opacity:0;transform:translate3d(0,-100%,0)}100%{opacity:1;transform:translate3d(0,-100%,0)}}
assets/images/arrows-sprite_one.png DELETED
Binary file
assets/images/close_01.png DELETED
Binary file
assets/images/close_big.png DELETED
Binary file
{message-types/popup → assets}/images/popup-close.png RENAMED
File without changes
assets/images/sprite_1.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_row.ig_"+t).find("#message_form_style").val(),s=jQuery(e).find("#message_theme_ig_"+t).find("."+a).attr("style"),n=jQuery(e).find("#message_form_style").find("."+i).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",s),jQuery(e).find(".message_row.ig_"+t).find(".message_form_style").next().find(".chosen-single span").attr("style",n).text(function(){return jQuery(this).text().substr(0,jQuery(this).text().indexOf(" "))||jQuery(this).text()}),"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 s=Math.floor(Math.random()*(i-a+1))+a;return s==e?t(s,a,i):s}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="'+s+'*"/><span class="delete-url"></span></span>';return e}function i(){0==jQuery(".message-row").length?jQuery(".empty_campaign").show():jQuery(".empty_campaign").hide()}var s=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(".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, #message-settings").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 s=0;s<this_data.length;s++)e(this_data[s]);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(),s=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",s)}),jQuery("#campaign_data, #message-settings").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),s=icegram_writepanel_params.available_headlines[i];jQuery(this).prev().val(s)}),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, #message-settings").on("click",".message_delete",function(){jQuery(this).parent().parent().next().remove(),jQuery(this).parent().parent().remove(),i()}),jQuery("#campaign_data, #message-settings").on("click",".message_edit",function(){jQuery(this).parent().parent().next().toggle(),jQuery(this).parent().parent().find(".message-title-text, .message-title-input").toggle()}),jQuery("#campaign_data, #message-settings").on("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, #message-settings").on("change",".show_form_options",function(e){var t=jQuery(this).closest("p");if(jQuery(t).siblings(".message_form_options").slideToggle(this.checked),this.checked)jQuery(t).siblings(".message_form_options").find(".message_form_layout").change();else{jQuery(t).siblings("p.cta-actions").find("select option").removeAttr("disabled");var a=jQuery(t).siblings(".message_form_options").siblings(".wp-editor-wrap").find(".wp-editor-area"),i=jQuery(a).val().trim().replace("[ig_form]","");jQuery(a).val(i)}}).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).text(function(){return jQuery(this).text().substr(0,jQuery(this).text().indexOf(" "))||jQuery(this).text()})}),jQuery("#campaign_data, #message-settings").on("change",".message_form_layout ",function(){if(jQuery(this).is(":visible")){var e=this,t=jQuery(this).closest(".message_form_options").siblings(".wp-editor-wrap").find(".wp-editor-area"),a=jQuery(t).val().trim();jQuery(e).closest(".form_radio_group").siblings(".form_inline_shortcode").hide(),jQuery(e).closest(".form_radio_group").siblings(".message_form_color").show(),jQuery(e).is(":checked")&&jQuery(e).closest(".message_form_options").prev("p.message_form_options_check").find(".show_form_options").is(":checked")&&("inline"==jQuery(e).val()?(-1==a.indexOf("[ig_form]")&&(a+="[ig_form]"),jQuery(e).closest(".form_radio_group").siblings(".message_form_color, .form_inline_shortcode").toggle()):"inline"!=jQuery(e).val()&&(a=a.replace("[ig_form]",""))),jQuery(t).val(a)}}),jQuery("#campaign_data, #message-settings").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]").not("*:disabled"),i=jQuery(t).closest(".message_form_options");if(jQuery(i).parent().find("p.cta-actions select option").removeAttr("disabled"),void 0!=jQuery(t).val()&&""!=jQuery(t).val()&&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"),a.length>0){var s=jQuery(a[a.length-1]),n=s.is("button")?s.not("br, span, div").text():s.val();jQuery(i).siblings("p").find("#message_label").val(n.trim())}}),jQuery(".ajax_chosen_select_messages").chosen(),jQuery("#campaign_data, #message-settings").on("change",".ajax_chosen_select_messages",function(){var t=jQuery("#ig-st-tabs li.current").attr("variation_id"),a=jQuery.extend({},tinyMCEPreInit.mceInit.content),s=jQuery.extend({},tinyMCEPreInit.qtInit.content),n=jQuery(this).parent().siblings(".campaign_target_rules_panel"),r=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:r},success:function(o){if(r++,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, #message-settings").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("#campaign_data, #message-settings").find(".message_theme").append('<option value="ig_get_more_theme" class="ig_get_more">Get more Themes</option>'),jQuery("#campaign_data, #message-settings").find(".message_animation").append('<option value="ig_get_more_animation" class="ig_get_more">Get more Animations</option>'),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),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 s)"string"==typeof s[_prop]&&"content_css"!==_prop&&(s[_prop]=s[_prop].replace(new RegExp("content","g"),"edit"+o.id));tinyMCEPreInit.qtInit["edit"+o.id]=s}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("#campaign_data, #message-settings").find(".message_theme").append('<option value="ig_get_more_theme" class="ig_get_more">Get more themes</option>'),jQuery("#campaign_data, #message-settings").find(".message_animation").append('<option value="ig_get_more_animation" class="ig_get_more">Get more Animations</option>'),jQuery("#campaign_data, #message-settings").on("change",".message_theme, .message_animation",function(){"ig_get_more_theme"==jQuery(this).val()&&window.open("http://www.icegram.com/product-category/themes-addons/"),"ig_get_more_animation"==jQuery(this).val()&&window.open("http://www.icegram.com/addons/icegram-animation-pack/")}),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),jQuery("input#users_logged_in, input#users_all ,input#users_not_logged_in").on("change",function(){"logged_in"==jQuery(this).val()?(jQuery("select#users_roles").parent("p").show(),jQuery("#users_roles_chosen").find("input").trigger("click")):jQuery("select#users_roles").parent("p").hide()}),jQuery(".schedule_rule").on("change",function(){"when_schedule"==jQuery(this).attr("id")?jQuery("#date_picker").show():jQuery("#date_picker").hide()}),jQuery("input#where_other_page").on("change",function(){jQuery("select#where_page_id").parent("p").slideToggle(),jQuery(this).is(":checked")&&jQuery("#where_page_id_chosen").find("input").trigger("click")}),jQuery("input#where_sitewide").on("change",function(){jQuery("select#exclude_page_id").parent("p").slideToggle(),jQuery(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(s)<0)return void jQuery(e).val(s+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_row.ig_"+t).find("#message_form_style").val(),s=jQuery(e).find("#message_theme_ig_"+t).find("."+a).attr("style"),n=jQuery(e).find("#message_form_style").find("."+i).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",s),jQuery(e).find(".message_row.ig_"+t).find(".message_form_style").next().find(".chosen-single span").attr("style",n).text(function(){return jQuery(this).text().substr(0,jQuery(this).text().indexOf(" "))||jQuery(this).text()}),"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 s=Math.floor(Math.random()*(i-a+1))+a;return s==e?t(s,a,i):s}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="'+s+'*"/><span class="delete-url"></span></span>';return e}function i(){0==jQuery(".message-row").length?jQuery(".empty_campaign").show():jQuery(".empty_campaign").hide()}var s=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(".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, #message-settings").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 s=0;s<this_data.length;s++)e(this_data[s]);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(),s=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",s)}),jQuery("#campaign_data, #message-settings").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),s=icegram_writepanel_params.available_headlines[i];jQuery(this).prev().val(s)}),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, #message-settings").on("click",".message_delete",function(){jQuery(this).parent().parent().next().remove(),jQuery(this).parent().parent().remove(),i()}),jQuery("#campaign_data, #message-settings").on("click",".message_edit",function(){jQuery(this).parent().parent().next().toggle(),jQuery(this).parent().parent().find(".message-title-text, .message-title-input").toggle()}),jQuery("#campaign_data, #message-settings").on("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, #message-settings").on("change",".show_form_options",function(e){var t=jQuery(this).closest("p");if(jQuery(t).siblings(".message_form_options").slideToggle(this.checked),this.checked)jQuery(t).siblings(".message_form_options").find(".message_form_layout").change();else{jQuery(t).siblings("p.cta-actions").find("select option").removeAttr("disabled");var a=jQuery(t).siblings(".message_form_options").siblings(".wp-editor-wrap").find(".wp-editor-area"),i=jQuery(a).val().trim().replace("[ig_form]","");jQuery(a).val(i)}}).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).text(function(){return jQuery(this).text().substr(0,jQuery(this).text().indexOf(" "))||jQuery(this).text()})}),jQuery("#campaign_data, #message-settings").on("change",".message_form_layout ",function(){if(jQuery(this).is(":visible")){var e=this,t=jQuery(this).closest(".message_form_options").siblings(".wp-editor-wrap").find(".wp-editor-area"),a=jQuery(t).val().trim();jQuery(e).closest(".form_radio_group").siblings(".form_inline_shortcode").hide(),jQuery(e).closest(".form_radio_group").siblings(".message_form_color").show(),jQuery(e).is(":checked")&&jQuery(e).closest(".message_form_options").prev("p.message_form_options_check").find(".show_form_options").is(":checked")&&("inline"==jQuery(e).val()?(-1==a.indexOf("[ig_form]")&&(a+="[ig_form]"),jQuery(e).closest(".form_radio_group").siblings(".message_form_color, .form_inline_shortcode").toggle()):"inline"!=jQuery(e).val()&&(a=a.replace("[ig_form]",""))),jQuery(t).val(a)}}),jQuery("#campaign_data, #message-settings").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]").not("*:disabled"),i=jQuery(t).closest(".message_form_options");if(jQuery(i).parent().find("p.cta-actions select option").removeAttr("disabled"),void 0!=jQuery(t).val()&&""!=jQuery(t).val()&&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"),a.length>0){var s=jQuery(a[a.length-1]),n=s.is("button")?s.not("br, span, div").text():s.val();jQuery(i).siblings("p").find("#message_label").val(n.trim())}}),jQuery(".ajax_chosen_select_messages").chosen(),jQuery("#campaign_data, #message-settings").on("change",".ajax_chosen_select_messages",function(){var t={},a=jQuery("#ig-st-tabs li.current").attr("variation_id");"undefined"!=typeof a&&jQuery.extend(t,{selected_tab:a});var s=jQuery.extend({},tinyMCEPreInit.mceInit.content),n=jQuery.extend({},tinyMCEPreInit.qtInit.content),r=jQuery(this).parent().siblings(".campaign_target_rules_panel");"undefined"!=typeof r&&(t.parent_campaign_box=r);var o=jQuery(r).find(".message-row").length,u=jQuery(this).val();return""==u?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:u,row:o},success:function(a){if(o++,jQuery(r).find(".messages-list .messages_list_table tbody").append(a.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, #message-settings").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),e(jQuery("#"+a.id)),jQuery(".ajax_chosen_select_messages").val("").trigger("chosen:updated"),jQuery("#campaign_data, #message-settings").find(".message_theme").append('<option value="ig_get_more_theme" class="ig_get_more">Get more Themes</option>'),jQuery("#campaign_data, #message-settings").find(".message_animation").append('<option value="ig_get_more_animation" class="ig_get_more">Get more Animations</option>'),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),i(),jQuery(".message-setting-fields").trigger("change"),jQuery(".tips, .help_tip").tipTip({attribute:"data-tip"}),"undefined"==typeof tinyMCEPreInit.mceInit["edit"+a.id]){for(_prop in s)"string"==typeof s[_prop]&&"content_css"!==_prop&&(s[_prop]=s[_prop].replace(new RegExp("content","g"),"edit"+a.id));tinyMCEPreInit.mceInit["edit"+a.id]=s}if("undefined"==typeof tinyMCEPreInit.qtInit["edit"+a.id]){for(_prop in n)"string"==typeof n[_prop]&&"content_css"!==_prop&&(n[_prop]=n[_prop].replace(new RegExp("content","g"),"edit"+a.id));tinyMCEPreInit.qtInit["edit"+a.id]=n}tinyMCE.init({id:tinyMCEPreInit.mceInit["edit"+a.id]}),quicktags({id:"edit"+a.id}),QTags._buttonsInit(),jQuery("#wp-edit"+a.id+"-wrap").hasClass("tmce-active")?jQuery("#edit"+a.id+"-tmce").click():jQuery("#edit"+a.id+"-html").click(),jQuery(window).trigger("icegram_message_added_ajax",[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("#campaign_data, #message-settings").find(".message_theme").append('<option value="ig_get_more_theme" class="ig_get_more">Get more themes</option>'),jQuery("#campaign_data, #message-settings").find(".message_animation").append('<option value="ig_get_more_animation" class="ig_get_more">Get more Animations</option>'),jQuery("#campaign_data, #message-settings").on("change",".message_theme, .message_animation",function(){"ig_get_more_theme"==jQuery(this).val()&&window.open("http://www.icegram.com/product-category/themes-addons/?utm_source=icegram&utm_medium=admin&utm_campaign=theme_packs"),"ig_get_more_animation"==jQuery(this).val()&&window.open("http://www.icegram.com/addons/icegram-animation-pack/?utm_source=icegram&utm_medium=admin&utm_campaign=animation_pack")}),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),jQuery("input#users_logged_in, input#users_all ,input#users_not_logged_in").on("change",function(){"logged_in"==jQuery(this).val()?(jQuery("select#users_roles").parent("p").show(),jQuery("#users_roles_chosen").find("input").trigger("click")):jQuery("select#users_roles").parent("p").hide()}),jQuery(".schedule_rule").on("change",function(){"when_schedule"==jQuery(this).attr("id")?jQuery("#date_picker").show():jQuery("#date_picker").hide()}),jQuery("input#where_other_page").on("change",function(){jQuery("select#where_page_id").parent("p").slideToggle(),jQuery(this).is(":checked")&&jQuery("#where_page_id_chosen").find("input").trigger("click")}),jQuery("input#where_sitewide").on("change",function(){jQuery("select#exclude_page_id").parent("p").slideToggle(),jQuery(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(s)<0)return void jQuery(e).val(s+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_campaign_shown_"+i.id))return;if("yes"==i.retargeting_clicked&&1==jQuery.cookie("icegram_campaign_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.animations={},Icegram_Message_Type.prototype.embed_form=function(){if(-1===jQuery.inArray(this.data.type,["toast","badge","ribbon","exit-redirect"])){var e=null,t=this.data.form_layout,i=this.data.form_has_label,a=this.data.form_style||"none",r=this.data.label||void 0;if(a=a.toLowerCase().replace(" ","_"),void 0!=this.data.use_form&&"yes"==this.data.use_form&&(e=this.data.form_html),this.el.find("form.ig_embed_form").length>0){var o=this.el.find("form.ig_embed_form");t="inline",-1===jQuery.inArray(this.data.type,["messenger","tab","sidebar","interstitial","sticky"])&&(o.hasClass("ig_left")?t="left":o.hasClass("ig_right")&&(t="right")),"inline"==t&&this.el.find("form.ig_embed_form").replaceWith('<div class="ig_form_container layout_inline"></div>'),i=o.find(".ig_form_el_group label").length>0?"yes":void 0,0==o.find(".ig_button").length&&0==o.find("button[type=submit]").length&&(r=r||"Submit",o.append('<input class="ig_button" type="submit" value="'+r+'">')),e=jQuery("<div/>").append(o).html()}if(null==e)this.el.find(".ig_form_container").remove();else{var s=window.icegram.formProcess(this,e);if(s){var n=void 0!=this.data.form_header&&""!=this.data.form_header?'<div class="ig_form_header">'+this.data.form_header+"</div>":"",_=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(n).append(s).append(_),void 0==i?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(),r=r||this.el.find(".ig_button").val()||"Submit",this.el.find(".ig_button").val(r)),this.el.addClass("ig_form_"+t);var d="";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),d+=".ig_form_"+t+".ig_form_"+a+" .ig_form_container:before{ background-color:"+this.data.form_bg_color+"; border-color:"+this.data.form_bg_color+";}"):d+=".ig_form_"+t+".ig_form_"+a+" .ig_form_container:before{ display:none;}",void 0!=this.data.form_text_color&&""!=this.data.form_text_color&&this.el.find(".ig_form_container").css("color",this.data.form_text_color),this.el.addClass("ig_form_"+a).find(".ig_form_container").prepend('<style type="text/css">'+d+"</style>"),this.el.find(".ig_form_container.layout_"+t+" .ig_form_els").first().addClass("ig_form_els_first").end().last().addClass("ig_form_els_last")}}}},Icegram_Message_Type.prototype.render=function(){this.pre_render();var 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(),this.embed_form(),void 0==this.data.use_theme_defaults||"yes"!=this.data.use_theme_defaults){if(void 0!=this.data.text_color&&""!=this.data.text_color&&(this.el.css("color",this.data.text_color),this.el.find(".ig_container").css("color",this.data.text_color)),void 0!=this.data.bg_color&&""!=this.data.bg_color&&(this.el.css("background-color",this.data.bg_color),this.el.find(".ig_container").css("background-color",this.data.bg_color)),void 0!=this.data.cta_bg_color&&""!=this.data.cta_bg_color){this.el.find('.ig_button, form input[type="submit"]').css("background-color",this.data.cta_bg_color);var a=window.icegram.hexToHsl(this.data.cta_bg_color);this.el.find('.ig_button, form input[type="submit"]').css("border-color","hsl("+a.h+","+(a.s-5)+"%,"+(a.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")||i.is('*[name*="[abs]"]')||"_mc4wp_required_but_not_really"==i.attr("name"))&&(i.addClass("ig_form_required_field"),s--),("hidden"==i.attr("type")||1==i.prop("disabled"))&&(i.addClass("ig_form_hidden_field"),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.is(".ig_form_hidden_field, .ig_form_required_field")||i.addClass("ig_button"),(i.is("input[type=text]")||i.is("input[type=email]"))&&i.attr("size",25),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.find(".ig_form_required_field").length<=0&&a.append('<div class="ig_form_els"><input class="ig_form_required_field" type="text" tabindex="-1"></input></div>'),a.addClass(n[s]).find(".ig_form_required_field").parent().removeClass("ig_form_els").css({position:"absolute",left:"-5000px"}).end().end().find(".ig_form_hidden_field").parent().removeClass("ig_form_els").css({display:"none"}),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.animate("in"),this.pre_show(),this.el.show(e),this.el.addClass("ig_show").removeClass("ig_hide"),t!==!0&&this.track("shown"),this.post_show());var i=this;window.icegram.adjustFormContainerHeight(i)},Icegram_Message_Type.prototype.hide=function(e,t){if(this.is_visible()){var i=this;this.animate("out"),this.pre_hide(),setTimeout(function(){i.el.hasClass("ig_no_hide")||i.el.hide(e),i.el.addClass("ig_hide").removeClass("ig_show")},500),t!==!0&&this.track("closed"),this.post_hide()}},Icegram_Message_Type.prototype.set_position=function(){},Icegram_Message_Type.prototype.add_powered_by=function(e){},Icegram_Message_Type.prototype.pre_show=function(){},Icegram_Message_Type.prototype.post_show=function(){},Icegram_Message_Type.prototype.pre_hide=function(){},Icegram_Message_Type.prototype.post_hide=function(){},Icegram_Message_Type.prototype.track=function(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.hasClass("ig_show")},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){e.data=e.data||{self:this},e.data.self.track("clicked");var t=jQuery(e.target).closest(".icegram").find("form:visible").first();return jQuery(t).length&&jQuery(t).find(".ig_form_required_field").length&&""!==jQuery(t).find(".ig_form_required_field").val()?(e.preventDefault(),void e.data.self.hide()):void(jQuery(t).length?jQuery(t).submit(function(){e.data.self.hide()}):"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())},Icegram_Message_Type.prototype.animate=function(e){if("undefined"!=typeof this.data.animation){var t=this.data.animation,i=this;"in"==e?"function"==typeof this.animations[t+"_in"]?this.animations[t+"_in"](i):this.el.hasClass("ig_anim_"+t+"_in")||(this.el.removeClass("ig_anim_"+t+"_out"),setTimeout(function(){i.el.addClass("ig_anim_"+t+"_in")},1)):"out"==e&&("function"==typeof this.animations[t+"_out"]?this.animations[t+"_out"](i):(this.el.removeClass("ig_anim_"+t+"_in"),setTimeout(function(){i.el.addClass("ig_anim_"+t+"_out")},1)))}},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)}},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 m=p[g].split("="),f=i(m.shift()),u=m.join("=");if(r&&r===f){c=o(u,s);break}r||void 0===(u=o(u))||(c[f]=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))}});
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_campaign_shown_"+i.id))return;if("yes"==i.retargeting_clicked&&1==jQuery.cookie("icegram_campaign_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){var t=window.location.protocol.split(":"),i=t[0],a=this.data.ajax_url.split("://"),r=a[0];if(this.tracking_data.length>0&&-1==window.location.href.indexOf("campaign_preview_id")){var o={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?(o.xhrFields={withCredentials:!0},o.crossDomain=!0,o.async=!0):i!=r&&(o.xhrFields={withCredentials:!0},jQuery.extend(o.data,{ig_local_url_cs:window.location.href})),jQuery.ajax(o),this.tracking_data=[]}},Icegram.prototype.hide_all_messages=function(){this.messages.length>0&&jQuery.each(this.messages,function(e,t){t.hide()})},Icegram_Message_Type.prototype.init=function(){this.render(),this.add_event_handlers()},Icegram_Message_Type.prototype.add_event_handlers=function(){this.el.on("click",{self:this},this.on_click),jQuery(window).on("resize",{self:this},this.on_resize)},Icegram_Message_Type.prototype.animations={},Icegram_Message_Type.prototype.embed_form=function(){if(-1===jQuery.inArray(this.data.type,["toast","badge","ribbon","exit-redirect"])){var e=null,t=this.data.form_layout,i=this.data.form_has_label,a=this.data.form_style||"none",r=this.data.label||void 0;if(a=a.toLowerCase().replace(" ","_"),void 0!=this.data.use_form&&"yes"==this.data.use_form&&(e=this.data.form_html),this.el.find("form.ig_embed_form").length>0){var o=this.el.find("form.ig_embed_form");t="inline",-1===jQuery.inArray(this.data.type,["messenger","tab","sidebar","interstitial","sticky"])&&(o.hasClass("ig_left")?t="left":o.hasClass("ig_right")&&(t="right")),"inline"==t&&this.el.find("form.ig_embed_form").replaceWith('<div class="ig_form_container layout_inline"></div>'),i=o.find(".ig_form_el_group label").length>0?"yes":void 0,0==o.find(".ig_button").length&&0==o.find("button[type=submit]").length&&(r=r||"Submit",o.append('<input class="ig_button" type="submit" value="'+r+'">')),e=jQuery("<div/>").append(o).html()}if(null==e)this.el.find(".ig_form_container").remove();else{var s=window.icegram.formProcess(this,e);if(s){var n=void 0!=this.data.form_header&&""!=this.data.form_header?'<div class="ig_form_header">'+this.data.form_header+"</div>":"",_=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(n).append(s).append(_),void 0==i?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(),r=r||this.el.find(".ig_button").val()||"Submit",this.el.find(".ig_button").val(r)),this.el.addClass("ig_form_"+t);var d="";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),d+=".ig_form_"+t+".ig_form_"+a+" .ig_form_container:before{ background-color:"+this.data.form_bg_color+"; border-color:"+this.data.form_bg_color+";}"):d+=".ig_form_"+t+".ig_form_"+a+" .ig_form_container:before{ display:none;}",void 0!=this.data.form_text_color&&""!=this.data.form_text_color&&this.el.find(".ig_form_container").css("color",this.data.form_text_color),this.el.addClass("ig_form_"+a).find(".ig_form_container").prepend('<style type="text/css">'+d+"</style>"),this.el.find(".ig_form_container.layout_"+t+" .ig_form_els").first().addClass("ig_form_els_first").end().last().addClass("ig_form_els_last")}}}},Icegram_Message_Type.prototype.render=function(){this.pre_render();var 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.addClass("ig_no_icon").find(".ig_icon").remove(),(void 0==this.data.message||""==this.data.message)&&this.el.find(".ig_message").hide(),(void 0==this.data.label||""==this.data.label)&&this.el.find(".ig_button").hide(),this.embed_form(),void 0==this.data.use_theme_defaults||"yes"!=this.data.use_theme_defaults){if(void 0!=this.data.text_color&&""!=this.data.text_color&&(this.el.css("color",this.data.text_color),this.el.find(".ig_container").css("color",this.data.text_color)),void 0!=this.data.bg_color&&""!=this.data.bg_color&&(this.el.css("background-color",this.data.bg_color),this.el.find(".ig_container").css("background-color",this.data.bg_color)),void 0!=this.data.cta_bg_color&&""!=this.data.cta_bg_color){this.el.find('.ig_button, form input[type="submit"]').css("background-color",this.data.cta_bg_color);var a=window.icegram.hexToHsl(this.data.cta_bg_color);this.el.find('.ig_button, form input[type="submit"]').css("border-color","hsl("+a.h+","+(a.s-5)+"%,"+(a.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(".gform_validation_container input").data("required_field",!0).end().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")||i.is('*[name*="[abs]"]')||i.data("required_field")||"_mc4wp_required_but_not_really"==i.attr("name"))&&(i.addClass("ig_form_required_field").removeData("required_field"),s--),("hidden"==i.attr("type")||1==i.prop("disabled"))&&(i.addClass("ig_form_hidden_field"),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.is(".ig_form_hidden_field, .ig_form_required_field")||i.addClass("ig_button"),(i.is("input[type=text]")||i.is("input[type=email]"))&&i.attr("size",25),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.find(".ig_form_required_field").length<=0&&a.append('<div class="ig_form_els"><input class="ig_form_required_field" type="text" tabindex="-1"></input></div>'),a.addClass(n[s]).find(".ig_form_required_field").parent().removeClass("ig_form_els").css({position:"absolute",left:"-5000px"}).end().end().find(".ig_form_hidden_field").parent().removeClass("ig_form_els").css({display:"none"}),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.animate("in"),this.pre_show(),this.el.show(e),this.el.addClass("ig_show").removeClass("ig_hide"),t!==!0&&this.track("shown"),this.post_show());var i=this;window.icegram.adjustFormContainerHeight(i)},Icegram_Message_Type.prototype.hide=function(e,t){if(this.is_visible()){var i=this;this.animate("out"),this.pre_hide(),setTimeout(function(){i.el.hasClass("ig_no_hide")||i.el.hide(e),i.el.addClass("ig_hide").removeClass("ig_show")},500),t!==!0&&this.track("closed"),this.post_hide()}},Icegram_Message_Type.prototype.set_position=function(){},Icegram_Message_Type.prototype.add_powered_by=function(e){},Icegram_Message_Type.prototype.pre_show=function(){},Icegram_Message_Type.prototype.post_show=function(){},Icegram_Message_Type.prototype.pre_hide=function(){},Icegram_Message_Type.prototype.post_hide=function(){},Icegram_Message_Type.prototype.track=function(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.hasClass("ig_show")},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){e.data=e.data||{self:this},e.data.self.track("clicked");var t=jQuery(e.target).closest(".icegram").find("form:visible").first();return jQuery(t).length&&jQuery(t).find(".ig_form_required_field").length&&""!==jQuery(t).find(".ig_form_required_field").val()?(e.preventDefault(),void e.data.self.hide()):void(jQuery(t).length?jQuery(t).submit():"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())},Icegram_Message_Type.prototype.animate=function(e){if("undefined"!=typeof this.data.animation){var t=this.data.animation,i=this;"in"==e?"function"==typeof this.animations[t+"_in"]?this.animations[t+"_in"](i):this.el.hasClass("ig_anim_"+t+"_in")||(this.el.removeClass("ig_anim_"+t+"_out"),setTimeout(function(){i.el.addClass("ig_anim_"+t+"_in")},1)):"out"==e&&("function"==typeof this.animations[t+"_out"]?this.animations[t+"_out"](i):(this.el.removeClass("ig_anim_"+t+"_in"),setTimeout(function(){i.el.addClass("ig_anim_"+t+"_out")},1)))}},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)}},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 m=p[g].split("="),f=i(m.shift()),u=m.join("=");if(r&&r===f){c=o(u,s);break}r||void 0===(u=o(u))||(c[f]=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-admin.php CHANGED
@@ -48,7 +48,6 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
48
  add_meta_box( 'campaign_data', $meta_box_title, array( &$this, 'campaign_data_content' ), 'ig_campaign', 'normal', 'default' );
49
  add_meta_box( 'campaign_target_rules', __( 'Targeting Rules', 'icegram' ), array( &$this, 'campaign_target_rules_content' ), 'ig_campaign', 'normal' );
50
  }
51
-
52
  // Display list of messages of campaign
53
  function campaign_data_content() {
54
  global $post, $icegram;
@@ -632,6 +631,7 @@ if ( !class_exists( 'Icegram_Campaign_Admin' ) ) {
632
  } elseif( isset( $message_data['position']['ig_default'] ) ) {
633
  $message_data['position'] = $message_data['position']['ig_default'];
634
  }
 
635
  update_post_meta( $message_id, 'icegram_message_preview_data', $message_data );
636
  }
637
  // Determine page url to preview on...
48
  add_meta_box( 'campaign_data', $meta_box_title, array( &$this, 'campaign_data_content' ), 'ig_campaign', 'normal', 'default' );
49
  add_meta_box( 'campaign_target_rules', __( 'Targeting Rules', 'icegram' ), array( &$this, 'campaign_target_rules_content' ), 'ig_campaign', 'normal' );
50
  }
 
51
  // Display list of messages of campaign
52
  function campaign_data_content() {
53
  global $post, $icegram;
631
  } elseif( isset( $message_data['position']['ig_default'] ) ) {
632
  $message_data['position'] = $message_data['position']['ig_default'];
633
  }
634
+ $message_data = apply_filters( 'icegram_update_message_preview_data', $message_data, $message_id );
635
  update_post_meta( $message_id, 'icegram_message_preview_data', $message_data );
636
  }
637
  // Determine page url to preview on...
classes/class-icegram-message-admin.php CHANGED
@@ -129,8 +129,8 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
129
  <label for="message_theme_ig_<?php echo $message['type'] ?>" class="message_label"><strong><?php _e( 'Theme', 'icegram' ); ?></strong></label>
130
  <select id="message_theme_ig_<?php echo $message['type'] ?>" name="message_data[<?php echo $message_id; ?>][theme][<?php echo $message['type'] ?>]" class="icegram_chosen_page message_theme message_theme_ig_<?php echo $message['type']; ?>">
131
  <?php
 
132
  foreach ( $message['themes'] as $theme ) {
133
-
134
  $bg_img = "background-image: url(" . $theme['baseurl'] . $theme['type'] . ".png)";
135
  ?>
136
  <option style="<?php echo $bg_img; ?>" value="<?php echo esc_attr( $theme['type'] ) ?>" class="<?php echo esc_attr( $theme['type'] ) ?>" <?php echo ( !empty( $message_data['theme'] ) && esc_attr( $theme['type'] ) == $message_data['theme'] ) ? 'selected' : ''; ?>><?php echo esc_html( $theme['name'] ) ?></option>
@@ -145,7 +145,9 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
145
  <p class="message_row <?php echo "ig_".$message['type']; ?>">
146
  <label for="message_animation_<?php echo $message['type'] ?>" class="message_label"><strong><?php _e( 'Animation', 'icegram' ); ?></strong></label>
147
  <select id="message_animation_<?php echo $message['type'] ?>" name="message_data[<?php echo $message_id; ?>][animation][<?php echo $message['type'] ?>]" class="icegram_chosen_page message_animation message_animation_<?php echo $message['type']; ?>">
148
- <?php foreach ( $animations as $value => $label ) { ?>
 
 
149
  <option value="<?php echo esc_attr( $value ) ?>" <?php echo ( !empty( $message_data['animation'] ) && esc_attr( $value ) == $message_data['animation'] ) ? 'selected' : ''; ?>><?php echo esc_html( $label ) ?></option>
150
  <?php } ?>
151
  </select>
@@ -337,6 +339,9 @@ if ( !class_exists( 'Icegram_Message_Admin' ) ) {
337
  <input type="text" class="message_field" name="message_data[<?php echo $message_id; ?>][label]" id="message_label" value="<?php if( isset( $message_data['label'] ) ) echo esc_attr( $message_data['label'] ); ?>" />
338
  </p>
339
  <?php
 
 
 
340
  $target_link_field = '<p class="message_row ig_'.implode( ' ig_', $settings['link'] ).'">
341
  <label for="message_link" class="message_label">
342
  <strong>'.__('Target Link' ,'icegram').'</strong>
129
  <label for="message_theme_ig_<?php echo $message['type'] ?>" class="message_label"><strong><?php _e( 'Theme', 'icegram' ); ?></strong></label>
130
  <select id="message_theme_ig_<?php echo $message['type'] ?>" name="message_data[<?php echo $message_id; ?>][theme][<?php echo $message['type'] ?>]" class="icegram_chosen_page message_theme message_theme_ig_<?php echo $message['type']; ?>">
131
  <?php
132
+ asort($message['themes']);
133
  foreach ( $message['themes'] as $theme ) {
 
134
  $bg_img = "background-image: url(" . $theme['baseurl'] . $theme['type'] . ".png)";
135
  ?>
136
  <option style="<?php echo $bg_img; ?>" value="<?php echo esc_attr( $theme['type'] ) ?>" class="<?php echo esc_attr( $theme['type'] ) ?>" <?php echo ( !empty( $message_data['theme'] ) && esc_attr( $theme['type'] ) == $message_data['theme'] ) ? 'selected' : ''; ?>><?php echo esc_html( $theme['name'] ) ?></option>
145
  <p class="message_row <?php echo "ig_".$message['type']; ?>">
146
  <label for="message_animation_<?php echo $message['type'] ?>" class="message_label"><strong><?php _e( 'Animation', 'icegram' ); ?></strong></label>
147
  <select id="message_animation_<?php echo $message['type'] ?>" name="message_data[<?php echo $message_id; ?>][animation][<?php echo $message['type'] ?>]" class="icegram_chosen_page message_animation message_animation_<?php echo $message['type']; ?>">
148
+ <?php asort($animations);
149
+ $animations = array('no-anim' => 'No Animation') + $animations;
150
+ foreach ( $animations as $value => $label ) { ?>
151
  <option value="<?php echo esc_attr( $value ) ?>" <?php echo ( !empty( $message_data['animation'] ) && esc_attr( $value ) == $message_data['animation'] ) ? 'selected' : ''; ?>><?php echo esc_html( $label ) ?></option>
152
  <?php } ?>
153
  </select>
339
  <input type="text" class="message_field" name="message_data[<?php echo $message_id; ?>][label]" id="message_label" value="<?php if( isset( $message_data['label'] ) ) echo esc_attr( $message_data['label'] ); ?>" />
340
  </p>
341
  <?php
342
+ do_action( 'icegram_after_button_label', $message_id, $message_data );
343
+ ?>
344
+ <?php
345
  $target_link_field = '<p class="message_row ig_'.implode( ' ig_', $settings['link'] ).'">
346
  <label for="message_link" class="message_label">
347
  <strong>'.__('Target Link' ,'icegram').'</strong>
classes/class-icegram-message-type.php CHANGED
@@ -102,7 +102,7 @@ abstract class Icegram_Message_Type {
102
  'embed_form' => array( 'type' => 'form' ) // TODO :: remove this setting from all MS type
103
  );
104
  // add animations
105
- $this->settings['animation']['values'] = array( 'no-anim'=>'No Animation','slide' => 'Slide', 'appear' => 'Appear' );
106
  $this->settings['animation']['default'] = 'slide';
107
 
108
  }
102
  'embed_form' => array( 'type' => 'form' ) // TODO :: remove this setting from all MS type
103
  );
104
  // add animations
105
+ $this->settings['animation']['values'] = array( 'slide' => 'Slide', 'appear' => 'Appear' );
106
  $this->settings['animation']['default'] = 'slide';
107
 
108
  }
classes/ig-mobile-detect.php CHANGED
@@ -22,11 +22,10 @@
22
  * README: https://github.com/serbanghita/Mobile-Detect/blob/master/README.md
23
  * HOWTO: https://github.com/serbanghita/Mobile-Detect/wiki/Code-examples
24
  *
25
- * @version 2.8.11
26
  */
27
  if ( !class_exists( 'Ig_Mobile_Detect' ) )
28
  {
29
-
30
  class Ig_Mobile_Detect
31
  {
32
  /**
@@ -68,7 +67,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
68
  /**
69
  * Stores the version number of the current release.
70
  */
71
- const VERSION = '2.8.11';
72
 
73
  /**
74
  * A type for the version() method indicating a string return value.
@@ -80,6 +79,12 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
80
  */
81
  const VERSION_TYPE_FLOAT = 'float';
82
 
 
 
 
 
 
 
83
  /**
84
  * The User-Agent HTTP header is stored in here.
85
  * @var string
@@ -92,6 +97,12 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
92
  */
93
  protected $httpHeaders = array();
94
 
 
 
 
 
 
 
95
  /**
96
  * The matching Regex.
97
  * This is good for debug.
@@ -163,8 +174,8 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
163
  'Nexus' => 'Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6',
164
  // @todo: Is 'Dell Streak' a tablet or a phone? ;)
165
  'Dell' => 'Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b',
166
- 'Motorola' => 'Motorola|DROIDX|DROID BIONIC|\bDroid\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925',
167
- 'Samsung' => 'Samsung|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750',
168
  'LG' => '\bLG\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802)',
169
  'Sony' => 'SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533',
170
  'Asus' => 'Asus.*Galaxy|PadFone.*Mobile',
@@ -179,7 +190,9 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
179
  'Pantech' => 'PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790',
180
  // http://www.fly-phone.com/devices/smartphones/ ; Included only smartphones.
181
  'Fly' => 'IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250',
182
- 'iMobile' => 'i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)',
 
 
183
  // Added simvalley mobile just for fun. They have some interesting devices.
184
  // http://www.simvalley.fr/telephonie---gps-_22_telephonie-mobile_telephones_.html
185
  'SimValley' => '\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b',
@@ -204,7 +217,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
204
  protected static $tabletDevices = array(
205
  'iPad' => 'iPad|iPad.*Mobile', // @todo: check for mobile friendly emails topic.
206
  'NexusTablet' => 'Android.*Nexus[\s]+(7|9|10)|^.*Android.*Nexus(?:(?!Mobile).)*$',
207
- 'SamsungTablet' => 'SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-I9205|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T707A|SM-T807A|SM-T237P|SM-T807P|SM-P607T|SM-T217T|SM-T337T', // SCH-P709|SCH-P729|SM-T2558 - Samsung Mega - treat them like a regular phone.
208
  // http://docs.aws.amazon.com/silk/latest/developerguide/user-agent.html
209
  'Kindle' => 'Kindle|Silk.*Accelerated|Android.*\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI)\b',
210
  // Only the Surface tablets with Windows RT are considered mobile.
@@ -214,7 +227,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
214
  'HPTablet' => 'HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10',
215
  // Watch out for PadFone, see #132.
216
  // http://www.asus.com/de/Tablets_Mobile/Memo_Pad_Products/
217
- 'AsusTablet' => '^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\bK00F\b|\bK00C\b|\bK00E\b|\bK00L\b|TX201LA|ME176C|ME102A|\bM80TA\b|ME372CL|ME560CG|ME372CG',
218
  'BlackBerryTablet' => 'PlayBook|RIM Tablet',
219
  'HTCtablet' => 'HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410',
220
  'MotorolaTablet' => 'xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617',
@@ -224,7 +237,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
224
  // http://us.acer.com/ac/en/US/content/group/tablets
225
  // http://www.acer.de/ac/de/DE/content/models/tablets/
226
  // Can conflict with Micromax and Motorola phones codes.
227
- 'AcerTablet' => 'Android.*; \b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\b|W3-810|\bA3-A10\b',
228
  // http://eu.computers.toshiba-europe.com/innovation/family/Tablets/1098744/banner_id/tablet_footerlink/
229
  // http://us.toshiba.com/tablets/tablet-finder
230
  // http://www.toshiba.co.jp/regza/tablet/
@@ -260,7 +273,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
260
  // @todo: inspect http://esupport.sony.com/US/p/select-system.pl?DIRECTOR=DRIVER
261
  // Readers http://www.atsuhiro-me.net/ebook/sony-reader/sony-reader-web-browser
262
  // http://www.sony.jp/support/tablet/
263
- 'SonyTablet' => 'Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551',
264
  // http://www.support.philips.com/support/catalog/worldproducts.jsp?userLanguage=en&userCountry=cn&categoryid=3G_LTE_TABLET_SU_CN_CARE&title=3G%20tablets%20/%20LTE%20range&_dyncharset=UTF-8
265
  'PhilipsTablet' => '\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b',
266
  // db + http://www.cube-tablet.com/buy-products.html
@@ -284,7 +297,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
284
  // http://www.fly-phone.com/devices/tablets/ ; http://www.fly-phone.com/service/
285
  'FlyTablet' => 'IQ310|Fly Vision',
286
  // http://www.bqreaders.com/gb/tablets-prices-sale.html
287
- 'bqTablet' => 'bq.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant)|Maxwell.*Lite|Maxwell.*Plus',
288
  // http://www.huaweidevice.com/worldwide/productFamily.do?method=index&directoryId=5011&treeId=3290
289
  // http://www.huaweidevice.com/worldwide/downloadCenter.do?method=index&directoryId=3372&treeId=0&tb=1&type=software (including legacy tablets)
290
  'HuaweiTablet' => 'MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim',
@@ -407,6 +420,8 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
407
  'IconbitTablet' => 'NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S',
408
  // http://www.teclast.com/topic.php?channelID=70&topicID=140&pid=63
409
  'TeclastTablet' => 'T98 4G|\bP80\b|\bX90HD\b|X98 Air|X98 Air 3G|\bX89\b|P80 3G|\bX80h\b|P98 Air|\bX89HD\b|P98 3G|\bP90HD\b|P89 3G|X98 3G|\bP70h\b|P79HD 3G|G18d 3G|\bP79HD\b|\bP89s\b|\bA88\b|\bP10HD\b|\bP19HD\b|G18 3G|\bP78HD\b|\bA78\b|\bP75\b|G17s 3G|G17h 3G|\bP85t\b|\bP90\b|\bP11\b|\bP98t\b|\bP98HD\b|\bG18d\b|\bP85s\b|\bP11HD\b|\bP88s\b|\bA80HD\b|\bA80se\b|\bA10h\b|\bP89\b|\bP78s\b|\bG18\b|\bP85\b|\bA70h\b|\bA70\b|\bG17\b|\bP18\b|\bA80s\b|\bA11s\b|\bP88HD\b|\bA80h\b|\bP76s\b|\bP76h\b|\bP98\b|\bA10HD\b|\bP78\b|\bP88\b|\bA11\b|\bA10t\b|\bP76a\b|\bP76t\b|\bP76e\b|\bP85HD\b|\bP85a\b|\bP86\b|\bP75HD\b|\bP76v\b|\bA12\b|\bP75a\b|\bA15\b|\bP76Ti\b|\bP81HD\b|\bA10\b|\bT760VE\b|\bT720HD\b|\bP76\b|\bP73\b|\bP71\b|\bP72\b|\bT720SE\b|\bC520Ti\b|\bT760\b|\bT720VE\b|T720-3GE|T720-WiFi',
 
 
410
  'JaytechTablet' => 'TPC-PA762',
411
  'BlaupunktTablet' => 'Endeavour 800NG|Endeavour 1010',
412
  // http://www.digma.ru/support/download/
@@ -417,9 +432,11 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
417
  // @todo: Research some more
418
  'EvolioTablet' => 'ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b',
419
  // @todo http://www.lavamobiles.com/tablets-data-cards
420
- 'LavaTablet' => 'QPAD E704|\bIvoryS\b|E-TAB IVORY',
421
  // https://www.celkonmobiles.com/?_a=categoryphones&sid=2
422
  'CelkonTablet' => 'CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b',
 
 
423
  // http://www.mi.com/en
424
  'MiTablet' => '\bMI PAD\b|\bHM NOTE 1W\b',
425
  // http://www.nbru.cn/index.html
@@ -453,7 +470,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
453
  // http://wifeng.cn/?r=blog&a=view&id=106
454
  // http://nicksnettravels.builttoroam.com/post/2011/01/10/Bogus-Windows-Phone-7-User-Agent-String.aspx
455
  // http://msdn.microsoft.com/library/ms537503.aspx
456
- 'WindowsPhoneOS' => 'Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;',
457
  'iOS' => '\biPhone.*Mobile|\biPod|\biPad',
458
  // http://en.wikipedia.org/wiki/MeeGo
459
  // @todo: research MeeGo in UAs
@@ -515,11 +532,12 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
515
  // Experimental. When a mobile device wants to switch to 'Desktop Mode'.
516
  // http://scottcate.com/technology/windows-phone-8-ie10-desktop-or-mobile/
517
  // https://github.com/serbanghita/Mobile-Detect/issues/57#issuecomment-15024011
 
 
 
518
  'DesktopMode' => 'WPDesktop',
519
  'TV' => 'SonyDTV|HbbTV', // experimental
520
  'WebKit' => '(webkit)[ /]([\w.]+)',
521
- 'Bot' => 'Googlebot|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|facebookexternalhit',
522
- 'MobileBot' => 'Googlebot-Mobile|YahooSeeker/M1A1-R2D2',
523
  // @todo: Include JXD consoles.
524
  'Console' => '\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\b',
525
  'Watch' => 'SM-V700',
@@ -573,8 +591,9 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
573
  // @reference: https://developer.mozilla.org/en-US/docs/User_Agent_Strings_Reference
574
  'Firefox' => 'Firefox/[VER]',
575
  'Fennec' => 'Fennec/[VER]',
576
- // @reference: http://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx
577
- 'IE' => array('IEMobile/[VER];', 'IEMobile [VER]', 'MSIE [VER];'),
 
578
  // http://en.wikipedia.org/wiki/NetFront
579
  'NetFront' => 'NetFront/[VER]',
580
  'NokiaBrowser' => 'NokiaBrowser/[VER]',
@@ -600,7 +619,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
600
  'Presto' => 'Presto/[VER]',
601
 
602
  // OS
603
- 'iOS' => ' \bOS\b [VER] ',
604
  'Android' => 'Android [VER]',
605
  'BlackBerry' => array('BlackBerry[\w]+/[VER]', 'BlackBerry.*Version/[VER]', 'Version/[VER]'),
606
  'BREW' => 'BREW [VER]',
@@ -653,21 +672,24 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
653
  */
654
  public function setHttpHeaders($httpHeaders = null)
655
  {
656
- //use global _SERVER if $httpHeaders aren't defined
657
  if (!is_array($httpHeaders) || !count($httpHeaders)) {
658
  $httpHeaders = $_SERVER;
659
  }
660
 
661
- //clear existing headers
662
  $this->httpHeaders = array();
663
 
664
- //Only save HTTP headers. In PHP land, that means only _SERVER vars that
665
- //start with HTTP_.
666
  foreach ($httpHeaders as $key => $value) {
667
- if (substr($key,0,5) == 'HTTP_') {
668
  $this->httpHeaders[$key] = $value;
669
  }
670
  }
 
 
 
671
  }
672
 
673
  /**
@@ -692,13 +714,13 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
692
  */
693
  public function getHttpHeader($header)
694
  {
695
- //are we using PHP-flavored headers?
696
  if (strpos($header, '_') === false) {
697
  $header = str_replace('-', '_', $header);
698
  $header = strtoupper($header);
699
  }
700
 
701
- //test the alternate, too
702
  $altHeader = 'HTTP_' . $header;
703
 
704
  //Test both the regular and the HTTP_ prefix
@@ -727,6 +749,47 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
727
  return self::$uaHttpHeaders;
728
  }
729
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
730
  /**
731
  * Set the User-Agent to be used.
732
  *
@@ -736,19 +799,28 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
736
  */
737
  public function setUserAgent($userAgent = null)
738
  {
739
- if (!empty($userAgent)) {
 
 
 
740
  return $this->userAgent = $userAgent;
741
  } else {
742
  $this->userAgent = null;
743
  foreach ($this->getUaHttpHeaders() as $altHeader) {
744
- if (!empty($this->httpHeaders[$altHeader])) { // @todo: should use getHttpHeader(), but it would be slow. (Serban)
745
  $this->userAgent .= $this->httpHeaders[$altHeader] . " ";
746
  }
747
  }
748
 
749
- return $this->userAgent = (!empty($this->userAgent) ? trim($this->userAgent) : null);
 
 
 
750
 
 
 
751
  }
 
752
  }
753
 
754
  /**
@@ -776,7 +848,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
776
  $type = self::DETECTION_TYPE_MOBILE;
777
  }
778
 
779
- if ($type != self::DETECTION_TYPE_MOBILE && $type != self::DETECTION_TYPE_EXTENDED) {
780
  return;
781
  }
782
 
@@ -932,10 +1004,10 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
932
  {
933
 
934
  foreach ($this->getMobileHeaders() as $mobileHeader => $matchType) {
935
- if ( isset($this->httpHeaders[$mobileHeader]) ) {
936
- if ( is_array($matchType['matches']) ) {
937
  foreach ($matchType['matches'] as $_match) {
938
- if ( strpos($this->httpHeaders[$mobileHeader], $_match) !== false ) {
939
  return true;
940
  }
941
  }
@@ -962,8 +1034,8 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
962
  */
963
  public function __call($name, $arguments)
964
  {
965
- //make sure the name starts with 'is', otherwise
966
- if (substr($name, 0, 2) != 'is') {
967
  throw new BadMethodCallException("No such method exists: $name");
968
  }
969
 
@@ -977,7 +1049,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
977
  /**
978
  * Find a detection rule that matches the current User-agent.
979
  *
980
- * @param null $userAgent deprecated
981
  * @return boolean
982
  */
983
  protected function matchDetectionRulesAgainstUA($userAgent = null)
@@ -987,6 +1059,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
987
  if (empty($_regex)) {
988
  continue;
989
  }
 
990
  if ($this->match($_regex, $userAgent)) {
991
  return true;
992
  }
@@ -998,36 +1071,38 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
998
  /**
999
  * Search for a certain key in the rules array.
1000
  * If the key is found the try to match the corresponding
1001
- * regex agains the User-Agent.
1002
  *
1003
  * @param string $key
1004
- * @param null $userAgent deprecated
1005
- * @return mixed
1006
  */
1007
- protected function matchUAAgainstKey($key, $userAgent = null)
1008
  {
1009
  // Make the keys lowercase so we can match: isIphone(), isiPhone(), isiphone(), etc.
1010
  $key = strtolower($key);
 
1011
 
1012
- //change the keys to lower case
1013
- $_rules = array_change_key_case($this->getRules());
1014
 
1015
- if (array_key_exists($key, $_rules)) {
1016
- if (empty($_rules[$key])) {
1017
- return null;
1018
  }
1019
 
1020
- return $this->match($_rules[$key], $userAgent);
 
 
1021
  }
1022
 
1023
- return false;
1024
  }
1025
 
1026
  /**
1027
  * Check if the device is mobile.
1028
  * Returns true if any type of mobile device detected, including special ones
1029
- * @param null $userAgent deprecated
1030
- * @param null $httpHeaders deprecated
1031
  * @return bool
1032
  */
1033
  public function isMobile($userAgent = null, $httpHeaders = null)
@@ -1041,6 +1116,14 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
1041
  $this->setUserAgent($userAgent);
1042
  }
1043
 
 
 
 
 
 
 
 
 
1044
  $this->setDetectionType(self::DETECTION_TYPE_MOBILE);
1045
 
1046
  if ($this->checkHttpHeadersForMobile()) {
@@ -1061,6 +1144,14 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
1061
  */
1062
  public function isTablet($userAgent = null, $httpHeaders = null)
1063
  {
 
 
 
 
 
 
 
 
1064
  $this->setDetectionType(self::DETECTION_TYPE_MOBILE);
1065
 
1066
  foreach (self::$tabletDevices as $_regex) {
@@ -1077,9 +1168,9 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
1077
  * userAgent.
1078
  * @todo: The httpHeaders part is not yet used.
1079
  *
1080
- * @param string $key
1081
- * @param string $userAgent deprecated
1082
- * @param string $httpHeaders deprecated
1083
  * @return bool|int|null
1084
  */
1085
  public function is($key, $userAgent = null, $httpHeaders = null)
@@ -1115,9 +1206,7 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
1115
  */
1116
  public function match($regex, $userAgent = null)
1117
  {
1118
- // Escape the special character which is the delimiter.
1119
- $regex = str_replace('/', '\/', $regex);
1120
- $match = (bool) preg_match('/'.$regex.'/is', (!empty($userAgent) ? $userAgent : $this->userAgent), $matches);
1121
  // If positive match is found, store the results for debug.
1122
  if ($match) {
1123
  $this->matchingRegex = $regex;
@@ -1177,15 +1266,15 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
1177
  return false;
1178
  }
1179
 
1180
- //set the $type to the default if we don't recognize the type
1181
- if ($type != self::VERSION_TYPE_STRING && $type != self::VERSION_TYPE_FLOAT) {
1182
  $type = self::VERSION_TYPE_STRING;
1183
  }
1184
 
1185
  $properties = self::getProperties();
1186
 
1187
  // Check if the property exists in the properties array.
1188
- if (array_key_exists($propertyName, $properties)) {
1189
 
1190
  // Prepare the pattern to be matched.
1191
  // Make sure we always deal with an array (string is converted).
@@ -1195,14 +1284,11 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
1195
 
1196
  $propertyPattern = str_replace('[VER]', self::VER, $propertyMatchString);
1197
 
1198
- // Escape the special character which is the delimiter.
1199
- $propertyPattern = str_replace('/', '\/', $propertyPattern);
1200
-
1201
  // Identify and extract the version.
1202
- preg_match('/'.$propertyPattern.'/is', $this->userAgent, $match);
1203
 
1204
- if (!empty($match[1])) {
1205
- $version = ( $type == self::VERSION_TYPE_FLOAT ? $this->prepareVersionNo($match[1]) : $match[1] );
1206
 
1207
  return $version;
1208
  }
@@ -1225,9 +1311,9 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
1225
 
1226
  if (
1227
  // Apple iOS 4-7.0 – Tested on the original iPad (4.3 / 5.0), iPad 2 (4.3 / 5.1 / 6.1), iPad 3 (5.1 / 6.0), iPad Mini (6.1), iPad Retina (7.0), iPhone 3GS (4.3), iPhone 4 (4.3 / 5.1), iPhone 4S (5.1 / 6.0), iPhone 5 (6.0), and iPhone 5S (7.0)
1228
- $this->isIOS() && $this->version('iPad', self::VERSION_TYPE_FLOAT)>=4.3 ||
1229
- $this->isIOS() && $this->version('iPhone', self::VERSION_TYPE_FLOAT)>=4.3 ||
1230
- $this->isIOS() && $this->version('iPod', self::VERSION_TYPE_FLOAT)>=4.3 ||
1231
 
1232
  // Android 2.1-2.3 - Tested on the HTC Incredible (2.2), original Droid (2.2), HTC Aria (2.1), Google Nexus S (2.3). Functional on 1.5 & 1.6 but performance may be sluggish, tested on Google G1 (1.5)
1233
  // Android 3.1 (Honeycomb) - Tested on the Samsung Galaxy Tab 10.1 and Motorola XOOM
@@ -1236,29 +1322,29 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
1236
  ( $this->version('Android', self::VERSION_TYPE_FLOAT)>2.1 && $this->is('Webkit') ) ||
1237
 
1238
  // Windows Phone 7.5-8 - Tested on the HTC Surround (7.5), HTC Trophy (7.5), LG-E900 (7.5), Nokia 800 (7.8), HTC Mazaa (7.8), Nokia Lumia 520 (8), Nokia Lumia 920 (8), HTC 8x (8)
1239
- $this->version('Windows Phone OS', self::VERSION_TYPE_FLOAT)>=7.5 ||
1240
 
1241
  // Tested on the Torch 9800 (6) and Style 9670 (6), BlackBerry® Torch 9810 (7), BlackBerry Z10 (10)
1242
- $this->is('BlackBerry') && $this->version('BlackBerry', self::VERSION_TYPE_FLOAT)>=6.0 ||
1243
  // Blackberry Playbook (1.0-2.0) - Tested on PlayBook
1244
  $this->match('Playbook.*Tablet') ||
1245
 
1246
  // Palm WebOS (1.4-3.0) - Tested on the Palm Pixi (1.4), Pre (1.4), Pre 2 (2.0), HP TouchPad (3.0)
1247
- ( $this->version('webOS', self::VERSION_TYPE_FLOAT)>=1.4 && $this->match('Palm|Pre|Pixi') ) ||
1248
  // Palm WebOS 3.0 - Tested on HP TouchPad
1249
  $this->match('hp.*TouchPad') ||
1250
 
1251
  // Firefox Mobile 18 - Tested on Android 2.3 and 4.1 devices
1252
- ( $this->is('Firefox') && $this->version('Firefox', self::VERSION_TYPE_FLOAT)>=18 ) ||
1253
 
1254
  // Chrome for Android - Tested on Android 4.0, 4.1 device
1255
- ( $this->is('Chrome') && $this->is('AndroidOS') && $this->version('Android', self::VERSION_TYPE_FLOAT)>=4.0 ) ||
1256
 
1257
  // Skyfire 4.1 - Tested on Android 2.3 device
1258
- ( $this->is('Skyfire') && $this->version('Skyfire', self::VERSION_TYPE_FLOAT)>=4.1 && $this->is('AndroidOS') && $this->version('Android', self::VERSION_TYPE_FLOAT)>=2.3 ) ||
1259
 
1260
  // Opera Mobile 11.5-12: Tested on Android 2.3
1261
- ( $this->is('Opera') && $this->version('Opera Mobi', self::VERSION_TYPE_FLOAT)>=11.5 && $this->is('AndroidOS') ) ||
1262
 
1263
  // Meego 1.2 - Tested on Nokia 950 and N9
1264
  $this->is('MeeGoOS') ||
@@ -1268,76 +1354,76 @@ if ( !class_exists( 'Ig_Mobile_Detect' ) )
1268
 
1269
  // Samsung Bada 2.0 - Tested on a Samsung Wave 3, Dolphin browser
1270
  // @todo: more tests here!
1271
- $this->is('Dolfin') && $this->version('Bada', self::VERSION_TYPE_FLOAT)>=2.0 ||
1272
 
1273
  // UC Browser - Tested on Android 2.3 device
1274
- ( ($this->is('UC Browser') || $this->is('Dolfin')) && $this->version('Android', self::VERSION_TYPE_FLOAT)>=2.3 ) ||
1275
 
1276
  // Kindle 3 and Fire - Tested on the built-in WebKit browser for each
1277
  ( $this->match('Kindle Fire') ||
1278
- $this->is('Kindle') && $this->version('Kindle', self::VERSION_TYPE_FLOAT)>=3.0 ) ||
1279
 
1280
  // Nook Color 1.4.1 - Tested on original Nook Color, not Nook Tablet
1281
  $this->is('AndroidOS') && $this->is('NookTablet') ||
1282
 
1283
  // Chrome Desktop 16-24 - Tested on OS X 10.7 and Windows 7
1284
- $this->version('Chrome', self::VERSION_TYPE_FLOAT)>=16 && !$isMobile ||
1285
 
1286
  // Safari Desktop 5-6 - Tested on OS X 10.7 and Windows 7
1287
- $this->version('Safari', self::VERSION_TYPE_FLOAT)>=5.0 && !$isMobile ||
1288
 
1289
  // Firefox Desktop 10-18 - Tested on OS X 10.7 and Windows 7
1290
- $this->version('Firefox', self::VERSION_TYPE_FLOAT)>=10.0 && !$isMobile ||
1291
 
1292
  // Internet Explorer 7-9 - Tested on Windows XP, Vista and 7
1293
- $this->version('IE', self::VERSION_TYPE_FLOAT)>=7.0 && !$isMobile ||
1294
 
1295
  // Opera Desktop 10-12 - Tested on OS X 10.7 and Windows 7
1296
- $this->version('Opera', self::VERSION_TYPE_FLOAT)>=10 && !$isMobile
1297
  ){
1298
  return self::MOBILE_GRADE_A;
1299
  }
1300
 
1301
  if (
1302
- $this->isIOS() && $this->version('iPad', self::VERSION_TYPE_FLOAT)<4.3 ||
1303
- $this->isIOS() && $this->version('iPhone', self::VERSION_TYPE_FLOAT)<4.3 ||
1304
- $this->isIOS() && $this->version('iPod', self::VERSION_TYPE_FLOAT)<4.3 ||
1305
 
1306
  // Blackberry 5.0: Tested on the Storm 2 9550, Bold 9770
1307
- $this->is('Blackberry') && $this->version('BlackBerry', self::VERSION_TYPE_FLOAT)>=5 && $this->version('BlackBerry', self::VERSION_TYPE_FLOAT)<6 ||
1308
 
1309
  //Opera Mini (5.0-6.5) - Tested on iOS 3.2/4.3 and Android 2.3
1310
- ($this->version('Opera Mini', self::VERSION_TYPE_FLOAT)>=5.0 && $this->version('Opera Mini', self::VERSION_TYPE_FLOAT)<=7.0 &&
1311
- ($this->version('Android', self::VERSION_TYPE_FLOAT)>=2.3 || $this->is('iOS')) ) ||
1312
 
1313
  // Nokia Symbian^3 - Tested on Nokia N8 (Symbian^3), C7 (Symbian^3), also works on N97 (Symbian^1)
1314
  $this->match('NokiaN8|NokiaC7|N97.*Series60|Symbian/3') ||
1315
 
1316
  // @todo: report this (tested on Nokia N71)
1317
- $this->version('Opera Mobi', self::VERSION_TYPE_FLOAT)>=11 && $this->is('SymbianOS')
1318
  ){
1319
  return self::MOBILE_GRADE_B;
1320
  }
1321
 
1322
  if (
1323
  // Blackberry 4.x - Tested on the Curve 8330
1324
- $this->version('BlackBerry', self::VERSION_TYPE_FLOAT)<=5.0 ||
1325
  // Windows Mobile - Tested on the HTC Leo (WinMo 5.2)
1326
- $this->match('MSIEMobile|Windows CE.*Mobile') || $this->version('Windows Mobile', self::VERSION_TYPE_FLOAT)<=5.2 ||
1327
 
1328
  // Tested on original iPhone (3.1), iPhone 3 (3.2)
1329
- $this->isIOS() && $this->version('iPad', self::VERSION_TYPE_FLOAT)<=3.2 ||
1330
- $this->isIOS() && $this->version('iPhone', self::VERSION_TYPE_FLOAT)<=3.2 ||
1331
- $this->isIOS() && $this->version('iPod', self::VERSION_TYPE_FLOAT)<=3.2 ||
1332
 
1333
  // Internet Explorer 7 and older - Tested on Windows XP
1334
- $this->version('IE', self::VERSION_TYPE_FLOAT)<=7.0 && !$isMobile
1335
  ){
1336
  return self::MOBILE_GRADE_C;
1337
  }
1338
 
1339
- //All older smartphone platforms and featurephones - Any device that doesn't support media queries
1340
- //will receive the basic, C grade experience.
1341
  return self::MOBILE_GRADE_C;
1342
  }
1343
  }
22
  * README: https://github.com/serbanghita/Mobile-Detect/blob/master/README.md
23
  * HOWTO: https://github.com/serbanghita/Mobile-Detect/wiki/Code-examples
24
  *
25
+ * @version 2.8.15
26
  */
27
  if ( !class_exists( 'Ig_Mobile_Detect' ) )
28
  {
 
29
  class Ig_Mobile_Detect
30
  {
31
  /**
67
  /**
68
  * Stores the version number of the current release.
69
  */
70
+ const VERSION = '2.8.15';
71
 
72
  /**
73
  * A type for the version() method indicating a string return value.
79
  */
80
  const VERSION_TYPE_FLOAT = 'float';
81
 
82
+ /**
83
+ * A cache for resolved matches
84
+ * @var array
85
+ */
86
+ protected $cache = array();
87
+
88
  /**
89
  * The User-Agent HTTP header is stored in here.
90
  * @var string
97
  */
98
  protected $httpHeaders = array();
99
 
100
+ /**
101
+ * CloudFront headers. E.g. CloudFront-Is-Desktop-Viewer, CloudFront-Is-Mobile-Viewer & CloudFront-Is-Tablet-Viewer.
102
+ * @var array
103
+ */
104
+ protected $cloudfrontHeaders = array();
105
+
106
  /**
107
  * The matching Regex.
108
  * This is good for debug.
174
  'Nexus' => 'Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6',
175
  // @todo: Is 'Dell Streak' a tablet or a phone? ;)
176
  'Dell' => 'Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b',
177
+ 'Motorola' => 'Motorola|DROIDX|DROID BIONIC|\bDroid\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\bMoto E\b',
178
+ 'Samsung' => 'Samsung|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205',
179
  'LG' => '\bLG\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802)',
180
  'Sony' => 'SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533',
181
  'Asus' => 'Asus.*Galaxy|PadFone.*Mobile',
190
  'Pantech' => 'PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790',
191
  // http://www.fly-phone.com/devices/smartphones/ ; Included only smartphones.
192
  'Fly' => 'IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250',
193
+ // http://fr.wikomobile.com
194
+ 'Wiko' => 'KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM',
195
+ 'iMobile' => 'i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)',
196
  // Added simvalley mobile just for fun. They have some interesting devices.
197
  // http://www.simvalley.fr/telephonie---gps-_22_telephonie-mobile_telephones_.html
198
  'SimValley' => '\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b',
217
  protected static $tabletDevices = array(
218
  'iPad' => 'iPad|iPad.*Mobile', // @todo: check for mobile friendly emails topic.
219
  'NexusTablet' => 'Android.*Nexus[\s]+(7|9|10)|^.*Android.*Nexus(?:(?!Mobile).)*$',
220
+ 'SamsungTablet' => 'SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805', // SCH-P709|SCH-P729|SM-T2558|GT-I9205 - Samsung Mega - treat them like a regular phone.
221
  // http://docs.aws.amazon.com/silk/latest/developerguide/user-agent.html
222
  'Kindle' => 'Kindle|Silk.*Accelerated|Android.*\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI)\b',
223
  // Only the Surface tablets with Windows RT are considered mobile.
227
  'HPTablet' => 'HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10',
228
  // Watch out for PadFone, see #132.
229
  // http://www.asus.com/de/Tablets_Mobile/Memo_Pad_Products/
230
+ 'AsusTablet' => '^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\bK00F\b|\bK00C\b|\bK00E\b|\bK00L\b|TX201LA|ME176C|ME102A|\bM80TA\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K017 |ME572C|ME103K|ME170C|ME171C|\bME70C\b|ME581C|ME581CL|ME8510C|ME181C',
231
  'BlackBerryTablet' => 'PlayBook|RIM Tablet',
232
  'HTCtablet' => 'HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410',
233
  'MotorolaTablet' => 'xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617',
237
  // http://us.acer.com/ac/en/US/content/group/tablets
238
  // http://www.acer.de/ac/de/DE/content/models/tablets/
239
  // Can conflict with Micromax and Motorola phones codes.
240
+ 'AcerTablet' => 'Android.*; \b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\b|W3-810|\bA3-A10\b|\bA3-A11\b',
241
  // http://eu.computers.toshiba-europe.com/innovation/family/Tablets/1098744/banner_id/tablet_footerlink/
242
  // http://us.toshiba.com/tablets/tablet-finder
243
  // http://www.toshiba.co.jp/regza/tablet/
273
  // @todo: inspect http://esupport.sony.com/US/p/select-system.pl?DIRECTOR=DRIVER
274
  // Readers http://www.atsuhiro-me.net/ebook/sony-reader/sony-reader-web-browser
275
  // http://www.sony.jp/support/tablet/
276
+ 'SonyTablet' => 'Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612',
277
  // http://www.support.philips.com/support/catalog/worldproducts.jsp?userLanguage=en&userCountry=cn&categoryid=3G_LTE_TABLET_SU_CN_CARE&title=3G%20tablets%20/%20LTE%20range&_dyncharset=UTF-8
278
  'PhilipsTablet' => '\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b',
279
  // db + http://www.cube-tablet.com/buy-products.html
297
  // http://www.fly-phone.com/devices/tablets/ ; http://www.fly-phone.com/service/
298
  'FlyTablet' => 'IQ310|Fly Vision',
299
  // http://www.bqreaders.com/gb/tablets-prices-sale.html
300
+ 'bqTablet' => '(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris E10)|Maxwell.*Lite|Maxwell.*Plus',
301
  // http://www.huaweidevice.com/worldwide/productFamily.do?method=index&directoryId=5011&treeId=3290
302
  // http://www.huaweidevice.com/worldwide/downloadCenter.do?method=index&directoryId=3372&treeId=0&tb=1&type=software (including legacy tablets)
303
  'HuaweiTablet' => 'MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim',
420
  'IconbitTablet' => 'NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S',
421
  // http://www.teclast.com/topic.php?channelID=70&topicID=140&pid=63
422
  'TeclastTablet' => 'T98 4G|\bP80\b|\bX90HD\b|X98 Air|X98 Air 3G|\bX89\b|P80 3G|\bX80h\b|P98 Air|\bX89HD\b|P98 3G|\bP90HD\b|P89 3G|X98 3G|\bP70h\b|P79HD 3G|G18d 3G|\bP79HD\b|\bP89s\b|\bA88\b|\bP10HD\b|\bP19HD\b|G18 3G|\bP78HD\b|\bA78\b|\bP75\b|G17s 3G|G17h 3G|\bP85t\b|\bP90\b|\bP11\b|\bP98t\b|\bP98HD\b|\bG18d\b|\bP85s\b|\bP11HD\b|\bP88s\b|\bA80HD\b|\bA80se\b|\bA10h\b|\bP89\b|\bP78s\b|\bG18\b|\bP85\b|\bA70h\b|\bA70\b|\bG17\b|\bP18\b|\bA80s\b|\bA11s\b|\bP88HD\b|\bA80h\b|\bP76s\b|\bP76h\b|\bP98\b|\bA10HD\b|\bP78\b|\bP88\b|\bA11\b|\bA10t\b|\bP76a\b|\bP76t\b|\bP76e\b|\bP85HD\b|\bP85a\b|\bP86\b|\bP75HD\b|\bP76v\b|\bA12\b|\bP75a\b|\bA15\b|\bP76Ti\b|\bP81HD\b|\bA10\b|\bT760VE\b|\bT720HD\b|\bP76\b|\bP73\b|\bP71\b|\bP72\b|\bT720SE\b|\bC520Ti\b|\bT760\b|\bT720VE\b|T720-3GE|T720-WiFi',
423
+ // Onda - http://www.onda-tablet.com/buy-android-onda.html?dir=desc&limit=all&order=price
424
+ 'OndaTablet' => '\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\b[\s]+',
425
  'JaytechTablet' => 'TPC-PA762',
426
  'BlaupunktTablet' => 'Endeavour 800NG|Endeavour 1010',
427
  // http://www.digma.ru/support/download/
432
  // @todo: Research some more
433
  'EvolioTablet' => 'ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b',
434
  // @todo http://www.lavamobiles.com/tablets-data-cards
435
+ 'LavaTablet' => 'QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b',
436
  // https://www.celkonmobiles.com/?_a=categoryphones&sid=2
437
  'CelkonTablet' => 'CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b',
438
+ // http://www.wolderelectronics.com/productos/manuales-y-guias-rapidas/categoria-2-miTab
439
+ 'WolderTablet' => 'miTab \b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\b',
440
  // http://www.mi.com/en
441
  'MiTablet' => '\bMI PAD\b|\bHM NOTE 1W\b',
442
  // http://www.nbru.cn/index.html
470
  // http://wifeng.cn/?r=blog&a=view&id=106
471
  // http://nicksnettravels.builttoroam.com/post/2011/01/10/Bogus-Windows-Phone-7-User-Agent-String.aspx
472
  // http://msdn.microsoft.com/library/ms537503.aspx
473
+ 'WindowsPhoneOS' => 'Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;',
474
  'iOS' => '\biPhone.*Mobile|\biPod|\biPad',
475
  // http://en.wikipedia.org/wiki/MeeGo
476
  // @todo: research MeeGo in UAs
532
  // Experimental. When a mobile device wants to switch to 'Desktop Mode'.
533
  // http://scottcate.com/technology/windows-phone-8-ie10-desktop-or-mobile/
534
  // https://github.com/serbanghita/Mobile-Detect/issues/57#issuecomment-15024011
535
+ // https://developers.facebook.com/docs/sharing/best-practices
536
+ 'Bot' => 'Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor',
537
+ 'MobileBot' => 'Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2',
538
  'DesktopMode' => 'WPDesktop',
539
  'TV' => 'SonyDTV|HbbTV', // experimental
540
  'WebKit' => '(webkit)[ /]([\w.]+)',
 
 
541
  // @todo: Include JXD consoles.
542
  'Console' => '\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\b',
543
  'Watch' => 'SM-V700',
591
  // @reference: https://developer.mozilla.org/en-US/docs/User_Agent_Strings_Reference
592
  'Firefox' => 'Firefox/[VER]',
593
  'Fennec' => 'Fennec/[VER]',
594
+ // http://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx
595
+ // https://msdn.microsoft.com/en-us/library/ie/hh869301(v=vs.85).aspx
596
+ 'IE' => array('IEMobile/[VER];', 'IEMobile [VER]', 'MSIE [VER];', 'Trident/[0-9.]+;.*rv:[VER]'),
597
  // http://en.wikipedia.org/wiki/NetFront
598
  'NetFront' => 'NetFront/[VER]',
599
  'NokiaBrowser' => 'NokiaBrowser/[VER]',
619
  'Presto' => 'Presto/[VER]',
620
 
621
  // OS
622
+ 'iOS' => ' \bi?OS\b [VER][ ;]{1}',
623
  'Android' => 'Android [VER]',
624
  'BlackBerry' => array('BlackBerry[\w]+/[VER]', 'BlackBerry.*Version/[VER]', 'Version/[VER]'),
625
  'BREW' => 'BREW [VER]',
672
  */
673
  public function setHttpHeaders($httpHeaders = null)
674
  {
675
+ // use global _SERVER if $httpHeaders aren't defined
676
  if (!is_array($httpHeaders) || !count($httpHeaders)) {
677
  $httpHeaders = $_SERVER;
678
  }
679
 
680
+ // clear existing headers
681
  $this->httpHeaders = array();
682
 
683
+ // Only save HTTP headers. In PHP land, that means only _SERVER vars that
684
+ // start with HTTP_.
685
  foreach ($httpHeaders as $key => $value) {
686
+ if (substr($key, 0, 5) === 'HTTP_') {
687
  $this->httpHeaders[$key] = $value;
688
  }
689
  }
690
+
691
+ // In case we're dealing with CloudFront, we need to know.
692
+ $this->setCfHeaders($httpHeaders);
693
  }
694
 
695
  /**
714
  */
715
  public function getHttpHeader($header)
716
  {
717
+ // are we using PHP-flavored headers?
718
  if (strpos($header, '_') === false) {
719
  $header = str_replace('-', '_', $header);
720
  $header = strtoupper($header);
721
  }
722
 
723
+ // test the alternate, too
724
  $altHeader = 'HTTP_' . $header;
725
 
726
  //Test both the regular and the HTTP_ prefix
749
  return self::$uaHttpHeaders;
750
  }
751
 
752
+
753
+ /**
754
+ * Set CloudFront headers
755
+ * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
756
+ *
757
+ * @param array $cfHeaders List of HTTP headers
758
+ *
759
+ * @return boolean If there were CloudFront headers to be set
760
+ */
761
+ public function setCfHeaders($cfHeaders = null) {
762
+ // use global _SERVER if $cfHeaders aren't defined
763
+ if (!is_array($cfHeaders) || !count($cfHeaders)) {
764
+ $cfHeaders = $_SERVER;
765
+ }
766
+
767
+ // clear existing headers
768
+ $this->cloudfrontHeaders = array();
769
+
770
+ // Only save CLOUDFRONT headers. In PHP land, that means only _SERVER vars that
771
+ // start with cloudfront-.
772
+ $response = false;
773
+ foreach ($cfHeaders as $key => $value) {
774
+ if (substr(strtolower($key), 0, 16) === 'http_cloudfront_') {
775
+ $this->cloudfrontHeaders[strtoupper($key)] = $value;
776
+ $response = true;
777
+ }
778
+ }
779
+
780
+ return $response;
781
+ }
782
+
783
+ /**
784
+ * Retrieves the cloudfront headers.
785
+ *
786
+ * @return array
787
+ */
788
+ public function getCfHeaders()
789
+ {
790
+ return $this->cloudfrontHeaders;
791
+ }
792
+
793
  /**
794
  * Set the User-Agent to be used.
795
  *
799
  */
800
  public function setUserAgent($userAgent = null)
801
  {
802
+ // Invalidate cache due to #375
803
+ $this->cache = array();
804
+
805
+ if (false === empty($userAgent)) {
806
  return $this->userAgent = $userAgent;
807
  } else {
808
  $this->userAgent = null;
809
  foreach ($this->getUaHttpHeaders() as $altHeader) {
810
+ if (false === empty($this->httpHeaders[$altHeader])) { // @todo: should use getHttpHeader(), but it would be slow. (Serban)
811
  $this->userAgent .= $this->httpHeaders[$altHeader] . " ";
812
  }
813
  }
814
 
815
+ if (!empty($this->userAgent)) {
816
+ return $this->userAgent = trim($this->userAgent);
817
+ }
818
+ }
819
 
820
+ if (count($this->getCfHeaders()) > 0) {
821
+ return $this->userAgent = 'Amazon CloudFront';
822
  }
823
+ return $this->userAgent = null;
824
  }
825
 
826
  /**
848
  $type = self::DETECTION_TYPE_MOBILE;
849
  }
850
 
851
+ if ($type !== self::DETECTION_TYPE_MOBILE && $type !== self::DETECTION_TYPE_EXTENDED) {
852
  return;
853
  }
854
 
1004
  {
1005
 
1006
  foreach ($this->getMobileHeaders() as $mobileHeader => $matchType) {
1007
+ if (isset($this->httpHeaders[$mobileHeader])) {
1008
+ if (is_array($matchType['matches'])) {
1009
  foreach ($matchType['matches'] as $_match) {
1010
+ if (strpos($this->httpHeaders[$mobileHeader], $_match) !== false) {
1011
  return true;
1012
  }
1013
  }
1034
  */
1035
  public function __call($name, $arguments)
1036
  {
1037
+ // make sure the name starts with 'is', otherwise
1038
+ if (substr($name, 0, 2) !== 'is') {
1039
  throw new BadMethodCallException("No such method exists: $name");
1040
  }
1041
 
1049
  /**
1050
  * Find a detection rule that matches the current User-agent.
1051
  *
1052
+ * @param null $userAgent deprecated
1053
  * @return boolean
1054
  */
1055
  protected function matchDetectionRulesAgainstUA($userAgent = null)
1059
  if (empty($_regex)) {
1060
  continue;
1061
  }
1062
+
1063
  if ($this->match($_regex, $userAgent)) {
1064
  return true;
1065
  }
1071
  /**
1072
  * Search for a certain key in the rules array.
1073
  * If the key is found the try to match the corresponding
1074
+ * regex against the User-Agent.
1075
  *
1076
  * @param string $key
1077
+ *
1078
+ * @return boolean
1079
  */
1080
+ protected function matchUAAgainstKey($key)
1081
  {
1082
  // Make the keys lowercase so we can match: isIphone(), isiPhone(), isiphone(), etc.
1083
  $key = strtolower($key);
1084
+ if (false === isset($this->cache[$key])) {
1085
 
1086
+ // change the keys to lower case
1087
+ $_rules = array_change_key_case($this->getRules());
1088
 
1089
+ if (false === empty($_rules[$key])) {
1090
+ $this->cache[$key] = $this->match($_rules[$key]);
 
1091
  }
1092
 
1093
+ if (false === isset($this->cache[$key])) {
1094
+ $this->cache[$key] = false;
1095
+ }
1096
  }
1097
 
1098
+ return $this->cache[$key];
1099
  }
1100
 
1101
  /**
1102
  * Check if the device is mobile.
1103
  * Returns true if any type of mobile device detected, including special ones
1104
+ * @param null $userAgent deprecated
1105
+ * @param null $httpHeaders deprecated
1106
  * @return bool
1107
  */
1108
  public function isMobile($userAgent = null, $httpHeaders = null)
1116
  $this->setUserAgent($userAgent);
1117
  }
1118
 
1119
+ // Check specifically for cloudfront headers if the useragent === 'Amazon CloudFront'
1120
+ if ($this->getUserAgent() === 'Amazon CloudFront') {
1121
+ $cfHeaders = $this->getCfHeaders();
1122
+ if(array_key_exists('HTTP_CLOUDFRONT_IS_MOBILE_VIEWER', $cfHeaders) && $cfHeaders['HTTP_CLOUDFRONT_IS_MOBILE_VIEWER'] === 'true') {
1123
+ return true;
1124
+ }
1125
+ }
1126
+
1127
  $this->setDetectionType(self::DETECTION_TYPE_MOBILE);
1128
 
1129
  if ($this->checkHttpHeadersForMobile()) {
1144
  */
1145
  public function isTablet($userAgent = null, $httpHeaders = null)
1146
  {
1147
+ // Check specifically for cloudfront headers if the useragent === 'Amazon CloudFront'
1148
+ if ($this->getUserAgent() === 'Amazon CloudFront') {
1149
+ $cfHeaders = $this->getCfHeaders();
1150
+ if(array_key_exists('HTTP_CLOUDFRONT_IS_TABLET_VIEWER', $cfHeaders) && $cfHeaders['HTTP_CLOUDFRONT_IS_TABLET_VIEWER'] === 'true') {
1151
+ return true;
1152
+ }
1153
+ }
1154
+
1155
  $this->setDetectionType(self::DETECTION_TYPE_MOBILE);
1156
 
1157
  foreach (self::$tabletDevices as $_regex) {
1168
  * userAgent.
1169
  * @todo: The httpHeaders part is not yet used.
1170
  *
1171
+ * @param string $key
1172
+ * @param string $userAgent deprecated
1173
+ * @param string $httpHeaders deprecated
1174
  * @return bool|int|null
1175
  */
1176
  public function is($key, $userAgent = null, $httpHeaders = null)
1206
  */
1207
  public function match($regex, $userAgent = null)
1208
  {
1209
+ $match = (bool) preg_match(sprintf('#%s#is', $regex), (false === empty($userAgent) ? $userAgent : $this->userAgent), $matches);
 
 
1210
  // If positive match is found, store the results for debug.
1211
  if ($match) {
1212
  $this->matchingRegex = $regex;
1266
  return false;
1267
  }
1268
 
1269
+ // set the $type to the default if we don't recognize the type
1270
+ if ($type !== self::VERSION_TYPE_STRING && $type !== self::VERSION_TYPE_FLOAT) {
1271
  $type = self::VERSION_TYPE_STRING;
1272
  }
1273
 
1274
  $properties = self::getProperties();
1275
 
1276
  // Check if the property exists in the properties array.
1277
+ if (true === isset($properties[$propertyName])) {
1278
 
1279
  // Prepare the pattern to be matched.
1280
  // Make sure we always deal with an array (string is converted).
1284
 
1285
  $propertyPattern = str_replace('[VER]', self::VER, $propertyMatchString);
1286
 
 
 
 
1287
  // Identify and extract the version.
1288
+ preg_match(sprintf('#%s#is', $propertyPattern), $this->userAgent, $match);
1289
 
1290
+ if (false === empty($match[1])) {
1291
+ $version = ($type == self::VERSION_TYPE_FLOAT ? $this->prepareVersionNo($match[1]) : $match[1]);
1292
 
1293
  return $version;
1294
  }
1311
 
1312
  if (
1313
  // Apple iOS 4-7.0 – Tested on the original iPad (4.3 / 5.0), iPad 2 (4.3 / 5.1 / 6.1), iPad 3 (5.1 / 6.0), iPad Mini (6.1), iPad Retina (7.0), iPhone 3GS (4.3), iPhone 4 (4.3 / 5.1), iPhone 4S (5.1 / 6.0), iPhone 5 (6.0), and iPhone 5S (7.0)
1314
+ $this->is('iOS') && $this->version('iPad', self::VERSION_TYPE_FLOAT) >= 4.3 ||
1315
+ $this->is('iOS') && $this->version('iPhone', self::VERSION_TYPE_FLOAT) >= 4.3 ||
1316
+ $this->is('iOS') && $this->version('iPod', self::VERSION_TYPE_FLOAT) >= 4.3 ||
1317
 
1318
  // Android 2.1-2.3 - Tested on the HTC Incredible (2.2), original Droid (2.2), HTC Aria (2.1), Google Nexus S (2.3). Functional on 1.5 & 1.6 but performance may be sluggish, tested on Google G1 (1.5)
1319
  // Android 3.1 (Honeycomb) - Tested on the Samsung Galaxy Tab 10.1 and Motorola XOOM
1322
  ( $this->version('Android', self::VERSION_TYPE_FLOAT)>2.1 && $this->is('Webkit') ) ||
1323
 
1324
  // Windows Phone 7.5-8 - Tested on the HTC Surround (7.5), HTC Trophy (7.5), LG-E900 (7.5), Nokia 800 (7.8), HTC Mazaa (7.8), Nokia Lumia 520 (8), Nokia Lumia 920 (8), HTC 8x (8)
1325
+ $this->version('Windows Phone OS', self::VERSION_TYPE_FLOAT) >= 7.5 ||
1326
 
1327
  // Tested on the Torch 9800 (6) and Style 9670 (6), BlackBerry® Torch 9810 (7), BlackBerry Z10 (10)
1328
+ $this->is('BlackBerry') && $this->version('BlackBerry', self::VERSION_TYPE_FLOAT) >= 6.0 ||
1329
  // Blackberry Playbook (1.0-2.0) - Tested on PlayBook
1330
  $this->match('Playbook.*Tablet') ||
1331
 
1332
  // Palm WebOS (1.4-3.0) - Tested on the Palm Pixi (1.4), Pre (1.4), Pre 2 (2.0), HP TouchPad (3.0)
1333
+ ( $this->version('webOS', self::VERSION_TYPE_FLOAT) >= 1.4 && $this->match('Palm|Pre|Pixi') ) ||
1334
  // Palm WebOS 3.0 - Tested on HP TouchPad
1335
  $this->match('hp.*TouchPad') ||
1336
 
1337
  // Firefox Mobile 18 - Tested on Android 2.3 and 4.1 devices
1338
+ ( $this->is('Firefox') && $this->version('Firefox', self::VERSION_TYPE_FLOAT) >= 18 ) ||
1339
 
1340
  // Chrome for Android - Tested on Android 4.0, 4.1 device
1341
+ ( $this->is('Chrome') && $this->is('AndroidOS') && $this->version('Android', self::VERSION_TYPE_FLOAT) >= 4.0 ) ||
1342
 
1343
  // Skyfire 4.1 - Tested on Android 2.3 device
1344
+ ( $this->is('Skyfire') && $this->version('Skyfire', self::VERSION_TYPE_FLOAT) >= 4.1 && $this->is('AndroidOS') && $this->version('Android', self::VERSION_TYPE_FLOAT) >= 2.3 ) ||
1345
 
1346
  // Opera Mobile 11.5-12: Tested on Android 2.3
1347
+ ( $this->is('Opera') && $this->version('Opera Mobi', self::VERSION_TYPE_FLOAT) >= 11.5 && $this->is('AndroidOS') ) ||
1348
 
1349
  // Meego 1.2 - Tested on Nokia 950 and N9
1350
  $this->is('MeeGoOS') ||
1354
 
1355
  // Samsung Bada 2.0 - Tested on a Samsung Wave 3, Dolphin browser
1356
  // @todo: more tests here!
1357
+ $this->is('Dolfin') && $this->version('Bada', self::VERSION_TYPE_FLOAT) >= 2.0 ||
1358
 
1359
  // UC Browser - Tested on Android 2.3 device
1360
+ ( ($this->is('UC Browser') || $this->is('Dolfin')) && $this->version('Android', self::VERSION_TYPE_FLOAT) >= 2.3 ) ||
1361
 
1362
  // Kindle 3 and Fire - Tested on the built-in WebKit browser for each
1363
  ( $this->match('Kindle Fire') ||
1364
+ $this->is('Kindle') && $this->version('Kindle', self::VERSION_TYPE_FLOAT) >= 3.0 ) ||
1365
 
1366
  // Nook Color 1.4.1 - Tested on original Nook Color, not Nook Tablet
1367
  $this->is('AndroidOS') && $this->is('NookTablet') ||
1368
 
1369
  // Chrome Desktop 16-24 - Tested on OS X 10.7 and Windows 7
1370
+ $this->version('Chrome', self::VERSION_TYPE_FLOAT) >= 16 && !$isMobile ||
1371
 
1372
  // Safari Desktop 5-6 - Tested on OS X 10.7 and Windows 7
1373
+ $this->version('Safari', self::VERSION_TYPE_FLOAT) >= 5.0 && !$isMobile ||
1374
 
1375
  // Firefox Desktop 10-18 - Tested on OS X 10.7 and Windows 7
1376
+ $this->version('Firefox', self::VERSION_TYPE_FLOAT) >= 10.0 && !$isMobile ||
1377
 
1378
  // Internet Explorer 7-9 - Tested on Windows XP, Vista and 7
1379
+ $this->version('IE', self::VERSION_TYPE_FLOAT) >= 7.0 && !$isMobile ||
1380
 
1381
  // Opera Desktop 10-12 - Tested on OS X 10.7 and Windows 7
1382
+ $this->version('Opera', self::VERSION_TYPE_FLOAT) >= 10 && !$isMobile
1383
  ){
1384
  return self::MOBILE_GRADE_A;
1385
  }
1386
 
1387
  if (
1388
+ $this->is('iOS') && $this->version('iPad', self::VERSION_TYPE_FLOAT)<4.3 ||
1389
+ $this->is('iOS') && $this->version('iPhone', self::VERSION_TYPE_FLOAT)<4.3 ||
1390
+ $this->is('iOS') && $this->version('iPod', self::VERSION_TYPE_FLOAT)<4.3 ||
1391
 
1392
  // Blackberry 5.0: Tested on the Storm 2 9550, Bold 9770
1393
+ $this->is('Blackberry') && $this->version('BlackBerry', self::VERSION_TYPE_FLOAT) >= 5 && $this->version('BlackBerry', self::VERSION_TYPE_FLOAT)<6 ||
1394
 
1395
  //Opera Mini (5.0-6.5) - Tested on iOS 3.2/4.3 and Android 2.3
1396
+ ($this->version('Opera Mini', self::VERSION_TYPE_FLOAT) >= 5.0 && $this->version('Opera Mini', self::VERSION_TYPE_FLOAT) <= 7.0 &&
1397
+ ($this->version('Android', self::VERSION_TYPE_FLOAT) >= 2.3 || $this->is('iOS')) ) ||
1398
 
1399
  // Nokia Symbian^3 - Tested on Nokia N8 (Symbian^3), C7 (Symbian^3), also works on N97 (Symbian^1)
1400
  $this->match('NokiaN8|NokiaC7|N97.*Series60|Symbian/3') ||
1401
 
1402
  // @todo: report this (tested on Nokia N71)
1403
+ $this->version('Opera Mobi', self::VERSION_TYPE_FLOAT) >= 11 && $this->is('SymbianOS')
1404
  ){
1405
  return self::MOBILE_GRADE_B;
1406
  }
1407
 
1408
  if (
1409
  // Blackberry 4.x - Tested on the Curve 8330
1410
+ $this->version('BlackBerry', self::VERSION_TYPE_FLOAT) <= 5.0 ||
1411
  // Windows Mobile - Tested on the HTC Leo (WinMo 5.2)
1412
+ $this->match('MSIEMobile|Windows CE.*Mobile') || $this->version('Windows Mobile', self::VERSION_TYPE_FLOAT) <= 5.2 ||
1413
 
1414
  // Tested on original iPhone (3.1), iPhone 3 (3.2)
1415
+ $this->is('iOS') && $this->version('iPad', self::VERSION_TYPE_FLOAT) <= 3.2 ||
1416
+ $this->is('iOS') && $this->version('iPhone', self::VERSION_TYPE_FLOAT) <= 3.2 ||
1417
+ $this->is('iOS') && $this->version('iPod', self::VERSION_TYPE_FLOAT) <= 3.2 ||
1418
 
1419
  // Internet Explorer 7 and older - Tested on Windows XP
1420
+ $this->version('IE', self::VERSION_TYPE_FLOAT) <= 7.0 && !$isMobile
1421
  ){
1422
  return self::MOBILE_GRADE_C;
1423
  }
1424
 
1425
+ // All older smartphone platforms and featurephones - Any device that doesn't support media queries
1426
+ // will receive the basic, C grade experience.
1427
  return self::MOBILE_GRADE_C;
1428
  }
1429
  }
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.9.6
7
  * Author: icegram
8
  * Author URI: http://www.icegram.com/
9
  *
@@ -35,7 +35,7 @@ class Icegram {
35
 
36
  function __construct() {
37
 
38
- $this->version = "1.9.6";
39
  $this->shortcode_instances = array();
40
  $this->mode = 'local';
41
  $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
@@ -77,6 +77,10 @@ class Icegram {
77
  add_action( 'init', array( &$this, 'register_campaign_post_type' ) );
78
  add_action( 'init', array( &$this, 'register_message_post_type' ) );
79
 
 
 
 
 
80
  if ( defined( 'DOING_AJAX' ) ) {
81
  if($this->cache_compatibility === 'yes'){
82
  add_action( 'wp_ajax_display_messages', array( &$this, 'display_messages' ) );
@@ -330,11 +334,15 @@ class Icegram {
330
  }
331
 
332
  public function icegram_event_track() {
 
 
 
 
 
 
333
 
334
  if( !empty( $_POST['event_data'] ) ) {
335
-
336
  foreach ( $_POST['event_data'] as $event ) {
337
-
338
  switch ($event['type']) {
339
  case 'shown':
340
  if (is_array($event['params']) && !empty($event['params']['message_id'])) {
@@ -552,7 +560,7 @@ class Icegram {
552
 
553
 
554
  $messages = $this->get_valid_messages( $message_ids, $campaign_ids, $preview_mode, $skip_others );
555
-
556
  if( empty( $messages ) ) {
557
  //wp_die(0);
558
  return;
@@ -622,7 +630,6 @@ class Icegram {
622
  'preview_id' => !empty( $_GET['campaign_preview_id'] ) ? $_GET['campaign_preview_id'] : '',
623
  'defaults' => $icegram_default
624
  ));
625
-
626
  if (empty($icegram_data['preview_id'])) {
627
  unset($icegram_data['preview_id']);
628
  }
@@ -678,23 +685,23 @@ class Icegram {
678
  // Process
679
  function process_message_body(&$message_data){
680
  $content = $message_data['message'];
 
681
  if(isset($GLOBALS['wp_embed'])) {
682
  $content = $GLOBALS['wp_embed']->autoembed($content);
683
  }
684
  $content = $this->after_wpautop( wpautop( $this->before_wpautop( $content ) ) );
685
  $content = do_shortcode( shortcode_unautop( $content ) );
686
-
687
- $content = convert_chars( convert_smilies( wptexturize( $content ) ) );
688
  $message_data['message'] = $content;
 
689
  //do_shortcode in headline
690
  $message_data['headline'] = do_shortcode( shortcode_unautop( $message_data['headline'] ) );
691
- //TODO :: Test short codes
692
  //shortcode support for Third party forms
693
  if(!empty($message_data['form_html_original'] )){
694
  $message_data['form_html'] = do_shortcode( shortcode_unautop( $message_data['form_html_original'] ) );
695
  }
696
  }
697
 
 
698
  function enqueue_admin_styles_and_scripts() {
699
 
700
  $screen = get_current_screen();
@@ -727,7 +734,16 @@ class Icegram {
727
  }
728
 
729
  }
 
 
 
 
 
730
 
 
 
 
 
731
  public static function get_platform() {
732
  $mobile_detect = new Ig_Mobile_Detect();
733
  $mobile_detect->setUserAgent();
@@ -1033,9 +1049,8 @@ class Icegram {
1033
  }
1034
 
1035
  function import( $data = array() ) {
1036
-
1037
  if ( empty( $data['campaigns'] ) && empty( $data['messages'] ) ) return;
1038
-
1039
  $default_theme = $default_type = '';
1040
  $first_message_type = current( $this->message_types );
1041
 
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.8.1
7
  * Author: icegram
8
  * Author URI: http://www.icegram.com/
9
  *
35
 
36
  function __construct() {
37
 
38
+ $this->version = "1.9.8.1";
39
  $this->shortcode_instances = array();
40
  $this->mode = 'local';
41
  $this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
77
  add_action( 'init', array( &$this, 'register_campaign_post_type' ) );
78
  add_action( 'init', array( &$this, 'register_message_post_type' ) );
79
 
80
+
81
+ // execute shortcode in sidebar
82
+ add_filter( 'widget_text', array(&$this , 'ig_widget_text_filter') );
83
+
84
  if ( defined( 'DOING_AJAX' ) ) {
85
  if($this->cache_compatibility === 'yes'){
86
  add_action( 'wp_ajax_display_messages', array( &$this, 'display_messages' ) );
334
  }
335
 
336
  public function icegram_event_track() {
337
+ if( !empty($_POST['ig_local_url_cs']) && isset($_SERVER['HTTP_ORIGIN']) ){
338
+ $parts = parse_url($_POST['ig_local_url_cs']);
339
+ $base_url = $parts["scheme"] . "://" . $parts["host"];
340
+ header('Access-Control-Allow-Origin: '.$base_url);
341
+ header('Access-Control-Allow-Credentials: true');
342
+ }
343
 
344
  if( !empty( $_POST['event_data'] ) ) {
 
345
  foreach ( $_POST['event_data'] as $event ) {
 
346
  switch ($event['type']) {
347
  case 'shown':
348
  if (is_array($event['params']) && !empty($event['params']['message_id'])) {
560
 
561
 
562
  $messages = $this->get_valid_messages( $message_ids, $campaign_ids, $preview_mode, $skip_others );
563
+
564
  if( empty( $messages ) ) {
565
  //wp_die(0);
566
  return;
630
  'preview_id' => !empty( $_GET['campaign_preview_id'] ) ? $_GET['campaign_preview_id'] : '',
631
  'defaults' => $icegram_default
632
  ));
 
633
  if (empty($icegram_data['preview_id'])) {
634
  unset($icegram_data['preview_id']);
635
  }
685
  // Process
686
  function process_message_body(&$message_data){
687
  $content = $message_data['message'];
688
+ $content = convert_chars(convert_smilies( wptexturize( $content )));
689
  if(isset($GLOBALS['wp_embed'])) {
690
  $content = $GLOBALS['wp_embed']->autoembed($content);
691
  }
692
  $content = $this->after_wpautop( wpautop( $this->before_wpautop( $content ) ) );
693
  $content = do_shortcode( shortcode_unautop( $content ) );
 
 
694
  $message_data['message'] = $content;
695
+
696
  //do_shortcode in headline
697
  $message_data['headline'] = do_shortcode( shortcode_unautop( $message_data['headline'] ) );
 
698
  //shortcode support for Third party forms
699
  if(!empty($message_data['form_html_original'] )){
700
  $message_data['form_html'] = do_shortcode( shortcode_unautop( $message_data['form_html_original'] ) );
701
  }
702
  }
703
 
704
+
705
  function enqueue_admin_styles_and_scripts() {
706
 
707
  $screen = get_current_screen();
734
  }
735
 
736
  }
737
+
738
+ //execute shortcode in text widget
739
+ function ig_widget_text_filter($content){
740
+ if ( ! preg_match( '/\[[\r\n\t ]*icegram?[\r\n\t ].*?\]/', $content ) )
741
+ return $content;
742
 
743
+ $content = do_shortcode( $content );
744
+
745
+ return $content;
746
+ }
747
  public static function get_platform() {
748
  $mobile_detect = new Ig_Mobile_Detect();
749
  $mobile_detect->setUserAgent();
1049
  }
1050
 
1051
  function import( $data = array() ) {
 
1052
  if ( empty( $data['campaigns'] ) && empty( $data['messages'] ) ) return;
1053
+
1054
  $default_theme = $default_type = '';
1055
  $first_message_type = current( $this->message_types );
1056
 
lang/icegram-it_IT.mo ADDED
Binary file
lang/icegram-it_IT.po ADDED
@@ -0,0 +1,1134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Icegram 1.1.1\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/icegram\n"
5
+ "POT-Creation-Date: 2015-09-24 12:56+0100\n"
6
+ "PO-Revision-Date: 2015-09-24 12:57+0100\n"
7
+ "Last-Translator: Alessandro Massasso <alessandro.massasso@drivek.it>\n"
8
+ "Language-Team: Icegram Team <hello@icegram.com>\n"
9
+ "Language: Italian\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
16
+ "__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
17
+ "_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
18
+ "esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
19
+ "esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
20
+ "X-Poedit-Basepath: .\n"
21
+ "X-Generator: Poedit 1.5.4\n"
22
+ "X-Loco-Target-Locale: it_IT\n"
23
+ "X-Poedit-SearchPath-0: ../.\n"
24
+
25
+ #: .././about-icegram.php:128
26
+ #: .././classes/class-icegram-campaign-admin.php:453
27
+ msgid "Name"
28
+ msgstr "Nome"
29
+
30
+ #: .././about-icegram.php:132
31
+ msgid "E-mail"
32
+ msgstr "Email"
33
+
34
+ #: .././about-icegram.php:136
35
+ msgid "Subject"
36
+ msgstr "Oggetto"
37
+
38
+ #: .././about-icegram.php:140 .././icegram.php:1015
39
+ #: .././classes/class-icegram-campaign-admin.php:47
40
+ #: .././classes/class-icegram-campaign-admin.php:64
41
+ msgid "Message"
42
+ msgstr "Messaggio"
43
+
44
+ #: .././about-icegram.php:167 .././icegram.php:417
45
+ msgid "Welcome to Icegram"
46
+ msgstr "Benvenuto in Icegram"
47
+
48
+ #: .././about-icegram.php:169
49
+ msgid ""
50
+ "Your sample campaign is ready. We've added a few messages for you to test."
51
+ msgstr ""
52
+ "La tua campagna di prova è pronta. Abbiamo aggiunto dei messaggi in modo che "
53
+ "tu possa testarne il funzionamento."
54
+
55
+ #: .././about-icegram.php:177
56
+ msgid "Edit & Publish it"
57
+ msgstr "Imposta e Pubblica"
58
+
59
+ #: .././about-icegram.php:178
60
+ msgid "OR"
61
+ msgstr "oppure"
62
+
63
+ #: .././about-icegram.php:179
64
+ msgid "Preview Campaign"
65
+ msgstr "Anteprima campagna"
66
+
67
+ #: .././about-icegram.php:184
68
+ #, php-format
69
+ msgid "Version: %s"
70
+ msgstr "Versione: %s"
71
+
72
+ #: .././about-icegram.php:187
73
+ msgid "Questions? Need Help?"
74
+ msgstr "Domande? Hai bisogno di aiuto?"
75
+
76
+ #: .././about-icegram.php:188 .././about-icegram.php:295
77
+ msgid "Contact Us"
78
+ msgstr "Contattaci"
79
+
80
+ #: .././about-icegram.php:198
81
+ msgid ""
82
+ "Do read Icegram's core concepts below to understand how you can use Icegram "
83
+ "to inspire, convert and engage your audience."
84
+ msgstr ""
85
+ "Leggi le principali funzionalità di Icegram riportate qui sotto per capire "
86
+ "in che modo puoi utilizzare Icegram per attirare, convertire e coinvolgere "
87
+ "il tuo pubblico."
88
+
89
+ #: .././about-icegram.php:203 .././icegram.php:1014 .././icegram.php:1020
90
+ #: .././icegram.php:1026
91
+ msgid "Messages"
92
+ msgstr "Messaggi"
93
+
94
+ #: .././about-icegram.php:204
95
+ msgid "A 'Message' is a communication you want to deliver to your audience."
96
+ msgstr ""
97
+ "Un \"Messaggio\" è una comunicazione che vuoi veicolare al tuo pubblico"
98
+
99
+ #: .././about-icegram.php:205
100
+ msgid "And Icegram comes with not one, but four message types."
101
+ msgstr "Icegram ha non uno, ma ben quattro tipologie di messaggi differenti."
102
+
103
+ #: .././about-icegram.php:206
104
+ msgid ""
105
+ "Different message types look and behave differently, but they all have many "
106
+ "common characteristics. For instance, most message types will allow you to "
107
+ "set a headline, a body text, label for the ‘call to action’ button, a link "
108
+ "for that button, theme and styling options, animation effect and position on "
109
+ "screen where that message should show."
110
+ msgstr ""
111
+ "Ogni tipo di messaggio, pur avendo un aspetto e un comportamento differente, "
112
+ "presenta delle caratteristiche comuni. Per esempio, la maggior parte dei "
113
+ "messaggi ti dà la possibilità di impostare una intestazione, un corpo di "
114
+ "testo, un'etichetta per il pulsante della \"call to action\", un link "
115
+ "associato al pulsante. Potrai anche decidere le opzioni per i temi, lo stile "
116
+ "dei messaggi, gli effetti animati e la posizione sullo schermo in cui "
117
+ "verranno mostrati i tuoi messaggi."
118
+
119
+ #: .././about-icegram.php:210
120
+ msgid "Action Bar"
121
+ msgstr "Action Bar"
122
+
123
+ #: .././about-icegram.php:212
124
+ msgid ""
125
+ "An action bar is a proven attention grabber. It shows up as a solid bar "
126
+ "either at top or bottom. Use it for your most important messages or time "
127
+ "sensitive announcements. Put longer content in it and it acts like a "
128
+ "collapsible panel!"
129
+ msgstr ""
130
+ "L' \"action bar\" ti permette di catturare l'interesse degli utenti. Viene "
131
+ "mostrata come una barra nella parte superiore o inferiore della schermata. "
132
+ "Usala per i tuoi messaggi importanti o per particolari annunci temporanei. "
133
+ "Se inserisci all'interno della bar un contenuto molto lungo, la barra si "
134
+ "espanderà fino a diventare un pannello a discesa. "
135
+
136
+ #: .././about-icegram.php:213
137
+ msgid "Messenger"
138
+ msgstr "Messenger"
139
+
140
+ #: .././about-icegram.php:215
141
+ msgid ""
142
+ "A messenger is best used to invoke interest while your visitor is reading "
143
+ "your content. Users perceive it as something new, important and urgent and "
144
+ "are highly likely to click on it."
145
+ msgstr ""
146
+ "\"Messenger\" è utilizzato soprattutto per catturare l'attenzione dei "
147
+ "visitatori mentre stanno leggendo un contenuto sul tuo sito web. Gli utenti "
148
+ "percepiranno questo messaggio come qualcosa di nuovo, importante e urgente e "
149
+ "saranno più propensi a cliccare su questo banner."
150
+
151
+ #: .././about-icegram.php:219
152
+ msgid "Toast Notification"
153
+ msgstr "Toast Notification"
154
+
155
+ #: .././about-icegram.php:221
156
+ msgid ""
157
+ "Want to alert your visitor about some news, an update from your blog, a "
158
+ "social proof or an offer? Use Icegram’s unique toast notification, it will "
159
+ "catch their attention, let them click on the message, and disappear after a "
160
+ "while."
161
+ msgstr ""
162
+ "Vuoi comunicare ai tuoi visitatori la presenza di novità, un aggiornamento "
163
+ "dal tuo blog o una nuova offerta? Usa le notifiche di Icegram! Ti "
164
+ "permetteranno di catturare la loro attenzione e fare in modo che clicchino "
165
+ "sul messaggio, che scomparirà dopo poco."
166
+
167
+ #: .././about-icegram.php:222
168
+ msgid "Popup"
169
+ msgstr "Popup"
170
+
171
+ #: .././about-icegram.php:224
172
+ msgid ""
173
+ "Lightbox popup windows are most widely used for lead capture, promotions and "
174
+ "additional content display. Ask visitors to sign up to your newsletter, or "
175
+ "like you on social networks, or tell them about a special offer..."
176
+ msgstr ""
177
+ "Le finestre popup sono ampiamente usate per mostrare promozioni, contenuti o "
178
+ "per generare contatti. Puoi chiedere ai tuoi visitatori di iscriversi alla "
179
+ "newsletter, mettere \"Mi piace\" sui tuoi profili social oppure puoi usare "
180
+ "il popup per comunicare una speciale offerta... "
181
+
182
+ #: .././about-icegram.php:234 .././icegram.php:977 .././icegram.php:983
183
+ msgid "Campaigns"
184
+ msgstr "Campagne"
185
+
186
+ #: .././about-icegram.php:235
187
+ msgid "Campaign = Messages + Rules"
188
+ msgstr "Campagna = Messaggi + Regole"
189
+
190
+ #: .././about-icegram.php:236
191
+ msgid ""
192
+ "A campaign allows sequencing multiple messages and defining targeting rules. "
193
+ "Create different campaigns for different marketing goals. Icegram supports "
194
+ "showing multiple campaigns on any page."
195
+ msgstr ""
196
+ "In una campagna puoi impostare sequenze di messaggi multipli e regole di "
197
+ "targeting definite. Crea differenti campagne per raggiungere specifici "
198
+ "obiettivi di marketing. Icegram ti aiuterà a mostrare campagne multiple in "
199
+ "qualunque pagina del tuo sito. "
200
+
201
+ #: .././about-icegram.php:237
202
+ msgid ""
203
+ "You can always preview your campaign to ensure campaign works the way you "
204
+ "want, before making it live."
205
+ msgstr ""
206
+ "Visualizza sempre l'anteprima della campagne per assicurarti che funzioni "
207
+ "nel modo desiderato prima di pubblicarla."
208
+
209
+ #: .././about-icegram.php:241
210
+ msgid "Multiple Messages & Sequencing"
211
+ msgstr "Messaggi multipli & in sequenza"
212
+
213
+ #: .././about-icegram.php:243
214
+ msgid ""
215
+ "Add one or as many messages to a campaign as you want. Also choose the "
216
+ "number of seconds after which each message should show up. Showing multiple "
217
+ "messages for same goal, but with slightly different content / presentation, "
218
+ "greatly improves conversions."
219
+ msgstr ""
220
+ "Aggiungi uno o tutti i messaggi che vuoi all'interno di una campagna. Scegli "
221
+ "dopo quanti secondi mostrare il messaggio. Mostrare messaggi multipli per "
222
+ "raggiungere lo stesso obiettivo (ma con piccole varianti di contenuto e "
223
+ "presentazione) ti permetterà di aumentare in modo significativo le "
224
+ "conversioni."
225
+
226
+ #: .././about-icegram.php:247 .././classes/class-icegram-campaign-admin.php:49
227
+ msgid "Targeting Rules"
228
+ msgstr "Regole per definire il tuo pubblico"
229
+
230
+ #: .././about-icegram.php:249
231
+ msgid ""
232
+ "You can control who sees a campaign – and on what device, which pages does "
233
+ "it show on, and what time period will it stay active for. You can run "
234
+ "different campaigns with different rules to maximize engagement."
235
+ msgstr ""
236
+ "Puoi monitorare chi vede una campagna - e da quale dispositivo, da quale "
237
+ "pagina ha visto l'ha vista e per quanto tempo è rimasta attiva. Puoi "
238
+ "attivare differenti campagne con regole diverse per massimizzare il "
239
+ "coinvolgimento"
240
+
241
+ #: .././about-icegram.php:259
242
+ msgid "FAQ / Common Problems"
243
+ msgstr "FAQ/Problemi ricorrenti"
244
+
245
+ #: .././about-icegram.php:261
246
+ msgid "Messages look broken / formatting is weird..."
247
+ msgstr "Il messaggio risulta rotto /la formattazione risulta strana"
248
+
249
+ #: .././about-icegram.php:262
250
+ msgid ""
251
+ "This is most likely due to CSS conflicts with current theme. We suggest "
252
+ "using simple formatting for messages. You can also write custom CSS in your "
253
+ "theme to fix any problems."
254
+ msgstr ""
255
+ "Potrebbe essere causato da un conflitto tra il CSS e il tema corrente. Ti "
256
+ "consigliamo ti usare una formattazione semplice per il tuo messaggio. In "
257
+ "alternativa, potrai scrivere un CSS personalizzato nel tema per risolvere il "
258
+ "problema."
259
+
260
+ #: .././about-icegram.php:264
261
+ msgid "Extra Line Breaks / Paragraphs in messages..."
262
+ msgstr "Interruzioni di riga / paragrafi nei messaggi"
263
+
264
+ #: .././about-icegram.php:265
265
+ msgid ""
266
+ "Go to HTML mode in content editor and pull your custom HTML code all "
267
+ "together in one line. Don't leave blank lines between two tags. That should "
268
+ "fix it."
269
+ msgstr ""
270
+ "Vai alla sezione HTML nell'editor dei contenuti e incolla il tuo codice HTML "
271
+ "personalizzato in un'unica riga. Non lasciare spazi bianchi tra un tag e "
272
+ "l'altro."
273
+
274
+ #: .././about-icegram.php:267
275
+ msgid "How do I add custom CSS for messages?"
276
+ msgstr "Come aggiungere un CSS personaizzato ai messaggi?"
277
+
278
+ #: .././about-icegram.php:268
279
+ msgid ""
280
+ "You can use custom CSS/JS inline in your message HTML. You can also use your "
281
+ "theme's custom JS / CSS feature to add your changes."
282
+ msgstr ""
283
+ "Puoi usare un CSS o JS inline personalizzato nei tuoi messaggi HTML. Potrai "
284
+ "anche utilizzare il JS/CSS del tuo tema per aggiungere le tue modifiche."
285
+
286
+ #: .././about-icegram.php:270
287
+ msgid "Optin Forms / Mailing service integration..."
288
+ msgstr "Form opt-in / Servizi mail integrati"
289
+
290
+ # ?
291
+ #: .././about-icegram.php:271
292
+ msgid ""
293
+ "You can embed any optin / subscription form to your Icegram messages using "
294
+ "'Embed Form' button above text editor. Paste in form HTML code and let "
295
+ "Icegram clean it up! You may even use a shortcode if you are using a WP "
296
+ "plugin from your newsletter / lead capture service."
297
+ msgstr ""
298
+ "Puoi incorporare qualsiasi opt-in/form di iscrizione nelle campagne di "
299
+ "Icegram usando il pulsante \"Incorpora form\" sopra all'editor di testo. "
300
+ "Incolla il codice HTML del form e lascia che Icegram lo ripulisca!\n"
301
+ "Puoi anche usare uno shortcode se utilizzi già un plugin WP per le tue "
302
+ "newsletter/attività di lead generation"
303
+
304
+ #: .././about-icegram.php:273
305
+ msgid "How many messages should I show on a page?"
306
+ msgstr "Quanti messaggi dovrei far mostrare in una pagina?"
307
+
308
+ #: .././about-icegram.php:274
309
+ msgid ""
310
+ "While Icegram provides you lots of different message types and ability to "
311
+ "add multiple messages to a campaign, we discourage you to go overboard. "
312
+ "We've observed two messages on a page work well, but YMMV!"
313
+ msgstr ""
314
+ "Sebbene Icegram offra diversi tipi di messaggi e la possibilità di inserire "
315
+ "sequenze multiple in una stessa campagna, ti consigliamo di NON esagerare. "
316
+ "Secondo la nostra esperienza, due messaggi in una pagina danno buoni "
317
+ "risultati, ma...lasciamo decidere a te!"
318
+
319
+ #: .././about-icegram.php:280
320
+ msgid "Preview does not work / not refreshing..."
321
+ msgstr "L'anteprima non funziona/non si ricarica"
322
+
323
+ #: .././about-icegram.php:281
324
+ msgid ""
325
+ "Doing a browser refresh while previewing will not show your most recent "
326
+ "changes. Click 'Preview' button to see a preview with your latest changes."
327
+ msgstr ""
328
+ "Se fai un refresh della pagina per visualizzare l'anteprima con le "
329
+ "modifiche, non potrai visualizzare i cambiamenti recenti che hai effettuato. "
330
+ "Clicca sul pulsante \"Anteprima\" per vedere l'anteprima del messaggio con i "
331
+ "cambiamenti che hai appena apportato. "
332
+
333
+ #: .././about-icegram.php:283
334
+ msgid "Can I use shortcodes in a message?"
335
+ msgstr "Posso usare degli shortcode in un messaggio?"
336
+
337
+ #: .././about-icegram.php:284
338
+ msgid ""
339
+ "Yes! Messages support shortcodes. You may need to adjust CSS so the "
340
+ "shortcode output looks good in your message."
341
+ msgstr ""
342
+ "Sì! I messaggi supportano gli shortcode. Potresti aver bisogni di agire sul "
343
+ "CSS per far sì che contenuti incorporati tramite lo shortcode mantengano una "
344
+ "buona resa all'interno del messaggio."
345
+
346
+ #: .././about-icegram.php:286
347
+ msgid "WPML / Multilingual usage..."
348
+ msgstr "WPML/Multilingua..."
349
+
350
+ #: .././about-icegram.php:287
351
+ msgid ""
352
+ "Go to <code>Messages</code> from Icegram menu. Edit a message and translate "
353
+ "it like any other post. Icegram will show translated message where possible. "
354
+ "Choose <code>All posts</code> under WPML Language setting - Blog Posts to "
355
+ "display, to fall back to default language messages."
356
+ msgstr ""
357
+ "Clicca su\n"
358
+ "<code>Messaggi</code> dal menu di Icegram. Imposta un messaggio e traducilo "
359
+ "come qualunque altro post. Icegram mostrerà i messaggi tradotti dove "
360
+ "possibile. Scegli \n"
361
+ "<code>Tutti i post</code> sotto a Impostazioni Lingua WPML - Mostra i Post "
362
+ "del blog, per ritornare al messaggio nella lingua originaria. "
363
+
364
+ #: .././about-icegram.php:291
365
+ msgid "I can't find a way to do X..."
366
+ msgstr "Non trovo un modo per fare X..."
367
+
368
+ #: .././about-icegram.php:292
369
+ msgid ""
370
+ "Icegram is actively developed. If you can't find your favorite feature (or "
371
+ "have a suggestion) contact us. We'd love to hear from you."
372
+ msgstr ""
373
+ "Icegram è in continuo sviluppo. Se non riesci a trovare qualche funzionalità "
374
+ "(o se hai dei suggerimenti) contattaci. Saremo lieti di ascoltare i tuoi "
375
+ "consigli. "
376
+
377
+ #: .././about-icegram.php:294
378
+ msgid "I'm facing a problem and can't find a way out..."
379
+ msgstr "Sto riscontrando un problema e non trovo una soluzione"
380
+
381
+ #: .././about-icegram.php:295
382
+ msgid ""
383
+ ", provide as much detail of the problem as you can. We will try to solve the "
384
+ "problem ASAP."
385
+ msgstr ""
386
+ ", ti preghiamo di comunicarci le problematiche che riscontri in maniera "
387
+ "dettagliata. Cercheremo di risolverle appena possibile."
388
+
389
+ #: .././icegram.php:157
390
+ msgid "Free Add-ons, Proven Marketing Tricks and Updates"
391
+ msgstr "Add-on gratuiti, trucchi di Marketing e aggiornamenti"
392
+
393
+ #: .././icegram.php:162
394
+ msgid "Get add-ons and tips..."
395
+ msgstr "Trova add-ons e suggerimenti"
396
+
397
+ #: .././icegram.php:253
398
+ msgid "Housekeeping"
399
+ msgstr "Rimuovi"
400
+
401
+ #: .././icegram.php:257
402
+ msgid "Remove all Icegram shortcodes"
403
+ msgstr "Rimuovi tutti gli shortcode Icegram"
404
+
405
+ #: .././icegram.php:262
406
+ msgid "Remove all Icegram campaigns and messages"
407
+ msgstr "Rimuovi tutte le campagne e i messaggi di Icegram"
408
+
409
+ #: .././icegram.php:266
410
+ msgid "Clean Up"
411
+ msgstr "Pulisci"
412
+
413
+ #: .././icegram.php:275
414
+ msgid ""
415
+ "You won't be able to recover this data once you proceed. Do you really want "
416
+ "to perform this action?"
417
+ msgstr ""
418
+ "Non potrai più recuperare questi dati una volta continuato. Vuoi davvero "
419
+ "proseguire?"
420
+
421
+ #: .././icegram.php:289
422
+ msgid "Done!"
423
+ msgstr "Fatto!"
424
+
425
+ #: .././icegram.php:418
426
+ msgid "Settings"
427
+ msgstr "Impostazioni "
428
+
429
+ #: .././icegram.php:419
430
+ msgid "Add-ons"
431
+ msgstr "Add-ons"
432
+
433
+ #: .././icegram.php:432
434
+ msgid "Docs & Support"
435
+ msgstr "Doc & Supporto"
436
+
437
+ #: .././icegram.php:621
438
+ msgid "Powered by Icegram"
439
+ msgstr "Powered by Icegram"
440
+
441
+ #: .././icegram.php:978
442
+ msgid "Campaign"
443
+ msgstr "Campagna"
444
+
445
+ #: .././icegram.php:979 .././icegram.php:980
446
+ msgid "Add New Campaign"
447
+ msgstr "Aggiungi nuova campagna"
448
+
449
+ #: .././icegram.php:981
450
+ msgid "Edit Campaign"
451
+ msgstr "Imposta la campagna"
452
+
453
+ #: .././icegram.php:982
454
+ msgid "New Campaign"
455
+ msgstr "Nuova campagna"
456
+
457
+ #: .././icegram.php:984
458
+ msgid "View Campaign"
459
+ msgstr "Guarda la campagna"
460
+
461
+ #: .././icegram.php:985
462
+ msgid "Search Campaigns"
463
+ msgstr "Ricerca una campagna"
464
+
465
+ #: .././icegram.php:986
466
+ msgid "No campaigns found"
467
+ msgstr "Nessuna campagna trovata"
468
+
469
+ #: .././icegram.php:987
470
+ msgid "No campaigns found in Trash"
471
+ msgstr "Non ci sono camapgne nel cestino"
472
+
473
+ #: .././icegram.php:989
474
+ msgid "Icegram"
475
+ msgstr "Icegram"
476
+
477
+ #: .././icegram.php:1016
478
+ msgid "Create New"
479
+ msgstr "Crea nuovo"
480
+
481
+ #: .././icegram.php:1017
482
+ msgid "Create New Message"
483
+ msgstr "Crea un nuovo messaggio"
484
+
485
+ #: .././icegram.php:1018 .././classes/class-icegram-campaign-admin.php:103
486
+ #: .././classes/class-icegram-campaign-admin.php:502
487
+ msgid "Edit Message"
488
+ msgstr "Imposta una messaggio"
489
+
490
+ #: .././icegram.php:1019
491
+ msgid "New Message"
492
+ msgstr "Nuovo mesaggio"
493
+
494
+ #: .././icegram.php:1021
495
+ msgid "View Message"
496
+ msgstr "Guarda i messaggi"
497
+
498
+ #: .././icegram.php:1022
499
+ msgid "Search Messages"
500
+ msgstr "Ricerca i messaggi"
501
+
502
+ #: .././icegram.php:1023
503
+ msgid "No messages found"
504
+ msgstr "Nessun messaggio trovato"
505
+
506
+ #: .././icegram.php:1024
507
+ msgid "No messages found in Trash"
508
+ msgstr "Nessun messaggio nel cestino"
509
+
510
+ #: .././icegram.php:1422
511
+ msgid "Copy"
512
+ msgstr "Copia"
513
+
514
+ #: .././settings.php:19
515
+ msgid "Icegram Settings"
516
+ msgstr "Impostazioni di Icegram"
517
+
518
+ #: .././settings.php:23
519
+ msgid "Share Icegram"
520
+ msgstr "Condividi Icegram"
521
+
522
+ #: .././settings.php:27
523
+ msgid "Show \"Powered by\" link"
524
+ msgstr "Mostra \"Powered by\" link"
525
+
526
+ #: .././settings.php:32
527
+ msgid "Cache Friendly?"
528
+ msgstr "Cache Friendly?"
529
+
530
+ #: .././settings.php:36
531
+ msgid ""
532
+ "Turn on \"Lazy Load\" - load Icegram scripts and messages after page load to "
533
+ "avoid caching problems."
534
+ msgstr ""
535
+ "Passa a \"Lazy Load\" - carica gli script e i messaggi di Icegram dopo aver "
536
+ "caricato la pagina per evitare problemi di cache."
537
+
538
+ #: .././addons.php:13
539
+ msgid "Icegram Add-ons"
540
+ msgstr "Add-ons Icegram"
541
+
542
+ #: .././addons.php:47
543
+ msgid "Sorry! No Add-ons available currently."
544
+ msgstr "Ci dispiace! Nessun add-on disponibile al momento."
545
+
546
+ #: .././classes/class-icegram-message-admin.php:41
547
+ msgid "Message Settings"
548
+ msgstr "Impostazioni messaggio"
549
+
550
+ #: .././classes/class-icegram-message-admin.php:113
551
+ #: .././classes/class-icegram-message-admin.php:520
552
+ #: .././classes/class-icegram-campaign-admin.php:452
553
+ msgid "Type"
554
+ msgstr "Tipologia"
555
+
556
+ #: .././classes/class-icegram-message-admin.php:129
557
+ #: .././classes/class-icegram-message-admin.php:521
558
+ msgid "Theme"
559
+ msgstr "Temi"
560
+
561
+ #: .././classes/class-icegram-message-admin.php:146
562
+ msgid "Animation"
563
+ msgstr "Animazioni"
564
+
565
+ #: .././classes/class-icegram-message-admin.php:161
566
+ msgid "Headline"
567
+ msgstr "Intestazione"
568
+
569
+ #: .././classes/class-icegram-message-admin.php:162
570
+ msgid ""
571
+ "Shown with highest prominence. Click on idea button on right to get a new "
572
+ "headline."
573
+ msgstr ""
574
+ "Viene mostrata quella più rilevante. Clicca il bottone dei suggerimenti "
575
+ "sulla destra per ottenere una nuova intestazione."
576
+
577
+ #: .././classes/class-icegram-message-admin.php:168
578
+ msgid "Give Me Another Headline"
579
+ msgstr "Dammi un'altra intestazione"
580
+
581
+ #: .././classes/class-icegram-message-admin.php:174
582
+ msgid "Icon / Avatar Image"
583
+ msgstr "Immagine di Icona/Avatar"
584
+
585
+ #: .././classes/class-icegram-message-admin.php:175
586
+ msgid "This image will appear in message content."
587
+ msgstr "Questa immagine apparirà nel contenuto dei messaggi."
588
+
589
+ #: .././classes/class-icegram-message-admin.php:178
590
+ msgid "Upload / Select an image"
591
+ msgstr "Carica/Seleziona un'immagine"
592
+
593
+ #: .././classes/class-icegram-message-admin.php:178
594
+ msgid "Upload / Select Image"
595
+ msgstr "Carica/Seleziona l'immagine"
596
+
597
+ #: .././classes/class-icegram-message-admin.php:194
598
+ msgid "Message Body"
599
+ msgstr "Corpo del messaggio"
600
+
601
+ #: .././classes/class-icegram-message-admin.php:225
602
+ msgid "Form"
603
+ msgstr "Form"
604
+
605
+ #: .././classes/class-icegram-message-admin.php:226
606
+ msgid "Use Opt-in / Subscription / Lead capture form"
607
+ msgstr "Usa opt-in/form di iscrizione/form di contatto"
608
+
609
+ #: .././classes/class-icegram-message-admin.php:251
610
+ #: .././classes/class-icegram-message-admin.php:253
611
+ msgid "Left"
612
+ msgstr "Sinistra"
613
+
614
+ #: .././classes/class-icegram-message-admin.php:258
615
+ #: .././classes/class-icegram-message-admin.php:260
616
+ msgid "Right"
617
+ msgstr "Destra"
618
+
619
+ #: .././classes/class-icegram-message-admin.php:265
620
+ #: .././classes/class-icegram-message-admin.php:267
621
+ msgid "Bottom"
622
+ msgstr "Pulsante"
623
+
624
+ #: .././classes/class-icegram-message-admin.php:282
625
+ #: .././classes/class-icegram-message-admin.php:284
626
+ msgid "Inline"
627
+ msgstr "Interno al testo"
628
+
629
+ #: .././classes/class-icegram-message-admin.php:296
630
+ msgid "Background Color"
631
+ msgstr "Colore di sfondo"
632
+
633
+ #: .././classes/class-icegram-message-admin.php:297
634
+ msgid "Text Color"
635
+ msgstr "Colore del testo"
636
+
637
+ #: .././classes/class-icegram-message-admin.php:308
638
+ msgid "Text / HTML to show before the form"
639
+ msgstr "Testo/HTML da mostrare prima del form"
640
+
641
+ #: .././classes/class-icegram-message-admin.php:312
642
+ msgid "Form Embed Code"
643
+ msgstr "Codice del form incorporato"
644
+
645
+ #: .././classes/class-icegram-message-admin.php:314
646
+ msgid "Paste HTML / shortcode of your form here..."
647
+ msgstr "Incolla HTML/shortcode del tuo form qui..."
648
+
649
+ # ?
650
+ #: .././classes/class-icegram-message-admin.php:318
651
+ msgid "Show labels above fields"
652
+ msgstr "Mostra le etichette sopra ai campi"
653
+
654
+ #: .././classes/class-icegram-message-admin.php:325
655
+ msgid "Text / HTML to show after the form"
656
+ msgstr "Testo/HTML da mostrare dopo il form"
657
+
658
+ #: .././classes/class-icegram-message-admin.php:329
659
+ msgid ""
660
+ "Insert <code>[ig_form]</code> where you want to show this form in message "
661
+ "body."
662
+ msgstr ""
663
+ "Inserisci <code>\n"
664
+ "[ig_form]\n"
665
+ "</code> dove vuoi che venga mostrato il form nel corpo del messaggio."
666
+
667
+ #: .././classes/class-icegram-message-admin.php:336
668
+ msgid "Button Label"
669
+ msgstr "Titolo del pulsante"
670
+
671
+ #: .././classes/class-icegram-message-admin.php:337
672
+ msgid "Your call to action text. Something unusual will increase conversions."
673
+ msgstr ""
674
+ "Inserisci il testo per la call to action. Usa un testo impattante per "
675
+ "aumentare le conversioni"
676
+
677
+ #: .././classes/class-icegram-message-admin.php:347
678
+ msgid "Target Link"
679
+ msgstr "URL della pagina di destinazione "
680
+
681
+ #: .././classes/class-icegram-message-admin.php:348
682
+ msgid "Enter destination URL here. Clicking will redirect to this link."
683
+ msgstr ""
684
+ "Inserisci qui l'URL di destinazione. Al clic, verrai reindirizzato a questo "
685
+ "link."
686
+
687
+ #: .././classes/class-icegram-message-admin.php:371
688
+ msgid "Body"
689
+ msgstr "Corpo"
690
+
691
+ #: .././classes/class-icegram-message-admin.php:372
692
+ #: .././classes/class-icegram-message-admin.php:378
693
+ msgid "Background"
694
+ msgstr "Sfondo"
695
+
696
+ #: .././classes/class-icegram-message-admin.php:373
697
+ #: .././classes/class-icegram-message-admin.php:379
698
+ msgid "Text"
699
+ msgstr "Testo"
700
+
701
+ #: .././classes/class-icegram-message-admin.php:377
702
+ msgid "Button"
703
+ msgstr "Pulsante"
704
+
705
+ #: .././classes/class-icegram-message-admin.php:384
706
+ msgid "Colors"
707
+ msgstr "Colori"
708
+
709
+ #: .././classes/class-icegram-message-admin.php:385
710
+ msgid "Use theme's default colors"
711
+ msgstr "Usa i colori di default del tema"
712
+
713
+ #: .././classes/class-icegram-message-admin.php:391
714
+ msgid "Position"
715
+ msgstr "Posizione"
716
+
717
+ #: .././classes/class-icegram-message-admin.php:450
718
+ #, php-format
719
+ msgid "You may add <code>[%s]</code> where you want to show this message."
720
+ msgstr ""
721
+ "In aggiunta, puoi inserire <code>[%s]</code> ovunque tu voglia attivare "
722
+ "questa campagna."
723
+
724
+ #: .././classes/class-icegram-message-admin.php:522
725
+ msgid "Thumbnail"
726
+ msgstr "Miniatura"
727
+
728
+ #: .././classes/class-icegram-message-admin.php:664
729
+ msgid "Here Is A Method That Is Helping ____ To ____"
730
+ msgstr "Ecco un metodo che aiuterà ____ a _____"
731
+
732
+ #: .././classes/class-icegram-message-admin.php:665
733
+ msgid "__ Little Known Ways To ____"
734
+ msgstr "___ piccoli modi per ______"
735
+
736
+ #: .././classes/class-icegram-message-admin.php:666
737
+ msgid "Get Rid Of ____ Once And For All"
738
+ msgstr "Liberati di ____ una volta per tutte!"
739
+
740
+ #: .././classes/class-icegram-message-admin.php:667
741
+ msgid "How To ____ So You Can ____"
742
+ msgstr "Come ____ per ___"
743
+
744
+ #: .././classes/class-icegram-message-admin.php:668
745
+ msgid "They Didn't Think I Could ____, But I Did"
746
+ msgstr "Non pensavano che io potessi_______, ma l'ho fatto"
747
+
748
+ #: .././classes/class-icegram-message-admin.php:669
749
+ msgid "How ____ Made Me ____"
750
+ msgstr "Come ____ mi farà diventare ______"
751
+
752
+ #: .././classes/class-icegram-message-admin.php:670
753
+ msgid "Are You ____ ?"
754
+ msgstr "Sei____?"
755
+
756
+ #: .././classes/class-icegram-message-admin.php:671
757
+ msgid "Warning: ____ !"
758
+ msgstr "Attenzione: ____!"
759
+
760
+ #: .././classes/class-icegram-message-admin.php:672
761
+ msgid "Do You Make These Mistakes With ____ ?"
762
+ msgstr "Ti capita di fare errori quando ___?"
763
+
764
+ #: .././classes/class-icegram-message-admin.php:673
765
+ msgid "7 Ways To ____"
766
+ msgstr "7 modi per ____"
767
+
768
+ #: .././classes/class-icegram-message-admin.php:674
769
+ msgid "If You're ____, You Can ____"
770
+ msgstr "Se sei ____, puoi____"
771
+
772
+ #: .././classes/class-icegram-message-admin.php:675
773
+ msgid "Turn your ____ into a ____"
774
+ msgstr "Rendi i tuoi _______"
775
+
776
+ #: .././classes/class-icegram-message-admin.php:676
777
+ msgid "Want To Be A ____?"
778
+ msgstr "Vuoi essere un ____?"
779
+
780
+ #: .././classes/class-icegram-message-admin.php:677
781
+ msgid "The Ugly Truth About Your Beautiful ____"
782
+ msgstr "La triste verità del tuo ____"
783
+
784
+ #: .././classes/class-icegram-message-admin.php:678
785
+ msgid "The Secret to ____ Is Simply ____!"
786
+ msgstr "Il segreto per ____ è semplicemente ___!"
787
+
788
+ #: .././classes/class-icegram-message-admin.php:679
789
+ msgid "The Quickest Way I Know To ____"
790
+ msgstr "Il modo più veloce che io conosca è ____"
791
+
792
+ # La traduzione letterale non rendeva in italiano. Creato un titolo diverso.
793
+ #: .././classes/class-icegram-message-admin.php:680
794
+ msgid "The Lazy Man's Way To ____"
795
+ msgstr "____modi davvero semplici per____"
796
+
797
+ # La traduzione in italiano non rende. Suggerimenti?
798
+ #: .././classes/class-icegram-message-admin.php:681
799
+ msgid ""
800
+ "The Amazing Story Of ____ That Requires So Little Of ____ You Could ____"
801
+ msgstr ""
802
+ "L'incredibile storia di _____ che ti permetterà di _______ con un piccolo "
803
+ "sforzo ______"
804
+
805
+ # La traduzione in italiano non rende. Suggerimenti?
806
+ #: .././classes/class-icegram-message-admin.php:682
807
+ msgid "The Amazing Secret Of The ____ Genius Who Is Afraid Of ____"
808
+ msgstr "L'incredibile storia di ______ che aveva paura di _______"
809
+
810
+ #: .././classes/class-icegram-message-admin.php:683
811
+ msgid "The 10 Wackiest Ideas That ____... And How You Can Too!"
812
+ msgstr "Le 10 idee più stravaganti che ___ Ed ecco come puoi farlo anche tu!"
813
+
814
+ # La traduzione in italiano non rende. Ho creato un altro titolo. Altri suggerimenti?
815
+ #: .././classes/class-icegram-message-admin.php:684
816
+ msgid "The Inside Secrets To ____ With Crazy, Outlandish And Outrageous ____"
817
+ msgstr "Ecco il nostro segreto per ________ in maniera innovativa _______"
818
+
819
+ #: .././classes/class-icegram-message-admin.php:685
820
+ msgid "____ Like A ____"
821
+ msgstr "____ come ____"
822
+
823
+ #: .././classes/class-icegram-message-admin.php:686
824
+ msgid "Remember When You Could Have ____, And You Didn't?"
825
+ msgstr "Ricordi quando avresti potuto ____ e non l'hai fatto?"
826
+
827
+ # La trsduzione letterale non rendeva in italiano. Creata nuova frase.
828
+ #: .././classes/class-icegram-message-admin.php:687
829
+ msgid "Is The ____ Worth $x To You?"
830
+ msgstr "Vuoi guadagnare con _____?"
831
+
832
+ #: .././classes/class-icegram-message-admin.php:688
833
+ msgid "Increase your ____, reduce ____, maintain ____ and ____ with ____"
834
+ msgstr "Aumenta _____, riduci _____, mantieni _____ e_____ con____"
835
+
836
+ #: .././classes/class-icegram-message-admin.php:689
837
+ msgid "If You Can ____ You Can ____"
838
+ msgstr "Se puoi _______ puoi______"
839
+
840
+ #: .././classes/class-icegram-message-admin.php:690
841
+ msgid "I Discovered How To ____... Now I'm Revealing My Secret"
842
+ msgstr "Ho scoperto come _____ Ora, voglio rivelarvi il mio segreto"
843
+
844
+ #: .././classes/class-icegram-message-admin.php:691
845
+ msgid "How To Turn Your ____ Into The Most ____"
846
+ msgstr "Come far sì che i tuoi __________ diventino i più_____________"
847
+
848
+ # La traduzione letterale non rendeva in italiano. Creata nuova frase.
849
+ #
850
+ #
851
+ #: .././classes/class-icegram-message-admin.php:692
852
+ msgid "How To Take The Headache Out Of ____"
853
+ msgstr "Come risolvere una volta per tutte _____"
854
+
855
+ #: .././classes/class-icegram-message-admin.php:693
856
+ msgid "How To ____ ... Legally"
857
+ msgstr "Come ____ legalmente"
858
+
859
+ #: .././classes/class-icegram-message-admin.php:694
860
+ msgid "How To ____ That ____"
861
+ msgstr "Come ____ per____"
862
+
863
+ #: .././classes/class-icegram-message-admin.php:695
864
+ msgid "How To Discover The ____ That Lies Hidden In Your ____"
865
+ msgstr "Come scoprire ______ che giacciono nel profondo del tuo_____"
866
+
867
+ #: .././classes/class-icegram-message-admin.php:696
868
+ msgid "How To ____ Even When Your Not ____"
869
+ msgstr "Come ____ anche quando non ____"
870
+
871
+ #: .././classes/class-icegram-message-admin.php:697
872
+ msgid "____ With No ____!"
873
+ msgstr "______senza _____!"
874
+
875
+ #: .././classes/class-icegram-message-admin.php:698
876
+ msgid "Greatest Goldmine of ____ Ever Jammed Into One Big ____"
877
+ msgstr "La più grande miniera di _____ in cui ti sei mai imbattuto _______"
878
+
879
+ #: .././classes/class-icegram-message-admin.php:699
880
+ msgid "Free ____ Tells How To Get Better ____"
881
+ msgstr "Questa _____ gratuita ti mostrerà come migliorare ______"
882
+
883
+ #: .././classes/class-icegram-message-admin.php:700
884
+ msgid ""
885
+ "FREE ____ Worth $____ for the first 100 People to take Advantage of this "
886
+ "Offer"
887
+ msgstr ""
888
+ "_____ gratuito del valore di _____ per le prime 100 persone che approfittano "
889
+ "di questa offerta"
890
+
891
+ #: .././classes/class-icegram-message-admin.php:701
892
+ msgid "Don't Try This With Any Other ____"
893
+ msgstr "Non provare ______con nessun altro _____"
894
+
895
+ #: .././classes/class-icegram-message-admin.php:702
896
+ msgid "Do You Honestly Want To ____?"
897
+ msgstr "Vuoi davvero ____?"
898
+
899
+ #: .././classes/class-icegram-message-admin.php:703
900
+ msgid "Discover The Magic ____ That Will Bring You ____ & ____!"
901
+ msgstr "Scopri la magia di ____ che ti porterà ____ &_____!"
902
+
903
+ #: .././classes/class-icegram-message-admin.php:704
904
+ msgid "____ Man Reveals A Short-Cut To ____"
905
+ msgstr "____ "
906
+
907
+ #: .././classes/class-icegram-message-admin.php:705
908
+ msgid "Confessions Of A ____"
909
+ msgstr "Le confessioni di un____"
910
+
911
+ #: .././classes/class-icegram-message-admin.php:706
912
+ msgid "Are You Ready To ____?"
913
+ msgstr "Sei pronto per ___?"
914
+
915
+ #: .././classes/class-icegram-message-admin.php:707
916
+ msgid "An Open Letter To Everyone Who ____ More Than ____ Per ____"
917
+ msgstr "Una lettera aperta a tutti quelli che ____ più di____"
918
+
919
+ #: .././classes/class-icegram-message-admin.php:708
920
+ msgid "An Amazing ____ You Can Carry In Your ____"
921
+ msgstr "Un fantastico ______ che puoi utilizzare nel tuo______"
922
+
923
+ #: .././classes/class-icegram-message-admin.php:709
924
+ msgid "21 Secret ____ that will ____... NOW!"
925
+ msgstr "21 segreti _______ che ti permetteranno di _____...ORA!"
926
+
927
+ #: .././classes/class-icegram-message-admin.php:716
928
+ #: .././classes/class-icegram-campaign-admin.php:661
929
+ msgid "Duplicate"
930
+ msgstr "Duplica"
931
+
932
+ #: .././classes/class-icegram-campaign-admin.php:56
933
+ msgid "Search to add / Create new&hellip;"
934
+ msgstr "Cerca per aggiungere/Creare nuovo..."
935
+
936
+ #: .././classes/class-icegram-campaign-admin.php:59
937
+ #: .././classes/class-icegram-campaign-admin.php:439
938
+ msgid "Create new"
939
+ msgstr "Crea nuovo"
940
+
941
+ #: .././classes/class-icegram-campaign-admin.php:62
942
+ msgid "Preview"
943
+ msgstr "Anteprima"
944
+
945
+ #: .././classes/class-icegram-campaign-admin.php:95
946
+ #: .././classes/class-icegram-campaign-admin.php:495
947
+ msgid "Give this message a name for your own reference"
948
+ msgstr ""
949
+ "Dai a questo messaggio un nome per identificarlo (questo nome NON verrà "
950
+ "visualizzato dagli utenti)"
951
+
952
+ #: .././classes/class-icegram-campaign-admin.php:100
953
+ #: .././classes/class-icegram-campaign-admin.php:499
954
+ msgid " sec"
955
+ msgstr "sec"
956
+
957
+ #: .././classes/class-icegram-campaign-admin.php:104
958
+ #: .././classes/class-icegram-campaign-admin.php:503
959
+ msgid "Remove from Campaign"
960
+ msgstr "Rimuovi dalla campagna"
961
+
962
+ #: .././classes/class-icegram-campaign-admin.php:122
963
+ msgid ""
964
+ "No messages yet. Use search / create bar above to add messages to this "
965
+ "campaign."
966
+ msgstr ""
967
+ "Nessun messaggio. Usa la barra cerca/crea per aggiungere messaggi a questa "
968
+ "campagna."
969
+
970
+ #: .././classes/class-icegram-campaign-admin.php:160
971
+ msgid "Where?"
972
+ msgstr "Dove?"
973
+
974
+ #: .././classes/class-icegram-campaign-admin.php:163
975
+ msgid "Sitewide"
976
+ msgstr "Tutte le pagine del sito"
977
+
978
+ #: .././classes/class-icegram-campaign-admin.php:165
979
+ #, php-format
980
+ msgid ""
981
+ "Additionally you can insert <code>[%s]</code> wherever you want to run this "
982
+ "campaign."
983
+ msgstr ""
984
+ "In aggiunta, puoi inserire <code>[%s]</code> ovunque tu voglia attivare "
985
+ "questa campagna."
986
+
987
+ #: .././classes/class-icegram-campaign-admin.php:172
988
+ msgid "Select pages to exclude&hellip;"
989
+ msgstr "Seleziona una pagina da escludere..."
990
+
991
+ #: .././classes/class-icegram-campaign-admin.php:187
992
+ msgid "Homepage"
993
+ msgstr "Homepage"
994
+
995
+ #: .././classes/class-icegram-campaign-admin.php:194
996
+ msgid "Selected pages"
997
+ msgstr "Pagine selezionate"
998
+
999
+ #: .././classes/class-icegram-campaign-admin.php:200
1000
+ msgid "Select a page&hellip;"
1001
+ msgstr "Seleziona una pagina..."
1002
+
1003
+ #: .././classes/class-icegram-campaign-admin.php:215
1004
+ msgid "Specific URLs on this site"
1005
+ msgstr "Specifiche URL del sito"
1006
+
1007
+ #: .././classes/class-icegram-campaign-admin.php:231
1008
+ msgid " Add another"
1009
+ msgstr "Aggiungi "
1010
+
1011
+ #: .././classes/class-icegram-campaign-admin.php:241
1012
+ msgid "When?"
1013
+ msgstr "Quando?"
1014
+
1015
+ #: .././classes/class-icegram-campaign-admin.php:244
1016
+ msgid "Always"
1017
+ msgstr "Sempre"
1018
+
1019
+ #: .././classes/class-icegram-campaign-admin.php:251
1020
+ msgid "Schedule"
1021
+ msgstr "Pianifica"
1022
+
1023
+ #: .././classes/class-icegram-campaign-admin.php:254
1024
+ msgid "From&hellip;"
1025
+ msgstr "Da..."
1026
+
1027
+ #: .././classes/class-icegram-campaign-admin.php:257
1028
+ msgid "To&hellip;"
1029
+ msgstr "A..."
1030
+
1031
+ #: .././classes/class-icegram-campaign-admin.php:265
1032
+ msgid "Device?"
1033
+ msgstr "Dispositivo?"
1034
+
1035
+ #: .././classes/class-icegram-campaign-admin.php:266
1036
+ msgid "Mobile / Smartphones"
1037
+ msgstr "Mobile/ Smartphones"
1038
+
1039
+ #: .././classes/class-icegram-campaign-admin.php:270
1040
+ msgid "Tablet"
1041
+ msgstr "Tablet"
1042
+
1043
+ #: .././classes/class-icegram-campaign-admin.php:274
1044
+ msgid "Desktop / Laptop"
1045
+ msgstr "Desktop/Laptop"
1046
+
1047
+ #: .././classes/class-icegram-campaign-admin.php:282
1048
+ msgid "Who?"
1049
+ msgstr "Chi?"
1050
+
1051
+ #: .././classes/class-icegram-campaign-admin.php:285
1052
+ msgid "All users"
1053
+ msgstr "Tutti gli utenti"
1054
+
1055
+ #: .././classes/class-icegram-campaign-admin.php:292
1056
+ msgid "Logged in users only"
1057
+ msgstr "Solo per utenti loggati"
1058
+
1059
+ #: .././classes/class-icegram-campaign-admin.php:311
1060
+ msgid "Select a user role&hellip;"
1061
+ msgstr "Seleziona un ruolo utente..."
1062
+
1063
+ #: .././classes/class-icegram-campaign-admin.php:327
1064
+ msgid "Not Logged in users"
1065
+ msgstr "Utenti non loggati"
1066
+
1067
+ #: .././classes/class-icegram-campaign-admin.php:331
1068
+ #: .././classes/class-icegram-campaign-admin.php:341
1069
+ msgid "Current Session"
1070
+ msgstr "Sessione corrente"
1071
+
1072
+ #: .././classes/class-icegram-campaign-admin.php:332
1073
+ #: .././classes/class-icegram-campaign-admin.php:340
1074
+ msgid "Never"
1075
+ msgstr "Mai"
1076
+
1077
+ #: .././classes/class-icegram-campaign-admin.php:333
1078
+ #: .././classes/class-icegram-campaign-admin.php:342
1079
+ msgid "Today"
1080
+ msgstr "Oggi"
1081
+
1082
+ #: .././classes/class-icegram-campaign-admin.php:334
1083
+ #: .././classes/class-icegram-campaign-admin.php:343
1084
+ msgid "One week"
1085
+ msgstr "Una settimana"
1086
+
1087
+ #: .././classes/class-icegram-campaign-admin.php:335
1088
+ #: .././classes/class-icegram-campaign-admin.php:344
1089
+ msgid "Two weeks"
1090
+ msgstr "Due settimane"
1091
+
1092
+ #: .././classes/class-icegram-campaign-admin.php:336
1093
+ #: .././classes/class-icegram-campaign-admin.php:345
1094
+ msgid "One Month "
1095
+ msgstr "Un mese"
1096
+
1097
+ #: .././classes/class-icegram-campaign-admin.php:337
1098
+ #: .././classes/class-icegram-campaign-admin.php:346
1099
+ msgid "Three Months "
1100
+ msgstr "Tre mesi"
1101
+
1102
+ #: .././classes/class-icegram-campaign-admin.php:338
1103
+ #: .././classes/class-icegram-campaign-admin.php:347
1104
+ msgid "One year"
1105
+ msgstr "Un anno"
1106
+
1107
+ #: .././classes/class-icegram-campaign-admin.php:339
1108
+ #: .././classes/class-icegram-campaign-admin.php:348
1109
+ msgid "Two Years"
1110
+ msgstr "Due anni"
1111
+
1112
+ #: .././classes/class-icegram-campaign-admin.php:353
1113
+ msgid "Retargeting"
1114
+ msgstr "Retargeting"
1115
+
1116
+ #: .././classes/class-icegram-campaign-admin.php:356
1117
+ msgid "Once shown, do NOT show this campaign again for"
1118
+ msgstr "Una volta mostrata, NON mostrare ancora la campagna per"
1119
+
1120
+ #: .././classes/class-icegram-campaign-admin.php:371
1121
+ msgid "Once CTA is clicked, do NOT show this campaign again for"
1122
+ msgstr "Una volta cliccata la CTA, NON mostrare ancora questa campagna per"
1123
+
1124
+ #: .././classes/class-icegram-campaign-admin.php:435
1125
+ msgid "- - - - - - - - - - - - - - - - - - - - - - - - - -"
1126
+ msgstr "- - - - - - - - - - - - - - - - - - - - - - - - - -"
1127
+
1128
+ #: .././classes/class-icegram-campaign-admin.php:454
1129
+ msgid "Show after"
1130
+ msgstr "Mostra in seguito"
1131
+
1132
+ #: .././classes/class-icegram-campaign-admin.php:455
1133
+ msgid "Actions"
1134
+ msgstr "Azioni"
message-types/action-bar/default.css CHANGED
@@ -1 +1 @@
1
- .ig_action_bar div{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ig_action_bar.ig_container{z-index:9999999;position:fixed;width:100%;padding:0;margin:0;display:none;left:0;line-height:1.5}.ig_action_bar.ig_container.ig_top{top:0}.ig_action_bar.ig_container.ig_bottom{position:fixed;bottom:0}.ig_action_bar.ig_hide.ig_bottom{-ms-transform:translateY(100%);-webkit-transform:translateY(100%);transform:translateY(100%)}.ig_action_bar.ig_hide.ig_top{-ms-transform:translateY(-100%);-webkit-transform:translateY(-100%);transform:translateY(-100%)}.ig_action_bar .ig_content{float:left;text-align:center;width:100%;padding:0;padding-right:2.5em}.ig_action_bar .ig_data{text-align:center;padding:.3em 1em .3em .7em;display:inline-block;line-height:1.5;vertical-align:middle;margin:0}.ig_action_bar.ig_has_pwby .ig_data{padding-left:2.5em}.ig_action_bar .ig_headline{display:inline-block;font-size:1em;line-height:1.25;font-weight:bold;padding:0}.ig_action_bar .ig_message{display:inline-block;font-size:.85em;line-height:1.2;padding:0;padding-top:.2em}.ig_action_bar .ig_button,.ig_action_bar input[type="submit"],.ig_action_bar input[type="button"]{border:none;color:#FFF;cursor:pointer;display:inline-block;font-size:1em;font-weight:700;letter-spacing:.05em;vertical-align:middle;text-align:center;padding:.3em 1.5em;margin:0.5em 0 .5em 0;float:none;background-image:none}.ig_action_bar .ig_button:hover,.ig_action_bar input[type="submit"]:hover,.ig_action_bar input[type="button"]:hover{}.ig_action_bar .ig_button:active,.ig_action_bar input[type="submit"]:active,.ig_action_bar input[type="button"]:active{}.ig_action_bar .ig_powered_by{vertical-align:top;opacity:.5;display:inline-block;float:left;z-index:22;position:absolute;margin-top:0}.ig_action_bar .ig_powered_by img{width:1.5em;margin:.3em 0 0 .5em}.ig_action_bar .ig_close{z-index:1000000;cursor:pointer;position:absolute;right:0;width:36px;height:36px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ig_action_bar .ig_close > span{background-image:url(../../assets/images/arrows-sprite_one.png);background-position:center center;background-repeat:no-repeat;padding:0;height:100%;width:100%;opacity:.7;display:block}.ig_action_bar .ig_close:hover > span{opacity:1}.ig_action_bar.ig_show .ig_close{background-color:transparent!important}.ig_action_bar.ig_hide .ig_close{position:fixed;border:none;-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.ig_action_bar.ig_hide.ig_top .ig_close{top:100%}.ig_action_bar.ig_show.ig_bottom .ig_close{-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.ig_action_bar.ig_hide.ig_bottom .ig_close{bottom:100%;-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}@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){.ig_action_bar .ig_content{padding-right:0}.ig_action_bar .ig_data{max-width:100%!important;width:100%;padding-right:2.5em}.ig_action_bar .ig_button,.ig_action_bar input[type="submit"],.ig_action_bar input[type="button"]{max-width:100%;margin:0.3em 0}.ig_action_bar.ig_show .ig_close{top:initial}}@media only screen and (max-device-width:319px){}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_action_bar{font-size:14px}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_action_bar{font-size:17px}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_action_bar{font-size:19px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:portrait){.ig_action_bar{font-size:19px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape){}@media only screen and (min-width:768px) and (max-device-width:992px){.ig_action_bar{font-size:18px}}.ig_action_bar .ig_form_container{width:20%;float:left}.ig_action_bar.ig_form_left .ig_content,.ig_action_bar.ig_form_right .ig_content,.ig_action_bar.ig_form_bottom .ig_content,.ig_action_bar.ig_form_inline .ig_content{padding:0}.ig_action_bar.ig_form_left .ig_data,.ig_action_bar.ig_form_right .ig_data{width:79%;max-width:79%!important;float:left}.ig_action_bar.ig_form_left.ig_has_pwby .ig_data{width:79%;max-width:79%!important;padding-left:1em}.ig_action_bar.ig_form_bottom .ig_data{float:left}.ig_action_bar.ig_form_bottom .ig_data,.ig_action_bar.ig_form_inline .ig_data{max-width:100%!important;width:100%;padding-right:2.5em}.ig_action_bar.ig_form_right .ig_form_container.layout_right{float:right;padding-right:2.5em}.ig_action_bar.ig_form_left.ig_has_pwby .ig_form_container.layout_left{padding-left:2.5em}.ig_action_bar.ig_form_bottom .ig_form_container.layout_bottom{padding-right:2.5em}.ig_action_bar.ig_form_bottom.ig_has_pwby .ig_form_container.layout_bottom{padding-left:2.5em}.ig_action_bar.ig_form_inline .ig_form_container.layout_inline{padding-right:0}.ig_action_bar.ig_form_inline .ig_form_container.layout_inline .ig_form_header,.ig_action_bar.ig_form_bottom .ig_form_container.layout_bottom .ig_form_header,.ig_action_bar.ig_form_inline .ig_form_container.layout_inline .ig_form_footer,.ig_action_bar.ig_form_bottom .ig_form_container.layout_bottom .ig_form_footer,.ig_action_bar.ig_form_bottom .ig_form_container.layout_bottom .ig_embed_form_container,.ig_action_bar.ig_form_inline .ig_form_container.layout_inline .ig_embed_form_container{text-align:center}.ig_action_bar.ig_form_left.ig_form_style_4 .ig_data{padding-left:2em}.ig_action_bar.ig_form_right.ig_form_style_4 .ig_data{padding-right:2em}.ig_action_bar.ig_form_bottom.ig_form_style_4 .ig_form_container.layout_bottom{padding-top:0;padding-bottom:0;margin-top:1em}.ig_action_bar.ig_form_style_4.ig_hide .ig_form_container:before{display:none}@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){.ig_action_bar.ig_form_left .ig_form_container.layout_left,.ig_action_bar.ig_form_right .ig_form_container.layout_right{display:none}.ig_action_bar.ig_form_left .ig_form_container.layout_bottom,.ig_action_bar.ig_form_right .ig_form_container.layout_bottom,.ig_action_bar.ig_form_bottom .ig_form_container.layout_bottom{display:block;width:100%;padding:.7em 1em;height:auto!important}.ig_action_bar.ig_form_left .ig_data,.ig_action_bar.ig_form_bottom .ig_data,.ig_action_bar.ig_form_right .ig_data{width:100%;max-width:100%!important;padding-right:2.3em}.ig_action_bar.ig_form_right.ig_has_pwby .ig_data,.ig_action_bar.ig_form_left.ig_has_pwby .ig_data{padding-left:2.3em}.ig_action_bar .ig_form_container .ig_embed_form_container{width:80%;margin:0 auto}.ig_action_bar.ig_form_inline .ig_form_container .ig_embed_form_container,.ig_action_bar .ig_form_container .ig_embed_form_container.ig_half{width:100%}.ig_action_bar .ig_form_container.layout_bottom .ig_full .ig_form_els,.ig_action_bar .ig_form_container.layout_inline .ig_full .ig_form_els,.ig_action_bar .ig_form_container.layout_bottom .ig_half .ig_form_els,.ig_action_bar .ig_form_container.layout_inline .ig_half .ig_form_els,.ig_action_bar .ig_form_container.layout_bottom .ig_third .ig_form_els,.ig_action_bar .ig_form_container.layout_inline .ig_third .ig_form_els,.ig_action_bar .ig_form_container.layout_bottom .ig_quater .ig_form_els,.ig_action_bar .ig_form_container.layout_inline .ig_quater .ig_form_els{width:99%;display:inline-block;float:left;margin:.25em auto}.ig_action_bar .ig_form_container.layout_bottom .ig_half .ig_form_els,.ig_action_bar .ig_form_container.layout_inline .ig_half .ig_form_els{width:49%}.ig_action_bar .ig_form_container.layout_bottom .ig_full .ig_button_label,.ig_action_bar .ig_form_container.layout_inline .ig_full .ig_button_label,.ig_action_bar .ig_form_container.layout_bottom .ig_half .ig_button_label,.ig_action_bar .ig_form_container.layout_inline .ig_half .ig_button_label,.ig_action_bar .ig_form_container.layout_bottom .ig_third .ig_button_label,.ig_action_bar .ig_form_container.layout_inline .ig_third .ig_button_label,.ig_action_bar .ig_form_container.layout_bottom .ig_quater .ig_button_label,.ig_action_bar .ig_form_container.layout_inline .ig_quater .ig_button_label{display:none}.ig_action_bar .ig_form_container.layout_bottom .ig_half .ig_button_label,.ig_action_bar .ig_form_container.layout_inline .ig_half .ig_button_label{display:block;visibility:hidden;opacity:0}.ig_action_bar .ig_form_container.layout_inline .ig_button,.ig_action_bar .ig_form_container.layout_inline input[type="submit"],.ig_action_bar .ig_form_container.layout_inline input[type="button"],.ig_action_bar .ig_form_container.layout_bottom .ig_button,.ig_action_bar .ig_form_container.layout_bottom input[type="submit"],.ig_action_bar .ig_form_container.layout_bottom input[type="button"]{margin:0 auto}.ig_action_bar.ig_form_left.ig_form_style_1 .ig_form_container.layout_bottom:before,.ig_action_bar.ig_form_right.ig_form_style_1 .ig_form_container.layout_bottom:before{width:100%;border-top-width:.2em}.ig_action_bar.ig_form_bottom.ig_form_style_1 .ig_form_container.layout_bottom:before{border-top-width:.2em}.ig_action_bar.ig_form_style_2 .ig_form_container .ig_form_els{margin-right:0;margin-left:0}.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_first input,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_first input,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last input,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_last input,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els input,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els input{-webkit-border-radius:2em;-moz-border-radius:2em;border-radius:2em;padding-left:1em;height:2.25em;line-height:2.2em}.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els input.ig_button,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els input.ig_button{padding:inherit}.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_first label,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_first label,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_last label,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last label,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els label,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els label{padding-left:1em}.ig_action_bar.ig_form_style_2 .ig_form_container .ig_half .ig_form_els.ig_form_els_first input{-webkit-border-radius:2em 0 0 2em;-moz-border-radius:2em 0 0 2em;border-radius:2em 0 0 2em;padding-left:1em;border-right-width:0}.ig_action_bar.ig_form_style_2 .ig_form_container .ig_half .ig_form_els.ig_form_els_first label{padding-left:1em}.ig_action_bar.ig_form_style_2 .ig_form_container .ig_half .ig_form_els.ig_form_els_last input{-webkit-border-radius:0 2em 2em 0;-moz-border-radius:0 2em 2em 0;border-radius:0 2em 2em 0;border-left-width:0}.ig_action_bar.ig_form_style_2 .ig_form_container .ig_half .ig_form_els .ig_button,.ig_action_bar.ig_form_style_2 .ig_form_container .ig_half .ig_form_els input{width:100%}.ig_action_bar.ig_form_left.ig_form_style_4 .ig_data{padding-left:1em}.ig_action_bar.ig_form_right.ig_form_style_4 .ig_data{padding-right:2.5em}.ig_action_bar.ig_form_left.ig_form_style_4 .ig_form_container,.ig_action_bar.ig_form_right.ig_form_style_4 .ig_form_container{margin-top:1em}.ig_action_bar.ig_form_left.ig_form_style_4 .ig_form_container,.ig_action_bar.ig_form_right.ig_form_style_4 .ig_form_container,.ig_action_bar.ig_form_bottom.ig_form_style_4 .ig_form_container{padding-top:0;padding-bottom:0}}
1
+ #ig_body_pushdown{display:none;position:relative;height:0;visibility:hidden;width:100%}.ig_action_bar,.ig_action_bar div{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ig_action_bar.ig_container{z-index:9999999;position:fixed;width:100%;padding:0;margin:0;display:none;left:0;line-height:1.5}.ig_action_bar.ig_container.ig_top{top:0}.ig_action_bar.ig_container.ig_bottom{position:fixed;bottom:0}.ig_action_bar.ig_hide.ig_bottom{-ms-transform:translateY(100%);-webkit-transform:translateY(100%);transform:translateY(100%)}.ig_action_bar.ig_hide.ig_top{-ms-transform:translateY(-100%);-webkit-transform:translateY(-100%);transform:translateY(-100%)}.ig_action_bar .ig_content{float:left;text-align:center;width:100%;padding:0;padding-right:2.5em}.ig_action_bar .ig_data{text-align:center;padding:.3em 1em .3em .7em;display:inline-block;line-height:1.5;vertical-align:middle;margin:0}.ig_action_bar.ig_has_pwby .ig_data{padding-left:2.5em}.ig_action_bar .ig_headline{display:inline-block;font-size:1em;line-height:1.25;font-weight:bold;padding:0}.ig_action_bar .ig_message{display:inline-block;font-size:.85em;line-height:1.2;padding:0;padding-top:.2em}.ig_action_bar .ig_button,.ig_action_bar input[type="submit"],.ig_action_bar input[type="button"]{border:none;color:#FFF;cursor:pointer;display:inline-block;font-size:1em;font-weight:700;letter-spacing:.05em;vertical-align:middle;text-align:center;padding:.3em 1.5em;margin:0.5em 0 .5em 0;float:none;background-image:none}.ig_action_bar .ig_button:hover,.ig_action_bar input[type="submit"]:hover,.ig_action_bar input[type="button"]:hover{}.ig_action_bar .ig_button:active,.ig_action_bar input[type="submit"]:active,.ig_action_bar input[type="button"]:active{}.ig_action_bar .ig_powered_by{vertical-align:top;opacity:.5;display:inline-block;float:left;z-index:22;position:absolute;margin-top:0}.ig_action_bar .ig_powered_by img{width:1.5em;margin:.3em 0 0 .5em}.ig_action_bar .ig_close{z-index:1000000;cursor:pointer;position:absolute;right:0;width:36px;height:36px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ig_action_bar .ig_close > span{background-image:url(../../assets/images/sprite_1.png);background-repeat:no-repeat;width:30px;height:100%;opacity:.7;display:inline-block}.ig_action_bar .ig_close:hover > span{opacity:1}.ig_action_bar.ig_show .ig_close{background-color:transparent!important}.ig_action_bar.ig_hide .ig_close{position:fixed;border:none;right:.2em}.ig_action_bar.ig_hide.ig_top .ig_close{top:100%}.ig_action_bar.ig_hide.ig_bottom .ig_close{bottom:100%}.ig_action_bar.ig_show.ig_top .ig_close > span,.ig_action_bar.ig_hide.ig_bottom .ig_close > span{background-position:-80px center}.ig_action_bar.ig_hide.ig_top .ig_close > span,.ig_action_bar.ig_show.ig_bottom .ig_close > span{background-position:-120px center}@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){.ig_action_bar .ig_content{padding-right:0}.ig_action_bar .ig_data{max-width:100%!important;width:100%;padding-right:2.5em}.ig_action_bar .ig_button,.ig_action_bar input[type="submit"],.ig_action_bar input[type="button"]{max-width:100%;margin:0.3em 0}.ig_action_bar.ig_show .ig_close{top:initial}}@media only screen and (max-device-width:319px){}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_action_bar{font-size:14px}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_action_bar{font-size:17px}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_action_bar{font-size:19px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:portrait){.ig_action_bar{font-size:19px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape){}@media only screen and (min-width:768px) and (max-device-width:992px){.ig_action_bar{font-size:18px}}.ig_action_bar .ig_form_container{width:20%;float:left}.ig_action_bar.ig_form_left .ig_content,.ig_action_bar.ig_form_right .ig_content,.ig_action_bar.ig_form_bottom .ig_content,.ig_action_bar.ig_form_inline .ig_content{padding:0}.ig_action_bar.ig_form_left .ig_data,.ig_action_bar.ig_form_right .ig_data{width:79%;max-width:79%!important;float:left}.ig_action_bar.ig_form_left.ig_has_pwby .ig_data{width:79%;max-width:79%!important;padding-left:1em}.ig_action_bar.ig_form_bottom .ig_data{float:left}.ig_action_bar.ig_form_bottom .ig_data,.ig_action_bar.ig_form_inline .ig_data{max-width:100%!important;width:100%;padding-right:2.5em}.ig_action_bar.ig_form_right .ig_form_container.layout_right{float:right;padding-right:2.5em}.ig_action_bar.ig_form_left.ig_has_pwby .ig_form_container.layout_left{padding-left:2.5em}.ig_action_bar.ig_form_bottom .ig_form_container.layout_bottom{padding-right:2.5em}.ig_action_bar.ig_form_bottom.ig_has_pwby .ig_form_container.layout_bottom{padding-left:2.5em}.ig_action_bar.ig_form_inline .ig_form_container.layout_inline{padding-right:0}.ig_action_bar.ig_form_inline .ig_form_container.layout_inline .ig_form_header,.ig_action_bar.ig_form_bottom .ig_form_container.layout_bottom .ig_form_header,.ig_action_bar.ig_form_inline .ig_form_container.layout_inline .ig_form_footer,.ig_action_bar.ig_form_bottom .ig_form_container.layout_bottom .ig_form_footer,.ig_action_bar.ig_form_bottom .ig_form_container.layout_bottom .ig_embed_form_container,.ig_action_bar.ig_form_inline .ig_form_container.layout_inline .ig_embed_form_container{text-align:center}.ig_action_bar.ig_form_left.ig_form_style_4 .ig_data{padding-left:2em}.ig_action_bar.ig_form_right.ig_form_style_4 .ig_data{padding-right:2em}.ig_action_bar.ig_form_bottom.ig_form_style_4 .ig_form_container.layout_bottom{padding-top:0;padding-bottom:0;margin-top:1em}.ig_action_bar.ig_form_style_4.ig_hide .ig_form_container:before{display:none}@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){.ig_action_bar.ig_form_left .ig_form_container.layout_left,.ig_action_bar.ig_form_right .ig_form_container.layout_right{display:none}.ig_action_bar.ig_form_left .ig_form_container.layout_bottom,.ig_action_bar.ig_form_right .ig_form_container.layout_bottom,.ig_action_bar.ig_form_bottom .ig_form_container.layout_bottom{display:block;width:100%;padding:.7em 1em;height:auto!important}.ig_action_bar.ig_form_left .ig_data,.ig_action_bar.ig_form_bottom .ig_data,.ig_action_bar.ig_form_right .ig_data{width:100%;max-width:100%!important;padding-right:2.3em}.ig_action_bar.ig_form_right.ig_has_pwby .ig_data,.ig_action_bar.ig_form_left.ig_has_pwby .ig_data{padding-left:2.3em}.ig_action_bar .ig_form_container .ig_embed_form_container{width:80%;margin:0 auto}.ig_action_bar.ig_form_inline .ig_form_container .ig_embed_form_container,.ig_action_bar .ig_form_container .ig_embed_form_container.ig_half{width:100%}.ig_action_bar .ig_form_container.layout_bottom .ig_full .ig_form_els,.ig_action_bar .ig_form_container.layout_inline .ig_full .ig_form_els,.ig_action_bar .ig_form_container.layout_bottom .ig_half .ig_form_els,.ig_action_bar .ig_form_container.layout_inline .ig_half .ig_form_els,.ig_action_bar .ig_form_container.layout_bottom .ig_third .ig_form_els,.ig_action_bar .ig_form_container.layout_inline .ig_third .ig_form_els,.ig_action_bar .ig_form_container.layout_bottom .ig_quater .ig_form_els,.ig_action_bar .ig_form_container.layout_inline .ig_quater .ig_form_els{width:99%;display:inline-block;float:left;margin:.25em auto}.ig_action_bar .ig_form_container.layout_bottom .ig_half .ig_form_els,.ig_action_bar .ig_form_container.layout_inline .ig_half .ig_form_els{width:49%}.ig_action_bar .ig_form_container.layout_bottom .ig_full .ig_button_label,.ig_action_bar .ig_form_container.layout_inline .ig_full .ig_button_label,.ig_action_bar .ig_form_container.layout_bottom .ig_half .ig_button_label,.ig_action_bar .ig_form_container.layout_inline .ig_half .ig_button_label,.ig_action_bar .ig_form_container.layout_bottom .ig_third .ig_button_label,.ig_action_bar .ig_form_container.layout_inline .ig_third .ig_button_label,.ig_action_bar .ig_form_container.layout_bottom .ig_quater .ig_button_label,.ig_action_bar .ig_form_container.layout_inline .ig_quater .ig_button_label{display:none}.ig_action_bar .ig_form_container.layout_bottom .ig_half .ig_button_label,.ig_action_bar .ig_form_container.layout_inline .ig_half .ig_button_label{display:block;visibility:hidden;opacity:0}.ig_action_bar .ig_form_container.layout_inline .ig_button,.ig_action_bar .ig_form_container.layout_inline input[type="submit"],.ig_action_bar .ig_form_container.layout_inline input[type="button"],.ig_action_bar .ig_form_container.layout_bottom .ig_button,.ig_action_bar .ig_form_container.layout_bottom input[type="submit"],.ig_action_bar .ig_form_container.layout_bottom input[type="button"]{margin:0 auto}.ig_action_bar.ig_form_left.ig_form_style_1 .ig_form_container.layout_bottom:before,.ig_action_bar.ig_form_right.ig_form_style_1 .ig_form_container.layout_bottom:before{width:100%;border-top-width:.2em}.ig_action_bar.ig_form_bottom.ig_form_style_1 .ig_form_container.layout_bottom:before{border-top-width:.2em}.ig_action_bar.ig_form_style_2 .ig_form_container .ig_form_els{margin-right:0;margin-left:0}.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_first input,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_first input,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last input,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_last input,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els input,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els input{-webkit-border-radius:2em;-moz-border-radius:2em;border-radius:2em;padding-left:1em;height:2.25em;line-height:2.2em}.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els input.ig_button,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els input.ig_button{padding:inherit}.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_first label,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_first label,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_last label,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last label,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els label,.ig_action_bar.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els label{padding-left:1em}.ig_action_bar.ig_form_style_2 .ig_form_container .ig_half .ig_form_els.ig_form_els_first input{-webkit-border-radius:2em 0 0 2em;-moz-border-radius:2em 0 0 2em;border-radius:2em 0 0 2em;padding-left:1em;border-right-width:0}.ig_action_bar.ig_form_style_2 .ig_form_container .ig_half .ig_form_els.ig_form_els_first label{padding-left:1em}.ig_action_bar.ig_form_style_2 .ig_form_container .ig_half .ig_form_els.ig_form_els_last input{-webkit-border-radius:0 2em 2em 0;-moz-border-radius:0 2em 2em 0;border-radius:0 2em 2em 0;border-left-width:0}.ig_action_bar.ig_form_style_2 .ig_form_container .ig_half .ig_form_els .ig_button,.ig_action_bar.ig_form_style_2 .ig_form_container .ig_half .ig_form_els input{width:100%}.ig_action_bar.ig_form_left.ig_form_style_4 .ig_data{padding-left:1em}.ig_action_bar.ig_form_right.ig_form_style_4 .ig_data{padding-right:2.5em}.ig_action_bar.ig_form_left.ig_form_style_4 .ig_form_container,.ig_action_bar.ig_form_right.ig_form_style_4 .ig_form_container{margin-top:1em}.ig_action_bar.ig_form_left.ig_form_style_4 .ig_form_container,.ig_action_bar.ig_form_right.ig_form_style_4 .ig_form_container,.ig_action_bar.ig_form_bottom.ig_form_style_4 .ig_form_container{padding-top:0;padding-bottom:0}}
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}} ig_no_hide" id="icegram_message_{{=id}}"><div class="ig_content ig_clear_fix"><div class="ig_close" id="ig_close_{{=id}}"><span></span></div><div class="ig_form_container layout_left"></div><div class="ig_data ig_clear_fix"><div class="ig_headline">{{=headline}}</div><div class="ig_message">{{=message}}</div></div><div class="ig_button">{{=label}}</div><div class="ig_form_container layout_right layout_bottom"></div></div></div></div>'},Icegram_Message_Type_Action_Bar.prototype.post_render=function(){(void 0==this.data.use_theme_defaults||"yes"!=this.data.use_theme_defaults)&&void 0!=this.data.bg_color&&""!=this.data.bg_color&&this.el.find(".ig_close").css("background-color",this.data.bg_color)},Icegram_Message_Type_Action_Bar.prototype.set_position=function(){switch(this.data.position){case"21":this.el.addClass("ig_bottom");break;case"01":default:this.el.addClass("ig_top")}},Icegram_Message_Type_Action_Bar.prototype.add_powered_by=function(e){this.el.addClass("ig_has_pwby").find(".ig_content").before('<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.on_click=function(e){return e.data=e.data||{self:this},jQuery(e.target).filter(".ig_show .ig_close, .ig_show span").length?void e.data.self.hide():jQuery(e.target).filter(".ig_hide .ig_close, .ig_hide span").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}} ig_no_hide" id="icegram_message_{{=id}}"><div class="ig_content ig_clear_fix"><div class="ig_close" id="ig_close_{{=id}}"><span></span></div><div class="ig_form_container layout_left"></div><div class="ig_data ig_clear_fix"><div class="ig_headline">{{=headline}}</div><div class="ig_message">{{=message}}</div></div><div class="ig_button">{{=label}}</div><div class="ig_form_container layout_right layout_bottom"></div></div></div></div>'},Icegram_Message_Type_Action_Bar.prototype.post_render=function(){(void 0==this.data.use_theme_defaults||"yes"!=this.data.use_theme_defaults)&&void 0!=this.data.bg_color&&""!=this.data.bg_color&&this.el.find(".ig_close").css("background-color",this.data.bg_color),"21"!==this.data.position&&0==jQuery("#ig_body_pushdown").length&&jQuery("body").prepend('<div id="ig_body_pushdown"></div>')},Icegram_Message_Type_Action_Bar.prototype.set_position=function(){switch(this.data.position){case"21":this.el.addClass("ig_bottom");break;case"01":default:this.el.addClass("ig_top")}},Icegram_Message_Type_Action_Bar.prototype.add_powered_by=function(e){this.el.addClass("ig_has_pwby").find(".ig_content").before('<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.on_click=function(e){return e.data=e.data||{self:this},jQuery(e.target).filter(".ig_show .ig_close, .ig_show span").length?void e.data.self.hide():jQuery(e.target).filter(".ig_hide .ig_close, .ig_hide span").length?void e.data.self.show():void Icegram_Message_Type.prototype.on_click.apply(this,arguments)},Icegram_Message_Type_Action_Bar.prototype.post_show=function(){if("21"!==this.data.position){var e=this.el.outerHeight()||0;jQuery("#ig_body_pushdown").css("display","block").animate({height:e},500),jQuery("*",document.body).not(".ig_action_bar, .ig_popup, .ig_messenger, .ig_inline, .ig_overlay, .ig_sidebar, .ig_tab, .ig_interstitial ,#ig_body_pushdown ").each(function(){var i=window.getComputedStyle(this,null);("fixed"===i.position||"absolute"===i.position&&("BODY"===this.parentNode.nodeName||"HEADER"===this.nodeName))&&!isNaN(parseInt(i.top,10))&&this.getBoundingClientRect().top<=e&&jQuery(this).data("ig_fx_top",i.top).animate({top:parseInt(i.top,10)+e+"px"},300)})}},Icegram_Message_Type_Action_Bar.prototype.pre_hide=function(){"21"!==this.data.position&&(jQuery("#ig_body_pushdown").animate({height:0},300).css("display","none"),jQuery("*",document.body).not(".ig_action_bar, .ig_popup, .ig_messenger, .ig_inline, .ig_overlay, .ig_sidebar, .ig_tab, .ig_interstitial ,#ig_body_pushdown ").each(function(){"undefined"!=typeof jQuery(this).data("ig_fx_top")&&jQuery(this).animate({top:jQuery(this).data("ig_fx_top")},200)}))};
message-types/action-bar/themes/air-mail.css CHANGED
@@ -1 +1 @@
1
- .ig_action_bar.ig_air-mail.ig_container{background-color:#F2F2F2;border-style:solid;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;-webkit-border-image:-webkit-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8;-o-border-image:-o-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8;border-image:repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8}.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_data{max-width:75%;float:left;text-align:left}.ig_action_bar.ig_air-mail .ig_headline,.ig_action_bar.ig_air-mail .ig_message{display:block}.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"]{float:right;background:#E74D3C;text-transform:uppercase;font-family:"Open Sans",sans-serif;font-weight:600;-moz-border-radius:.3em;-webkit-border-radius:.3em;border-radius:.3em;border-bottom:3px solid #BF3A2B}.ig_action_bar.ig_air-mail .ig_close{top:0}.ig_action_bar.ig_air-mail.ig_bottom .ig_close{transform:rotate(0deg);-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg)}.ig_action_bar.ig_air-mail .ig_close > span{background-image:url(../../../assets/images/close_01.png);opacity:.4}.ig_action_bar.ig_air-mail .ig_close:hover > span{opacity:.8}.ig_action_bar.ig_air-mail.ig_hide .ig_close{display:none}.ig_action_bar.ig_form_inline.ig_air-mail .ig_form_container.layout_inline .ig_form_header,.ig_action_bar.ig_form_bottom.ig_air-mail .ig_form_container.layout_bottom .ig_form_header,.ig_action_bar.ig_form_inline.ig_air-mail .ig_form_container.layout_inline .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_air-mail .ig_form_container.layout_bottom .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_air-mail .ig_form_container.layout_bottom .ig_embed_form_container,.ig_action_bar.ig_form_inline.ig_air-mail .ig_form_container.layout_inline .ig_embed_form_container{text-align:left}@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){.ig_action_bar.ig_air-mail.ig_form_left .ig_data,.ig_action_bar.ig_air-mail.ig_form_right .ig_data,.ig_action_bar.ig_air-mail.ig_form_bottom .ig_data{width:100%;max-width:100%!important}.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"]{float:left;margin:0.3em 0 0.3em .7em}.ig_action_bar.ig_air-mail.ig_has_pwby .ig_button,.ig_action_bar.ig_air-mail.ig_has_pwby input[type="submit"],.ig_action_bar.ig_air-mail.ig_has_pwby input[type="button"]{margin-left:2.5em}.ig_action_bar.ig_air-mail.ig_has_pwby .ig_form_container .ig_button{margin:0}}
1
+ .ig_action_bar.ig_air-mail.ig_container{background-color:#F2F2F2;border-style:solid;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;-webkit-border-image:-webkit-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8;-o-border-image:-o-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8;border-image:repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8}.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_data{max-width:75%;float:left;text-align:left}.ig_action_bar.ig_air-mail .ig_headline,.ig_action_bar.ig_air-mail .ig_message{display:block}.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"]{float:right;background:#E74D3C;text-transform:uppercase;font-family:"Open Sans",sans-serif;font-weight:600;-moz-border-radius:.3em;-webkit-border-radius:.3em;border-radius:.3em;border-bottom:3px solid #BF3A2B}.ig_action_bar.ig_air-mail .ig_close{top:0}.ig_action_bar.ig_air-mail.ig_show .ig_close > span{background-position:-520px center;opacity:.4}.ig_action_bar.ig_air-mail .ig_close:hover > span{opacity:.8}.ig_action_bar.ig_air-mail.ig_hide .ig_close{display:none}.ig_action_bar.ig_form_inline.ig_air-mail .ig_form_container.layout_inline .ig_form_header,.ig_action_bar.ig_form_bottom.ig_air-mail .ig_form_container.layout_bottom .ig_form_header,.ig_action_bar.ig_form_inline.ig_air-mail .ig_form_container.layout_inline .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_air-mail .ig_form_container.layout_bottom .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_air-mail .ig_form_container.layout_bottom .ig_embed_form_container,.ig_action_bar.ig_form_inline.ig_air-mail .ig_form_container.layout_inline .ig_embed_form_container{text-align:left}@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){.ig_action_bar.ig_air-mail.ig_form_left .ig_data,.ig_action_bar.ig_air-mail.ig_form_right .ig_data,.ig_action_bar.ig_air-mail.ig_form_bottom .ig_data{width:100%;max-width:100%!important}.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"]{float:left;margin:0.3em 0 0.3em .7em}.ig_action_bar.ig_air-mail.ig_has_pwby .ig_button,.ig_action_bar.ig_air-mail.ig_has_pwby input[type="submit"],.ig_action_bar.ig_air-mail.ig_has_pwby input[type="button"]{margin-left:2.5em}.ig_action_bar.ig_air-mail.ig_has_pwby .ig_form_container .ig_button{margin:0}}
message-types/action-bar/themes/bold.css CHANGED
@@ -1 +1 @@
1
- .ig_action_bar.ig_bold.ig_container{background-color:#BC0933;color:#FFF;border-bottom:solid .2em #F3EEEE;-moz-box-shadow:0 0 .6em 0 rgba(0,0,0,.4);-webkit-box-shadow:0 0 .6em 0 rgba(0,0,0,.4);box-shadow:0 0 .6em 0 rgba(0,0,0,.4)}.ig_action_bar.ig_bold.ig_container.ig_bottom{border-bottom:none;border-top:solid .2em #F3EEEE}.ig_action_bar.ig_bold .ig_data{max-width:75%;float:left;text-align:left}.ig_action_bar.ig_bold .ig_headline,.ig_action_bar.ig_bold .ig_message{display:block}.ig_action_bar.ig_bold .ig_button,.ig_action_bar.ig_bold input[type="submit"],.ig_action_bar.ig_bold input[type="button"]{float:right;background:#00BB58;-moz-border-radius:.2em;-webkit-border-radius:.2em;border-radius:.2em;-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);text-shadow:0 0 1px rgba(0,0,0,0.1)}.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_hide .ig_close{border:.2em solid #FFF;background-color:#BC0933;border-bottom-width:0;-moz-box-shadow:0 0 .3em rgba(0,0,0,0.35);-webkit-box-shadow:0 0 .3em rgba(0,0,0,0.35);box-shadow:0 0 .3em rgba(0,0,0,0.35);-moz-border-radius:.3em .3em 0 0;-webkit-border-radius:.3em .3em 0 0;border-radius:.3em .3em 0 0}.ig_action_bar.ig_bold.ig_hide.ig_top .ig_close{margin-top:.15em}.ig_action_bar.ig_bold.ig_hide.ig_bottom .ig_close{margin-bottom:.15em}.ig_action_bar.ig_form_inline.ig_bold .ig_form_container.layout_inline .ig_form_header,.ig_action_bar.ig_form_bottom.ig_bold .ig_form_container.layout_bottom .ig_form_header,.ig_action_bar.ig_form_inline.ig_bold .ig_form_container.layout_inline .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_bold .ig_form_container.layout_bottom .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_bold .ig_form_container.layout_bottom .ig_embed_form_container,.ig_action_bar.ig_form_inline.ig_bold .ig_form_container.layout_inline .ig_embed_form_container{text-align:left}@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){.ig_action_bar.ig_bold.ig_form_left .ig_data,.ig_action_bar.ig_bold.ig_form_right .ig_data,.ig_action_bar.ig_bold.ig_form_bottom .ig_data{width:100%;max-width:100%!important}.ig_action_bar.ig_bold .ig_button,.ig_action_bar.ig_bold input[type="submit"],.ig_action_bar.ig_bold input[type="button"]{float:left;margin:0.3em 0 0.3em .7em}.ig_action_bar.ig_bold.ig_has_pwby .ig_button,.ig_action_bar.ig_bold.ig_has_pwby input[type="submit"],.ig_action_bar.ig_bold.ig_has_pwby input[type="button"]{margin-left:2.5em}.ig_action_bar.ig_bold.ig_has_pwby .ig_form_container .ig_button{margin:0}}
1
+ .ig_action_bar.ig_bold.ig_container{background-color:#BC0933;color:#FFF;border-bottom:solid .2em #F3EEEE;-moz-box-shadow:0 0 .6em 0 rgba(0,0,0,.4);-webkit-box-shadow:0 0 .6em 0 rgba(0,0,0,.4);box-shadow:0 0 .6em 0 rgba(0,0,0,.4)}.ig_action_bar.ig_bold.ig_container.ig_bottom{border-bottom:none;border-top:solid .2em #F3EEEE}.ig_action_bar.ig_bold .ig_data{max-width:75%;float:left;text-align:left}.ig_action_bar.ig_bold .ig_headline,.ig_action_bar.ig_bold .ig_message{display:block}.ig_action_bar.ig_bold .ig_button,.ig_action_bar.ig_bold input[type="submit"],.ig_action_bar.ig_bold input[type="button"]{float:right;background:#00BB58;-moz-border-radius:.2em;-webkit-border-radius:.2em;border-radius:.2em;-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);text-shadow:0 0 1px rgba(0,0,0,0.1)}.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_hide .ig_close{background-color:#BC0933;border:.2em solid #FFF;border-bottom-width:0;-moz-box-shadow:0 0 .3em rgba(0,0,0,0.35);-webkit-box-shadow:0 0 .3em rgba(0,0,0,0.35);box-shadow:0 0 .3em rgba(0,0,0,0.35);-moz-border-radius:.3em .3em 0 0;-webkit-border-radius:.3em .3em 0 0;border-radius:.3em .3em 0 0}.ig_action_bar.ig_bold.ig_hide.ig_top .ig_close{margin-top:.15em;border-bottom-width:.2em;border-top-width:0;-moz-border-radius:0 0 .3em .3em;-webkit-border-radius:0 0 .3em .3em;border-radius:0 0 .3em .3em}.ig_action_bar.ig_bold.ig_hide.ig_bottom .ig_close{margin-bottom:.15em}.ig_action_bar.ig_form_inline.ig_bold .ig_form_container.layout_inline .ig_form_header,.ig_action_bar.ig_form_bottom.ig_bold .ig_form_container.layout_bottom .ig_form_header,.ig_action_bar.ig_form_inline.ig_bold .ig_form_container.layout_inline .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_bold .ig_form_container.layout_bottom .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_bold .ig_form_container.layout_bottom .ig_embed_form_container,.ig_action_bar.ig_form_inline.ig_bold .ig_form_container.layout_inline .ig_embed_form_container{text-align:left}@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){.ig_action_bar.ig_bold.ig_form_left .ig_data,.ig_action_bar.ig_bold.ig_form_right .ig_data,.ig_action_bar.ig_bold.ig_form_bottom .ig_data{width:100%;max-width:100%!important}.ig_action_bar.ig_bold .ig_button,.ig_action_bar.ig_bold input[type="submit"],.ig_action_bar.ig_bold input[type="button"]{float:left;margin:0.3em 0 0.3em .7em}.ig_action_bar.ig_bold.ig_has_pwby .ig_button,.ig_action_bar.ig_bold.ig_has_pwby input[type="submit"],.ig_action_bar.ig_bold.ig_has_pwby input[type="button"]{margin-left:2.5em}.ig_action_bar.ig_bold.ig_has_pwby .ig_form_container .ig_button{margin:0}}
message-types/action-bar/themes/hello.css CHANGED
@@ -1 +1 @@
1
- .ig_action_bar.ig_hello.ig_container{background-color:#EB5B31;color:#FFF;line-height:1.5}.ig_action_bar.ig_hello.ig_container{border-bottom:.2em solid #fff;-moz-box-shadow:0 0 .6em 0 rgba(0,0,0,.4);-webkit-box-shadow:0 0 .6em 0 rgba(0,0,0,.4);box-shadow:0 0 .6em 0 rgba(0,0,0,.4)}.ig_action_bar.ig_hello.ig_container.ig_bottom{border-bottom:none;border-top:.2em solid #fff}.ig_action_bar.ig_hello .ig_headline{font-weight:bold;margin-right:.5em}.ig_action_bar.ig_hello .ig_message{margin-right:.5em}.ig_action_bar.ig_hello .ig_button,.ig_action_bar.ig_hello input[type="submit"],.ig_action_bar.ig_hello input[type="button"]{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);font-weight:400;-moz-border-radius:.25em;-webkit-border-radius:.25em;border-radius:.25em;float:none;padding:.2em 1.3em}.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_hide .ig_close{background-color:#EB5B31;border:.2em solid #FFF;border-bottom-width:0;-moz-border-radius:.3em .3em 0 0;-webkit-border-radius:.3em .3em 0 0;border-radius:.3em .3em 0 0;-moz-box-shadow:0 0 .3em rgba(0,0,0,0.35);-webkit-box-shadow:0 0 .3em rgba(0,0,0,0.35);box-shadow:0 0 .3em rgba(0,0,0,0.35)}.ig_action_bar.ig_hello.ig_hide.ig_top .ig_close{margin-top:.15em}.ig_action_bar.ig_hello.ig_hide.ig_bottom .ig_close{margin-bottom:.15em}.ig_action_bar.ig_form_inline.ig_hello .ig_form_container.layout_inline{padding:.2em}.ig_action_bar.ig_form_inline.ig_hello .ig_headline{vertical-align:middle;margin-right:.5em}.ig_action_bar.ig_form_inline.ig_hello .ig_message{vertical-align:middle}@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){.ig_action_bar.ig_hello.ig_form_left .ig_data,.ig_action_bar.ig_hello.ig_form_right .ig_data,.ig_action_bar.ig_hello.ig_form_bottom .ig_data{width:100%;max-width:100%!important}}
1
+ .ig_action_bar.ig_hello.ig_container{background-color:#EB5B31;color:#FFF;line-height:1.5}.ig_action_bar.ig_hello.ig_container{border-bottom:.2em solid #fff;-moz-box-shadow:0 0 .6em 0 rgba(0,0,0,.4);-webkit-box-shadow:0 0 .6em 0 rgba(0,0,0,.4);box-shadow:0 0 .6em 0 rgba(0,0,0,.4)}.ig_action_bar.ig_hello.ig_container.ig_bottom{border-bottom:none;border-top:.2em solid #fff}.ig_action_bar.ig_hello .ig_headline{font-weight:bold;margin-right:.5em}.ig_action_bar.ig_hello .ig_message{margin-right:.5em}.ig_action_bar.ig_hello .ig_button,.ig_action_bar.ig_hello input[type="submit"],.ig_action_bar.ig_hello input[type="button"]{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);font-weight:400;-moz-border-radius:.25em;-webkit-border-radius:.25em;border-radius:.25em;float:none;padding:.2em 1.3em}.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_hide .ig_close{background-color:#EB5B31;border:.2em solid #FFF;border-bottom-width:0;-moz-border-radius:.3em .3em 0 0;-webkit-border-radius:.3em .3em 0 0;border-radius:.3em .3em 0 0;-moz-box-shadow:0 0 .3em rgba(0,0,0,0.35);-webkit-box-shadow:0 0 .3em rgba(0,0,0,0.35);box-shadow:0 0 .3em rgba(0,0,0,0.35)}.ig_action_bar.ig_hello.ig_hide.ig_top .ig_close{margin-top:.15em;border-bottom-width:.2em;border-top-width:0;-moz-border-radius:0 0 .3em .3em;-webkit-border-radius:0 0 .3em .3em;border-radius:0 0 .3em .3em}.ig_action_bar.ig_hello.ig_hide.ig_bottom .ig_close{margin-bottom:.15em}.ig_action_bar.ig_form_inline.ig_hello .ig_form_container.layout_inline{padding:.2em}.ig_action_bar.ig_form_inline.ig_hello .ig_headline{vertical-align:middle;margin-right:.5em}.ig_action_bar.ig_form_inline.ig_hello .ig_message{vertical-align:middle}@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){.ig_action_bar.ig_hello.ig_form_left .ig_data,.ig_action_bar.ig_hello.ig_form_right .ig_data,.ig_action_bar.ig_hello.ig_form_bottom .ig_data{width:100%;max-width:100%!important}}
message-types/messenger/default.css CHANGED
@@ -1 +1 @@
1
- .ig_messenger.ig_container{display:none;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:99%;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.ig_form_els_first input,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last input,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els input{padding-left:1em;border-width:2px;-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.ig_form_els_first label,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last label,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els label{padding-left:1em}
1
+ .ig_messenger.ig_container{display:none;position:fixed;cursor:pointer;background-color:transparent!important;z-index:100000;margin:0;padding:0;font-family:"Lucida Grande",Arial,sans-serif;font-size:16px;overflow:hidden;text-align:left;bottom:0.2em}.ig_messenger.ig_container,.ig_messenger.ig_container div{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.ig_messenger.ig_container.ig_left{left:0.2em}.ig_messenger.ig_container.ig_right{right:0.2em}.ig_messenger .ig_data,.ig_messenger .ig_content{background:transparent!important;position:relative}.ig_messenger .ig_message:after,.ig_messenger .ig_message:before,.ig_messenger .ig_close:before,.ig_messenger .ig_close:after,.ig_messenger .ig_content:before,.ig_messenger .ig_data:after,.ig_messenger .ig_footer:after,.ig_messenger .ig_headline:after,.ig_messenger .ig_headline:before{content:'';position:absolute;display:none;padding:0;width:100%;z-index:10;background-position:0 0;background-repeat:no-repeat;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.ig_messenger .ig_headline{display:block!important;font-weight:700;text-decoration:none;overflow:hidden;white-space:nowrap;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.ig_messenger .ig_headline:after{left:0}.ig_messenger .ig_body{overflow-x:hidden;display:block;border-bottom:none;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis;z-index:9}.ig_messenger .ig_icon{height:2.5em;width:2.5em;position:absolute}.ig_messenger.ig_no_icon .ig_icon{display:none}.ig_messenger .ig_message{text-align:left;word-wrap:break-word}.ig_messenger .ig_message p{margin-bottom:0.25em}.ig_messenger .ig_footer{display:none}.ig_messenger .ig_powered_by{font-size:.62em;z-index:10;position:relative;text-align:right}.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{position:absolute;z-index:10;height:25px;width:25px}.ig_messenger .ig_close:after{top:6px;left:6px;background-image:url(../messenger/images/clear-header.png);background-repeat:no-repeat;background-position:0 -195px;display:block;height:13px;width: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{float:left;padding:.5em 0}.ig_messenger.ig_form_inline .ig_message p{margin-bottom: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:99%;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.ig_form_els_first input,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last input,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els input{padding-left:1em;border-width:2px;-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.ig_form_els_first label,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last label,.ig_messenger.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els label{padding-left:1em}
message-types/messenger/images/clear-footer.png CHANGED
Binary file
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_container ig_cta" 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").addClass("ig_bottom");break;case"22":default:this.el.css({left:jQuery(window).width()-this.el.outerWidth()-5,bottom:0}),this.el.addClass("ig_right").addClass("ig_bottom")}},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>")};
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_container ig_cta" id="icegram_message_{{=id}}"><div class="ig_content"><div class="ig_close" id="ig_close_{{=id}}"></div><div class="ig_data"><div class="ig_headline">{{=headline}}</div><div class="ig_body"><img class="ig_icon" src="{{=icon}}"/><div class="ig_message">{{=message}}</div></div><div class="ig_footer"></div></div></div></div>'},Icegram_Message_Type_Messenger.prototype.set_position=function(){switch(this.data.position){case"20":this.el.addClass("ig_left ig_bottom");break;case"22":default:this.el.addClass("ig_right ig_bottom")}},Icegram_Message_Type_Messenger.prototype.add_powered_by=function(e){this.el.addClass("ig_has_pwby").find(".ig_content").after('<div class="ig_powered_by"><a href="'+e.link+'" target="_blank">'+e.text+"</a></div>")};
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);-moz-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}
1
+ .ig_messenger.ig_canvas.ig_container{max-width:33%}.ig_messenger.ig_canvas .ig_content{border:1px solid #BFBFBF;margin:.6em .6em .1em .6em;padding:.6em;overflow:hidden;-webkit-box-shadow:0 0.15em 0.35em 0 rgba(0,0,0,0.135);-moz-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_headline{color:#111;width:100%;font-size:1.5em;line-height:1em;padding:0 1em .1em 0.2em}.ig_messenger.ig_canvas .ig_body{max-height:21em;overflow-y:auto;padding:0 .5em 0 .5em;margin-top:.5em;line-height:1.3em}.ig_messenger.ig_canvas .ig_icon{float:right;position:relative;border-radius:5%;max-width:6em;margin:.3em;height:auto!important;width:auto!important}.ig_messenger.ig_canvas .ig_message{color:#444;display:inline}.ig_messenger.ig_canvas .ig_close{right:0;top:.5em}.ig_messenger.ig_canvas .ig_powered_by{bottom:0;padding-left:1em;text-align:left}@media only screen and (max-device-width:319px){.ig_messenger.ig_canvas.ig_container{max-width:75%}}@media only screen and (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){.ig_messenger.ig_canvas.ig_container{max-width:90%}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:portrait){.ig_messenger.ig_canvas.ig_container{max-width:70%}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape),(min-width:768px) and (max-device-width:992px){.ig_messenger.ig_canvas.ig_container{max-width:50%}}
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_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}
1
+ .ig_messenger.ig_clear.ig_container{font-size:13px;width:19.25em;height:20.75em;-moz-border-radius:.23em .23em 0 0;-webkit-border-radius:.23em .23em 0 0;border-radius:.23em .23em 0 0;border:1px solid #BFBFBF}.ig_messenger.ig_clear .ig_headline:after,.ig_messenger.ig_clear .ig_headline:before{background-size:cover}.ig_messenger.ig_clear .ig_headline:before{display:block;background-image:url(../images/clear-header.png);top:.6em;left:.6em;height:1.25em;width:1.25em}.ig_messenger.ig_clear .ig_headline{background:#F9F9F9;color:#333;width:100%;height:2.38em;line-height:2.58em;font-size:1em;padding:0 2.9em 0 2em;border-bottom:1px solid #BFBFBF;-moz-box-shadow:inset 0 0 .25em 0 #FFF;-webkit-box-shadow:inset 0 0 .25em 0 #FFF;box-shadow:inset 0 0 .25em 0 #FFF}.ig_messenger.ig_clear .ig_headline:after{display:block;height:2.12em;top:2.38em;background-image:url(../images/clear-option.png)}.ig_messenger.ig_clear .ig_body{background:#FFF;color:#222;font-size:1em;font-family:Arial,Helvetica,sans-serif;position:relative;height:13.35em;top:2.12em;border-top:1px solid #BFBFBF;right:0;line-height:1.25em;padding:.5em .9em 0 .5em;-moz-box-shadow:inset 0 0 .25em 0 #FFF;-webkit-box-shadow:inset 0 0 .25em 0 #FFF;box-shadow:inset 0 0 .25em 0 #FFF}.ig_messenger.ig_clear .ig_message{color:#3E454C;width:100%;padding-left:3em}.ig_messenger.ig_clear.ig_no_icon .ig_message{padding-left:.5em}.ig_messenger.ig_clear .ig_footer{display:block;background-color:inherit;height:2.76em;margin-top:2.12em;border-top:1px solid #BFBFBF;background-image:url(../images/clear-footer.png);background-size:cover}.ig_messenger.ig_clear .ig_close{top:.3em;right:0}.ig_messenger.ig_clear .ig_close:before{display:block;background-image:url(../images/clear-header.png);background-position:0 -181px;top:6px;height:13px;width:13px;padding:0;right:1.7em}.ig_messenger.ig_clear .ig_powered_by{bottom:1.8em;padding-right:3em;font-size:.8em}@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_messenger.ig_clear.ig_container{font-size:14px}}
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_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{font-size:11px;width:22.8em;height:23.6em}.ig_messenger.ig_social .ig_headline{background-color:#627BAE;color:#FFF;width:100%;height:2.45em;line-height:2.65em;font-size:1em;padding:0 3.4em 0 0.7em;border:1px solid rgba(0,39,121,0.3);border-bottom:none}.ig_messenger.ig_social .ig_body{display:block;background-color:#edeff4;color:#3e454c;font-family:"lucida grande",tahoma,verdana,arial,sans-serif;position:relative;height:18em;border:1px solid rgba(0,0,0,0.3);border-top:none;border-bottom:none;right:0;padding:5px .5em 0;padding-left:3.8em}.ig_messenger.ig_social.ig_no_icon .ig_body{padding-left:.5em;line-height:1.37em}.ig_messenger.ig_social .ig_message:before{display:block;width:0;top:11px;margin:0 0 0 -18px;border:8px solid #DFDFDF;border-color:transparent #DFDFDF transparent transparent;z-index:-1}.ig_messenger.ig_social .ig_message:after{display:block;width:0;top:13px;margin:0 0 0 -15px;border:6px solid #FAFAFA;border-color:transparent #FAFAFA transparent transparent}.ig_messenger.ig_social .ig_message{background-color:#F7F7F7;color:#3E454C;background-image:-webkit-gradient(linear,center bottom,center top,from(#F2F2F2),to(#FFF));background-image:-webkit-linear-gradient(bottom,#F2F2F2,#FFF);width:90%;font-size:1.09em;padding:.3em;border:1px solid rgba(0,0,0,.18);border-bottom-color:rgba(0,0,0,.29);-webkit-border-radius:.4em;-moz-border-radius:.4em;border-radius:.4em;-webkit-box-shadow:0 1px 0 #DCE0E6;-moz-box-shadow:0 1px 0 #DCE0E6;box-shadow:0 1px 0 #DCE0E6}.ig_messenger.ig_social.ig_no_icon .ig_message{margin:0 auto 0.5em auto}.ig_messenger.ig_social.ig_no_icon .ig_message:after,.ig_messenger.ig_social.ig_no_icon .ig_message:before{display:none}.ig_messenger.ig_social .ig_icon{margin-left:-3.3em;height:2.54em;width:2.54em}.ig_messenger.ig_social .ig_footer{display:block;height:3em;background-color:#FFF;border:1px solid rgba(0,0,0,0.3)}.ig_messenger.ig_social .ig_footer:after{display:block;background-image:url(../images/social-img.png);background-position:-269px -137px;width:22px;height:18px;margin-top:.8em;right:.3em}.ig_messenger.ig_social .ig_close{background-image:url(../images/social-img.png);background-position:-137px -332px;top:.25em;right:.15em;height:25px;width:21px}.ig_messenger.ig_social .ig_close:before{display:block;background-image:url(../images/social-img.png);background-position:-92px -332px;height:100%;width:100%;padding:0;right:1.5em}.ig_messenger.ig_social .ig_close:after{display:none}.ig_messenger.ig_social .ig_powered_by{bottom:1.8em;padding-right:3em;font-size:.9em}@media only screen and (max-device-width:319px){.ig_messenger.ig_social.ig_container{font-size:12px;width:20em}}@media only screen and (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_messenger.ig_social.ig_container{font-size:13px}}
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: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}
1
+ .ig_messenger.ig_talk.ig_container{font-size:12px;width:17.5em;height:21em;border:.1em solid #BFBFBF;-moz-border-radius:.5em .5em 0 0;-webkit-border-radius:.5em .5em 0 0;border-radius:.5em .5em 0 0}.ig_messenger.ig_talk .ig_close,.ig_messenger.ig_talk .ig_close:before,.ig_messenger.ig_talk .ig_data:after,.ig_messenger.ig_talk .ig_headline:after,.ig_messenger.ig_talk .ig_headline:before{background-size:cover}.ig_messenger.ig_talk .ig_headline:before{display:block;background-image:url(../images/clear-header.png);top:.5em;left:.6em;height:1.25em;width:1.25em}.ig_messenger.ig_talk .ig_headline{background-color:#F5FAFF;color:#00008B;width:100%;height:2.2em;line-height:2.4em;font-size:1em;padding:0 2.9em 0 2em;border-bottom:.1em solid #BFBFBF;-moz-box-shadow:inset 0 0 .25em 0 #FFF;-webkit-box-shadow:inset 0 0 .25em 0 #FFF;box-shadow:inset 0 0 .25em 0 #FFF;-moz-border-radius:.5em .5em 0 0;-webkit-border-radius:.5em .5em 0 0;border-radius:.5em .5em 0 0}.ig_messenger.ig_talk .ig_headline:after{display:block;height:2.5em;top:2.2em;background-image:url(../images/talk-header-2.png)}.ig_messenger.ig_talk .ig_body{background:#FFF;color:#222;font-size:1em;font-family:Arial,Helvetica,sans-serif;position:relative;height:13.48em;border-top:.1em solid #BFBFBF;border-bottom:.1em solid #BFBFBF;top:2.5em;right:0;line-height:1.25em;padding:.5em .8em 0 .5em;-moz-box-shadow:inset 0 0 .25em 0 #FFF;-webkit-box-shadow:inset 0 0 .25em 0 #FFF;box-shadow:inset 0 0 .25em 0 #FFF}.ig_messenger.ig_talk .ig_message{color:#3E454C;width:100%;padding-left:3em}.ig_messenger.ig_talk.ig_no_icon .ig_message{padding-left:.5em}.ig_messenger.ig_talk .ig_footer{display:block;height:2.66em;margin-top:2.5em;background-image:url(../images/talk-footer-1.png);background-size:cover}.ig_messenger.ig_talk .ig_close{background-image:url(../images/talk-close.png);background-position:0 0;top:.5em;right:.33em;height:1.25em;width:1.25em;z-index:10}.ig_messenger.ig_talk .ig_close:before{display:block;background-image:url(../images/talk-header-1.png);height:100%;width:100%;padding:0;right:1.5em}.ig_messenger.ig_talk .ig_close:after{display:none}.ig_messenger.ig_talk .ig_powered_by{bottom:2em;padding-right:2em;font-size:.8em}@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_messenger.ig_talk.ig_container{font-size:14px}}
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_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;background-image:none;border:none;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow: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}.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:99%;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:99%!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_popup.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:.2em}.ig_popup.ig_form_bottom.ig_form_style_1 .ig_form_container.layout_bottom:before{border-top-width:.2em}.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.ig_form_els_first input,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_first input,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last input,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_last 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{-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 .ig_form_els input.ig_button{padding:inherit}.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_first label,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_first label,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_last label,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last 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}}
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}.mfp-bg{z-index:999999}.ig_popup{opacity:1;display:block;z-index:100000;background-color:transparent!important;color:transparent!important;width:60%;margin:32px auto 20px auto!important;position:relative}.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(../../assets/images/sprite_1.png);background-position:-600px center;background-repeat:no-repeat;height:30px;width:30px;top:-15px;right:-15px;margin:0;cursor:pointer;position:absolute;z-index:20}.ig_popup .ig_close:hover{background-position:-640px center}.ig_popup .ig_button,.ig_popup input[type="submit"],.ig_popup input[type="button"]{cursor:pointer;display:block;background-image:none;border:none;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow: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}.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:-15px -15px 0 0}@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:99%;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:99%!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_popup.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:.2em}.ig_popup.ig_form_bottom.ig_form_style_1 .ig_form_container.layout_bottom:before{border-top-width:.2em}.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.ig_form_els_first input,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_first input,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last input,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_last 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{-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 .ig_form_els input.ig_button{padding:inherit}.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_first label,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_first label,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els.ig_form_els_last label,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els.ig_form_els_last 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:0}.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/images/chosen-sprite.png DELETED
Binary file
message-types/popup/images/close_big.png DELETED
Binary file
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}}"><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 ig_clear_fix">{{=message}}</div></div><div class="ig_button" >{{=label}}</div></div><div class="ig_form_container layout_right layout_bottom"></div></div></div>'},Icegram_Message_Type_Popup.prototype.post_render=function(){(void 0==this.data.use_theme_defaults||"yes"!=this.data.use_theme_defaults)&&void 0!=this.data.bg_color&&""!=this.data.bg_color&&this.el.find(".ig_bg_overlay").css("border-color",this.data.bg_color)},Icegram_Message_Type_Popup.prototype.show=function(e,t){if(!this.is_visible()){var i=this,o="#icegram_message_"+this.data.id;this.animate("in"),jQuery.magnificPopup.open({items:{src:o,type:"inline"},showCloseBtn:!1,callbacks:{close:function(){t!==!0&&i.track("closed")},open:function(){window.icegram.adjustFormContainerHeight(i)}}}),i.el.addClass("ig_show").removeClass("ig_hide"),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,o=this;this.animate("out"),setTimeout(function(){o.el.addClass("ig_hide").removeClass("ig_show"),jQuery.magnificPopup.close({items:{src:i,type:"inline"}})},500)}},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),w=function(e,i){t.ev.on(f+e+g,i)},I=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)},x=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=x(),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=I("bg").on("click"+g,function(){t.close()}),t.wrap=I("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=I("container",t.wrap)),t.contentContainer=I("content"),t.st.preloader&&(t.preloader=I("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?(w(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.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({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 S,E,O,z="inline",M=function(){O&&(E.after(O.addClass(S)).detach(),O=null)};e.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(z),w(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||(S=n.hiddenClass,E=I(S),S="mfp-"+S),O=a.after(E).detach().removeClass(S)),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"),w(u+o,function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),w(r+o,function(){i.cursor&&e(document.body).removeClass(i.cursor),b.off("resize"+g)}),w("Resize"+o,t.resizeImage),t.isLowIE&&w("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")};w("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)}}),w(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)}}),w(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&&(w("ImageHasSize."+j,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),w("ElementParse."+j,function(t,o){o.src=e.replaceSrc(o,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}}"><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 ig_clear_fix">{{=message}}</div></div><div class="ig_button" >{{=label}}</div></div><div class="ig_form_container layout_right layout_bottom"></div></div></div>'},Icegram_Message_Type_Popup.prototype.post_render=function(){(void 0==this.data.use_theme_defaults||"yes"!=this.data.use_theme_defaults)&&void 0!=this.data.bg_color&&""!=this.data.bg_color&&this.el.find(".ig_bg_overlay").css("border-color",this.data.bg_color)},Icegram_Message_Type_Popup.prototype.show=function(e,t){if(!this.is_visible()){var i=this,o="#icegram_message_"+this.data.id;this.animate("in"),jQuery.magnificPopup.open({items:{src:o,type:"inline"},showCloseBtn:!1,callbacks:{close:function(){t!==!0&&i.track("closed")},open:function(){window.icegram.adjustFormContainerHeight(i)}}}),i.el.addClass("ig_show").removeClass("ig_hide"),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,o=this;this.animate("out"),setTimeout(function(){o.el.addClass("ig_hide").removeClass("ig_show"),jQuery.magnificPopup.close({items:{src:i,type:"inline"}})},500)}},"undefined"==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),w=function(e,i){t.ev.on(f+e+g,i)},I=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)},x=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=x(),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=I("bg").on("click"+g,function(){t.close()}),t.wrap=I("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=I("container",t.wrap)),t.contentContainer=I("content"),t.st.preloader&&(t.preloader=I("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?(w(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.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({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 S,E,O,z="inline",M=function(){O&&(E.after(O.addClass(S)).detach(),O=null)};e.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(z),w(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||(S=n.hiddenClass,E=I(S),S="mfp-"+S),O=a.after(E).detach().removeClass(S)),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"),w(u+o,function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),w(r+o,function(){i.cursor&&e(document.body).removeClass(i.cursor),b.off("resize"+g)}),w("Resize"+o,t.resizeImage),t.isLowIE&&w("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")};w("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)}}),w(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)}}),w(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&&(w("ImageHasSize."+j,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),w("ElementParse."+j,function(t,o){o.src=e.replaceSrc(o,i)}))}}}}),k()});
message-types/popup/themes/air-mail.css CHANGED
@@ -1 +1 @@
1
- .ig_popup.ig_air-mail .ig_container{border-width:8px;border-style:solid;-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_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}
1
+ .ig_popup.ig_air-mail{position:relative}.ig_popup.ig_air-mail .ig_container{border-width:8px;border-style:solid;-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-position:-520px center;margin:0;top:5px;right:5px;opacity:.35}.ig_popup.ig_air-mail .ig_close:hover{opacity:.75}.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}}
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;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_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}
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-position:-520px center;margin:0;top:5px;right:5px;opacity:.35}.ig_popup.ig_compel .ig_close:hover{opacity:.75}.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}}
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: icegram, storeapps, niravmehta, putler
3
  Donate link: http://www.icegram.com/
4
  Tags: popup, window, hellobar, optin, lead capture, marketing, form, notification, messenger, targeting, monster, ninja ,wordpress lead generation, wordpress lightbox optin, wordpress lightbox optin form, wordpress lightbox optins, wordpress mobile optin forms, wordpress mobile popup, wordpress mobile popups, wordpress optin form, wordpress overlay popup, wordpress popup, wordpress popup form, wordpress popup plugin, wordpress popup solution, wordpress popups , popups, subscribe, wp popups, optin bars, action grabber, constant contact, toast notifications, leads, lists, builder, action bar, floating bar, footer bar, hellobar alternative, pop over, Popup plugin, aweber, campaign monitor, constant contact, email list, exit-intent, getresponse, analytics, Hubspot, icontact, infusionsoft, newsletter, Mailing list pop-up, retargeting, Animation,Popups with Animation ,Responsive Popup, split testing, AB testing
5
  Requires at least: 3.9
6
- Tested up to: 4.3
7
- Stable tag: 1.9.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -153,6 +153,18 @@ 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.9.6 =
157
  Many small changes and other fixes.
158
 
@@ -196,7 +208,7 @@ Bug fix release for device targeting, preview before publish not working.
196
  Popups are now responsive! Plus Visual Composer compatibility and other fixes.
197
 
198
  = 1.8.3 =
199
- Campaign and message duplicate feture added. Plus some other improvements.
200
 
201
  = 1.8.2 =
202
  Bug fix release for preview not working.
@@ -239,6 +251,25 @@ Initial Release
239
 
240
 
241
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
 
243
  = 1.9.6 =
244
  * Fix: Popup was not getting closed when multiple popups were set on a single page
3
  Donate link: http://www.icegram.com/
4
  Tags: popup, window, hellobar, optin, lead capture, marketing, form, notification, messenger, targeting, monster, ninja ,wordpress lead generation, wordpress lightbox optin, wordpress lightbox optin form, wordpress lightbox optins, wordpress mobile optin forms, wordpress mobile popup, wordpress mobile popups, wordpress optin form, wordpress overlay popup, wordpress popup, wordpress popup form, wordpress popup plugin, wordpress popup solution, wordpress popups , popups, subscribe, wp popups, optin bars, action grabber, constant contact, toast notifications, leads, lists, builder, action bar, floating bar, footer bar, hellobar alternative, pop over, Popup plugin, aweber, campaign monitor, constant contact, email list, exit-intent, getresponse, analytics, Hubspot, icontact, infusionsoft, newsletter, Mailing list pop-up, retargeting, Animation,Popups with Animation ,Responsive Popup, split testing, AB testing
5
  Requires at least: 3.9
6
+ Tested up to: 4.3.1
7
+ Stable tag: 1.9.8.1
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.8.1 =
157
+ Added sprite image for close buttons and other fixes.
158
+
159
+ = 1.9.8 =
160
+ Enhanced the top Action bar position
161
+
162
+ = 1.9.7.1 =
163
+ Incorrect plugin name
164
+
165
+ = 1.9.7 =
166
+ Messengers are now responsive.Many small improvements.
167
+
168
  = 1.9.6 =
169
  Many small changes and other fixes.
170
 
208
  Popups are now responsive! Plus Visual Composer compatibility and other fixes.
209
 
210
  = 1.8.3 =
211
+ Campaign and message duplicate feature added. Plus some other improvements.
212
 
213
  = 1.8.2 =
214
  Bug fix release for preview not working.
251
 
252
 
253
  == Changelog ==
254
+ = 1.9.8.1 =
255
+ Enhancement: Added sprite image for close buttons
256
+ Fix: Retargeting issues with HTTP and HTTPS
257
+ Fix: Close button of Airmail and Compel theme was not visible in popup
258
+
259
+ = 1.9.8 =
260
+ * New: Added translation for Italian
261
+ * Update: Action Bar does not overlap header/menu of your website
262
+
263
+ = 1.9.7.1 =
264
+ * Fix: Incorrect plugin name
265
+
266
+ = 1.9.7 =
267
+ * New: Messenger messages work beautifully on mobile / small devices now!
268
+ * New: Icegram's shortcodes are now working with Text Widget
269
+ * Update: Mobile Detect Library updated to version 2.8.15
270
+ * Fix: Gravity Forms hidden fields were visible with Form embed functionality
271
+ * Fix: Slide animation was not working with some browsers
272
+ * Fix: Popup message conflicts with some lightbox plugins
273
 
274
  = 1.9.6 =
275
  * Fix: Popup was not getting closed when multiple popups were set on a single page