Version Description
Messengers are now responsive.Many small improvements.
Download this release
Release Info
Developer | Icegram |
Plugin | Popups, Welcome Bar, Optins and Lead Generation Plugin – Icegram |
Version | 1.9.7 |
Comparing to | |
See all releases |
Code changes from version 1.9.4 to 1.9.7
- assets/css/admin.css +2 -1
- assets/css/frontend.css +1 -1
- assets/images/arrows-sprite_one.png +0 -0
- assets/images/close_01.png +0 -0
- assets/js/admin.js +1 -1
- assets/js/chosen.jquery.min.js +1 -1
- assets/js/icegram.js +1 -1
- assets/js/magnific-popup.js +1 -1
- classes/class-icegram-campaign-admin.php +1 -1
- classes/class-icegram-campaign.php +1 -1
- classes/class-icegram-message-admin.php +7 -2
- classes/class-icegram-message-type.php +6 -2
- classes/ig-mobile-detect.php +182 -96
- icegram.php +21 -15
- message-types/action-bar/default.css +1 -1
- message-types/action-bar/images/chosen-sprite.png +0 -0
- message-types/action-bar/main.js +1 -1
- message-types/action-bar/main.php +1 -2
- message-types/action-bar/themes/air-mail.css +1 -1
- message-types/action-bar/themes/bold.css +1 -1
- message-types/action-bar/themes/hello.css +1 -1
- message-types/action-bar/themes/solid.css +1 -1
- message-types/messenger/default.css +1 -1
- message-types/messenger/images/clear-footer.png +0 -0
- message-types/messenger/main.js +1 -1
- message-types/messenger/main.php +0 -3
- message-types/messenger/themes/canvas.css +1 -1
- message-types/messenger/themes/clear.css +1 -1
- message-types/messenger/themes/social.css +1 -1
- message-types/messenger/themes/talk.css +1 -1
- message-types/popup/default.css +1 -1
- message-types/popup/main.js +1 -1
- message-types/popup/main.php +0 -1
- message-types/popup/themes/air-mail.css +1 -1
- message-types/popup/themes/amaze.css +1 -1
- message-types/popup/themes/compel.css +1 -1
- message-types/popup/themes/convert.css +1 -1
- message-types/popup/themes/inspire.css +1 -1
- message-types/popup/themes/persuade.css +1 -1
- message-types/toast/default.css +1 -1
- message-types/toast/main.js +1 -1
- message-types/toast/main.php +0 -7
- readme.txt +33 -6
assets/css/admin.css
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
.campaign_target_rules_panel .options_group{border-bottom:1px dashed #D3D3D3}.campaign_target_rules_panel .options_group:last-child{border-bottom-style:none}.campaign_target_rules_panel .options_group .form-field .options_header{display:inline-block;width:30%;vertical-align:top}.campaign_target_rules_panel .options_group p label input[type=checkbox],.campaign_target_rules_panel .options_group p label input[type=radio]{width:0}.campaign_target_rules_panel .options_group p label input[type=date]{width:auto;margin-left:10px}.user_roles p label input[type=checkbox],.user_roles p label input[type=radio]{margin-left:3px}.campaign_target_rules_panel .options_group .form-field #icegram_messages{width:300px;text-align:center}.empty_campaign{margin:1em;font-style:italic}.hndle em{font-weight:normal;font-size:85%;margin-left:1em;color:#777}h3 .chosen-container{font-weight:500}.thickbox_edit_message{padding:0 1em;border-bottom:1px solid #D3D3D3}.messages-list-sortable{margin-top:30px}.messages_list_table{font-size:1em;width:100%;border-collapse:separate;border-spacing:3px}th.message_header{text-align:center!important}.message_title{text-align:left}.message_headline{text-align:left;padding-left:1.2em}.message_seconds,.action_links{width:75px!important;text-align:center}.message_seconds input{text-align:right}.message-row .seconds-text{width:40px!important;text-align:center}.message-sort-placeholder{background-color:#D3D3D3}.device{width:auto;line-height:5em;vertical-align:baseline}.device:after{font-family:dashicons;font-size:3em}.device input{position:relative;left:2.5em;top:1.5em}.admin_field_icon{display:inline-block;-webkit-font-smoothing:antialiased;width:18px;height:18px;font:400 18px/1 dashicons;color:#888;vertical-align:text-top;margin:0 2px}.campaign_preview{float:right;margin-right:1em!important}.shortcode_description:before{content:"\f348"}.shortcode_description.light{content:"\f348";color:#777}.campaign_shortcode{display:block;width:45%;color:#777}.campaign_shortcode.light{margin-left:50%;border:1px dashed #ccc;padding-left:0.6%;padding-right:0.2%;position:absolute;margin-top:-1.5em}.campaign_shortcode.light code{color:#777}label[for=device_mobile]{margin-left:-2em}label[for=device_mobile]:after{content:"\f470"}label[for=device_tablet]:after{content:"\f471"}label[for=device_laptop]:after{content:"\f472"}.date_picker:after{font-family:dashicons;content:"\f145";position:relative;top:5px;font:normal 20px/1 dashicons;vertical-align:top}.date_picker{margin-left:1em}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.date-picker{max-width:15%}.campaign_target_rules_panel .options_group .messages-list .form-field .message_header{width:75px!important;text-align:right}.disable{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:0.3}.enable{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1}.message_edit:after{content:"\f464"}.message_delete:after{content:"\f158"}.actions:after{font-family:dashicons;font-size:1.4em}.actions{text-decoration:none;color:#444;padding-right:3px;cursor:pointer}.actions:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";filter:alpha(opacity=70);opacity:0.7}.action_links{vertical-align:middle}.message_header_label{color:#fff;text-align:center;font-size:0.7em!important;margin:0!important;padding:3px 5px;cursor:auto;text-transform:uppercase}.message_label{float:left;width:25%;padding:0}.message_field{width:65%;display:inline-block}.message_image_button .image-buttons-icon{margin:0 2px}.message_image_button .image-buttons-icon:before{content:"\f128"}.message_headline_button,.message_image_button{vertical-align:top!important}.message_headline_button .headline-buttons-icon{margin:2px}.message_headline_button .headline-buttons-icon:before{content:"\f130"}.help_tip:after{content:"\f223"}.help_tip{float:right;margin:4px 0;cursor:help;text-decoration:none}.chosen-container{width:65%!important}.message_row.position{height:110px}.location-selector input[type=radio]:checked + label span{background-color:#2ea2cc}.location-selector{width:128px;height:115px;position:absolute;display:block;margin-left:24.3%;background-image:url(../images/desktop.png);background-position:0 -19px}.location-selector .location{background-color:#ddd;cursor:pointer;position:absolute}.location-selector .location:hover{background-color:#ccc}.location-selector .location.top,.location-selector .location.bottom,.location-selector .location.middle{height:14%;width:14%;right:42%}.location-selector .location.top{top:13px}.location-selector .location.middle{top:30%}.location-selector .location.bottom{bottom:43px}.location-selector .location.right,.location-selector .location.left{height:14%;width:14%;margin-left:0;margin-right:0}.location-selector .location.right{right:15px}.location-selector .location.left{left:15px}.wp-editor-container{margin-left:25%}.message-setting-fields #upload_image,.message-setting-fields #message_title{width:58%}.wp-editor-container span .mceLayout{width:50%}#ui-datepicker-div,#wp-admin-bar-view,#edit-slug-box,.empty_campaign,.location-selector input[type=radio]{display:none}#the-list .message_thumbnail img{max-width:200px;max-height:100px}#icegram_messages + .chosen-container-single .chosen-search input[type=text]{width:100%!important}.message_theme + .chosen-container.chosen-container .chosen-results{max-height:30em!important}.message_theme + .chosen-container-single .chosen-single span{background-repeat:no-repeat!important;background-position:100% 50%!important}.message_theme + .chosen-container .chosen-results li{margin:0% 0% 2% 2%;background-position:0.5em 2em!important;-webkit-background-size:95%!important;background-size:95%!important;border:2px solid #EEE!important;font-weight:700!important;display:inline-block!important;text-align:center!important;background-repeat:no-repeat!important}.message_theme + .chosen-container .chosen-results li.highlighted{color:#000!important;border:2px solid #2ea2cc!important;background-color:#EAEFFF!important}#tiptip_holder{display:none;position:absolute;top:0;left:0;z-index:99999}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#464646}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#464646}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#464646}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#464646}#tiptip_content,.chart-tooltip{font-size:11px;color:#fff;padding:.5em;background:#464646;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,.1);-moz-box-shadow:1px 1px 3px rgba(0,0,0,.1);box-shadow:1px 1px 3px rgba(0,0,0,.1);text-align:center;max-width:150px}#tiptip_content code,.chart-tooltip code{background:#888;padding:1px}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}table#icegram_post_query_table{padding:5px}table#icegram_post_query_table tr td{padding:5px}input.sm_text_field{padding:5px}#icegram_post_query_table label{font-weight:bold}.icegram-dashicons:before{font-family:dashicons;position:relative;font-family:dashicons;font-style:normal;vertical-align:middle;font-size:2em}.about-wrap.icegram h2{color:#3754a8}.about-wrap.icegram h2{padding-top:19px;font-weight:600}.icegram-dashicons-testimonial h4{font-size:1.5em}.icegram-badge{background:#3754a8 url(../images/icegram-logo-branding-64-white.png) no-repeat;background-position:center 24px;color:#FFF;font-size:12px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:24px;display:inline-block;width:150px;text-rendering:optimizeLegibility;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.2);box-shadow:0 1px 3px rgba(0,0,0,0.2)}.about-wrap .icegram-badge{position:absolute;top:0;right:0}.icegram-support{font-size:14px;color:black;margin:15px 0 0;height:10px;width:180px;text-align:center;text-rendering:optimizeLegibility;position:absolute;top:0;right:0;margin-top:178px;text-align:right}.icegram-contact-us{font-size:20px;line-height:1.5em;font-weight:800;margin-right:18px}.icegram-contact-us a{color:#3754a8}.ig_addons_wrap .addons{overflow:hidden}.ig_addons_wrap .addons li{float:left;margin:0 1em 1em 0!important;padding:0;vertical-align:top;width:300px}.ig_addons_wrap .addons li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ig_addons_wrap .addons li a img{max-width:100px;max-height:100px;margin-right:-15px;padding:0 0 5px 5px;float:right}.ig_addons_wrap .addons li a h3{margin:0!important;padding:20px!important;background:#fff}.ig_addons_wrap .addons li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ig_addons_wrap .addons li a:focus,.ig_addons_wrap .addons li a:hover{background-color:#fff}.ig_addons_wrap .addons li .ig_addon_category{margin-top:-3.5em;float:right;text-transform:capitalize;font-style:normal;margin-right:1em;font-size:80%}.ig_addons_wrap .addons li .ig_addon_category span{margin-left:1.2em;padding:2px 3px;background-color:#DEDEDE;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em}.ig_addons_wrap .addons li .ig_addon_category span.free{background-color:#C3D3FF;color:#3754a8}.ig_addons_special_message{font-size:60%;line-height:60%;margin-left:3em;padding:3px 10px;background-color:#FCF0AD;border:1px solid #CCC}#popup_container{width:550px;background-color:#FFF;margin:0 auto;padding:.5em 1em 1em 1em}#popup_container input[value="ig_vertical"]{margin-left:3%}#popup_container select{width:30%}#popup_container #embed_howto_link{float:right;font-size:.8em;font-weight:normal}.campaign_target_rules_panel .messages_list_table p.inline{display:block;margin:1em 0}.campaign_target_rules_panel .form-field .delete-url:before{font-family:dashicons;content:"\f182";cursor:pointer}.campaign_target_rules_panel .form-field .url_input_field{width:65%!important}.campaign_target_rules_panel #valid-field{margin-left:92%}.campaign_target_rules_panel #valid-field.error{font-family:dashicons;font-size:1.5em;color:#f00;vertical-align:middle;display:inline-block;-webkit-font-smoothing:antialiased;cursor:help}.campaign_target_rules_panel #valid-field.error:after{content:"\f223"}.campaign_target_rules_panel #add-url-icon:after{font-family:dashicons;content:"\f132";vertical-align:middle}.message_colors_options_container p{margin-top:.3em!important;margin-bottom:.3em!important}.message_colors_options_container p span.message_label{font-size:12px;margin-top:2px}.message-setting-fields .chosen-container-single .chosen-single{z-index:initial!important}.message-setting-fields .chosen-container-single.chosen-single div b{background:url(../images/chosen-sprite.png)no-repeat 0 2px!important}.message_form_options{width:75%;margin-left:25%}.message_form_options label.message_label{display:none}.message_form_options textarea{resize:none;width:86%}.message_form_options p > input,.message_form_options p > textarea,.message_form_options p > div{}.message_form_options p > div.form_radio_group{width:86%}.message_form_options span.message_label{width:100%}.message_form_options .form_inline_shortcode{margin-left:0;margin-top:1em;position:relative;width:inherit}.message_form_html_original{font-family:Consolas,Monaco,monospace;font-size:.8em}.form_radio_group .location{display:inline-block;width:97px;height:94px;padding:3px;padding-bottom:0;margin-right:1em;border:1px solid transparent}.form_radio_group .location label{background:url(../images/from_layouts.png) no-repeat;display:block;width:95px;height:100px;border:1px solid transparent}.form_radio_group .location:hover{border:1px solid #2EA2CC}#message_form_style + .chosen-container-single .chosen-single{height:6em!important}#message_form_style + .chosen-container-single .chosen-single span{background-size:9em!important;line-height:6em!important;background-repeat:no-repeat;background-position:100% 50%!important}#message_form_style + .chosen-container .chosen-results li{width:43%!important;height:10em!important;margin:0% 0% 2% 2%;-webkit-background-size:95%!important;background-size:100%!important;border:2px solid #EEE!important;font-weight:700!important;display:inline-block!important;text-align:center!important;background-repeat:no-repeat!important;background-position:0% 100%!important;color:transparent}#message_form_style + .chosen-container .chosen-results li.highlighted{color:transparent!important;border:2px solid #2ea2cc!important;background-color:#EAEFFF!important}.message_form_options .chosen-container{width:86%!important}#message_form_style + .chosen-container .chosen-results li:first-child{}
|
|
1 |
+
/*Hide the wordpress-post editor div*/
|
2 |
+
#postdivrich{display:none}.campaign_target_rules_panel .options_group{border-bottom:1px dashed #D3D3D3}.campaign_target_rules_panel .options_group:last-child{border-bottom-style:none}.campaign_target_rules_panel .options_group .form-field .options_header{display:inline-block;width:30%;vertical-align:top}.campaign_target_rules_panel .options_group p label input[type=checkbox],.campaign_target_rules_panel .options_group p label input[type=radio]{width:0}.campaign_target_rules_panel .options_group p label input[type=date]{width:auto;margin-left:10px}.user_roles p label input[type=checkbox],.user_roles p label input[type=radio]{margin-left:3px}.campaign_target_rules_panel .options_group .form-field #icegram_messages{width:300px;text-align:center}.empty_campaign{margin:1em;font-style:italic}.hndle em{font-weight:normal;font-size:85%;margin-left:1em;color:#777}h3 .chosen-container{font-weight:500}.thickbox_edit_message{padding:0 1em;border-bottom:1px solid #D3D3D3}.messages-list-sortable{margin-top:30px}.messages_list_table{font-size:1em;width:100%;border-collapse:separate;border-spacing:3px}th.message_header{text-align:center!important}.message_title{text-align:left}.message_headline{text-align:left;padding-left:1.2em}.message_seconds,.action_links{width:75px!important;text-align:center}.message_seconds input{text-align:right}.message-row .seconds-text{width:40px!important;text-align:center}.message-sort-placeholder{background-color:#D3D3D3}.device{width:auto;line-height:5em;vertical-align:baseline}.device:after{font-family:dashicons;font-size:3em}.device input{position:relative;left:2.5em;top:1.5em}.admin_field_icon{display:inline-block;-webkit-font-smoothing:antialiased;width:18px;height:18px;font:400 18px/1 dashicons;color:#888;vertical-align:text-top;margin:0 2px}.campaign_preview{float:right;margin-right:1em!important}.shortcode_description:before{content:"\f348"}.shortcode_description.light{content:"\f348";color:#777}.campaign_shortcode{display:block;width:45%;color:#777}.campaign_shortcode.light{margin-left:50%;border:1px dashed #ccc;padding-left:0.6%;padding-right:0.2%;position:absolute;margin-top:-1.5em}.campaign_shortcode.light code{color:#777}label[for=device_mobile]{margin-left:-2em}label[for=device_mobile]:after{content:"\f470"}label[for=device_tablet]:after{content:"\f471"}label[for=device_laptop]:after{content:"\f472"}.date_picker:after{font-family:dashicons;content:"\f145";position:relative;top:5px;font:normal 20px/1 dashicons;vertical-align:top}.date_picker{margin-left:1em}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.date-picker{max-width:15%}.campaign_target_rules_panel .options_group .messages-list .form-field .message_header{width:75px!important;text-align:right}.disable{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";filter:alpha(opacity=30);opacity:0.3}.enable{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1}.message_edit:after{content:"\f464"}.message_delete:after{content:"\f158"}.actions:after{font-family:dashicons;font-size:1.4em}.actions{text-decoration:none;color:#444;padding-right:3px;cursor:pointer}.actions:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";filter:alpha(opacity=70);opacity:0.7}.action_links{vertical-align:middle}.message_header_label{color:#fff;text-align:center;font-size:0.7em!important;margin:0!important;padding:3px 5px;cursor:auto;text-transform:uppercase}.message_label{float:left;width:25%;padding:0}.message_field{width:65%;display:inline-block}.message_image_button .image-buttons-icon{margin:0 2px}.message_image_button .image-buttons-icon:before{content:"\f128"}.message_headline_button,.message_image_button{vertical-align:top!important}.message_headline_button .headline-buttons-icon{margin:2px}.message_headline_button .headline-buttons-icon:before{content:"\f130"}.help_tip:after{content:"\f223"}.help_tip{float:right;margin:4px 0;cursor:help;text-decoration:none}.chosen-container{width:65%!important}.message_row.position{height:110px}.location-selector input[type=radio]:checked + label span{background-color:#2ea2cc}.location-selector{width:128px;height:115px;position:absolute;display:block;margin-left:24.3%;background-image:url(../images/desktop.png);background-position:0 -19px}.location-selector .location{background-color:#ddd;cursor:pointer;position:absolute}.location-selector .location:hover{background-color:#ccc}.location-selector .location.top,.location-selector .location.bottom,.location-selector .location.middle{height:14%;width:14%;right:42%}.location-selector .location.top{top:13px}.location-selector .location.middle{top:30%}.location-selector .location.bottom{bottom:43px}.location-selector .location.right,.location-selector .location.left{height:14%;width:14%;margin-left:0;margin-right:0}.location-selector .location.right{right:15px}.location-selector .location.left{left:15px}.wp-editor-container{margin-left:25%}.message-setting-fields #upload_image,.message-setting-fields #message_title{width:58%}.wp-editor-container span .mceLayout{width:50%}#ui-datepicker-div,#wp-admin-bar-view,#edit-slug-box,.empty_campaign,.location-selector input[type=radio]{display:none}#the-list .message_thumbnail img{max-width:200px;max-height:100px}#icegram_messages + .chosen-container-single .chosen-search input[type=text]{width:100%!important}.message_theme + .chosen-container.chosen-container .chosen-results{max-height:30em!important}.message_theme + .chosen-container-single .chosen-single span{background-repeat:no-repeat!important;background-position:100% 50%!important}.message_theme + .chosen-container .chosen-results li{margin:0% 0% 2% 2%;background-position:0.5em 2em!important;-webkit-background-size:95%!important;background-size:95%!important;border:2px solid #EEE!important;font-weight:700!important;display:inline-block!important;text-align:center!important;background-repeat:no-repeat!important}.message_theme + .chosen-container .chosen-results li.highlighted{color:#000!important;border:2px solid #2ea2cc!important;background-color:#EAEFFF!important}#tiptip_holder{display:none;position:absolute;top:0;left:0;z-index:99999}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#464646}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#464646}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#464646}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#464646}#tiptip_content,.chart-tooltip{font-size:11px;color:#fff;padding:.5em;background:#464646;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,.1);-moz-box-shadow:1px 1px 3px rgba(0,0,0,.1);box-shadow:1px 1px 3px rgba(0,0,0,.1);text-align:center;max-width:150px}#tiptip_content code,.chart-tooltip code{background:#888;padding:1px}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}table#icegram_post_query_table{padding:5px}table#icegram_post_query_table tr td{padding:5px}input.sm_text_field{padding:5px}#icegram_post_query_table label{font-weight:bold}.icegram-dashicons:before{font-family:dashicons;position:relative;font-family:dashicons;font-style:normal;vertical-align:middle;font-size:2em}.about-wrap.icegram h2{color:#3754a8}.about-wrap.icegram h2{padding-top:19px;font-weight:600}.icegram-dashicons-testimonial h4{font-size:1.5em}.icegram-badge{background:#3754a8 url(../images/icegram-logo-branding-64-white.png) no-repeat;background-position:center 24px;color:#FFF;font-size:12px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:24px;display:inline-block;width:150px;text-rendering:optimizeLegibility;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.2);box-shadow:0 1px 3px rgba(0,0,0,0.2)}.about-wrap .icegram-badge{position:absolute;top:0;right:0}.icegram-support{font-size:14px;color:black;margin:15px 0 0;height:10px;width:180px;text-align:center;text-rendering:optimizeLegibility;position:absolute;top:0;right:0;margin-top:178px;text-align:right}.icegram-contact-us{font-size:20px;line-height:1.5em;font-weight:800;margin-right:20px}.feature-section.col > div{position:relative;width:29.95%;margin-right:4.999999999%;float:left}.about-wrap [class$=col] .last-feature{margin-right:0}form[name="klawoo_subscribe"]{margin-right:150px}form[name="klawoo_subscribe"] input[name="email"]{width:20em}.icegram-contact-us a{color:#3754a8}.ig_addons_wrap .addons{overflow:hidden}.ig_addons_wrap .addons li{float:left;margin:0 1em 1em 0!important;padding:0;vertical-align:top;width:300px}.ig_addons_wrap .addons li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ig_addons_wrap .addons li a img{max-width:100px;max-height:100px;margin-right:-15px;padding:0 0 5px 5px;float:right}.ig_addons_wrap .addons li a h3{margin:0!important;padding:20px!important;background:#fff}.ig_addons_wrap .addons li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ig_addons_wrap .addons li a:focus,.ig_addons_wrap .addons li a:hover{background-color:#fff}.ig_addons_wrap .addons li .ig_addon_category{margin-top:-3.5em;float:right;text-transform:capitalize;font-style:normal;margin-right:1em;font-size:80%}.ig_addons_wrap .addons li .ig_addon_category span{margin-left:1.2em;padding:2px 3px;background-color:#DEDEDE;-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em}.ig_addons_wrap .addons li .ig_addon_category span.free{background-color:#C3D3FF;color:#3754a8}.ig_addons_special_message{font-size:60%;line-height:60%;margin-left:3em;padding:3px 10px;background-color:#FCF0AD;border:1px solid #CCC}#popup_container{width:550px;background-color:#FFF;margin:0 auto;padding:.5em 1em 1em 1em}#popup_container input[value="ig_vertical"]{margin-left:3%}#popup_container select{width:30%}#popup_container #embed_howto_link{float:right;font-size:.8em;font-weight:normal}.campaign_target_rules_panel .messages_list_table p.inline{display:block;margin:1em 0}.campaign_target_rules_panel .form-field .delete-url:before{font-family:dashicons;content:"\f182";cursor:pointer}.campaign_target_rules_panel .form-field .url_input_field{width:65%!important}.campaign_target_rules_panel #valid-field{margin-left:92%}.campaign_target_rules_panel #valid-field.error{font-family:dashicons;font-size:1.5em;color:#f00;vertical-align:middle;display:inline-block;-webkit-font-smoothing:antialiased;cursor:help}.campaign_target_rules_panel #valid-field.error:after{content:"\f223"}.campaign_target_rules_panel #add-url-icon:after{font-family:dashicons;content:"\f132";vertical-align:middle}.message_colors_options_container p{margin-top:.3em!important;margin-bottom:.3em!important}.message_colors_options_container p span.message_label{font-size:12px;margin-top:2px}.message-setting-fields .chosen-container-single .chosen-single{z-index:initial!important}.message-setting-fields .chosen-container-single.chosen-single div b{background:url(../images/chosen-sprite.png)no-repeat 0 2px!important}.message_theme + .chosen-container .chosen-results li.ig_get_more,.message_animation + .chosen-container .chosen-results li.ig_get_more{height:1.5em!important;background:rgba(255,231,180,0.47)!important;border:1px dashed rgb(180,0,0)!important;line-height:1.5em;color:rgb(128,0,0)!important;border-radius:0.5em;width:92%!important}.message_animation + .chosen-container .chosen-results li.ig_get_more{height:1em!important;line-height:1em;margin-bottom:0.1em;text-align:center}.message_theme + .chosen-container .chosen-results li.ig_get_more:after,.message_animation + .chosen-container .chosen-results li.ig_get_more:after{content:" \2192"}.message_theme + .chosen-container .chosen-results li.ig_get_more:focus,.message_theme + .chosen-container .chosen-results li.ig_get_more:hover,.message_animation + .chosen-container .chosen-results li.ig_get_more:focus,.message_animation + .chosen-container .chosen-results li.ig_get_more:hover{box-shadow:inset 0 0 1.5em rgba(253,214,131,0.62)}.message_form_options{width:75%;margin-left:25%}.message_form_options label.message_label{display:none}.message_form_options textarea{resize:none;width:86%}.message_form_options p > input,.message_form_options p > textarea,.message_form_options p > div{}.message_form_options p > div.form_radio_group{width:86%}.message_form_options span.message_label{width:100%}.message_form_options .form_inline_shortcode{margin-left:0;margin-top:1em;position:relative;width:inherit}.message_form_html_original{font-family:Consolas,Monaco,monospace;font-size:.8em}.form_radio_group .location{display:inline-block;width:97px;height:94px;padding:3px;padding-bottom:0;margin-right:.8em;border:1px solid transparent}.form_radio_group .location label{background:url(../images/from_layouts.png) no-repeat;display:block;width:95px;height:100px;border:1px solid transparent}.form_radio_group .location:hover{border:1px solid #2EA2CC}#message_form_style + .chosen-container-single .chosen-single{height:6em!important}#message_form_style + .chosen-container-single .chosen-single span{background-size:9em!important;line-height:6em!important;background-repeat:no-repeat;background-position:100% 50%!important}#message_form_style + .chosen-container .chosen-results li{width:43%!important;height:10em!important;margin:0% 0% 2% 2%;-webkit-background-size:95%!important;background-size:100%!important;border:2px solid #EEE!important;font-weight:700!important;display:inline-block!important;text-align:center!important;background-repeat:no-repeat!important;background-position:0% 100%!important;color:transparent}#message_form_style + .chosen-container .chosen-results li.highlighted{color:transparent!important;border:2px solid #2ea2cc!important;background-color:#EAEFFF!important}.message_form_options .chosen-container{width:86%!important}#message_form_style + .chosen-container .chosen-results li:first-child{}
|
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}.ig_message p{margin:.3em 0}.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:.6em;background-color:transparent!important;color:inherit!important}.ig_form_bottom .ig_form_container.layout_bottom .ig_embed_form_container,.ig_form_inline .ig_form_container.layout_inline .ig_embed_form_container{}.ig_form_left .ig_form_container.layout_left .ig_form_els,.ig_form_right .ig_form_container.layout_right .ig_form_els{margin:.5em auto}.ig_form_bottom .ig_form_container.layout_bottom .ig_form_els{display:inline-block;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,.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}.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;border:inherit;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{height:2.25em;line-height:2.2em;border:1px solid #ccc;-webkit-border-radius:.2em;-moz-border-radius:.2em;border-radius:.2em;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;padding:inherit;padding-left:.5em}.ig_form_style_1 .ig_form_container .ig_form_els input:focus,.ig_form_style_1 .ig_form_container .ig_form_els input:hover{border-color:#999;height:2.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;border:inherit;padding:inherit}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els{margin-right:0;margin-left:0}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els .ig_button,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els .ig_button,.ig_form_left.ig_form_style_2 .ig_form_container.layout_left .ig_form_els .ig_button,.ig_form_right.ig_form_style_2 .ig_form_container.layout_right .ig_form_els .ig_button{padding:inherit}.ig_form_left.ig_form_style_2 .ig_form_container.layout_left .ig_form_els input,.ig_form_right.ig_form_style_2 .ig_form_container.layout_right .ig_form_els input{padding-left:1em}.ig_form_left.ig_form_style_2 .ig_form_container.layout_left .ig_form_els .ig_button,.ig_form_left.ig_form_style_2 .ig_form_container.layout_left .ig_form_els input,.ig_form_right.ig_form_style_2 .ig_form_container.layout_right .ig_form_els .ig_button,.ig_form_right.ig_form_style_2 .ig_form_container.layout_right .ig_form_els input{height:2.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:first-child input,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:first-child input{-webkit-border-radius:2em 0 0 2em;-moz-border-radius:2em 0 0 2em;border-radius:2em 0 0 2em;padding-left:1em}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:first-child label,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:first-child label{padding-left:1em}.ig_form_bottom.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:last-child input,.ig_form_inline.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:last-child input{-webkit-border-radius:0 2em 2em 0;-moz-border-radius:0 2em 2em 0;border-radius:0 2em 2em 0}.ig_form_style_3 .ig_form_container .ig_form_els input{height:2.25em;line-height:2.2em;border:1px solid rgba(255,255,255,.3);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;padding:inherit;padding-left:.5em;background-color:rgba(0,0,0,.3);color:inherit}.ig_form_style_3 .ig_form_container .ig_form_els input:focus,.ig_form_style_3 .ig_form_container .ig_form_els input:hover{height:2.25em;line-height:2.2em;border-color:rgba(255,255,255,.6);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;border:inherit;padding:inherit}.ig_form_style_3 .ig_form_container .ig_form_els::-webkit-input-placeholder{color:rgba(255,255,255,.5)}.ig_form_style_3 .ig_form_container .ig_form_els:-moz-placeholder{color:rgba(255,255,255,.5);opacity:1}.ig_form_style_3 .ig_form_container .ig_form_els::-moz-placeholder{color:rgba(255,255,255,.5);opacity:1}.ig_form_style_3 .ig_form_container .ig_form_els:-ms-input-placeholder{color:rgba(255,255,255,.5)}.ig_form_style_4 .ig_form_container:before{border-style:solid;top:-1.2em;left:-1.3em;width:100%;height:100%;border-width:1.3em;z-index:-1;-moz-box-shadow:0 0 15px rgba(0,0,0,0.7);-webkit-box-shadow:0 0 15px rgba(0,0,0,0.7);box-shadow:0 0 15px rgba(0,0,0,0.7)}.ig_form_bottom.ig_form_style_4 .ig_form_container:before{top:0;border-bottom-width:0}.ig_form_right.ig_form_style_4 .ig_form_container:before{left:inherit;right:-1.3em}.ig_form_inline.ig_form_style_4 .ig_form_container:before{display:none}.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;border:inherit;padding:inherit}
|
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
ADDED
Binary file
|
assets/images/close_01.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(),i=jQuery(e).find(".message_row.ig_"+t).find(".message_theme").val(),s=jQuery(e).find(".message_row.ig_"+t).find("#message_form_style").val(),a=jQuery(e).find("#message_theme_ig_"+t).find("."+i).attr("style"),r=jQuery(e).find("#message_form_style").find("."+s).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",a),jQuery(e).find(".message_row.ig_"+t).find(".message_form_style").next().find(".chosen-single span").attr("style",r).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,i,s){var a=Math.floor(Math.random()*(s-i+1))+i;return a==e?t(a,i,s):a}function i(){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="'+a+'*"/><span class="delete-url"></span></span>';return e}function s(){0==jQuery(".message-row").length?jQuery(".empty_campaign").show():jQuery(".empty_campaign").hide()}var a=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 i=window.send_to_editor;jQuery("#postdivrich").hide(),jQuery(".color-field").wpColorPicker().each(function(e){var t=jQuery(this).data("color-label")||"";""!==t&&jQuery(this).closest(".wp-picker-container").find("a.wp-color-result").attr("title",t)}),jQuery("#campaign_data, #message-settings").on("change",".show_color_options",function(){jQuery(this).closest("p").next(".message_colors_options_container").toggle(!this.checked)}).change(),s(),jQuery(".message_edit:first").trigger("click"),this_data=jQuery(".message_type option:selected").closest(".message-setting-fields");for(var a=0;a<this_data.length;a++)e(this_data[a]);jQuery(".inside").on("change",".message_type",function(t){var i=jQuery(t.target).parents(".message-setting-fields");e(i)}),jQuery("#campaign_data, #message-settings").on("change",".message_theme",function(e){var t=jQuery(e.target).parents(".message-setting-fields"),i=jQuery(t).find(".message_type").val(),s=jQuery(t).find(".message_row.ig_"+i).find(".message_theme").val(),a=jQuery(t).find("#message_theme_ig_"+i).find("."+s).attr("style");jQuery(t).find(".message_row.ig_"+i).find(".message_theme").next().find(".chosen-single span").attr("style",a)}),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=i},!1}),jQuery("#campaign_data, #message-settings").on("click",".message_headline_button",function(){var e=jQuery(this).prev().attr("data-headline"),i=icegram_writepanel_params.available_headlines.length,s=t(e,0,i),a=icegram_writepanel_params.available_headlines[s];jQuery(this).prev().val(a)}),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(),s()}),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,i){t[e]=i}),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 i=jQuery(t).siblings(".message_form_options").siblings(".wp-editor-wrap").find(".wp-editor-area"),s=jQuery(i).val().trim().replace("[ig_form]","");jQuery(i).val(s)}}).change(),jQuery("#campaign_data, #message-settings").on("change",".message_form_style",function(e){var t=jQuery(e.target).parents(".message-setting-fields"),i=jQuery(t).find("#message_form_style").val(),s=jQuery(t).find("#message_form_style").find("."+i).attr("style");jQuery(t).find(".message_form_style").next().find(".chosen-single span").attr("style",s).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"),i=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==i.indexOf("[ig_form]")&&(i+="[ig_form]"),jQuery(e).closest(".form_radio_group").siblings(".message_form_color, .form_inline_shortcode").toggle()):"inline"!=jQuery(e).val()&&(i=i.replace("[ig_form]",""))),jQuery(t).val(i)}}),jQuery("#campaign_data, #message-settings").on("blur",".message_form_html_original",function(e){var t=this,i=jQuery("<div/>").html(jQuery(t).val()).find("input[type=submit], button, input[type=button]").not("*:disabled"),s=jQuery(t).closest(".message_form_options");if(jQuery(s).parent().find("p.cta-actions select option").removeAttr("disabled"),void 0!=jQuery(t).val()&&""!=jQuery(t).val()&&jQuery(s).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"),i.length>0){var a=jQuery(i[i.length-1]),r=a.is("button")?a.not("br, span, div").text():a.val();jQuery(s).siblings("p").find("#message_label").val(r.trim())}}),jQuery(".ajax_chosen_select_messages").chosen(),jQuery("#campaign_data, #message-settings").on("change",".ajax_chosen_select_messages",function(){var t=jQuery("#ig-tabs li.current").attr("variation_id"),i=jQuery.extend({},tinyMCEPreInit.mceInit.content),a=jQuery.extend({},tinyMCEPreInit.qtInit.content),r=jQuery(this).parent().siblings(".campaign_target_rules_panel"),n=jQuery(r).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:n},success:function(o){if(n++,jQuery(r).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("select.icegram_chosen_page").chosen({disable_search_threshold:10}),s(),jQuery(".message-setting-fields").trigger("change"),jQuery(".tips, .help_tip").tipTip({attribute:"data-tip"}),"undefined"==typeof tinyMCEPreInit.mceInit["edit"+o.id]){for(_prop in i)"string"==typeof i[_prop]&&"content_css"!==_prop&&(i[_prop]=i[_prop].replace(new RegExp("content","g"),"edit"+o.id));tinyMCEPreInit.mceInit["edit"+o.id]=i}if("undefined"==typeof tinyMCEPreInit.qtInit["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.qtInit["edit"+o.id]=a}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=i();jQuery(".local_url").find(".url_input_field").length?jQuery(t).insertAfter(jQuery(".local_url").find(".url_input_field").last().parent("span")):jQuery(t).insertBefore(jQuery(".local_url").find("#add_local_url_row_label"))}),jQuery("#campaign_target_rules").on("click",".delete-url",function(e){jQuery(this).parent().remove()}),jQuery("select.ajax_chosen_select_messages").next("div").on("click","div.chosen-drop",function(){jQuery(this).closest("h3.hndle").trigger("click")}),jQuery("#campaign_data").on("click",".campaign_preview",function(e){jQuery(this).closest("h3.hndle").trigger("click"),0!=jQuery(".message-row").length&&(tinyMCE.triggerSave(),params=jQuery("#post").serializeArray(),params.push({name:"action",value:"save_campaign_preview"}),jQuery.ajax({type:"POST",async:!1,url:icegram_writepanel_params.ajax_url,data:params,success:function(e){""!=e&&window.open(e,"preview_window")}}))}),jQuery("select.icegram_chosen_page").chosen({disable_search_threshold:10}),jQuery("input#users_logged_in, input#users_all ,input#users_not_logged_in").on("change",function(){"logged_in"==jQuery(this).val()?(jQuery("select#users_roles").parent("p").show(),jQuery("#users_roles_chosen").find("input").trigger("click")):jQuery("select#users_roles").parent("p").hide()}),jQuery(".schedule_rule").on("change",function(){"when_schedule"==jQuery(this).attr("id")?jQuery("#date_picker").show():jQuery("#date_picker").hide()}),jQuery("input#where_other_page").on("change",function(){jQuery("select#where_page_id").parent("p").slideToggle(),jQuery(this).is(":checked")&&jQuery("#where_page_id_chosen").find("input").trigger("click")}),jQuery("input#where_sitewide").on("change",function(){jQuery("select#exclude_page_id").parent("p").slideToggle(),jQuery(this).is(":checked")&&jQuery("#exclude_page_id_chosen").find("input").trigger("click")}),jQuery("input#where_local_url").on("change",function(){jQuery(".local_url").slideToggle()}),jQuery(".date-picker").datepicker({dateFormat:"yy-mm-dd",defaultDate:0,showOtherMonths:!0,selectOtherMonths:!0,changeMonth:!0,changeYear:!0,showButtonPanel:!0}),jQuery("#campaign_target_rules").on("focusout","input.url_input_field",function(){var e=this;if(jQuery(e).parent().find("span#valid-field").removeClass("error"),"undefine"!==jQuery(e).data("option")&&"local_url"==jQuery(e).data("option")&&"*"!=jQuery(e).val()){var t=e.value;if(t.indexOf(a)<0)return void jQuery(e).val(a+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=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/?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/chosen.jquery.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var t,e,s,i,r,o={}.hasOwnProperty,n=function(t,e){function s(){this.constructor=t}for(var i in e)o.call(e,i)&&(t[i]=e[i]);return s.prototype=e.prototype,t.prototype=new s,t.__super__=e.prototype,t};i=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,s,i,r,o,n;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:this.escapeExpression(t.label),children:0,disabled:t.disabled}),o=t.childNodes,n=[],i=0,r=o.length;r>i;i++)s=o[i],n.push(this.add_option(s,e,t.disabled));return n},t.prototype.add_option=function(t,e,s){return"OPTION"===t.nodeName.toUpperCase()?(""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,selected:t.selected,disabled:s===!0?s:t.disabled,group_array_index:e,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},t.prototype.escapeExpression=function(t){var e,s;return null==t||t===!1?"":/[\&\<\>\"\'\`]/.test(t)?(e={"<":"<",">":">",'"':""","'":"'","`":"`"},s=/&(?!\w+;)|[\<\>\"\'\`]/g,t.replace(s,function(t){return e[t]||"&"})):t},t}(),i.select_to_array=function(t){var e,s,r,o,n;for(s=new i,n=t.childNodes,r=0,o=n.length;o>r;r++)e=n[r],s.add_node(e);return s.parsed},e=function(){function t(e,s){this.form_field=e,this.options=null!=s?s:{},t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return t.prototype.set_default_values=function(){var t=this;return this.click_test_action=function(e){return t.test_active_click(e)},this.activate_action=function(e){return t.activate_field(e)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0},t.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(){var t=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return t.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(){var t=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return t.blur_test()},100))},t.prototype.results_option_build=function(t){var e,s,i,r,o;for(e="",o=this.results_data,i=0,r=o.length;r>i;i++)s=o[i],e+=s.group?this.result_add_group(s):this.result_add_option(s),(null!=t?t.first:void 0)&&(s.selected&&this.is_multiple?this.choice_build(s):s.selected&&!this.is_multiple&&this.single_set_selected_text(s.text));return e},t.prototype.result_add_option=function(t){var e,s;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),s=document.createElement("li"),s.className=e.join(" "),s.style.cssText=t.style,s.setAttribute("data-option-array-index",t.array_index),s.innerHTML=t.search_text,this.outerHTML(s)):""},t.prototype.result_add_group=function(t){var e;return(t.search_match||t.group_match)&&t.active_options>0?(e=document.createElement("li"),e.className="group-result",e.innerHTML=t.search_text,this.outerHTML(e)):""},t.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},t.prototype.reset_single_select_options=function(){var t,e,s,i,r;for(i=this.results_data,r=[],e=0,s=i.length;s>e;e++)t=i[e],r.push(t.selected?t.selected=!1:void 0);return r},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(){var t,e,s,i,r,o,n,h,l,c,a,_,u;for(this.no_results_clear(),r=0,n=this.get_search_text(),t=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=this.search_contains?"":"^",s=new RegExp(i+t,"i"),c=new RegExp(t,"i"),u=this.results_data,a=0,_=u.length;_>a;a++)e=u[a],e.search_match=!1,o=null,this.include_option_in_results(e)&&(e.group&&(e.group_match=!1,e.active_options=0),null!=e.group_array_index&&this.results_data[e.group_array_index]&&(o=this.results_data[e.group_array_index],0===o.active_options&&o.search_match&&(r+=1),o.active_options+=1),(!e.group||this.group_search)&&(e.search_text=e.group?e.label:e.html,e.search_match=this.search_string_match(e.search_text,s),e.search_match&&!e.group&&(r+=1),e.search_match?(n.length&&(h=e.search_text.search(c),l=e.search_text.substr(0,h+n.length)+"</em>"+e.search_text.substr(h+n.length),e.search_text=l.substr(0,h)+"<em>"+l.substr(h)),null!=o&&(o.group_match=!0)):null!=e.group_array_index&&this.results_data[e.group_array_index].search_match&&(e.search_match=!0)));return this.result_clear_highlight(),1>r&&n.length?(this.update_results_content(""),this.no_results(n)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},t.prototype.search_string_match=function(t,e){var s,i,r,o;if(e.test(t))return!0;if(this.enable_split_word_search&&(t.indexOf(" ")>=0||0===t.indexOf("["))&&(i=t.replace(/\[|\]/g,"").split(" "),i.length))for(r=0,o=i.length;o>r;r++)if(s=i[r],e.test(s))return!0},t.prototype.choices_count=function(){var t,e,s,i;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,i=this.form_field.options,e=0,s=i.length;s>e;e++)t=i[e],t.selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(t){return t.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},t.prototype.keyup_checker=function(t){var e,s;switch(e=null!=(s=t.which)?s:t.keyCode,this.search_field_scale(),e){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(t.preventDefault(),this.results_showing)return this.result_select(t);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},t.prototype.clipboard_event_checker=function(){var t=this;return setTimeout(function(){return t.results_search()},50)},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return this.is_multiple&&!this.display_selected_options&&t.selected?!1:!this.display_disabled_options&&t.disabled?!1:t.empty?!1:!0},t.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},t.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},t.prototype.search_results_touchend=function(t){return this.touch_started?this.search_results_mouseup(t):void 0},t.prototype.outerHTML=function(t){var e;return t.outerHTML?t.outerHTML:(e=document.createElement("div"),e.appendChild(t),e.innerHTML)},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),t=jQuery,t.fn.extend({chosen:function(i){return e.browser_is_supported()?this.each(function(){var e,r;e=t(this),r=e.data("chosen"),"destroy"===i&&r?r.destroy():r||e.data("chosen",new s(this,i))}):this}}),s=function(e){function s(){return r=s.__super__.constructor.apply(this,arguments)}return n(s,e),s.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},s.prototype.set_up_html=function(){var e,s;return e=["chosen-container"],e.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),s={"class":e.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(s.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",s),this.container.html(this.is_multiple?'<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>':'<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},s.prototype.register_observers=function(){var t=this;return this.container.bind("mousedown.chosen",function(e){t.container_mousedown(e)}),this.container.bind("mouseup.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mouseenter.chosen",function(e){t.mouse_enter(e)}),this.container.bind("mouseleave.chosen",function(e){t.mouse_leave(e)}),this.search_results.bind("mouseup.chosen",function(e){t.search_results_mouseup(e)}),this.search_results.bind("mouseover.chosen",function(e){t.search_results_mouseover(e)}),this.search_results.bind("mouseout.chosen",function(e){t.search_results_mouseout(e)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(e){t.search_results_mousewheel(e)}),this.search_results.bind("touchstart.chosen",function(e){t.search_results_touchstart(e)}),this.search_results.bind("touchmove.chosen",function(e){t.search_results_touchmove(e)}),this.search_results.bind("touchend.chosen",function(e){t.search_results_touchend(e)}),this.form_field_jq.bind("chosen:updated.chosen",function(e){t.results_update_field(e)}),this.form_field_jq.bind("chosen:activate.chosen",function(e){t.activate_field(e)}),this.form_field_jq.bind("chosen:open.chosen",function(e){t.container_mousedown(e)}),this.form_field_jq.bind("chosen:close.chosen",function(e){t.input_blur(e)}),this.search_field.bind("blur.chosen",function(e){t.input_blur(e)}),this.search_field.bind("keyup.chosen",function(e){t.keyup_checker(e)}),this.search_field.bind("keydown.chosen",function(e){t.keydown_checker(e)}),this.search_field.bind("focus.chosen",function(e){t.input_focus(e)}),this.search_field.bind("cut.chosen",function(e){t.clipboard_event_checker(e)}),this.search_field.bind("paste.chosen",function(e){t.clipboard_event_checker(e)}),this.is_multiple?this.search_choices.bind("click.chosen",function(e){t.choices_click(e)}):this.container.bind("click.chosen",function(t){t.preventDefault()})},s.prototype.destroy=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},s.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},s.prototype.container_mousedown=function(e){return this.is_disabled||(e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),null!=e&&t(e.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},s.prototype.container_mouseup=function(t){return"ABBR"!==t.target.nodeName||this.is_disabled?void 0:this.results_reset(t)},s.prototype.search_results_mousewheel=function(t){var e;return t.originalEvent&&(e=-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e?(t.preventDefault(),"DOMMouseScroll"===t.type&&(e=40*e),this.search_results.scrollTop(e+this.search_results.scrollTop())):void 0},s.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},s.prototype.close_field=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},s.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},s.prototype.test_active_click=function(e){var s;return s=t(e.target).closest(".chosen-container"),s.length&&this.container[0]===s[0]?this.active_field=!0:this.close_field()},s.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},s.prototype.result_do_highlight=function(t){var e,s,i,r,o;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),i=parseInt(this.search_results.css("maxHeight"),10),o=this.search_results.scrollTop(),r=i+o,s=this.result_highlight.position().top+this.search_results.scrollTop(),e=s+this.result_highlight.outerHeight(),e>=r)return this.search_results.scrollTop(e-i>0?e-i:0);if(o>s)return this.search_results.scrollTop(s)}},s.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},s.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},s.prototype.update_results_content=function(t){return this.search_results.html(t)},s.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},s.prototype.set_tab_index=function(){var t;return this.form_field.tabIndex?(t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t):void 0},s.prototype.set_label_behavior=function(){var e=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(t){return e.is_multiple?e.container_mousedown(t):e.activate_field()}):void 0},s.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},s.prototype.search_results_mouseup=function(e){var s;return s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first(),s.length?(this.result_highlight=s,this.result_select(e),this.search_field.focus()):void 0},s.prototype.search_results_mouseover=function(e){var s;return s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first(),s?this.result_do_highlight(s):void 0},s.prototype.search_results_mouseout=function(e){return t(e.target).hasClass("active-result")?this.result_clear_highlight():void 0},s.prototype.choice_build=function(e){var s,i,r=this;return s=t("<li />",{"class":"search-choice"}).html("<span>"+e.html+"</span>"),e.disabled?s.addClass("search-choice-disabled"):(i=t("<a />",{"class":"search-choice-close","data-option-array-index":e.array_index}),i.bind("click.chosen",function(t){return r.choice_destroy_link_click(t)}),s.append(i)),this.search_container.before(s)},s.prototype.choice_destroy_link_click=function(e){return e.preventDefault(),e.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(t(e.target))},s.prototype.choice_destroy=function(t){return this.result_deselect(t[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()):void 0},s.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},s.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},s.prototype.result_select=function(t){var e,s;return this.result_highlight?(e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):this.reset_single_select_options(),s=this.results_data[e[0].getAttribute("data-option-array-index")],s.selected=!0,this.form_field.options[s.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(s):this.single_set_selected_text(s.text),(t.metaKey||t.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[s.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},s.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(t)},s.prototype.result_deselect=function(t){var e;return e=this.results_data[t],this.form_field.options[e.options_index].disabled?!1:(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},s.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},s.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":t("<div/>").text(t.trim(this.search_field.val())).html()},s.prototype.winnow_results_set_highlight=function(){var t,e;return e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),t=e.length?e.first():this.search_results.find(".active-result").first(),null!=t?this.result_do_highlight(t):void 0},s.prototype.no_results=function(e){var s;return s=t('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),s.find("span").first().html(e),this.search_results.append(s),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},s.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},s.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},s.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result"),t.length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},s.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last(),t.length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},s.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},s.prototype.keydown_checker=function(t){var e,s;switch(e=null!=(s=t.which)?s:t.keyCode,this.search_field_scale(),8!==e&&this.pending_backstroke&&this.clear_backstroke(),e){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},s.prototype.search_field_scale=function(){var e,s,i,r,o,n,h,l,c;if(this.is_multiple){for(i=0,h=0,o="position:absolute; left: -1000px; top: -1000px; display:none;",n=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],l=0,c=n.length;c>l;l++)r=n[l],o+=r+":"+this.search_field.css(r)+";";return e=t("<div />",{style:o}),e.text(this.search_field.val()),t("body").append(e),h=e.width()+25,e.remove(),s=this.container.outerWidth(),h>s-10&&(h=s-10),this.search_field.css({width:h+"px"})}},s}(e)}.call(this);
|
1 |
+
!function(){var t,e,s,i,r,o={}.hasOwnProperty,n=function(t,e){function s(){this.constructor=t}for(var i in e)o.call(e,i)&&(t[i]=e[i]);return s.prototype=e.prototype,t.prototype=new s,t.__super__=e.prototype,t};i=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,s,i,r,o,n;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:this.escapeExpression(t.label),children:0,disabled:t.disabled}),o=t.childNodes,n=[],i=0,r=o.length;r>i;i++)s=o[i],n.push(this.add_option(s,e,t.disabled));return n},t.prototype.add_option=function(t,e,s){return"OPTION"===t.nodeName.toUpperCase()?(""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,selected:t.selected,disabled:s===!0?s:t.disabled,group_array_index:e,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},t.prototype.escapeExpression=function(t){var e,s;return null==t||t===!1?"":/[\&\<\>\"\'\`]/.test(t)?(e={"<":"<",">":">",'"':""","'":"'","`":"`"},s=/&(?!\w+;)|[\<\>\"\'\`]/g,t.replace(s,function(t){return e[t]||"&"})):t},t}(),i.select_to_array=function(t){var e,s,r,o,n;for(s=new i,n=t.childNodes,r=0,o=n.length;o>r;r++)e=n[r],s.add_node(e);return s.parsed},e=function(){function t(e,s){this.form_field=e,this.options=null!=s?s:{},t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return t.prototype.set_default_values=function(){var t=this;return this.click_test_action=function(e){return t.test_active_click(e)},this.activate_action=function(e){return t.activate_field(e)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0},t.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(){var t=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return t.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(){var t=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return t.blur_test()},100))},t.prototype.results_option_build=function(t){var e,s,i,r,o;for(e="",o=this.results_data,i=0,r=o.length;r>i;i++)s=o[i],e+=s.group?this.result_add_group(s):this.result_add_option(s),(null!=t?t.first:void 0)&&(s.selected&&this.is_multiple?this.choice_build(s):s.selected&&!this.is_multiple&&this.single_set_selected_text(s.text));return e},t.prototype.result_add_option=function(t){var e,s;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),s=document.createElement("li"),s.className=e.join(" "),s.style.cssText=t.style,s.setAttribute("data-option-array-index",t.array_index),s.innerHTML=t.search_text,this.outerHTML(s)):""},t.prototype.result_add_group=function(t){var e;return(t.search_match||t.group_match)&&t.active_options>0?(e=document.createElement("li"),e.className="group-result",e.innerHTML=t.search_text,this.outerHTML(e)):""},t.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},t.prototype.reset_single_select_options=function(){var t,e,s,i,r;for(i=this.results_data,r=[],e=0,s=i.length;s>e;e++)t=i[e],t.selected?r.push(t.selected=!1):r.push(void 0);return r},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(){var t,e,s,i,r,o,n,h,l,c,a,_,u;for(this.no_results_clear(),r=0,n=this.get_search_text(),t=n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=this.search_contains?"":"^",s=new RegExp(i+t,"i"),c=new RegExp(t,"i"),u=this.results_data,a=0,_=u.length;_>a;a++)e=u[a],e.search_match=!1,o=null,this.include_option_in_results(e)&&(e.group&&(e.group_match=!1,e.active_options=0),null!=e.group_array_index&&this.results_data[e.group_array_index]&&(o=this.results_data[e.group_array_index],0===o.active_options&&o.search_match&&(r+=1),o.active_options+=1),(!e.group||this.group_search)&&(e.search_text=e.group?e.label:e.html,e.search_match=this.search_string_match(e.search_text,s),e.search_match&&!e.group&&(r+=1),e.search_match?(n.length&&(h=e.search_text.search(c),l=e.search_text.substr(0,h+n.length)+"</em>"+e.search_text.substr(h+n.length),e.search_text=l.substr(0,h)+"<em>"+l.substr(h)),null!=o&&(o.group_match=!0)):null!=e.group_array_index&&this.results_data[e.group_array_index].search_match&&(e.search_match=!0)));return this.result_clear_highlight(),1>r&&n.length?(this.update_results_content(""),this.no_results(n)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},t.prototype.search_string_match=function(t,e){var s,i,r,o;if(e.test(t))return!0;if(this.enable_split_word_search&&(t.indexOf(" ")>=0||0===t.indexOf("["))&&(i=t.replace(/\[|\]/g,"").split(" "),i.length))for(r=0,o=i.length;o>r;r++)if(s=i[r],e.test(s))return!0},t.prototype.choices_count=function(){var t,e,s,i;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,i=this.form_field.options,e=0,s=i.length;s>e;e++)t=i[e],t.selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(t){return t.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},t.prototype.keyup_checker=function(t){var e,s;switch(e=null!=(s=t.which)?s:t.keyCode,this.search_field_scale(),e){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(t.preventDefault(),this.results_showing)return this.result_select(t);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},t.prototype.clipboard_event_checker=function(){var t=this;return setTimeout(function(){return t.results_search()},50)},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return this.is_multiple&&!this.display_selected_options&&t.selected?!1:!this.display_disabled_options&&t.disabled?!1:t.empty?!1:!0},t.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},t.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},t.prototype.search_results_touchend=function(t){return this.touch_started?this.search_results_mouseup(t):void 0},t.prototype.outerHTML=function(t){var e;return t.outerHTML?t.outerHTML:(e=document.createElement("div"),e.appendChild(t),e.innerHTML)},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),t=jQuery,t.fn.extend({chosen:function(i){return e.browser_is_supported()?this.each(function(){var e,r;e=t(this),r=e.data("chosen"),"destroy"===i&&r?r.destroy():r||e.data("chosen",new s(this,i))}):this}}),s=function(e){function s(){return r=s.__super__.constructor.apply(this,arguments)}return n(s,e),s.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},s.prototype.set_up_html=function(){var e,s;return e=["chosen-container"],e.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),s={"class":e.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(s.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",s),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},s.prototype.register_observers=function(){var t=this;return this.container.bind("mousedown.chosen",function(e){t.container_mousedown(e)}),this.container.bind("mouseup.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mouseenter.chosen",function(e){t.mouse_enter(e)}),this.container.bind("mouseleave.chosen",function(e){t.mouse_leave(e)}),this.search_results.bind("mouseup.chosen",function(e){t.search_results_mouseup(e)}),this.search_results.bind("mouseover.chosen",function(e){t.search_results_mouseover(e)}),this.search_results.bind("mouseout.chosen",function(e){t.search_results_mouseout(e)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(e){t.search_results_mousewheel(e)}),this.search_results.bind("touchstart.chosen",function(e){t.search_results_touchstart(e)}),this.search_results.bind("touchmove.chosen",function(e){t.search_results_touchmove(e)}),this.search_results.bind("touchend.chosen",function(e){t.search_results_touchend(e)}),this.form_field_jq.bind("chosen:updated.chosen",function(e){t.results_update_field(e)}),this.form_field_jq.bind("chosen:activate.chosen",function(e){t.activate_field(e)}),this.form_field_jq.bind("chosen:open.chosen",function(e){t.container_mousedown(e)}),this.form_field_jq.bind("chosen:close.chosen",function(e){t.input_blur(e)}),this.search_field.bind("blur.chosen",function(e){t.input_blur(e)}),this.search_field.bind("keyup.chosen",function(e){t.keyup_checker(e)}),this.search_field.bind("keydown.chosen",function(e){t.keydown_checker(e)}),this.search_field.bind("focus.chosen",function(e){t.input_focus(e)}),this.search_field.bind("cut.chosen",function(e){t.clipboard_event_checker(e)}),this.search_field.bind("paste.chosen",function(e){t.clipboard_event_checker(e)}),this.is_multiple?this.search_choices.bind("click.chosen",function(e){t.choices_click(e)}):this.container.bind("click.chosen",function(t){t.preventDefault()})},s.prototype.destroy=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},s.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},s.prototype.container_mousedown=function(e){return this.is_disabled||(e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),null!=e&&t(e.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},s.prototype.container_mouseup=function(t){return"ABBR"!==t.target.nodeName||this.is_disabled?void 0:this.results_reset(t)},s.prototype.search_results_mousewheel=function(t){var e;return t.originalEvent&&(e=-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e?(t.preventDefault(),"DOMMouseScroll"===t.type&&(e=40*e),this.search_results.scrollTop(e+this.search_results.scrollTop())):void 0},s.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},s.prototype.close_field=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},s.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},s.prototype.test_active_click=function(e){var s;return s=t(e.target).closest(".chosen-container"),s.length&&this.container[0]===s[0]?this.active_field=!0:this.close_field()},s.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},s.prototype.result_do_highlight=function(t){var e,s,i,r,o;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),i=parseInt(this.search_results.css("maxHeight"),10),o=this.search_results.scrollTop(),r=i+o,s=this.result_highlight.position().top+this.search_results.scrollTop(),e=s+this.result_highlight.outerHeight(),e>=r)return this.search_results.scrollTop(e-i>0?e-i:0);if(o>s)return this.search_results.scrollTop(s)}},s.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},s.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},s.prototype.update_results_content=function(t){return this.search_results.html(t)},s.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},s.prototype.set_tab_index=function(){var t;return this.form_field.tabIndex?(t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t):void 0},s.prototype.set_label_behavior=function(){var e=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(t){return e.is_multiple?e.container_mousedown(t):e.activate_field()}):void 0},s.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},s.prototype.search_results_mouseup=function(e){var s;return s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first(),s.length?(this.result_highlight=s,this.result_select(e),this.search_field.focus()):void 0},s.prototype.search_results_mouseover=function(e){var s;return s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first(),s?this.result_do_highlight(s):void 0},s.prototype.search_results_mouseout=function(e){return t(e.target).hasClass("active-result")?this.result_clear_highlight():void 0},s.prototype.choice_build=function(e){var s,i,r=this;return s=t("<li />",{"class":"search-choice"}).html("<span>"+e.html+"</span>"),e.disabled?s.addClass("search-choice-disabled"):(i=t("<a />",{"class":"search-choice-close","data-option-array-index":e.array_index}),i.bind("click.chosen",function(t){return r.choice_destroy_link_click(t)}),s.append(i)),this.search_container.before(s)},s.prototype.choice_destroy_link_click=function(e){return e.preventDefault(),e.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(t(e.target))},s.prototype.choice_destroy=function(t){return this.result_deselect(t[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()):void 0},s.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},s.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},s.prototype.result_select=function(t){var e,s;return this.result_highlight?(e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):this.reset_single_select_options(),s=this.results_data[e[0].getAttribute("data-option-array-index")],s.selected=!0,this.form_field.options[s.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(s):this.single_set_selected_text(s.text),(t.metaKey||t.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[s.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},s.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(t)},s.prototype.result_deselect=function(t){var e;return e=this.results_data[t],this.form_field.options[e.options_index].disabled?!1:(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},s.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},s.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":t("<div/>").text(t.trim(this.search_field.val())).html()},s.prototype.winnow_results_set_highlight=function(){var t,e;return e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),t=e.length?e.first():this.search_results.find(".active-result").first(),null!=t?this.result_do_highlight(t):void 0},s.prototype.no_results=function(e){var s;return s=t('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),s.find("span").first().html(e),this.search_results.append(s),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},s.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},s.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},s.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result"),t.length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},s.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last(),t.length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},s.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},s.prototype.keydown_checker=function(t){var e,s;switch(e=null!=(s=t.which)?s:t.keyCode,this.search_field_scale(),8!==e&&this.pending_backstroke&&this.clear_backstroke(),e){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},s.prototype.search_field_scale=function(){var e,s,i,r,o,n,h,l,c;if(this.is_multiple){for(i=0,h=0,o="position:absolute; left: -1000px; top: -1000px; display:none;",n=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],l=0,c=n.length;c>l;l++)r=n[l],o+=r+":"+this.search_field.css(r)+";";return e=t("<div />",{style:o}),e.text(this.search_field.val()),t("body").append(e),h=e.width()+25,e.remove(),s=this.container.outerWidth(),h>s-10&&(h=s-10),this.search_field.css({width:h+"px"})}},s}(e)}.call(this);
|
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.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>":"",d=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(d),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 _="";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),_+=".ig_form_"+t+".ig_form_"+a+" .ig_form_container:before{ background-color:"+this.data.form_bg_color+"; border-color:"+this.data.form_bg_color+";}"):_+=".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),"none"!=a&&this.el.addClass("ig_form_"+a).find(".ig_form_container").prepend('<style type="text/css">'+_+"</style>")}}}},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"),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().css({position:"absolute",left:"-5000px"}).end().end().find(".ig_form_hidden_field").parent().css({display:"none"}),r.append(a),jQuery("<div/>").append(r).html()}return null},Icegram_Message_Type.prototype.render_template=function(){return"function"!=typeof window.icegram.get_template_fn(this.type)&&window.icegram.set_template_fn(this.type,new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+this.template.replace(/[\r\t\n]/g," ").split("{{").join(" ").replace(/((^|\}\})[^\t]*)'/g,"$1\r").replace(/\t=(.*?)\}\}/g,"',$1,'").split(" ").join("');").split("}}").join("p.push('").split("\r").join("\\'")+"');}return p.join('');")),window.icegram.get_template_fn(this.type)(this.data)},Icegram_Message_Type.prototype.pre_render=function(){},Icegram_Message_Type.prototype.post_render=function(){},Icegram_Message_Type.prototype.set_up_show_trigger=function(){if(isNaN(this.data.delay_time))this.show();else if(this.data.delay_time>=0){var e=this;this.timer=setTimeout(function(){e.show()},1e3*this.data.delay_time)}},Icegram_Message_Type.prototype.set_template=function(e){this.template=e},Icegram_Message_Type.prototype.get_template_default=function(){return'<div id="icegram_message_{{=id}}" class="icegram"><div class="ig_headline">{{=headline}}</div></div>'},Icegram_Message_Type.prototype.show=function(e,t){this.is_visible()||(this.el.show(e),t!==!0&&this.track("shown"));var i=this;window.icegram.adjustFormContainerHeight(i)},Icegram_Message_Type.prototype.hide=function(e,t){this.is_visible()&&(this.el.hide(e),t!==!0&&this.track("closed"))},Icegram_Message_Type.prototype.set_position=function(){},Icegram_Message_Type.prototype.add_powered_by=function(e){},Icegram_Message_Type.prototype.track=function(e,t){"function"==typeof window.icegram.track&&(t=t||{},jQuery.extend(t,{message_id:this.data.id,campaign_id:this.data.campaign_id,expiry_time:this.data.expiry_time,expiry_time_clicked:this.data.expiry_time_clicked}),window.icegram.track(e,t))},Icegram_Message_Type.prototype.is_visible=function(){return this.el.is(":visible")},Icegram_Message_Type.prototype.toggle=function(e){this.is_visible()?this.hide(e):this.show(e)},Icegram_Message_Type.prototype.on_click=function(e){if(e.data=e.data||{self:this},jQuery(e.target).filter(".ig_close").length)return void e.data.self.hide();var t=jQuery(e.target).closest(".icegram").find("form:visible").first();(jQuery(e.target).filter(".ig_button, .ig_cta ,:submit").length||jQuery(e.target).parents(".ig_button, .ig_cta ").length&&!(t.find("ig_button").length>0||t.find("input[type=button]").length>0||t.find("input[type=submit]").length>0))&&e.data.self.on_cta_click(e)},Icegram_Message_Type.prototype.on_resize=function(e){},Icegram_Message_Type.prototype.on_cta_click=function(e){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())},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 d=o-s;switch(r=n>.5?d/(2-o-s):d/(o+s),o){case e:a=(t-i)/d;break;case t:a=(i-e)/d+2;break;case i:a=(e-t)/d+4}n=Math.floor(100*n),r=Math.floor(100*r),a=Math.floor(60*a),0>a&&(a+=360)}return{h:a,s:r,l:n}},Icegram.prototype.hexToHsl=function(e){var t=window.icegram.hexToRgb(e);return window.icegram.rgbToHsl(t.r,t.g,t.b)},"function"!=typeof Object.create&&!function(){var e=function(){};Object.create=function(t){if(arguments.length>1)throw Error("Second argument not supported");if(null===t)throw Error("Cannot set a null [[Prototype]]");if("object"!=typeof t)throw TypeError("Argument must be an object");return e.prototype=t,new e}}(),void 0!==typeof jQuery.cookie&&!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function t(e){return n.raw?e:encodeURIComponent(e)}function i(e){return n.raw?e:decodeURIComponent(e)}function a(e){return t(n.json?JSON.stringify(e):String(e))}function r(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(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,d){if(void 0!==s&&!e.isFunction(s)){if(d=e.extend({},n.defaults,d),"number"==typeof d.expires){var _=d.expires,l=d.expires=new Date;l.setTime(+l+864e5*_)}return document.cookie=[t(r),"=",a(s),d.expires?"; expires="+d.expires.toUTCString():"",d.path?"; path="+d.path:"",d.domain?"; domain="+d.domain:"",d.secure?"; secure":""].join("")}for(var c=r?void 0:{},p=document.cookie?document.cookie.split("; "):[],g=0,h=p.length;h>g;g++){var f=p[g].split("="),m=i(f.shift()),u=f.join("=");if(r&&r===m){c=o(u,s);break}r||void 0===(u=o(u))||(c[m]=u)}return c};n.defaults={},e.removeCookie=function(t,i){return void 0===e.cookie(t)?!1:(e.cookie(t,"",e.extend({},i,{expires:-1})),!e.cookie(t))}});
|
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.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))}});
|
assets/js/magnific-popup.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,o,a,r,s="Close",l="BeforeClose",c="AfterClose",p="BeforeAppend",d="MarkupParse",u="Open",f="Change",m="mfp",g="."+m,v="mfp-ready",h="mfp-removing",C="mfp-prevent-close",y=function(){},w=!!window.jQuery,I=e(window),b=function(e,n){t.ev.on(m+e+g,n)},k=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},S=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},T=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},_=function(){e.magnificPopup.instance||(t=new y,t.init(),e.magnificPopup.instance=t)},E=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 n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=E(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if(r=s[o],r.parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),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=k("bg").on("click"+g,function(){t.close()}),t.wrap=k("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=k("container",t.wrap)),t.contentContainer=k("content"),t.st.preloader&&(t.preloader=k("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var c=l[o];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}S("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(b(d,function(e,t,n,i){n.close_replaceWith=T(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(T())),t.st.alignTop&&(a+=" mfp-align-top"),t.wrap.css(t.fixedContentPos?{overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}:{top:I.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),I.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var p=t.wH=I.height(),f={};if(t.fixedContentPos&&t._hasScrollBar(p)){var m=t._getScrollbarSize();m&&(f.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):f.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),S("BuildControls"),e("html").css(f),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),i.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),S(u),n},close:function(){t.isOpen&&(S(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(){S(s);var n=h+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.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,S(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||I.height();t.fixedContentPos||t.wrap.css("height",t.wH),S("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(S("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=t.st[i]?t.st[i].markup:!1;S("FirstMarkupParse",a),a?t.currTemplate[i]=e(a):t.currTemplate[i]=!0}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,S(f,n),o=n.type,t.container.prepend(t.contentContainer),S("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(T()):t.content=e:t.content="",S(p),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,S("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){var a=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(a||2!==n.which&&!n.ctrlKey&&!n.metaKey){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(I.width()<r)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),!i&&"loading"===e&&(i=t.st.tLoading);var o={status:e,text:i};S("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(C)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))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?i.height():document.body.scrollHeight)>(e||I.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){return n.target===t.wrap[0]||e.contains(t.wrap[0],n.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),S(d,[t,n,i]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(o=e.split("_"),o.length>1){var i=t.find(g+"-"+o[0]);if(i.length>0){var a=o[1];"replaceWith"===a?i[0]!==n[0]&&i.replaceWith(n):"img"===a?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(g+"-"+e).html(n)})},_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,n){return _(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.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">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){_();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=w?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),w?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var P,O,x,z="inline",M=function(){x&&(O.after(x.addClass(P)).detach(),x=null)};e.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(z),b(s+"."+z,function(){M()})},getInline:function(n,i){if(M(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(O||(P=o.hiddenClass,O=k(P),P="mfp-"+P),x=a.after(O).detach().removeClass(P)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var B,H=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}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 n=t.st.image,i=".image";t.types.push("image"),b(u+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),b(s+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),I.off("resize"+g)}),b("Resize"+i,t.resizeImage),t.isLowIE&&b("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,B&&clearInterval(B),e.isCheckingImgSize=!1,S("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){B&&clearInterval(B),B=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(n>200&&clearInterval(B),n++,3===n?o(10):40===n?o(50):100===n&&o(500),void 0)},a)};o(1)},getImage:function(n,i){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,S("ImageLoadComplete")):(o++,200>o?setTimeout(a,100):r()))},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:H(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(B&&clearInterval(B),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});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,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},p=function(){t.content.css("visibility","visible")};b("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void p();a=c(e),a.css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){p(),setTimeout(function(){a.remove(),e=a=null,S("ZoomAnimationEnded")},16)},r)},16)}}),b(l+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!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)}}),b(s+i,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(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(w?i.innerHeight():i[0].offsetHeight)-r-a};return A()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var L="retina";e.magnificPopup.registerModule(L,{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,n=e.ratio;n=isNaN(n)?n():n,n>1&&(b("ImageHasSize."+L,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),b("ElementParse."+L,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),_()});
|
1 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,o,a,r,s="Close",l="BeforeClose",c="AfterClose",p="BeforeAppend",d="MarkupParse",u="Open",f="Change",m="mfp",g="."+m,v="mfp-ready",h="mfp-removing",C="mfp-prevent-close",y=function(){},w=!!window.jQuery,I=e(window),b=function(e,n){t.ev.on(m+e+g,n)},k=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},S=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},T=function(n){return n===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=n),t.currTemplate.closeBtn},_=function(){e.magnificPopup.instance||(t=new y,t.init(),e.magnificPopup.instance=t)},E=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 n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=E(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var r,s=n.items;for(o=0;o<s.length;o++)if(r=s[o],r.parsed&&(r=r.el[0]),r===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),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=k("bg").on("click"+g,function(){t.close()}),t.wrap=k("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=k("container",t.wrap)),t.contentContainer=k("content"),t.st.preloader&&(t.preloader=k("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var c=l[o];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}S("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(b(d,function(e,t,n,i){n.close_replaceWith=T(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(T())),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:I.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),I.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var p=t.wH=I.height(),f={};if(t.fixedContentPos&&t._hasScrollBar(p)){var m=t._getScrollbarSize();m&&(f.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):f.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),S("BuildControls"),e("html").css(f),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),i.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),S(u),n},close:function(){t.isOpen&&(S(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(){S(s);var n=h+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.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,S(c)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||I.height();t.fixedContentPos||t.wrap.css("height",t.wH),S("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(S("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=t.st[i]?t.st[i].markup:!1;S("FirstMarkupParse",a),a?t.currTemplate[i]=e(a):t.currTemplate[i]=!0}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(r,i),n.preloaded=!0,S(f,n),o=n.type,t.container.prepend(t.contentContainer),S("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".mfp-close").length||t.content.append(T()):t.content=e:t.content="",S(p),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){i=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,S("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){var a=void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick;if(a||2!==n.which&&!n.ctrlKey&&!n.metaKey){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(I.width()<r)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),!i&&"loading"===e&&(i=t.st.tLoading);var o={status:e,text:i};S("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(C)){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))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?i.height():document.body.scrollHeight)>(e||I.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){return n.target===t.wrap[0]||e.contains(t.wrap[0],n.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),S(d,[t,n,i]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(o=e.split("_"),o.length>1){var i=t.find(g+"-"+o[0]);if(i.length>0){var a=o[1];"replaceWith"===a?i[0]!==n[0]&&i.replaceWith(n):"img"===a?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(o[1],n)}}else t.find(g+"-"+e).html(n)})},_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,n){return _(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.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">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){_();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=w?i.data("magnificPopup"):i[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),w?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var P,O,x,z="inline",M=function(){x&&(O.after(x.addClass(P)).detach(),x=null)};e.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(z),b(s+"."+z,function(){M()})},getInline:function(n,i){if(M(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(O||(P=o.hiddenClass,O=k(P),P="mfp-"+P),x=a.after(O).detach().removeClass(P)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var B,H=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}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 n=t.st.image,i=".image";t.types.push("image"),b(u+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),b(s+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),I.off("resize"+g)}),b("Resize"+i,t.resizeImage),t.isLowIE&&b("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,B&&clearInterval(B),e.isCheckingImgSize=!1,S("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){B&&clearInterval(B),B=setInterval(function(){return i.naturalWidth>0?void t._onImageHasSize(e):(n>200&&clearInterval(B),n++,3===n?o(10):40===n?o(50):100===n&&o(500),void 0)},a)};o(1)},getImage:function(n,i){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,S("ImageLoadComplete")):(o++,200>o?setTimeout(a,100):r()))},r=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:H(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(B&&clearInterval(B),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});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,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,r=n.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},p=function(){t.content.css("visibility","visible")};b("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void p();a=c(e),a.css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){p(),setTimeout(function(){a.remove(),e=a=null,S("ZoomAnimationEnded")},16)},r)},16)}}),b(l+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!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)}}),b(s+i,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(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),a=parseInt(i.css("padding-top"),10),r=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:i.width(),height:(w?i.innerHeight():i[0].offsetHeight)-r-a};return A()?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var L="retina";e.magnificPopup.registerModule(L,{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,n=e.ratio;n=isNaN(n)?n():n,n>1&&(b("ImageHasSize."+L,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),b("ElementParse."+L,function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),_()});
|
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-campaign.php
CHANGED
@@ -132,7 +132,7 @@ if ( !class_exists( 'Icegram_Campaign' ) ) {
|
|
132 |
return true;
|
133 |
}
|
134 |
}
|
135 |
-
if ( !empty( $campaign->rules_summary['where']['homepage'] ) && $campaign->rules_summary['where']['homepage'] == 'yes' && (
|
136 |
return true;
|
137 |
}
|
138 |
if ( !empty( $page_id ) ) {
|
132 |
return true;
|
133 |
}
|
134 |
}
|
135 |
+
if ( !empty( $campaign->rules_summary['where']['homepage'] ) && $campaign->rules_summary['where']['homepage'] == 'yes' && ((isset($_REQUEST['is_home']) && $_REQUEST['is_home'] === 'true') || is_home() || is_front_page() )) {
|
136 |
return true;
|
137 |
}
|
138 |
if ( !empty( $page_id ) ) {
|
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
|
|
|
|
|
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
@@ -66,8 +66,9 @@ abstract class Icegram_Message_Type {
|
|
66 |
}
|
67 |
// Allow other plugins to add themes
|
68 |
$themes = apply_filters( 'icegram_message_type_themes', $themes ,$this->type);
|
|
|
69 |
$this->define_settings();
|
70 |
-
|
71 |
$params = array(
|
72 |
'name' => $this->name,
|
73 |
'type' => $this->type,
|
@@ -79,13 +80,13 @@ abstract class Icegram_Message_Type {
|
|
79 |
);
|
80 |
|
81 |
$params = apply_filters( 'icegram_message_type_params_'.$this->type ,$params );
|
|
|
82 |
|
83 |
$message_types[ $this->type ] = $params;
|
84 |
return $message_types;
|
85 |
}
|
86 |
|
87 |
function define_settings() {
|
88 |
-
|
89 |
$this->settings = array(
|
90 |
'animation' => array( 'type' => 'select' ),
|
91 |
'theme' => array( 'type' => 'select' ),
|
@@ -100,6 +101,9 @@ abstract class Icegram_Message_Type {
|
|
100 |
'form_layout' => array( 'type' => 'position' ), //TODO :: check this , remove if not required
|
101 |
'embed_form' => array( 'type' => 'form' ) // TODO :: remove this setting from all MS type
|
102 |
);
|
|
|
|
|
|
|
103 |
|
104 |
}
|
105 |
}
|
66 |
}
|
67 |
// Allow other plugins to add themes
|
68 |
$themes = apply_filters( 'icegram_message_type_themes', $themes ,$this->type);
|
69 |
+
|
70 |
$this->define_settings();
|
71 |
+
|
72 |
$params = array(
|
73 |
'name' => $this->name,
|
74 |
'type' => $this->type,
|
80 |
);
|
81 |
|
82 |
$params = apply_filters( 'icegram_message_type_params_'.$this->type ,$params );
|
83 |
+
$params = apply_filters( 'icegram_message_type_params', $params, $this->type );
|
84 |
|
85 |
$message_types[ $this->type ] = $params;
|
86 |
return $message_types;
|
87 |
}
|
88 |
|
89 |
function define_settings() {
|
|
|
90 |
$this->settings = array(
|
91 |
'animation' => array( 'type' => 'select' ),
|
92 |
'theme' => array( 'type' => 'select' ),
|
101 |
'form_layout' => array( 'type' => 'position' ), //TODO :: check this , remove if not required
|
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 |
}
|
109 |
}
|
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.
|
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.
|
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 |
-
|
|
|
|
|
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-
|
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
|
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 |
-
//
|
577 |
-
|
|
|
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' => ' \
|
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)
|
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 |
-
|
|
|
|
|
|
|
740 |
return $this->userAgent = $userAgent;
|
741 |
} else {
|
742 |
$this->userAgent = null;
|
743 |
foreach ($this->getUaHttpHeaders() as $altHeader) {
|
744 |
-
if (
|
745 |
$this->userAgent .= $this->httpHeaders[$altHeader] . " ";
|
746 |
}
|
747 |
}
|
748 |
|
749 |
-
|
|
|
|
|
|
|
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
|
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 (
|
936 |
-
if (
|
937 |
foreach ($matchType['matches'] as $_match) {
|
938 |
-
if (
|
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)
|
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
|
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
|
1002 |
*
|
1003 |
* @param string $key
|
1004 |
-
*
|
1005 |
-
* @return
|
1006 |
*/
|
1007 |
-
protected function matchUAAgainstKey($key
|
1008 |
{
|
1009 |
// Make the keys lowercase so we can match: isIphone(), isiPhone(), isiphone(), etc.
|
1010 |
$key = strtolower($key);
|
|
|
1011 |
|
1012 |
-
|
1013 |
-
|
1014 |
|
1015 |
-
|
1016 |
-
|
1017 |
-
return null;
|
1018 |
}
|
1019 |
|
1020 |
-
|
|
|
|
|
1021 |
}
|
1022 |
|
1023 |
-
return
|
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
|
1030 |
-
* @param
|
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
|
1081 |
-
* @param
|
1082 |
-
* @param
|
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 |
-
|
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
|
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 (
|
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('
|
1203 |
|
1204 |
-
if (
|
1205 |
-
$version = (
|
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->
|
1229 |
-
$this->
|
1230 |
-
$this->
|
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->
|
1303 |
-
$this->
|
1304 |
-
$this->
|
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->
|
1330 |
-
$this->
|
1331 |
-
$this->
|
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
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Plugin Name: Icegram
|
4 |
* Plugin URI: http://www.icegram.com/
|
5 |
* Description: All in one solution to inspire, convert and engage your audiences. Action bars, Popup windows, Messengers, Toast notifications and more. Awesome themes and powerful rules.
|
6 |
-
* Version: 1.9.
|
7 |
* Author: icegram
|
8 |
* Author URI: http://www.icegram.com/
|
9 |
*
|
@@ -35,7 +35,7 @@ class Icegram {
|
|
35 |
|
36 |
function __construct() {
|
37 |
|
38 |
-
$this->version = "1.9.
|
39 |
$this->shortcode_instances = array();
|
40 |
$this->mode = 'local';
|
41 |
$this->plugin_url = untrailingslashit( plugins_url( '/', __FILE__ ) );
|
@@ -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' ) );
|
@@ -129,15 +133,9 @@ class Icegram {
|
|
129 |
// Admin notices for free bonuses!
|
130 |
if(!get_option('dismiss_admin_notice_from_icegram')){
|
131 |
$admin_notice_text = '';
|
132 |
-
if(in_array('ig-analytics/ig-analytics.php'
|
133 |
-
// themes
|
134 |
-
$admin_notice_text = "Get <b>17 bonus themes</b> for Icegram. Free!! <a class='ig-admin-btn' href='http://www.icegram.com/addons/theme-pack-1/?utm_source=inapp&utm_campaign=freebonus&utm_medium=notices' target='_blank'>Yes, I want them!</a>";
|
135 |
-
}else if(in_array('ig-themes-pack-1/ig-themes-pack-1.php', $active_plugins) && !in_array('ig-analytics/ig-analytics.php', $active_plugins)){
|
136 |
//analytics
|
137 |
$admin_notice_text = "Measure performance of your Icegram messages with the <b>free Analytics addon</b>. <a class='ig-admin-btn' href='http://www.icegram.com/addons/analytics/?utm_source=inapp&utm_campaign=freebonus&utm_medium=notices' target='_blank'>Cool, Let's begin</a>";
|
138 |
-
}else if(!in_array('ig-analytics/ig-analytics.php', $active_plugins) && !in_array('ig-themes-pack-1/ig-themes-pack-1.php', $active_plugins)){
|
139 |
-
// both
|
140 |
-
$admin_notice_text = "Claim your Icegram bonuses today. <b>17 themes & Analytics addon</b> for free! <a class='ig-admin-btn' href='http://www.icegram.com/product-category/addons/free/?utm_source=inapp&utm_campaign=freebonus&utm_medium=notices' target='_blank'>Yes, Let's begin</a>";
|
141 |
}
|
142 |
if ($admin_notice_text != '') {
|
143 |
echo "<p class='icegram_notice'>".$admin_notice_text." <a class='ig-admin-btn ig-admin-btn-secondary' href='?dismiss_admin_notice=1'>No, I don't like free bonuses...</a></p>";
|
@@ -558,7 +556,7 @@ class Icegram {
|
|
558 |
|
559 |
|
560 |
$messages = $this->get_valid_messages( $message_ids, $campaign_ids, $preview_mode, $skip_others );
|
561 |
-
|
562 |
if( empty( $messages ) ) {
|
563 |
//wp_die(0);
|
564 |
return;
|
@@ -628,7 +626,6 @@ class Icegram {
|
|
628 |
'preview_id' => !empty( $_GET['campaign_preview_id'] ) ? $_GET['campaign_preview_id'] : '',
|
629 |
'defaults' => $icegram_default
|
630 |
));
|
631 |
-
|
632 |
if (empty($icegram_data['preview_id'])) {
|
633 |
unset($icegram_data['preview_id']);
|
634 |
}
|
@@ -684,23 +681,23 @@ class Icegram {
|
|
684 |
// Process
|
685 |
function process_message_body(&$message_data){
|
686 |
$content = $message_data['message'];
|
|
|
687 |
if(isset($GLOBALS['wp_embed'])) {
|
688 |
$content = $GLOBALS['wp_embed']->autoembed($content);
|
689 |
}
|
690 |
$content = $this->after_wpautop( wpautop( $this->before_wpautop( $content ) ) );
|
691 |
$content = do_shortcode( shortcode_unautop( $content ) );
|
692 |
-
|
693 |
-
$content = convert_chars( convert_smilies( wptexturize( $content ) ) );
|
694 |
$message_data['message'] = $content;
|
|
|
695 |
//do_shortcode in headline
|
696 |
$message_data['headline'] = do_shortcode( shortcode_unautop( $message_data['headline'] ) );
|
697 |
-
//TODO :: Test short codes
|
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 |
function enqueue_admin_styles_and_scripts() {
|
705 |
|
706 |
$screen = get_current_screen();
|
@@ -733,7 +730,16 @@ class Icegram {
|
|
733 |
}
|
734 |
|
735 |
}
|
|
|
|
|
|
|
|
|
|
|
736 |
|
|
|
|
|
|
|
|
|
737 |
public static function get_platform() {
|
738 |
$mobile_detect = new Ig_Mobile_Detect();
|
739 |
$mobile_detect->setUserAgent();
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Plugin Name: Icegram mm
|
4 |
* Plugin URI: http://www.icegram.com/
|
5 |
* Description: All in one solution to inspire, convert and engage your audiences. Action bars, Popup windows, Messengers, Toast notifications and more. Awesome themes and powerful rules.
|
6 |
+
* Version: 1.9.7
|
7 |
* Author: icegram
|
8 |
* Author URI: http://www.icegram.com/
|
9 |
*
|
35 |
|
36 |
function __construct() {
|
37 |
|
38 |
+
$this->version = "1.9.7";
|
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' ) );
|
133 |
// Admin notices for free bonuses!
|
134 |
if(!get_option('dismiss_admin_notice_from_icegram')){
|
135 |
$admin_notice_text = '';
|
136 |
+
if(!in_array('ig-analytics/ig-analytics.php', $active_plugins)){
|
|
|
|
|
|
|
137 |
//analytics
|
138 |
$admin_notice_text = "Measure performance of your Icegram messages with the <b>free Analytics addon</b>. <a class='ig-admin-btn' href='http://www.icegram.com/addons/analytics/?utm_source=inapp&utm_campaign=freebonus&utm_medium=notices' target='_blank'>Cool, Let's begin</a>";
|
|
|
|
|
|
|
139 |
}
|
140 |
if ($admin_notice_text != '') {
|
141 |
echo "<p class='icegram_notice'>".$admin_notice_text." <a class='ig-admin-btn ig-admin-btn-secondary' href='?dismiss_admin_notice=1'>No, I don't like free bonuses...</a></p>";
|
556 |
|
557 |
|
558 |
$messages = $this->get_valid_messages( $message_ids, $campaign_ids, $preview_mode, $skip_others );
|
559 |
+
|
560 |
if( empty( $messages ) ) {
|
561 |
//wp_die(0);
|
562 |
return;
|
626 |
'preview_id' => !empty( $_GET['campaign_preview_id'] ) ? $_GET['campaign_preview_id'] : '',
|
627 |
'defaults' => $icegram_default
|
628 |
));
|
|
|
629 |
if (empty($icegram_data['preview_id'])) {
|
630 |
unset($icegram_data['preview_id']);
|
631 |
}
|
681 |
// Process
|
682 |
function process_message_body(&$message_data){
|
683 |
$content = $message_data['message'];
|
684 |
+
$content = convert_chars(convert_smilies( wptexturize( $content )));
|
685 |
if(isset($GLOBALS['wp_embed'])) {
|
686 |
$content = $GLOBALS['wp_embed']->autoembed($content);
|
687 |
}
|
688 |
$content = $this->after_wpautop( wpautop( $this->before_wpautop( $content ) ) );
|
689 |
$content = do_shortcode( shortcode_unautop( $content ) );
|
|
|
|
|
690 |
$message_data['message'] = $content;
|
691 |
+
|
692 |
//do_shortcode in headline
|
693 |
$message_data['headline'] = do_shortcode( shortcode_unautop( $message_data['headline'] ) );
|
|
|
694 |
//shortcode support for Third party forms
|
695 |
if(!empty($message_data['form_html_original'] )){
|
696 |
$message_data['form_html'] = do_shortcode( shortcode_unautop( $message_data['form_html_original'] ) );
|
697 |
}
|
698 |
}
|
699 |
|
700 |
+
|
701 |
function enqueue_admin_styles_and_scripts() {
|
702 |
|
703 |
$screen = get_current_screen();
|
730 |
}
|
731 |
|
732 |
}
|
733 |
+
|
734 |
+
//execute shortcode in text widget
|
735 |
+
function ig_widget_text_filter($content){
|
736 |
+
if ( ! preg_match( '/\[[\r\n\t ]*icegram?[\r\n\t ].*?\]/', $content ) )
|
737 |
+
return $content;
|
738 |
|
739 |
+
$content = do_shortcode( $content );
|
740 |
+
|
741 |
+
return $content;
|
742 |
+
}
|
743 |
public static function get_platform() {
|
744 |
$mobile_detect = new Ig_Mobile_Detect();
|
745 |
$mobile_detect->setUserAgent();
|
message-types/action-bar/default.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_action_bar.ig_container{z-index:100000;width:100%;padding:0;margin:0;display:none;left:0}.ig_action_bar.ig_container.ig_top.ig_show{position:fixed;z-index:9999999}.ig_action_bar.ig_container.ig_top{top:0}.ig_action_bar.ig_container.ig_bottom{bottom:0}.ig_action_bar .ig_content{}.ig_action_bar .ig_message{line-height:1.3em}.ig_action_bar img.icon{width:50px}.ig_action_bar .ig_button,.ig_action_bar input[type="submit"],.ig_action_bar input[type="button"]{border-bottom:none;cursor:pointer}.ig_action_bar .ig_button:active,.ig_action_bar input[type="submit"]:active,.ig_action_bar input[type="button"]:active{border-top:none}.ig_action_bar .ig_close{cursor:pointer}.ig_action_bar .ig_powered_by{vertical-align:top;opacity:.5;display:inline-block;float:left;z-index:22;position:absolute}.ig_action_bar .ig_powered_by img{width:2em;margin-left:.5em;margin-top:.5em}.ig_action_bar .ig_arrow_block{font-weight:700;z-index:1000000;right:10px;text-align:right;font-size:20px;cursor:pointer;line-height:0;padding:4px!important;float:right}.ig_action_bar.ig_show .ig_arrow_block{position:absolute}.ig_action_bar.ig_hide .ig_arrow_block{position:fixed}.ig_action_bar.ig_hide.ig_top .ig_arrow_block{top:0}.ig_action_bar.ig_hide.ig_bottom .ig_arrow_block{bottom:0}.ig_action_bar .ig_arrow_block span{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";filter:alpha(opacity=60);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";filter:alpha(opacity=60);opacity:0.6}.ig_action_bar .ig_arrow_block span:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";filter:alpha(opacity=90);opacity:0.9}.ig_action_bar .ig_rotate{transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg)}.ig_action_bar .ig_arrow_block span{cursor:pointer;display:inline-block;padding:2px;overflow:hidden}.ig_action_bar.ig_top .ig_arrow_block span,.ig_action_bar.ig_bottom .ig_arrow_block span{background-image:url(../../assets/images/arrows-sprite.png);background-repeat:no-repeat;width:28px;height:28px}.ig_action_bar.ig_top .ig_arrow_block span{background-position:-2px -5px}.ig_action_bar.ig_bottom .ig_arrow_block span{background-position:-4px -5px}.ig_action_bar .ig_content{padding:0!important}.ig_action_bar .ig_data{padding:1em}.ig_action_bar .ig_button{float:right;margin:1em!important;margin-right:3.5em!important}.ig_action_bar .ig_form_container{width:20%;float:left}.ig_action_bar.ig_form_right .ig_form_container.layout_right{float:right;padding-right:3em}.ig_action_bar.ig_form_left.ig_has_pwby .ig_form_container.layout_left{padding-left:3em;width:20%}.ig_action_bar.ig_form_bottom.ig_has_pwby .ig_form_container.layout_bottom{padding-left:3em}.ig_action_bar.ig_form_left .ig_data,.ig_action_bar.ig_form_right .ig_data{width:75%;float:left}.ig_action_bar.ig_has_pwby .ig_data{padding-left:3em}.ig_action_bar.ig_form_left.ig_has_pwby .ig_data{width:75%;padding-left:1em}.ig_action_bar.ig_form_right .ig_data{float:left}.ig_action_bar.ig_form_bottom .ig_data,.ig_action_bar.ig_form_inline .ig_data{max-width:100%!important}
|
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}}
|
message-types/action-bar/images/chosen-sprite.png
DELETED
Binary file
|
message-types/action-bar/main.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function Icegram_Message_Type_Action_Bar(e){Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Action_Bar.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Action_Bar.prototype.constructor=Icegram_Message_Type_Action_Bar,Icegram_Message_Type_Action_Bar.prototype.get_template_default=function(){return'<div class="icegram action_bar_{{=id}}" ><div class="ig_action_bar ig_container ig_{{=theme}}" id="icegram_message_{{=id}}"><div class="ig_content ig_clear_fix"><div class="
|
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)};
|
message-types/action-bar/main.php
CHANGED
@@ -21,8 +21,7 @@ class Icegram_Message_Type_Action_Bar extends Icegram_Message_Type {
|
|
21 |
$this->settings['theme']['default'] = 'hello';
|
22 |
$this->settings['bg_color']['default'] = ''; //#eb593c
|
23 |
$this->settings['text_color']['default'] = ''; //#ffffff
|
24 |
-
unset (
|
25 |
-
$this->settings['icon']
|
26 |
);
|
27 |
}
|
28 |
|
21 |
$this->settings['theme']['default'] = 'hello';
|
22 |
$this->settings['bg_color']['default'] = ''; //#eb593c
|
23 |
$this->settings['text_color']['default'] = ''; //#ffffff
|
24 |
+
unset ($this->settings['icon']
|
|
|
25 |
);
|
26 |
}
|
27 |
|
message-types/action-bar/themes/air-mail.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_action_bar.ig_air-mail.ig_container{background-color:#F2F2F2;color:#707070;-moz-border-image:-moz-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8
|
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}}
|
message-types/action-bar/themes/bold.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_action_bar.ig_bold.ig_container{background-color:#BC0933;color
|
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}}
|
message-types/action-bar/themes/hello.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_action_bar.ig_hello.ig_container{background-color:#EB5B31;color
|
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}}
|
message-types/action-bar/themes/solid.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_action_bar.ig_solid.ig_container{background-color:#4E3363;color
|
1 |
+
.ig_action_bar.ig_solid.ig_container{background-color:#4E3363;color:#FFF}.ig_action_bar.ig_solid .ig_data{max-width:75%;float:left;text-align:left}.ig_action_bar.ig_solid .ig_headline,.ig_action_bar.ig_solid .ig_message{display:block}.ig_action_bar.ig_solid .ig_button,.ig_action_bar.ig_solid input[type="submit"],.ig_action_bar.ig_solid input[type="button"]{background:#008010;float:right;-moz-border-radius:0.1em;-webkit-border-radius:0.1em;border-radius:0.1em}.ig_action_bar.ig_solid .ig_button:hover,.ig_action_bar.ig_solid input[type="submit"]:hover,.ig_action_bar.ig_solid input[type="button"]:hover{-moz-box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15);-webkit-box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15);box-shadow:inset 0 -4em 0 rgba(255,255,255,0.15)}.ig_action_bar.ig_solid.ig_hide .ig_close{background-color:#4E3363}.ig_action_bar.ig_form_inline.ig_solid .ig_form_container.layout_inline .ig_form_header,.ig_action_bar.ig_form_bottom.ig_solid .ig_form_container.layout_bottom .ig_form_header,.ig_action_bar.ig_form_inline.ig_solid .ig_form_container.layout_inline .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_solid .ig_form_container.layout_bottom .ig_form_footer,.ig_action_bar.ig_form_bottom.ig_solid .ig_form_container.layout_bottom .ig_embed_form_container,.ig_action_bar.ig_form_inline.ig_solid .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_solid.ig_form_left .ig_data,.ig_action_bar.ig_solid.ig_form_right .ig_data,.ig_action_bar.ig_solid.ig_form_bottom .ig_data{width:100%;max-width:100%!important}.ig_action_bar.ig_solid .ig_button,.ig_action_bar.ig_solid input[type="submit"],.ig_action_bar.ig_solid input[type="button"]{float:left;margin:0.3em 0 0.3em .7em}.ig_action_bar.ig_solid.ig_has_pwby .ig_button,.ig_action_bar.ig_solid.ig_has_pwby input[type="submit"],.ig_action_bar.ig_solid.ig_has_pwby input[type="button"]{margin-left:2.5em}.ig_action_bar.ig_solid.ig_has_pwby .ig_form_container .ig_button{margin:0}}
|
message-types/messenger/default.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_messenger.ig_container{display:
|
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}}
|
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/main.php
CHANGED
@@ -17,9 +17,6 @@ class Icegram_Message_Type_Messenger extends Icegram_Message_Type {
|
|
17 |
parent::define_settings();
|
18 |
$this->settings['position']['values'] = array( '20', '22' );
|
19 |
$this->settings['position']['default'] = '22';
|
20 |
-
$this->settings['animation']['values'] = array ( "slide" => __( 'Slide', 'icegram' ),
|
21 |
-
"appear" => __( 'Appear', 'icegram' ) );
|
22 |
-
$this->settings['animation']['default'] = 'slide';
|
23 |
$this->settings['theme']['default'] = 'social';
|
24 |
$this->settings['form_layout']['values'] = array('inline' ); // May be 'bottom'
|
25 |
$this->settings['form_layout']['default'] = 'inline';
|
17 |
parent::define_settings();
|
18 |
$this->settings['position']['values'] = array( '20', '22' );
|
19 |
$this->settings['position']['default'] = '22';
|
|
|
|
|
|
|
20 |
$this->settings['theme']['default'] = 'social';
|
21 |
$this->settings['form_layout']['values'] = array('inline' ); // May be 'bottom'
|
22 |
$this->settings['form_layout']['default'] = 'inline';
|
message-types/messenger/themes/canvas.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_messenger.ig_canvas.ig_container{max-
|
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:
|
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:
|
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:
|
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_form_style_1 .ig_form_container:before{border-width:0;border-style:solid;border-color:#000!important;opacity:.3;top:0}.ig_popup.ig_form_left.ig_form_style_1 .ig_form_container.layout_bottom:before,.ig_popup.ig_form_right.ig_form_style_1 .ig_form_container.layout_bottom:before{width:100%;border-top-width:.22em}.ig_popup.ig_form_bottom.ig_form_style_1 .ig_form_container.layout_bottom:before{border-top-width:.22em}.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els{margin-right:0;margin-left:0}.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:first-child input,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:first-child input,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:last-child input,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:last-child input,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els input,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els input{-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:first-child label,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:first-child label,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els:last-child label,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els:last-child label,.ig_popup.ig_form_style_2 .ig_form_container.layout_inline .ig_form_els label,.ig_popup.ig_form_style_2 .ig_form_container.layout_bottom .ig_form_els label{padding-left:1em}.ig_popup.ig_form_right.ig_form_style_4 .ig_close,.ig_popup.ig_form_right.ig_form_style_4 .ig_close:hover{margin:-2em -1em 0 0;top:1em}.ig_popup.ig_form_left.ig_form_style_4 .ig_form_container:before,.ig_popup.ig_form_right.ig_form_style_4 .ig_form_container:before{border-bottom-width:0}}
|
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}}
|
message-types/popup/main.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function Icegram_Message_Type_Popup(e){Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Popup.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Popup.prototype.constructor=Icegram_Message_Type_Popup,Icegram_Message_Type_Popup.prototype.get_template_default=function(){return'<div id="icegram_message_{{=id}}" class="mfp-hide icegram ig_popup ig_{{=theme}}" data={{=id}}><div class="ig_close" id="popup_box_close_{{=id}}"></div><div class="ig_container 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;jQuery.magnificPopup.open({items:{src:o,type:"inline"},showCloseBtn:!1,callbacks:{close:function(){t!==!0&&i.track("closed")},open:function(){window.icegram.adjustFormContainerHeight(i)}}}),t!==!0&&this.track("shown")}},Icegram_Message_Type_Popup.prototype.add_powered_by=function(e){setTimeout(function(){jQuery(".mfp-wrap").append('<div class="ig_powered_by"><a href="'+e.link+'" target="_blank">'+e.text+"</a></div>")},1e3+1e3*this.data.delay_time)},Icegram_Message_Type_Popup.prototype.hide=function(e,t){if(this.is_visible()){var i="#icegram_message_"+this.data.id;jQuery.magnificPopup.close({items:{src:i,type:"inline"}})}},void 0!==typeof jQuery.magnificPopup&&!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,i,o,n,a,s,r="Close",l="BeforeClose",c="AfterClose",p="BeforeAppend",d="MarkupParse",u="Open",m="Change",f="mfp",g="."+f,v="mfp-ready",h="mfp-removing",_="mfp-prevent-close",y=function(){},C=!!window.jQuery,b=e(window),I=function(e,i){t.ev.on(f+e+g,i)},w=function(t,i,o,n){var a=document.createElement("div");return a.className="mfp-"+t,o&&(a.innerHTML=o),n?i&&i.appendChild(a):(a=e(a),i&&a.appendTo(i)),a},T=function(i,o){t.ev.triggerHandler(f+i,o),t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,e.isArray(o)?o:[o]))},P=function(i){return i===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=i),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||(t=new y,t.init(),e.magnificPopup.instance=t)},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=w("bg").on("click"+g,function(){t.close()}),t.wrap=w("wrap").attr("tabindex",-1).on("click"+g,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=w("container",t.wrap)),t.contentContainer=w("content"),t.st.preloader&&(t.preloader=w("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(n=0;n<l.length;n++){var c=l[n];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}T("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(I(d,function(e,t,i,o){i.close_replaceWith=P(o.type)}),a+=" mfp-close-btn-in"):t.wrap.append(P())),t.st.alignTop&&(a+=" mfp-align-top"),t.wrap.css(t.fixedContentPos?{overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}:{top:b.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+g,function(e){27===e.keyCode&&t.close()}),b.on("resize"+g,function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var p=t.wH=b.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(p)){var f=t._getScrollbarSize();f&&(m.marginRight=f)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),T("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(v),t._setFocus()):t.bgOverlay.addClass(v),o.on("focusin"+g,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),T(u),i},close:function(){t.isOpen&&(T(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(h),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){T(r);var i=h+" "+v+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var n={marginRight:""};t.isIE7?e("body, html").css("overflow",""):n.overflow="",e("html").css(n)}o.off("keyup"+g+" focusin"+g),t.ev.off(g),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),t.st.showCloseBtn&&(!t.st.closeBtnInside||t.currTemplate[t.currItem.type]===!0)&&t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,T(c)},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,o=window.innerHeight*i;t.wrap.css("height",o),t.wH=o}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),T("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var o=i.type;if(T("BeforeChange",[t.currItem?t.currItem.type:"",o]),t.currItem=i,!t.currTemplate[o]){var a=t.st[o]?t.st[o].markup:!1;T("FirstMarkupParse",a),a?t.currTemplate[o]=e(a):t.currTemplate[o]=!0}n&&n!==i.type&&t.container.removeClass("mfp-"+n+"-holder");var s=t["get"+o.charAt(0).toUpperCase()+o.slice(1)](i,t.currTemplate[o]);t.appendContent(s,o),i.preloaded=!0,T(m,i),n=i.type,t.container.prepend(t.contentContainer),T("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[i]===!0?t.content.find(".mfp-close").length||t.content.append(P()):t.content=e:t.content="",T(p),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var o,n=t.items[i];if(n.tagName?n={el:e(n)}:(o=n.type,n={data:n,src:n.src}),n.el){for(var a=t.types,s=0;s<a.length;s++)if(n.el.hasClass("mfp-"+a[s])){o=a[s];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=o||t.st.type||"inline",n.index=i,n.parsed=!0,t.items[i]=n,T("ElementParse",n),t.items[i]},addGroup:function(e,i){var o=function(o){o.mfpEl=this,t._openClick(o,e,i)};i||(i={});var n="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(n).on(n,o)):(i.isObj=!1,i.delegate?e.off(n).on(n,i.delegate,o):(i.items=e,e.off(n).on(n,o)))},_openClick:function(i,o,n){var a=void 0!==n.midClick?n.midClick:e.magnificPopup.defaults.midClick;if(a||2!==i.which&&!i.ctrlKey&&!i.metaKey){var s=void 0!==n.disableOn?n.disableOn:e.magnificPopup.defaults.disableOn;if(s)if(e.isFunction(s)){if(!s.call(t))return!0}else if(b.width()<s)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),n.el=e(i.mfpEl),n.delegate&&(n.items=o.find(n.delegate)),t.open(n)}},updateStatus:function(e,o){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),!o&&"loading"===e&&(o=t.st.tLoading);var n={status:e,text:o};T("UpdateStatus",n),e=n.status,o=n.text,t.preloader.html(o),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).hasClass(_)){var o=t.st.closeOnContentClick,n=t.st.closeOnBgClick;if(o&&n)return!0;if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(o)return!0}else if(n&&e.contains(document,i))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?o.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){return i.target===t.wrap[0]||e.contains(t.wrap[0],i.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,i,o){var n;o.data&&(i=e.extend(o.data,i)),T(d,[t,i,o]),e.each(i,function(e,i){if(void 0===i||i===!1)return!0;if(n=e.split("_"),n.length>1){var o=t.find(g+"-"+n[0]);if(o.length>0){var a=n[1];"replaceWith"===a?o[0]!==i[0]&&o.replaceWith(i):"img"===a?o.is("img")?o.attr("src",i):o.replaceWith('<img src="'+i+'" class="'+o.attr("class")+'" />'):o.attr(n[1],i)}}else t.find(g+"-"+e).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:y.prototype,modules:[],open:function(t,i){return k(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</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),I(r+"."+z,function(){M()})},getInline:function(i,o){if(M(),i.src){var n=t.st.inline,a=e(i.src);if(a.length){var s=a[0].parentNode;s&&s.tagName&&(E||(S=n.hiddenClass,E=w(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"),I(u+o,function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),I(r+o,function(){i.cursor&&e(document.body).removeClass(i.cursor),b.off("resize"+g)}),I("Resize"+o,t.resizeImage),t.isLowIE&&I("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,B&&clearInterval(B),e.isCheckingImgSize=!1,T("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,o=e.img[0],n=function(a){B&&clearInterval(B),B=setInterval(function(){return o.naturalWidth>0?void t._onImageHasSize(e):(i>200&&clearInterval(B),i++,3===i?n(10):40===i?n(50):100===i&&n(500),void 0)},a)};n(1)},getImage:function(i,o){var n=0,a=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,T("ImageLoadComplete")):(n++,200>n?setTimeout(a,100):s()))},s=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",r.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},r=t.st.image,l=o.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=e(c).on("load.mfploader",a).on("error.mfploader",s),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),c=i.img[0],c.naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(o,{title:H(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(B&&clearInterval(B),i.loadError?(o.addClass("mfp-loading"),t.updateStatus("error",r.tError.replace("%url%",i.src))):(o.removeClass("mfp-loading"),t.updateStatus("ready")),o):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,o.addClass("mfp-loading"),t.findImageSize(i)),o)}}});var F,A=function(){return void 0===F&&(F=void 0!==document.createElement("p").style.MozTransform),F};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,o=".zoom";if(i.enabled&&t.supportsTransition){var n,a,s=i.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+i.duration/1e3+"s "+i.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return n["-webkit-"+a]=n["-moz-"+a]=n["-o-"+a]=n[a]=o,t.css(n),t},p=function(){t.content.css("visibility","visible")};I("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(n),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void p();a=c(e),a.css(t._getOffset()),t.wrap.append(a),n=setTimeout(function(){a.css(t._getOffset(!0)),n=setTimeout(function(){p(),setTimeout(function(){a.remove(),e=a=null,T("ZoomAnimationEnded")},16)},s)},16)}}),I(l+o,function(){if(t._allowZoom()){if(clearTimeout(n),t.st.removalDelay=s,!e){if(e=t._getItemToZoom(),!e)return;a=c(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),I(r+o,function(){t._allowZoom()&&(p(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var o;o=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var n=o.offset(),a=parseInt(o.css("padding-top"),10),s=parseInt(o.css("padding-bottom"),10);n.top-=e(window).scrollTop()-a;var r={width:o.width(),height:(C?o.innerHeight():o[0].offsetHeight)-s-a};return A()?r["-moz-transform"]=r.transform="translate("+n.left+"px,"+n.top+"px)":(r.left=n.left,r.top=n.top),r}}});var j="retina";e.magnificPopup.registerModule(j,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;i=isNaN(i)?i():i,i>1&&(I("ImageHasSize."+j,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),I("ElementParse."+j,function(t,o){o.src=e.replaceSrc(o,i)}))}}}}),k()});
|
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">×</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/main.php
CHANGED
@@ -44,7 +44,6 @@ class Icegram_Message_Type_Popup extends Icegram_Message_Type {
|
|
44 |
}
|
45 |
|
46 |
function set_admin_style( $params ) {
|
47 |
-
|
48 |
$params['admin_style'] = array( 'label_bg_color' => '#22B189',
|
49 |
'theme_header_height' => '6em',
|
50 |
'thumbnail_width' => '43%',
|
44 |
}
|
45 |
|
46 |
function set_admin_style( $params ) {
|
|
|
47 |
$params['admin_style'] = array( 'label_bg_color' => '#22B189',
|
48 |
'theme_header_height' => '6em',
|
49 |
'thumbnail_width' => '43%',
|
message-types/popup/themes/air-mail.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_popup.ig_air-mail .ig_container{border-width:8px;-moz-border-image:-moz-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-webkit-border-image:-webkit-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;-o-border-image:-o-repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;border-image:repeating-linear-gradient(45deg,#b37b7a,#b37b7a 10px,#F2F2F2 10px,#F2F2F2 20px,#7897ba 20px,#7897ba 30px,#F2F2F2 30px,#F2F2F2 40px) 8 round;background-color:#F2F2F2;color:hsl(0,0%,44%)}.ig_popup.ig_air-mail .ig_container .ig_bg_overlay{display:block;background:-webkit-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:-o-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:-moz-linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);background:linear-gradient(top,transparent 0%,#888 30%,#888 70%,transparent 100%);opacity:.1}.ig_popup.ig_air-mail .ig_headline{padding:.5em;font-size:2.5em;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.5)}.ig_popup.ig_air-mail .ig_image{float:right}.ig_popup.ig_air-mail .ig_message{padding:.2em 1.2em;font-size:1.2em}.ig_popup.ig_air-mail .ig_close{background:url(../images/chosen-sprite.png) no-repeat -43px 0;height:10px;width:10px;cursor:pointer;zoom:1.5;margin:-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.
|
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}
|
message-types/popup/themes/amaze.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_popup.ig_amaze .ig_container{border:.3em solid #444;background-color:#444;color:#FFF}.ig_popup.ig_amaze .ig_container .ig_bg_overlay{display:block;background-image:url(../images/popup-amaze-bg.jpg);opacity:.5}.ig_popup.ig_amaze .ig_headline{padding:.5em;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.5);font-size:2em}.ig_popup.ig_amaze .ig_image{float:left}.ig_popup.ig_amaze .ig_message{font-size:1.2em;padding:0 1.2em;font-family:Georgia,Times,"Times New Roman",serif;margin:0 2em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{background:hsl(145,63%,49%);color:hsl(0,100%,100%);font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif;font-size:1.3em;letter-spacing:1px;vertical-align:top;font-weight:700;text-align:center;line-height:1.8em;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border-bottom:.2em solid rgba(63,63,63,0.6);text-shadow:1px 1px 0 rgba(0,0,0,0.5);margin:.5em auto 1.2em auto;width:40%;padding:0.3em 1em}@media only screen and (max-device-width:319px){.ig_popup.ig_amaze{font-size:10px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_amaze{font-size:12px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_amaze{font-size:14px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_amaze{font-size:16px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:portrait){.ig_popup.ig_amaze{font-size:18px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape){.ig_popup.ig_amaze{font-size:12px}}@media only screen and (min-width:768px) and (max-device-width:992px){.ig_popup.ig_amaze{font-size:14px}}
|
1 |
+
.ig_popup.ig_amaze .ig_container{border:.3em solid #444;background-color:#444;color:#FFF}.ig_popup.ig_amaze .ig_container .ig_bg_overlay{display:block;background-image:url(../images/popup-amaze-bg.jpg);opacity:.5}.ig_popup.ig_amaze .ig_headline{padding:.5em;text-align:center;text-shadow:0 1px 0 rgba(0,0,0,.5);font-size:2em}.ig_popup.ig_amaze .ig_image{float:left}.ig_popup.ig_amaze .ig_message{font-size:1.2em;padding:0 1.2em;font-family:Georgia,Times,"Times New Roman",serif;margin:0 2em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{background:hsl(145,63%,49%);color:hsl(0,100%,100%);font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif;font-size:1.3em;letter-spacing:1px;vertical-align:top;font-weight:700;text-align:center;line-height:1.8em;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border-bottom:.2em solid rgba(63,63,63,0.6);text-shadow:1px 1px 0 rgba(0,0,0,0.5);margin:.5em auto 1.2em auto;width:40%;padding:0.3em 1em}@media only screen and (max-device-width:319px){.ig_popup.ig_amaze{font-size:10px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_amaze{font-size:12px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_amaze{font-size:14px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_amaze{font-size:16px}.ig_popup.ig_amaze .ig_message{margin:0 1em}.ig_popup.ig_amaze .ig_button,.ig_popup.ig_amaze input[type="submit"],.ig_popup.ig_amaze input[type="button"]{width:90%!important}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:portrait){.ig_popup.ig_amaze{font-size:18px}}@media only screen and (min-device-width:644px) and (max-device-width:767px) and (orientation:landscape){.ig_popup.ig_amaze{font-size:12px}}@media only screen and (min-width:768px) and (max-device-width:992px){.ig_popup.ig_amaze{font-size:14px}}
|
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.
|
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}
|
message-types/popup/themes/convert.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_popup.ig_convert .ig_container{background-color:hsl(58,100%,90%);color:hsl(0,1%,28%);-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.ig_popup.ig_convert .ig_headline{font-size:2.5em;padding:.8em .8em .3em .8em;letter-spacing:0;text-align:left}.ig_popup.ig_convert .ig_image{float:right}.ig_popup.ig_convert .ig_message{font-size:1.5em;padding:0.5em 1.5em;font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif;vertical-align:baseline}.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{background:hsl(0,94%,41%);color:hsl(0,33%,98%);text-transform:uppercase;font-weight:700;text-decoration:none;font-size:1.75em;border:.25em solid hsl(0,6%,71%)!important;width:60%;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em;text-align:center;line-height:1.5em;padding:0.1em 1em;margin:.5em auto 1.2em auto;clear:both}
|
1 |
+
.ig_popup.ig_convert .ig_container{background-color:hsl(58,100%,90%);color:hsl(0,1%,28%);-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}.ig_popup.ig_convert .ig_headline{font-size:2.5em;padding:.8em .8em .3em .8em;letter-spacing:0;text-align:left}.ig_popup.ig_convert .ig_image{float:right}.ig_popup.ig_convert .ig_message{font-size:1.5em;padding:0.5em 1.5em;font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif;vertical-align:baseline}.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{background:hsl(0,94%,41%);color:hsl(0,33%,98%);text-transform:uppercase;font-weight:700;text-decoration:none;font-size:1.75em;border:.25em solid hsl(0,6%,71%)!important;width:60%;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em;text-align:center;line-height:1.5em;padding:0.1em 1em;margin:.5em auto 1.2em auto;clear:both}@media only screen and (max-device-width:319px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_convert .ig_button,.ig_popup.ig_convert input[type="submit"],.ig_popup.ig_convert input[type="button"]{width:75%!important}}
|
message-types/popup/themes/inspire.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_popup.ig_inspire .ig_container{background:hsl(0,100%,100%);color:#333}.ig_popup.ig_inspire .ig_headline{text-align:center;padding:.8em .8em .3em .8em;font-size:2.5em}.ig_popup.ig_inspire .ig_image{float:left}.ig_popup.ig_inspire .ig_message{padding:0.5em 1.25em 0.9em;font-size:1.25em;font-weight:400;text-align:justify}.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{background:hsl(79,93%,35%);color:hsl(0,100%,100%);vertical-align:middle;font-size:2em;font-weight:700;font-style:normal;text-decoration:none;text-align:center;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1;width:60%;line-height:1.2em;padding:0.5em;margin:.5em auto 1em auto}.ig_popup.ig_inspire .ig_button:active,.ig_popup.ig_inspire input[type="submit"]:active,.ig_popup.ig_inspire input[type="button"]:active{border-top:none}
|
1 |
+
.ig_popup.ig_inspire .ig_container{background:hsl(0,100%,100%);color:#333}.ig_popup.ig_inspire .ig_headline{text-align:center;padding:.8em .8em .3em .8em;font-size:2.5em}.ig_popup.ig_inspire .ig_image{float:left}.ig_popup.ig_inspire .ig_message{padding:0.5em 1.25em 0.9em;font-size:1.25em;font-weight:400;text-align:justify}.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{background:hsl(79,93%,35%);color:hsl(0,100%,100%);vertical-align:middle;font-size:2em;font-weight:700;font-style:normal;text-decoration:none;text-align:center;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);opacity:1;width:60%;line-height:1.2em;padding:0.5em;margin:.5em auto 1em auto}.ig_popup.ig_inspire .ig_button:active,.ig_popup.ig_inspire input[type="submit"]:active,.ig_popup.ig_inspire input[type="button"]:active{border-top:none}@media only screen and (max-device-width:319px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:320px) and (max-device-width:359px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:360px) and (max-device-width:413px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}@media only screen and (min-device-width:414px) and (max-device-width:643px){.ig_popup.ig_inspire .ig_button,.ig_popup.ig_inspire input[type="submit"],.ig_popup.ig_inspire input[type="button"]{width:90%!important}}
|
message-types/popup/themes/persuade.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_popup.ig_persuade .ig_container{background:hsl(1,83%,62%);color:#FFF;border:.4em dashed hsl(0,100%,100%);padding-bottom:.1em}.ig_popup.ig_persuade .ig_headline{letter-spacing:0;font-size:2.8em;text-align:center;-webkit-font-smoothing:antialiased;line-height:1em;padding:.7em .7em 0.5em .7em}.ig_popup.ig_persuade .ig_image{float:left}.ig_popup.ig_persuade .ig_message{padding:0.5em 1.5em;font-size:1.5em;font-weight:300;text-align:center;-webkit-font-smoothing:antialiased}.ig_popup.ig_persuade .ig_button,.ig_popup.ig_persuade input[type="submit"],.ig_popup.ig_persuade input[type="button"]{background:hsl(0,0%,26%);color:hsl(0,100%,100%);text-decoration:none;font-size:2em;font-weight:400;width:55%;border:none;-moz-border-radius:.6em;-webkit-border-radius:.6em;border-radius:.6em;border-bottom:.28em solid hsl(0,0%,20%);-moz-box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;-webkit-box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;text-align:center;margin:.2em auto .5em auto;padding:0.4em;line-height:1.2em;clear:both;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.ig_popup.ig_persuade .ig_button:active,.ig_popup.ig_persuade input[type="submit"]:active,.ig_popup.ig_persuade input[type="button"]:active{-moz-box-shadow:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}
|
1 |
+
.ig_popup.ig_persuade .ig_container{background:hsl(1,83%,62%);color:#FFF;border:.4em dashed hsl(0,100%,100%);padding-bottom:.1em}.ig_popup.ig_persuade .ig_headline{letter-spacing:0;font-size:2.8em;text-align:center;-webkit-font-smoothing:antialiased;line-height:1em;padding:.7em .7em 0.5em .7em}.ig_popup.ig_persuade .ig_image{float:left}.ig_popup.ig_persuade .ig_message{padding:0.5em 1.5em;font-size:1.5em;font-weight:300;text-align:center;-webkit-font-smoothing:antialiased}.ig_popup.ig_persuade .ig_button,.ig_popup.ig_persuade input[type="submit"],.ig_popup.ig_persuade input[type="button"]{background:hsl(0,0%,26%);color:hsl(0,100%,100%);text-decoration:none;font-size:2em;font-weight:400;width:55%;border:none;-moz-border-radius:.6em;-webkit-border-radius:.6em;border-radius:.6em;border-bottom:.28em solid hsl(0,0%,20%);-moz-box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;-webkit-box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;box-shadow:0 .3em 1.5em rgba(0,0,0,0.6)!important;text-align:center;margin:.2em auto .5em auto;padding:0.4em;line-height:1.2em;clear:both;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.ig_popup.ig_persuade .ig_button:active,.ig_popup.ig_persuade input[type="submit"]:active,.ig_popup.ig_persuade input[type="button"]:active{-moz-box-shadow:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}
|
message-types/toast/default.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ig_toast.ig_container{display:none}.ig_toast .ig_wrapper{overflow:hidden;padding:5px 5px 5px 50px;position:relative;min-height:34px}.ig_toast .ig_content{overflow:hidden}.ig_toast.ig_container:hover{}.ig_toast .ig_headline{display:inline-block;margin:0;text-align:left;position:relative}.ig_toast .ig_icon{overflow:hidden;display:block;max-height:32px;max-width:32px;left:10px;top:10px;position:absolute}.ig_toast .ig_icon img{max-width:32px;max-height:32px;margin:0;padding:0}.ig_toast .ig_message{margin:-3px 0 0 -2px}.ig_toast .ig_message p{margin:0.15em}.ig_toast_block{position:fixed;list-style:none;z-index:999999;-ms-word-wrap:break-word;word-wrap:break-word;padding:0;margin:5px}.ig_toast_block *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;text-transform:none}.ig_toast_block .ig_container{margin:10px 0}.ig_toast_block .ig_headline{font-weight:bold;clear:none;padding:0}.ig_toast_block .ig_message{font-size:12px;text-align:left;line-height:15px}.ig_toast_block .ig_bang .ig_icon{-webkit-animation:MainMoveIcon 1s;-moz-animation:MainMoveIcon 1s;animation:MainMoveIcon 1s}.ig_toast_block .ig_bang .ig_base{-webkit-animation:MainMove 1s;-moz-animation:MainMove 1s;animation:MainMove 1s}.ig_toast_block .ig_bang .ig_headline,.ig_toast_block .ig_bang .ig_message{-webkit-animation:MainMoveText 1s;-moz-animation:MainMoveText 1s;animation:MainMoveText 1s}@-webkit-keyframes MainMove{0%{opacity:0}70%{opacity:0.1;-webkit-transform:scale(.3) rotateX(180deg)}90%{opacity:0.7;-webkit-transform:scale(1.1) rotateX(0deg)}100%{opacity:1;-webkit-transform:scale(1) rotateX(0deg)}}@-moz-keyframes MainMove{0%{opacity:0}70%{opacity:0.1;-moz-transform:scale(.3) rotateX(180deg)}90%{opacity:0.7;-moz-transform:scale(1.1) rotateX(0deg)}100%{opacity:1;-moz-transform:scale(1) rotateX(0deg)}}@keyframes MainMove{0%{opacity:0}70%{opacity:0.1;transform:scale(.3) rotateX(180deg)}90%{opacity:0.7;transform:scale(1.1) rotateX(0deg)}100%{opacity:1;transform:scale(1) rotateX(0deg)}}@-webkit-keyframes MainMoveIcon{0%{opacity:0;-webkit-transform:scale(.3) rotateY(180deg)}70%{opacity:1;-webkit-transform:scale(1.1) rotateY(0deg)}100%{-webkit-transform:scale(1) rotateY(0deg)}}@-moz-keyframes MainMoveIcon{0%{opacity:0;-moz-transform:scale(.3) rotateY(180deg)}70%{opacity:1;-moz-transform:scale(1.1) rotateY(0deg)}100%{-moz-transform:scale(1) rotateY(0deg)}}@keyframes MainMoveIcon{0%{opacity:0;transform:scale(.3) rotateY(180deg)}70%{opacity:1;transform:scale(1.1) rotateY(0deg)}100%{transform:scale(1) rotateY(0deg)}}@-webkit-keyframes MainMoveText{0%{opacity:0}90%{opacity:0;-webkit-transform:translate(0px,10px)}100%{opacity:1;-webkit-transform:translate(0px,0px)}}@-moz-keyframes MainMoveText{0%{opacity:0}90%{opacity:0;-moz-transform:translate(0px,10px)}100%{opacity:1;-moz-transform:translate(0px,0px)}}@keyframes MainMoveText{0%{opacity:0}90%{opacity:0;transform:translate(0px,10px)}100%{opacity:1;transform:translate(0px,0px)}}.ig_toast_block .ig_slide-down .ig_headline{-moz-transition:all 0.2s linear;-o-transition:all 0.2s linear;-webkit-transition:all 0.2s linear;transition:all 0.2s linear}.ig_toast_block .ig_slide-down .ig_message{-moz-transition:all 0.2s linear;-o-transition:all 0.2s linear;-webkit-transition:all 0.2s linear;transition:all 0.2s linear}.ig_toast_block .ig_slide-down.ig_container{-webkit-animation:banner 0.5s ease-in 1;-moz-animation:banner 0.5s ease-in 1;animation:banner 0.5s ease-in 1}.ig_toast_block .ig_slide-down .ig_icon{-webkit-animation:fade 0.7s ease-in 1;-moz-animation:fade 0.7s ease-in 1;animation:fade 0.7s ease-in 1}@-webkit-keyframes banner{from{-webkit-transform:rotateX(90deg) translateY(-150px) perspective(300);opacity:0}60%{-webkit-transform:rotateX(-10deg) translateY(5px) perspective(400);opacity:1}to{-webkit-transform:rotateX(0deg) translateY(0px) perspective(400);opacity:1}}@-moz-keyframes banner{from{-moz-transform:rotateX(90deg) translateY(-150px);opacity:0}60%{-moz-transform:rotateX(-10deg) translateY(5px);opacity:1}to{-moz-transform:rotateX(0deg) translateY(0px);opacity:1}}@keyframes banner{from{transform:rotateX(90deg) translateY(-150px);opacity:0}60%{transform:rotateX(-10deg) translateY(5px);opacity:1}to{transform:rotateX(0deg) translateY(0px);opacity:1}}@-webkit-keyframes fade{from{opacity:0}30%{opacity:0}to{opacity:1}}@-moz-keyframes fade{from{opacity:0}30%{opacity:0}to{opacity:1}}@keyframes fade{from{opacity:0}30%{opacity:0}to{opacity:1}}.ig_toast_block .ig_pop.ig_container{-webkit-animation:BangTidy 1s ease forwards;-moz-animation:BangTidy 1s ease forwards;animation:BangTidy 1s ease forwards}.ig_toast_block .ig_pop .ig_icon{-webkit-animation:BangTidyIcon 1s 0.5s ease both;-moz-animation:BangTidyIcon 1s 0.5s ease both;animation:BangTidyIcon 1s 0.5s ease both}.ig_toast_block .ig_pop .ig_headline,.ig_toast_block .ig_pop .ig_message{-webkit-animation:BangTidyText 0.4s 0.5s ease both;-moz-animation:BangTidyText 0.4s 0.5s ease both;animation:BangTidyText 0.4s 0.5s ease both}@-webkit-keyframes BangTidy{0%{opacity:0;-webkit-transform:scale(.3) rotateX(-360deg)}50%{opacity:1;-webkit-transform:scale(1.01) rotateX(0deg)}70%{-webkit-transform:scale(.9) rotateX(0deg)}100%{-webkit-transform:scale(1) rotateX(0deg)}}@-moz-keyframes BangTidy{0%{opacity:0;-moz-transform:scale(.3) rotateX(-360deg)}50%{opacity:1;-moz-transform:scale(1.01) rotateX(0deg)}70%{-moz-transform:scale(.9) rotateX(0deg)}100%{-moz-transform:scale(1) rotateX(0deg)}}@keyframes BangTidy{0%{opacity:0;transform:scale(.3) rotateX(-360deg)}50%{opacity:1;transform:scale(1.01) rotateX(0deg)}70%{transform:scale(.9) rotateX(0deg)}100%{transform:scale(1) rotateX(0deg)}}@-webkit-keyframes BangTidyIcon{0%{opacity:0;-webkit-transform:scale(2.8) rotateX(180deg)}50%{opacity:1;-webkit-transform:scale(0.9) rotateX(0deg)}70%{-webkit-transform:scale(1.25) rotateX(0deg)}100%{-webkit-transform:scale(1) rotateX(0deg)}}@-moz-keyframes BangTidyIcon{0%{opacity:0;-moz-transform:scale(2.8) rotateX(180deg)}50%{opacity:1;-moz-transform:scale(0.9) rotateX(0deg)}70%{-moz-transform:scale(1.25) rotateX(0deg)}100%{-moz-transform:scale(1) rotateX(0deg)}}@keyframes BangTidyIcon{0%{opacity:0;transform:scale(2.8) rotateX(180deg)}50%{opacity:1;transform:scale(0.9) rotateX(0deg)}70%{transform:scale(1.25) rotateX(0deg)}100%{transform:scale(1) rotateX(0deg)}}@-webkit-keyframes BangTidyText{0%{opacity:0;-webkit-transform:translate(0px,10px)}100%{opacity:1;-webkit-transform:translate(0px,0px)}}@-moz-keyframes BangTidyText{0%{opacity:0;-moz-transform:translate(0px,10px)}100%{opacity:1;-moz-transform:translate(0px,0px)}}@keyframes BangTidyText{0%{opacity:0;transform:translate(0px,10px)}100%{opacity:1;transform:translate(0px,0px)}}.ig_toast_block .ig_appear.ig_container{-webkit-animation:bubble 0.4s;-moz-animation:bubble 0.4s;animation:bubble 0.4s;-webkit-transition:all 0.15s ease-in-out;-moz-transition:all 0.15s ease-in-out;transition:all 0.15s ease-in-out}@-webkit-keyframes bubble{from{opacity:0;-webkit-transform:scale(0.7);-webkit-animation-timing-function:ease-out}50%{-webkit-transform:scale(1.02);-webkit-animation-timing-function:cubic-bezier(0.5,0.2,0.3,1.0)}to{opacity:ignored;-webkit-transform:scale(1.0);-webkit-animation-timing-function:ease-in}}@-moz-keyframes bubble{from{opacity:0;-moz-transform:scale(0.7);-moz-animation-timing-function:ease-out}50%{-moz-transform:scale(1.02);-moz-animation-timing-function:cubic-bezier(0.5,0.2,0.3,1.0)}to{opacity:ignored;-moz-transform:scale(1.0);-moz-animation-timing-function:ease-in}}@keyframes bubble{from{opacity:0;transform:scale(0.7);animation-timing-function:ease-out}50%{transform:scale(1.02);animation-timing-function:cubic-bezier(0.5,0.2,0.3,1.0)}to{opacity:ignored;transform:scale(1.0);animation-timing-function:ease-in}}.ig_toast_block .ig_slide-left.ig_container{-webkit-animation:slideFromBottom .5s ease-in-out;-moz-animation:slideFromBottom .5s ease-in-out;animation:slideFromBottom .5s ease-in-out}@-webkit-keyframes slideFromBottom{0%{opacity:0;-webkit-transform:translate3d( -100px,0,0 )}100%{opacity:1;-webkit-transform:translate3d( 0,0,0 )}}@-moz-keyframes slideFromBottom{0%{opacity:0;-moz-transform:translate3d( -100px,0,0 )}100%{opacity:1;-moz-transform:translate3d( 0,0,0 )}}@keyframes slideFromBottom{0%{opacity:0;transform:translate3d( -100px,0,0 )}100%{opacity:1;transform:translate3d( 0,0,0 )}}.ig_toast_block .ig_bounce.ig_container{-webkit-animation:bounce 1.5s ease-in-out;-moz-animation:bounce 1.5s ease-in-out;animation:bounce 1.5s ease-in-out}@-webkit-keyframes bounce{0%{-webkit-transform:translateY(-100%);opacity:0}10%{-webkit-transform:translateY(-100%);opacity:0.5}15%{-webkit-transform:translateY(0);padding-bottom:5px}30%{-webkit-transform:translateY(-70%)}40%{-webkit-transform:translateY(0%);padding-bottom:6px}50%{-webkit-transform:translateY(-40%)}70%{-webkit-transform:translateY(0%);padding-bottom:7px}80%{-webkit-transform:translateY(-20%)}90%{-webkit-transform:translateY(0%);padding-bottom:8px}99%{-webkit-transform:translateY(-5%)}100%{-webkit-transform:translateY(0);padding-bottom:9px;opacity:1}}@-moz-keyframes bounce{0%{-moz-transform:translateY(-100%);opacity:0}10%{-moz-transform:translateY(-100%);opacity:0.5}15%{-moz-transform:translateY(0);padding-bottom:5px}30%{-moz-transform:translateY(-70%)}40%{-moz-transform:translateY(0%);padding-bottom:6px}50%{-moz-transform:translateY(-40%)}70%{-moz-transform:translateY(0%);padding-bottom:7px}80%{-moz-transform:translateY(-20%)}90%{-moz-transform:translateY(0%);padding-bottom:8px}99%{-moz-transform:translateY(-5%)}100%{-moz-transform:translateY(0);padding-bottom:9px;opacity:1}}@keyframes bounce{0%{transform:translateY(-100%);opacity:0}10%{transform:translateY(-100%);opacity:0.5}15%{transform:translateY(0);padding-bottom:5px}30%{transform:translateY(-70%)}40%{transform:translateY(0%);padding-bottom:6px}50%{transform:translateY(-40%)}70%{transform:translateY(0%);padding-bottom:7px}80%{transform:translateY(-20%)}90%{transform:translateY(0%);padding-bottom:8px}99%{transform:translateY(-5%)}100%{transform:translateY(0);padding-bottom:9px;opacity:1}}
|
1 |
+
.ig_toast.ig_container{display:none}.ig_toast .ig_wrapper{overflow:hidden;padding:5px 5px 5px 50px;position:relative;min-height:34px}.ig_toast .ig_content{overflow:hidden}.ig_toast .ig_headline{display:inline-block;margin:0;text-align:left;position:relative}.ig_toast .ig_icon{overflow:hidden;display:block;max-height:32px;max-width:32px;left:10px;top:10px;position:absolute}.ig_toast .ig_icon img{max-width:32px;max-height:32px;margin:0;padding:0}.ig_toast .ig_message{margin:-3px 0 0 -2px}.ig_toast .ig_message p{margin:0.15em}.ig_toast_block{position:fixed;list-style:none;z-index:999999;-ms-word-wrap:break-word;word-wrap:break-word;padding:0;margin:5px}.ig_toast_block *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;text-transform:none}.ig_toast_block .ig_container{margin:10px 0}.ig_toast_block .ig_headline{font-weight:bold;clear:none;padding:0}.ig_toast_block .ig_message{font-size:12px;text-align:left;line-height:15px}
|
message-types/toast/main.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function Icegram_Message_Type_Toast(t){this.width=300,this.sticky=!1,this.duration=1e4,Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Toast.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Toast.prototype.constructor=Icegram_Message_Type_Toast,Icegram_Message_Type_Toast.prototype.get_template_default=function(){return'<li class="icegram ig_toast ig_container ig_{{=
|
1 |
+
function Icegram_Message_Type_Toast(t){this.width=300,this.sticky=!1,this.duration=1e4,Icegram_Message_Type.apply(this,arguments)}Icegram_Message_Type_Toast.prototype=Object.create(Icegram_Message_Type.prototype),Icegram_Message_Type_Toast.prototype.constructor=Icegram_Message_Type_Toast,Icegram_Message_Type_Toast.prototype.get_template_default=function(){return'<li class="icegram ig_toast ig_container ig_{{=theme}} ig_cta" data="{{=id}}" id="icegram_message_{{=id}}"><div class="ig_wrapper"><div class="ig_content"><div class="ig_base"></div><div class="ig_line"></div><img class="ig_icon" src="{{=icon}}"/><div class="ig_headline">{{=headline}}</div><div class="ig_message">{{=message}}</div></div></div></li>'},Icegram_Message_Type_Toast.prototype.pre_render=function(){if(("10"==this.data.position||"12"==this.data.position)&&(this.data.position="20"),jQuery("ul#"+this.data.position).length)var t=jQuery("ul#"+this.data.position);else{var t=jQuery('<ul id="'+this.data.position+'"></ul>').addClass("ig_toast_block").appendTo(this.root_container).hide();t.width(this.width),"00"==this.data.position?t.css({top:"0",left:"0"}).addClass("ig_left").addClass("ig_top"):"01"==this.data.position?t.css({top:"0",left:"50%",margin:"5px 0 0 -"+this.width/2+"px"}).addClass("ig_center").addClass("ig_top"):"02"==this.data.position?t.css({top:"0",right:"0"}).addClass("ig_right").addClass("ig_top"):"20"==this.data.position?t.css({bottom:"0",left:"0"}).addClass("ig_left").addClass("ig_bottom"):"21"==this.data.position?t.css({bottom:"0",left:"50%",margin:"5px 0 0 -"+this.width/2+"px"}).addClass("ig_center").addClass("ig_bottom"):"22"==this.data.position?t.css({bottom:"0",right:"0"}).addClass("ig_right").addClass("ig_bottom"):"11"==this.data.position&&t.css({top:"50%",left:"50%",margin:"-"+this.width/2+"px 0 0 -"+this.width/2+"px"}).addClass("ig_center").addClass("ig_top")}this.root_container=t},Icegram_Message_Type_Toast.prototype.pre_show=function(){!this.root_container.hasClass("active")&&this.root_container.addClass("active").show()},Icegram_Message_Type_Toast.prototype.post_show=function(){var t=this;!this.sticky&&this.duration>0&&setTimeout(function(){t.hide(),t.root_container.children().length||t.root_container.removeClass("active").hide()},this.duration)};
|
message-types/toast/main.php
CHANGED
@@ -16,13 +16,6 @@ class Icegram_Message_Type_Toast extends Icegram_Message_Type {
|
|
16 |
parent::define_settings();
|
17 |
$this->settings['position']['values'] = array( '00', '01', '02', '11', '20', '21', '22' );
|
18 |
$this->settings['position']['default'] = '02';
|
19 |
-
$this->settings['animation']['values'] = array ( "bang" => __( "Bang", 'icegram' ),
|
20 |
-
"slide-down" => __( "Slide Down", 'icegram' ),
|
21 |
-
"pop" => __( "Pop", 'icegram' ),
|
22 |
-
"appear" => __( "Appear", 'icegram' ),
|
23 |
-
"slide-left" => __( "Slide Left", 'icegram' )
|
24 |
-
);
|
25 |
-
$this->settings['animation']['default'] = 'bang';
|
26 |
$this->settings['theme']['default'] = 'announce';
|
27 |
unset ( $this->settings['text_color'],
|
28 |
$this->settings['bg_color'],
|
16 |
parent::define_settings();
|
17 |
$this->settings['position']['values'] = array( '00', '01', '02', '11', '20', '21', '22' );
|
18 |
$this->settings['position']['default'] = '02';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
$this->settings['theme']['default'] = 'announce';
|
20 |
unset ( $this->settings['text_color'],
|
21 |
$this->settings['bg_color'],
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Icegram ===
|
2 |
Contributors: icegram, storeapps, niravmehta, putler
|
3 |
Donate link: http://www.icegram.com/
|
4 |
-
Tags: popup, window, hellobar, optin, lead capture, marketing, form, notification, messenger, targeting, monster, ninja ,wordpress lead generation, wordpress lightbox optin, wordpress lightbox optin form, wordpress lightbox optins, wordpress mobile optin forms, wordpress mobile popup, wordpress mobile popups, wordpress optin form, wordpress overlay popup, wordpress popup, wordpress popup form, wordpress popup plugin, wordpress popup solution, wordpress popups , popups, subscribe, wp popups, optin bars, action grabber, constant contact, toast notifications, leads, lists, builder, action bar, floating bar, footer bar, hellobar alternative, pop over, Popup plugin, aweber, campaign monitor, constant contact, email list, exit-intent, getresponse, analytics, Hubspot, icontact, infusionsoft, newsletter, Mailing list pop-up, retargeting, Responsive Popup, split testing, AB testing
|
5 |
Requires at least: 3.9
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.9.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -70,7 +70,7 @@ Icegram campaigns and messages can be shown anywhere in WordPress using shortcod
|
|
70 |
Icegram is an open platform. The core is already powerful, but you can do even more with free and premium addons.
|
71 |
|
72 |
* Analytics - track impressions, click throughs and conversions with a free addon
|
73 |
-
* Themes Pack
|
74 |
* Exit Intent, Scroll Position, Time Delay, JavaScript, Another Message... Show and Hide messages based on user behavior
|
75 |
* Geo Targeting - based on visitor's location - continent, country, city, region or IP address
|
76 |
* CTA Actions - Open link, in new window, submit form, AJAX submission, show another message, hide this message... New actions for CTA buttons
|
@@ -153,6 +153,15 @@ 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.4 =
|
157 |
Bug fix release for forms.
|
158 |
|
@@ -190,7 +199,7 @@ Bug fix release for device targeting, preview before publish not working.
|
|
190 |
Popups are now responsive! Plus Visual Composer compatibility and other fixes.
|
191 |
|
192 |
= 1.8.3 =
|
193 |
-
Campaign and message duplicate
|
194 |
|
195 |
= 1.8.2 =
|
196 |
Bug fix release for preview not working.
|
@@ -233,6 +242,24 @@ Initial Release
|
|
233 |
|
234 |
|
235 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
= 1.9.4 =
|
237 |
* Fix: Ninja Forms was showing two submit buttons with Icegram Form embed functionality
|
238 |
* Fix: Mailpoet hidden fields were visible with Form embed functionality
|
@@ -346,7 +373,7 @@ Initial Release
|
|
346 |
= 1.6 =
|
347 |
* Fix: Empty image tag causing display issues in Opera / IE
|
348 |
* Update: Form embed functionality improvements
|
349 |
-
* NEW: "Themes Pack
|
350 |
* Fix: Toast message compatibility with Behavior Triggers
|
351 |
* Update: JS and CSS URLs include version numbers now - better for caching
|
352 |
* Fix: Other minor fixes
|
1 |
=== Icegram ===
|
2 |
Contributors: icegram, storeapps, niravmehta, putler
|
3 |
Donate link: http://www.icegram.com/
|
4 |
+
Tags: popup, window, hellobar, optin, lead capture, marketing, form, notification, messenger, targeting, monster, ninja ,wordpress lead generation, wordpress lightbox optin, wordpress lightbox optin form, wordpress lightbox optins, wordpress mobile optin forms, wordpress mobile popup, wordpress mobile popups, wordpress optin form, wordpress overlay popup, wordpress popup, wordpress popup form, wordpress popup plugin, wordpress popup solution, wordpress popups , popups, subscribe, wp popups, optin bars, action grabber, constant contact, toast notifications, leads, lists, builder, action bar, floating bar, footer bar, hellobar alternative, pop over, Popup plugin, aweber, campaign monitor, constant contact, email list, exit-intent, getresponse, analytics, Hubspot, icontact, infusionsoft, newsletter, Mailing list pop-up, retargeting, Animation,Popups with Animation ,Responsive Popup, split testing, AB testing
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 4.3
|
7 |
+
Stable tag: 1.9.7
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
70 |
Icegram is an open platform. The core is already powerful, but you can do even more with free and premium addons.
|
71 |
|
72 |
* Analytics - track impressions, click throughs and conversions with a free addon
|
73 |
+
* Themes Pack 2014 - additional 17 themes as a bonus
|
74 |
* Exit Intent, Scroll Position, Time Delay, JavaScript, Another Message... Show and Hide messages based on user behavior
|
75 |
* Geo Targeting - based on visitor's location - continent, country, city, region or IP address
|
76 |
* CTA Actions - Open link, in new window, submit form, AJAX submission, show another message, hide this message... New actions for CTA buttons
|
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.7 =
|
157 |
+
Messengers are now responsive.Many small improvements.
|
158 |
+
|
159 |
+
= 1.9.6 =
|
160 |
+
Many small changes and other fixes.
|
161 |
+
|
162 |
+
= 1.9.5 =
|
163 |
+
Added animations for few more message types.Action bars are now responsive.
|
164 |
+
|
165 |
= 1.9.4 =
|
166 |
Bug fix release for forms.
|
167 |
|
199 |
Popups are now responsive! Plus Visual Composer compatibility and other fixes.
|
200 |
|
201 |
= 1.8.3 =
|
202 |
+
Campaign and message duplicate feature added. Plus some other improvements.
|
203 |
|
204 |
= 1.8.2 =
|
205 |
Bug fix release for preview not working.
|
242 |
|
243 |
|
244 |
== Changelog ==
|
245 |
+
= 1.9.7 =
|
246 |
+
* New: Messenger messages work beautifully on mobile / small devices now!
|
247 |
+
* New: Icegram's shortcodes are now working with Text Widget
|
248 |
+
* Update: Mobile Detect Library updated to version 2.8.15
|
249 |
+
* Fix: Gravity Forms hidden fields were visible with Form embed functionality
|
250 |
+
* Fix: Slide animation was not working with some browsers
|
251 |
+
* Fix: Popup message conflicts with some lightbox plugins
|
252 |
+
|
253 |
+
= 1.9.6 =
|
254 |
+
* Fix: Popup was not getting closed when multiple popups were set on a single page
|
255 |
+
* Fix: Message was not getting close when a form was submitted in a new window
|
256 |
+
* Fix: Default editor was visible while loading campaign setting page
|
257 |
+
* Fix: Revised css of the "Support and Docs" page and made it compatibility with WordPress 4.3
|
258 |
+
|
259 |
+
= 1.9.5 =
|
260 |
+
* New: Action bar messages work beautifully on mobile / small devices now!
|
261 |
+
* New: Add Animation for few more message types
|
262 |
+
|
263 |
= 1.9.4 =
|
264 |
* Fix: Ninja Forms was showing two submit buttons with Icegram Form embed functionality
|
265 |
* Fix: Mailpoet hidden fields were visible with Form embed functionality
|
373 |
= 1.6 =
|
374 |
* Fix: Empty image tag causing display issues in Opera / IE
|
375 |
* Update: Form embed functionality improvements
|
376 |
+
* NEW: "Themes Pack 2014" addon - 17 themes as a bonus - available from Icegram.com
|
377 |
* Fix: Toast message compatibility with Behavior Triggers
|
378 |
* Update: JS and CSS URLs include version numbers now - better for caching
|
379 |
* Fix: Other minor fixes
|