Version Description
Credit removal
Download this release
Release Info
Developer | galdub |
Plugin | Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line, WeChat, Email, SMS, Call Button – Chaty |
Version | 2.5.7 |
Comparing to | |
See all releases |
Code changes from version 2.5.6 to 2.5.7
- admin/class-admin-base.php +0 -2
- cht-icons.php +2 -2
- js/cht-front-script.js +1 -1
- js/cht-front-script.min.js +1 -1
- readme.txt +12 -10
- views/admin/customize-widget-section.php +0 -15
- views/admin/upgrade.php +3 -6
- views/widget.php +0 -1
admin/class-admin-base.php
CHANGED
@@ -419,7 +419,6 @@ class CHT_Admin_Base
|
|
419 |
add_settings_field('cht_bottom_spacing', 'Bottom spacing', '', $this->plugin_slug);
|
420 |
add_settings_field('cht_side_spacing', 'Side spacing', '', $this->plugin_slug);
|
421 |
add_settings_field('cht_cta', 'CTA', '', $this->plugin_slug);
|
422 |
-
add_settings_field('cht_credit', 'Credit', '', $this->plugin_slug);
|
423 |
add_settings_field('cht_cta_switcher', 'CTA switcher', '', $this->plugin_slug);
|
424 |
add_settings_field('chaty_attention_effect', 'CTA effect', '', $this->plugin_slug);
|
425 |
add_settings_field('chaty_default_state', 'CTA state', '', $this->plugin_slug);
|
@@ -470,7 +469,6 @@ class CHT_Admin_Base
|
|
470 |
register_setting($this->plugin_slug, 'cht_bottom_spacing', 'chaty_sanitize_options');
|
471 |
register_setting($this->plugin_slug, 'cht_side_spacing', 'chaty_sanitize_options');
|
472 |
register_setting($this->plugin_slug, 'cht_cta', 'chaty_sanitize_options');
|
473 |
-
register_setting($this->plugin_slug, 'cht_credit', 'chaty_sanitize_options');
|
474 |
register_setting($this->plugin_slug, 'cht_cta_switcher', 'chaty_sanitize_options');
|
475 |
register_setting($this->plugin_slug, 'cht_widget_size', 'chaty_sanitize_options');
|
476 |
register_setting($this->plugin_slug, 'cht_widget_img', 'chaty_sanitize_options');
|
419 |
add_settings_field('cht_bottom_spacing', 'Bottom spacing', '', $this->plugin_slug);
|
420 |
add_settings_field('cht_side_spacing', 'Side spacing', '', $this->plugin_slug);
|
421 |
add_settings_field('cht_cta', 'CTA', '', $this->plugin_slug);
|
|
|
422 |
add_settings_field('cht_cta_switcher', 'CTA switcher', '', $this->plugin_slug);
|
423 |
add_settings_field('chaty_attention_effect', 'CTA effect', '', $this->plugin_slug);
|
424 |
add_settings_field('chaty_default_state', 'CTA state', '', $this->plugin_slug);
|
469 |
register_setting($this->plugin_slug, 'cht_bottom_spacing', 'chaty_sanitize_options');
|
470 |
register_setting($this->plugin_slug, 'cht_side_spacing', 'chaty_sanitize_options');
|
471 |
register_setting($this->plugin_slug, 'cht_cta', 'chaty_sanitize_options');
|
|
|
472 |
register_setting($this->plugin_slug, 'cht_cta_switcher', 'chaty_sanitize_options');
|
473 |
register_setting($this->plugin_slug, 'cht_widget_size', 'chaty_sanitize_options');
|
474 |
register_setting($this->plugin_slug, 'cht_widget_img', 'chaty_sanitize_options');
|
cht-icons.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
Author URI: https://premio.io/downloads/chaty/
|
8 |
Text Domain: chaty
|
9 |
Domain Path: /languages
|
10 |
-
Version: 2.5.
|
11 |
License: GPL2
|
12 |
*/
|
13 |
|
@@ -27,7 +27,7 @@ define('CHT_INC', CHT_DIR . '/includes');
|
|
27 |
define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
|
28 |
define('CHT_PLUGIN_URL', plugin_dir_url(__FILE__));
|
29 |
define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
|
30 |
-
define('CHT_VERSION', "2.5.
|
31 |
|
32 |
if (!function_exists('wp_doing_ajax')) {
|
33 |
function wp_doing_ajax()
|
7 |
Author URI: https://premio.io/downloads/chaty/
|
8 |
Text Domain: chaty
|
9 |
Domain Path: /languages
|
10 |
+
Version: 2.5.7
|
11 |
License: GPL2
|
12 |
*/
|
13 |
|
27 |
define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
|
28 |
define('CHT_PLUGIN_URL', plugin_dir_url(__FILE__));
|
29 |
define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
|
30 |
+
define('CHT_VERSION', "2.5.7");
|
31 |
|
32 |
if (!function_exists('wp_doing_ajax')) {
|
33 |
function wp_doing_ajax()
|
js/cht-front-script.js
CHANGED
@@ -114,7 +114,7 @@
|
|
114 |
default:
|
115 |
return '<svg version="1.1" id="ch" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.7 54 54" style="enable-background:new -496 507.7 54 54;" xml:space="preserve"><style type="text/css">.st1 {fill: #FFFFFF;}.st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="' + t.object_settings.color + '"/></g><path class="st1" d="M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z"/><path class="st0" d="M-477.7,530.5h11.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-11.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,530.8-478.2,530.5-477.7,530.5z"/><path class="st0" d="M-477.7,533.5h7.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-7.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,533.9-478.2,533.5-477.7,533.5z"/></svg>'
|
116 |
}
|
117 |
-
}(e), h = i("display_cta"), "" != g && "none" != h && (d += ' <div class="chaty-widget-i-title true"> ', d += g, d += "</div>"), d += "</div>", d += '<div class="chaty-widget-i chaty-close-settings i-trigger-close" data-title="' + e.object_settings.close_text + '" style="background-color:' + e.object_settings.color + '">', "" == e.object_settings.close_img ? (d += '<svg viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">', d += '<ellipse cx="26" cy="26" rx="26" ry="26" fill="' + e.object_settings.color + '"/>', d += '<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="white"/>', d += '<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="white"/>', d += "</svg>") : d += "<span class='chaty-social-img'><img alt='" + e.object_settings.close_text + "' src='" + e.object_settings.close_img + "' /></span>", d += '<div class="chaty-widget-i-title">', d += e.object_settings.close_text, d += "</div>", d += "</div>", d += " </div>", 0 === n.length && !e.object_settings.isPRO && (d += '
|
118 |
} else ;
|
119 |
t("body").append(d)
|
120 |
}(e, token)), function () {
|
114 |
default:
|
115 |
return '<svg version="1.1" id="ch" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.7 54 54" style="enable-background:new -496 507.7 54 54;" xml:space="preserve"><style type="text/css">.st1 {fill: #FFFFFF;}.st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="' + t.object_settings.color + '"/></g><path class="st1" d="M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z"/><path class="st0" d="M-477.7,530.5h11.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-11.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,530.8-478.2,530.5-477.7,530.5z"/><path class="st0" d="M-477.7,533.5h7.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-7.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,533.9-478.2,533.5-477.7,533.5z"/></svg>'
|
116 |
}
|
117 |
+
}(e), h = i("display_cta"), "" != g && "none" != h && (d += ' <div class="chaty-widget-i-title true"> ', d += g, d += "</div>"), d += "</div>", d += '<div class="chaty-widget-i chaty-close-settings i-trigger-close" data-title="' + e.object_settings.close_text + '" style="background-color:' + e.object_settings.color + '">', "" == e.object_settings.close_img ? (d += '<svg viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">', d += '<ellipse cx="26" cy="26" rx="26" ry="26" fill="' + e.object_settings.color + '"/>', d += '<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="white"/>', d += '<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="white"/>', d += "</svg>") : d += "<span class='chaty-social-img'><img alt='" + e.object_settings.close_text + "' src='" + e.object_settings.close_img + "' /></span>", d += '<div class="chaty-widget-i-title">', d += e.object_settings.close_text, d += "</div>", d += "</div>", d += " </div>", 0 === n.length && !e.object_settings.isPRO && (d += ''), d += "</div>"
|
118 |
} else ;
|
119 |
t("body").append(d)
|
120 |
}(e, token)), function () {
|
js/cht-front-script.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function launch_chaty(){jQuery(".chaty-widget").hasClass("one_widget")||jQuery(".trigger-chaty-button").trigger("click")}!function(t){var e={};function i(s){if(e[s])return e[s].exports;var a=e[s]={i:s,l:!1,exports:{}};return t[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:s})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=10)}({10:function(t,e,i){i(11),t.exports=i(12)},11:function(t,e){!function(t){var e,i=0,s=chaty_settings,a=".i-trigger .chaty-widget-i .svg, .i-trigger .chaty-widget-i .widget-img, .i-trigger .chaty-widget-i .facustom-icon";function c(t){for(var e=t+"=",i=document.cookie.split(";"),s=0;s<i.length;s++){for(var a=i[s];" "==a.charAt(0);)a=a.substring(1);if(0==a.indexOf(e))return a.substring(e.length,a.length)}return""}new Date;function o(){var t=new Date;setInterval(function(){t.setTime(t.getTime()+1e3),document.cookie="display_cta=none; expires="+t.toGMTString()+"; path=/"},500)}function n(t,e,i){var s="";if(i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3),s="; expires="+a.toUTCString()}document.cookie=t+"="+(e||"")+s+"; path=/"}function g(t){for(var e=t+"=",i=document.cookie.split(";"),s=0;s<i.length;s++){for(var a=i[s];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(e))return a.substring(e.length,a.length)}return null}function r(){n("cta_widget_status","yes",1),i=1;var t=0;t=jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile").length,null!=g("chaty-animation")&&(chaty_settings.object_settings.animation_class=""),""!=chaty_settings.object_settings.animation_class&&(jQuery(".i-trigger .chaty-widget-i svg").wrap(function(){return"<div class='svg'></div>"}),"sheen"!=chaty_settings.object_settings.animation_class?t>1?(jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3)},5e3)):1==t&&(a=".chaty-main-widget svg, .chaty-main-widget img, .chaty-main-widget .facustom-icon",jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3)},5e3)):(a=".i-trigger .chaty-widget-i .wrap-svg",jQuery(".i-trigger .chaty-widget-i .wrap-svg").length||jQuery(".i-trigger .chaty-widget-i svg").wrap(function(){return"<div class='wrap-svg'></div>"}),jQuery(a).removeClass("chaty-animation-sheen").removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-sheen").addClass("start-now")},10),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-sheen").removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-sheen").addClass("start-now")},10)},5e3))),"open"==chaty_settings.object_settings.display_state&&("no"==chaty_settings.object_settings.has_close_button?t>1&&(l(),jQuery(".chaty-widget").find(".i-trigger-open").removeClass("active_clos"),jQuery(".chaty-widget").find(".i-trigger-open").trigger("click"),jQuery(".chaty-widget-is").addClass("has-no-close-btn"),jQuery(".i-trigger").remove()):t>1&&(l(),jQuery(".chaty-widget").find(".i-trigger-open").removeClass("active_clos"),jQuery(".chaty-widget").find(".i-trigger-open").trigger("click"))),jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show")}function l(){e&&(clearInterval(e),e=0),n("chaty-animation","stop",1),jQuery(".chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),jQuery(".start-now").removeClass("start-now"),chaty_settings.object_settings.animation_class=""}c("display_cta"),token="",jQuery(document).ready(function(){"true"==s.object_settings.active&&function(e,i){var s=e.object_settings.device,a="";if("right"==e.object_settings.position)a="left: auto;bottom: 25px; right: 25px;";else if("left"==e.object_settings.position)a="right: auto; bottom: 25px; left: 25px;";else if("custom"==e.object_settings.position){var o=e.object_settings.pos_side,n=e.object_settings.bot,g=e.object_settings.side;a="right"===o?"left: auto; bottom: "+n+"px; right: "+g+"px":"left: "+g+"px; bottom: "+n+"px; right: auto"}var r=e.object_settings.cta,l="",d=e.object_settings.social,h=!1;if((/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(h=!0),h?jQuery("body").addClass("chaty-in-mobile"):jQuery("body").addClass("chaty-in-desktop"),Object.keys(d).length>=1&&(l='<div class="chaty-widget hide-widget '+i+" "+s+' " style="display:block; '+a+'" dir="ltr">',l+='<div class="chaty-widget-is" id="transition_disabled">'),l+=function(e){var i="",s=0;return t.each(e.object_settings.social,function(t,a){if(e.object_settings.isPRO&&jQuery("body").addClass("has-pro-version"),!e.object_settings.isPRO&&"3"==++s)return!1;extra_class="","1"!=e.object_settings.analytics&&1!=e.object_settings.analytics||(extra_class+=" update-analytics ");var c=1==e.object_settings.social[t].is_desktop?"is-in-desktop":"",o=1==e.object_settings.social[t].is_mobile?"is-in-mobile":"",n=1==e.object_settings.is_mobile?e.object_settings.social[t].mobile_target:e.object_settings.social[t].desktop_target;if(jQuery("body").hasClass("chaty-in-mobile")&&(e.object_settings.social[t].href_url=e.object_settings.social[t].mobile_url),"viber"==e.object_settings.social[t].social_channel){if(jQuery("body").hasClass("chaty-in-mobile")){var g=e.object_settings.social[t].href_url;g=g.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(g="+"+g),e.object_settings.social[t].href_url=g}e.object_settings.social[t].href_url="viber://chat?number="+e.object_settings.social[t].href_url}var r="";""!=e.object_settings.social[t].on_click&&(r=' onclick="'+e.object_settings.social[t].on_click+'"'),console.log(e.object_settings.social[t].href_url),socialString='<div class="chaty-widget-i chaty-main-widget '+c+" "+o+" "+extra_class+" "+e.object_settings.social[t].social_channel+'" data-title="'+e.object_settings.social[t].val+'" id="chaty-channel-'+e.object_settings.social[t].social_channel+'" data-channel="'+e.object_settings.social[t].social_channel+'" data-code="'+e.object_settings.social[t].qr_code_image+'">',bgColor="",""!=e.object_settings.social[t].bg_color&&(socialString+="<style>#chaty-channel-"+e.object_settings.social[t].social_channel+" .color-element {fill: "+e.object_settings.social[t].bg_color+"}</style>",bgColor="style='background-color: "+e.object_settings.social[t].bg_color+";'"),socialString+="<a class='set-url-target' "+r+" rel='noopener' data-mobile-target='"+e.object_settings.social[t].mobile_target+"' data-desktop-target='"+e.object_settings.social[t].desktop_target+"' target='"+n+"' href='"+e.object_settings.social[t].href_url+"' >",""!=e.object_settings.social[t].img_url?socialString+="<span "+bgColor+" class='chaty-social-img'><img src='"+e.object_settings.social[t].img_url+"' alt='"+e.object_settings.social[t].title+"' /></span>":socialString+=e.object_settings.social[t].default_icon,socialString+="</a>",socialString+="<div class='chaty-widget-i-title'><p>"+e.object_settings.social[t].title+"</p></div>",socialString+="</div>",i+=socialString}),i}(e),d=e.object_settings.social,Object.keys(d).length>=1){l+="</div>",l+='<div class="i-trigger">';var y=c("display_cta"),w=current_url=window.location.origin;if(w=(w=w.replace("https://","")).replace("http://",""),""!=r&&"none"!=y)var _="true";else _="no-tooltip";l+='<div class="chaty-widget-i chaty-close-settings i-trigger-open '+_+' ">',l+=function(t){switch(t.object_settings.widget_type){case"chat-image":if(t.object_settings.widget_img.length>1)return'<div class="widget-img" style="background-color:'+t.object_settings.color+'"><img src="'+t.object_settings.widget_img+'"/></div>';case"chat-smile":return'<svg version="1.1" id="smile" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.8 507.1 54 54" style="enable-background:new -496.8 507.1 54 54;" xml:space="preserve"><style type="text/css">.st1{fill:#FFFFFF;} .st2{fill:none;stroke:#808080;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}</style><g><circle cx="-469.8" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" d="M-459.5,523.5H-482c-2.1,0-3.7,1.7-3.7,3.7v13.1c0,2.1,1.7,3.7,3.7,3.7h19.3l5.4,5.4c0.2,0.2,0.4,0.2,0.7,0.2c0.2,0,0.2,0,0.4,0c0.4-0.2,0.6-0.6,0.6-0.9v-21.5C-455.8,525.2-457.5,523.5-459.5,523.5z"/><path class="st2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/><path class="st2" d="M-460.8,534.5c-0.1-1.2-0.8-3.4-3.3-2.8"/></svg>';case"chat-bubble":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.9 507.1 54 54" style="enable-background:new -496.9 507.1 54 54;" xml:space="preserve"><style type="text/css">.st1{fill:#FFFFFF;}</style><g><circle cx="-469.9" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" d="M-472.6,522.1h5.3c3,0,6,1.2,8.1,3.4c2.1,2.1,3.4,5.1,3.4,8.1c0,6-4.6,11-10.6,11.5v4.4c0,0.4-0.2,0.7-0.5,0.9 c-0.2,0-0.2,0-0.4,0c-0.2,0-0.5-0.2-0.7-0.4l-4.6-5c-3,0-6-1.2-8.1-3.4s-3.4-5.1-3.4-8.1C-484.1,527.2-478.9,522.1-472.6,522.1z M-462.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-464.6,534.6-463.9,535.3-462.9,535.3z M-469.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-471.7,534.6-471,535.3-469.9,535.3z M-477,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-478.8,534.6-478.1,535.3-477,535.3z"/></svg>';case"chat-db":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.1 54 54" style="enable-background:new -496 507.1 54 54;" xml:space="preserve"><style type="text/css">.st1{fill:#FFFFFF;}</style><g><circle cx="-469" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" d="M-464.6,527.7h-15.6c-1.9,0-3.5,1.6-3.5,3.5v10.4c0,1.9,1.6,3.5,3.5,3.5h12.6l5,5c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18.2C-461.1,529.3-462.7,527.7-464.6,527.7z"/><path class="st1" d="M-459.4,522.5H-475c-1.9,0-3.5,1.6-3.5,3.5h13.9c2.9,0,5.2,2.3,5.2,5.2v11.6l1.9,1.9c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18C-455.9,524.1-457.5,522.5-459.4,522.5z"/></svg>';default:return'<svg version="1.1" id="ch" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.7 54 54" style="enable-background:new -496 507.7 54 54;" xml:space="preserve"><style type="text/css">.st1 {fill: #FFFFFF;}.st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" d="M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z"/><path class="st0" d="M-477.7,530.5h11.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-11.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,530.8-478.2,530.5-477.7,530.5z"/><path class="st0" d="M-477.7,533.5h7.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-7.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,533.9-478.2,533.5-477.7,533.5z"/></svg>'}}(e),y=c("display_cta"),""!=r&&"none"!=y&&(l+=' <div class="chaty-widget-i-title true"> ',l+=r,l+="</div>"),l+="</div>",l+='<div class="chaty-widget-i chaty-close-settings i-trigger-close" data-title="'+e.object_settings.close_text+'" style="background-color:'+e.object_settings.color+'">',""==e.object_settings.close_img?(l+='<svg viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">',l+='<ellipse cx="26" cy="26" rx="26" ry="26" fill="'+e.object_settings.color+'"/>',l+='<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="white"/>',l+='<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="white"/>',l+="</svg>"):l+="<span class='chaty-social-img'><img alt='"+e.object_settings.close_text+"' src='"+e.object_settings.close_img+"' /></span>",l+='<div class="chaty-widget-i-title">',l+=e.object_settings.close_text,l+="</div>",l+="</div>",l+=" </div>",0===i.length&&!e.object_settings.isPRO&&(l+='<div class="get" style="position: absolute;width: 100%;text-align: center;"> <a href="https://premio.io/downloads/chaty/?utm_source=wpplugin&domain='+w+'" target="_blank" style=" font-size: 11px; top: -10px; font-family: Lato, Helvetica, Arial, sans-serif; position: relative; color: #8c8585; ">Get Chaty</a></div>'),l+="</div>"}t("body").append(l)}(s,token),function(){var e=t(".chaty-widget"),i=s.object_settings.widget_size?s.object_settings.widget_size:54,a=+s.object_settings.widget_size+8;function o(){e.position().top;var t=e.find(".chaty-widget-is .chaty-widget-i").length;if((t=jQuery("body").hasClass("chaty-in-desktop")?e.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:e.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)*a>jQuery(window).height()-(chaty_settings.object_settings.widget_size+8)){var i=Math.round(Math.sqrt(t)),s=Math.ceil(Math.sqrt(t));e.find(".chaty-widget-is").css({height:s*a,width:i*a}),g(s),e.find("span").css({height:s*a,width:i*a}),g(s),e.find("img").css({height:s*a,width:i*a}),g(s)}else g()}function n(){"left"===s.object_settings.position&&e.addClass("chaty-widget-is-right"),"custom"===s.object_settings.position&&"left"===s.object_settings.pos_side&&e.addClass("chaty-widget-is-right")}function g(t){var s;s=jQuery("body").hasClass("chaty-in-desktop")?e.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:e.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length,e.find(".chaty-widget-i").css({height:i+"px",width:i+"px"}),e.find("img").css({height:i+"px",width:i+"px"}),e.find("span").css({height:i+"px",width:i+"px"}),e.find(".chaty-widget-is").css({top:"-"+100*s+"%"}),e.find(".chaty-widget-is").height(s*(parseInt(i)+8)),e.find(".chaty-widget-is").width(parseInt(i)+8),"horizontal"==chaty_settings.object_settings.mode?(e.find(".chaty-widget-is").css({top:"0"}),e.find(".chaty-widget-is").width(s*(parseInt(i)+8)),e.find(".chaty-widget-is").height(parseInt(i)+8)):(e.find(".chaty-widget-is").height(s*(parseInt(i)+8)),e.find(".chaty-widget-is").width(parseInt(i)+8))}n(),o(),jQuery(window).resize(function(){o(),1==Object.keys(s.object_settings.social).length&&(jQuery(".chaty-widget").addClass("chaty-widget-show"),jQuery(".chaty-widget-is").css("top","auto"))}),t(".chaty-widget-i.facebook").mouseenter(function(){t(".facebook_two_mess").css({opacity:"1","z-index":"1"}),t(this).addClass("before")}),t(".chaty-widget-i.facebook").mouseleave(function(){t(".facebook_two_mess").css({opacity:"0","z-index":"1"}),t(this).removeClass("before")}),t(".chaty-widget-i.facebook").on("click",function(){t(this).addClass("active"),t(".facebook_two_mess").hide(),jQuery(".chaty-widget .get a").hide(),t(this).children(".face_title").css({opacity:"1","z-index":"2"}).show(),t(".chaty-widget").hasClass("one_widget")?t(".chaty-widget").hasClass("chaty-widget-is-right")?t(".face_title").css({top:"calc(100% - 447px)",left:"20px"}):t(".face_title").css({top:"calc(100% - 447px)",left:"auto",right:"20px"}):(t(".facebook_two_mess").css({opacity:"0","z-index":"10001"}),t(".ico_d").hide(),t(".chaty-widget .chaty-widget-i").css({"box-shadow":"0px 3px 6px rgba(0,0,0,0)"}),t(".chaty-widget").hasClass("one_widget")||t(".i-trigger").hide())}),t(".i-trigger-close").on("click",function(i){i.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(e.removeClass("chaty-widget-show"),e.addClass("none-widget-show"))}),t("body").on("click",".close_facebook",function(){t(".facebook_two_mess").show(),jQuery(".chaty-widget .get a").show(),t(".chaty-widget-i.facebook").removeClass("active"),t(this).parent().parent().css({opacity:"1"}).hide(),t(".i-trigger").show(),t(".chaty-widget-is .chaty-widget-i svg").show()}),t(".i-trigger-close").on("click",function(i){t(".i-trigger-open").addClass("active_clos"),i.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(e.removeClass("chaty-widget-show"),e.addClass("none-widget-show"))}),t("body").on("click",".update-analytics",function(t){if(channelName=jQuery(this).attr("data-channel"),null!=channelName&&""!=channelName)if(window.hasOwnProperty("gtag"))gtag("event","chaty_"+channelName,{eventCategory:"chaty_"+channelName,event_action:"chaty_"+channelName});else if(window.hasOwnProperty("ga")){var e=window.ga.getAll()[0];e&&e.send("event","click",{eventCategory:"chaty_"+channelName,eventAction:"chaty_"+channelName})}}),t("body").on("click",".wechat",function(){var t=jQuery(".chaty-widget .chaty-widget-i.wechat").attr("data-code");null!=t&&""!=t&&(jQuery("#wechat-qr-code").length||(htmlString="<div id='wechat-qr-code' class='wechat-qr-code'>",htmlString+='<div class="wechat-box-head">WeChat<svg xmlns="http://www.w3.org/2000/svg" class="close_facebook" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="612px" height="612px" viewBox="0 0 612 612" style="fill: #fff; float: right; margin-top: 4px;" xml:space="preserve"><path xmlns="http://www.w3.org/2000/svg" d="M268.064,256.75l138.593-138.593c3.124-3.124,3.124-8.189,0-11.313c-3.125-3.124-8.189-3.124-11.314,0L256.75,245.436 L118.157,106.843c-3.124-3.124-8.189-3.124-11.313,0c-3.125,3.124-3.125,8.189,0,11.313L245.436,256.75L106.843,395.343 c-3.125,3.125-3.125,8.189,0,11.314c1.562,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343L256.75,268.064l138.593,138.593 c1.563,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343c3.124-3.125,3.124-8.189,0-11.314L268.064,256.75z"></path></svg></div>',htmlString+="<div class='wechat-box'><img src='"+t+"' alt='QR Code' /><a href='javascript:;'>",htmlString+="</a></div></div>",jQuery("body").append(htmlString)),jQuery("#wechat-qr-code").show())});var r=c("display_cta");"hover"==chaty_settings.object_settings.display_state?e.find(".i-trigger-open").mouseenter(function(i){i.stopPropagation(),l(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(n(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),jQuery("body .chaty-widget-i-title.true").remove()}):e.find(".i-trigger-open").click(function(i){i.stopPropagation(),l(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(n(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),jQuery("body .chaty-widget-i-title.true").remove()}),t(".one_widget").on("click",function(){t(".chaty-widget-i-title").hasClass("face_title")?(t(".facebook_two_mess").detach(),t(".chaty-widget-i").addClass("bofore_del")):(t(".chaty-widget-i-title").detach(),t(".chaty-widget-i").addClass("bofore_del")),l()}),e.find(".i-trigger-open").on("click",function(){"none"!=r&&(t(".chaty-widget").hasClass(".one_widget")||t(".i-trigger-open .chaty-widget-i-title").detach()),t(".i-trigger-open").addClass("no-tooltip"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(n(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),l()}),e.find(".i-trigger-open").mouseenter(function(){t(this).addClass("no-tooltip"),t(".i-trigger-open").removeClass("active_clos"),o()}),e.find(".chaty-widget-is").mouseleave(function(){t(".i-trigger-open").removeClass("active_clos"),t(".chaty-widget-i.facebook").hasClass("active")}),1===Object.keys(s.object_settings.social).length&&e.find(".i-trigger-open").on("touchstart",function(e){"use strict";t(this).find(".chaty-widget-i").toggleClass("hover")}),1==Object.keys(s.object_settings.social).length&&(jQuery(".chaty-widget").addClass("chaty-widget-show"),jQuery(".chaty-widget-is").css("top","auto"),jQuery(".chaty-widget-is").css("z-index","10001"),jQuery(".chaty-widget-i.i-trigger-close, .i-trigger.chaty-widget-i").remove(),jQuery(".chaty-widget .get a").css("top","-10px"),jQuery(".chaty-widget").addClass("one_widget"),jQuery(".chaty-widget-i:first .chaty-widget-i-title:last p").text(s.object_settings.cta),jQuery(document).on("click",".chaty-widget-i",function(){jQuery(".chaty-widget-i:first .chaty-widget-i-title:last").hide(),jQuery("body").addClass("hide-cht-widget")}),jQuery("body").append("<style>.chaty-widget-is{top:0!important;}</style>"))}(),t(document).ready(function(){1!==Object.keys(s.object_settings.social).length||!s.object_settings.social.snapchat&&!s.object_settings.social.wechat||s.object_settings.cta||(t(".chaty-widget-i-title").detach(),t(".chaty-widget-i").addClass("bofore_del")),t(".chaty-widget-i-title").hasClass("one_go")&&(t(".chaty-widget-i-title p").text(t(".chaty-widget-i-title.one_go").html()),"none"==c("display_cta")&&(t(".chaty-widget-i-title").hasClass("face_title")?(t(".facebook_two_mess").detach(),t(".chaty-widget-i").addClass("bofore_del")):(t(".chaty-widget-i-title").detach(),t(".chaty-widget-i").addClass("bofore_del")))),window.matchMedia("only screen and (max-width: 760px)").matches&&t(".i-trigger-open").addClass("active_clos"),jQuery(".chaty-widget-i-title").each(function(){""==jQuery(this).text()&&jQuery(this).remove()})}),t(document).ready(function(){var t=0;0==(t=jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)?jQuery(".chaty-widget").addClass("hide-widget").removeClass("desktop_active").removeClass("mobile_active"):(jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget").removeClass("hide-widget").addClass("desktop_active"):jQuery(".chaty-widget").removeClass("hide-widget").addClass("mobile_active"),1==t?(jQuery(".chaty-close-settings").hide(),jQuery("body").hasClass("chaty-in-desktop")?(htmlToAdd=jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop:first").clone(),jQuery(".i-trigger").html(htmlToAdd)):(htmlToAdd=jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile:first").clone(),jQuery(".i-trigger").html(htmlToAdd)),jQuery(".i-trigger .chaty-widget-i-title p").text(chaty_settings.object_settings.cta),jQuery(".chaty-widget").addClass("one_widget"),jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function(){jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow"),o(),l()})):(jQuery(".chaty-widget").removeClass("one_widget"),jQuery(".i-trigger .chaty-main-widget").remove(),jQuery(".chaty-close-settings").show(),jQuery(".chaty-widget-i-title").removeClass("hide-it"),jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function(){o(),jQuery(".i-trigger .chaty-widget-i-title").addClass("hide-it"),l()})));var e,a,d,h=0;if(1==parseInt(chaty_settings.object_settings.display_conditions)){var y=chaty_settings.object_settings.display_rules;if(y.length>0){var w=new Date;w.setHours(w.getHours()+chaty_settings.object_settings.gmt);for(var _=w.getUTCHours(),u=w.getUTCMinutes(),p=w.getUTCDay(),m=0;m<y.length;m++){var b=0,j=0;-1==y[m].days?j=1:y[m].days>=0&&y[m].days<=6?y[m].days==p&&(j=1):7==y[m].days?p>=0&&p<=4&&(j=1):8==y[m].days?p>=1&&p<=5&&(j=1):9==y[m].days&&(5!=p&&6!=p||(j=1)),1==j&&(_>y[m].start_hours&&_<y[m].end_hours?b=1:_==y[m].start_hours&&_<y[m].end_hours?u>=y[m].start_min&&(b=1):_>y[m].start_hours&&_==y[m].end_hours?u<=y[m].end_min&&(b=1):_==y[m].start_hours&&_==y[m].end_hours&&u>=y[m].start_min&&u<=y[m].end_min&&(b=1),1==b&&u>=y[m].start_min&&u<=y[m].end_min&&1),1==b&&1==j&&(h=1),1==h&&(m=y.length+1)}}else h=1}else h=1;if(1==t&&(""!=c("display_cta")&&(jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow"),setInterval(function(){o()},1e4)),jQuery(".chaty-main-widget").addClass("i-trigger-open").addClass("single-button"),jQuery(".chaty-widget-show .i-trigger-open svg").css("transform","rotate(0deg)")),jQuery("chaty-main-widget").mouseenter(function(){o()}),1==h)if("yes"==g("cta_widget_status"))jQuery(".chaty-widget").removeClass("hide-widget"),r();else if("no"==chaty_settings.object_settings.time_trigger&&"no"==chaty_settings.object_settings.exit_intent&&"no"==chaty_settings.object_settings.on_page_scroll)jQuery(".chaty-widget").removeClass("hide-widget"),"open"==chaty_settings.object_settings.display_state&&"no"==chaty_settings.object_settings.has_close_button?chaty_settings.object_settings.has_close_button="no":(chaty_settings.object_settings.display_state="hover",chaty_settings.object_settings.has_close_button="yes"),r();else{if(jQuery(".chaty-widget").addClass("hide-widget"),"yes"==chaty_settings.object_settings.time_trigger&&setTimeout(function(){i||(jQuery(".chaty-widget").removeClass("hide-widget"),r())},1e3*parseInt(chaty_settings.object_settings.trigger_time)),"yes"==chaty_settings.object_settings.exit_intent){e=document,a="mouseout",d=function(t){null==t.toElement&&null==t.relatedTarget&&null==g("cta_exit_intent_shown")&&(n("cta_exit_intent_shown","yes",1),i=!0,jQuery(".chaty-widget").removeClass("hide-widget"),jQuery(".chaty-widget").addClass("chaty-animation-widget"),jQuery(".chaty-animation-widget").append("<div class='chaty-nav'></div>"),"open"==chaty_settings.object_settings.display_state&&"no"==chaty_settings.object_settings.has_close_button?chaty_settings.object_settings.has_close_button="no":(chaty_settings.object_settings.display_state="open",chaty_settings.object_settings.has_close_button="yes"),r(),"left"==chaty_settings.object_settings.position?jQuery(".chaty-widget").addClass("left-position"):"right"==chaty_settings.object_settings.position?jQuery(".chaty-widget").addClass("right-position"):"custom"==chaty_settings.object_settings.position&&("left"==s.object_settings.pos_side?jQuery(".chaty-widget").addClass("left-position"):jQuery(".chaty-widget").addClass("right-position")),l(),setTimeout(function(){jQuery(".chaty-animation-widget").addClass("active")},100),setTimeout(function(){jQuery(".chaty-nav").remove()},2500))},e.addEventListener?e.addEventListener(a,d,!1):e.attachEvent&&e.attachEvent("on"+a,d)}"yes"==chaty_settings.object_settings.on_page_scroll&&parseInt(chaty_settings.object_settings.page_scroll)>0&&jQuery(window).scroll(function(){if(!i){var t=jQuery(document).height()-jQuery(window).height(),e=jQuery(window).scrollTop();0!=e&&e/t*100>=parseInt(chaty_settings.object_settings.page_scroll)&&(jQuery(".chaty-widget").removeClass("hide-widget"),r())}})}else jQuery(".chaty-widget").addClass("hide-widget")}),jQuery(".chaty-widget-i-title").each(function(){""==jQuery(this).text()&&(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery(this).remove())}),jQuery(".chaty-widget").hasClass("one_widget")||jQuery("body").append("<div class='trigger-chaty-button'></div>"),jQuery("body").addClass(chaty_settings.object_settings.mode+"-cht-menu"),jQuery("body").addClass(chaty_settings.object_settings.position+"-cht-position")}),jQuery(document).on("click",".trigger-chaty-button",function(){jQuery(".chaty-widget").removeClass("hide-widget"),r(),!jQuery(".chaty-widget").hasClass("none-widget-show")&&jQuery(".chaty-widget").hasClass("chaty-widget-show")||jQuery(".i-trigger-open").trigger("click")})}(jQuery)},12:function(t,e){}});
|
1 |
+
function launch_chaty(){jQuery(".chaty-widget").hasClass("one_widget")||jQuery(".trigger-chaty-button").trigger("click")}!function(t){var e={};function i(s){if(e[s])return e[s].exports;var a=e[s]={i:s,l:!1,exports:{}};return t[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:s})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=10)}({10:function(t,e,i){i(11),t.exports=i(12)},11:function(t,e){!function(t){var e,i=0,s=chaty_settings,a=".i-trigger .chaty-widget-i .svg, .i-trigger .chaty-widget-i .widget-img, .i-trigger .chaty-widget-i .facustom-icon";function c(t){for(var e=t+"=",i=document.cookie.split(";"),s=0;s<i.length;s++){for(var a=i[s];" "==a.charAt(0);)a=a.substring(1);if(0==a.indexOf(e))return a.substring(e.length,a.length)}return""}new Date;function o(){var t=new Date;setInterval(function(){t.setTime(t.getTime()+1e3),document.cookie="display_cta=none; expires="+t.toGMTString()+"; path=/"},500)}function n(t,e,i){var s="";if(i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3),s="; expires="+a.toUTCString()}document.cookie=t+"="+(e||"")+s+"; path=/"}function g(t){for(var e=t+"=",i=document.cookie.split(";"),s=0;s<i.length;s++){for(var a=i[s];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(e))return a.substring(e.length,a.length)}return null}function r(){n("cta_widget_status","yes",1),i=1;var t=0;t=jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile").length,null!=g("chaty-animation")&&(chaty_settings.object_settings.animation_class=""),""!=chaty_settings.object_settings.animation_class&&(jQuery(".i-trigger .chaty-widget-i svg").wrap(function(){return"<div class='svg'></div>"}),"sheen"!=chaty_settings.object_settings.animation_class?t>1?(jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3)},5e3)):1==t&&(a=".chaty-main-widget svg, .chaty-main-widget img, .chaty-main-widget .facustom-icon",jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")},1e3)},5e3)):(a=".i-trigger .chaty-widget-i .wrap-svg",jQuery(".i-trigger .chaty-widget-i .wrap-svg").length||jQuery(".i-trigger .chaty-widget-i svg").wrap(function(){return"<div class='wrap-svg'></div>"}),jQuery(a).removeClass("chaty-animation-sheen").removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-sheen").addClass("start-now")},10),e=setInterval(function(){jQuery(a).removeClass("chaty-animation-sheen").removeClass("start-now"),setTimeout(function(){jQuery(a).addClass("chaty-animation-sheen").addClass("start-now")},10)},5e3))),"open"==chaty_settings.object_settings.display_state&&("no"==chaty_settings.object_settings.has_close_button?t>1&&(l(),jQuery(".chaty-widget").find(".i-trigger-open").removeClass("active_clos"),jQuery(".chaty-widget").find(".i-trigger-open").trigger("click"),jQuery(".chaty-widget-is").addClass("has-no-close-btn"),jQuery(".i-trigger").remove()):t>1&&(l(),jQuery(".chaty-widget").find(".i-trigger-open").removeClass("active_clos"),jQuery(".chaty-widget").find(".i-trigger-open").trigger("click"))),jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show")}function l(){e&&(clearInterval(e),e=0),n("chaty-animation","stop",1),jQuery(".chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),jQuery(".start-now").removeClass("start-now"),chaty_settings.object_settings.animation_class=""}c("display_cta"),token="",jQuery(document).ready(function(){"true"==s.object_settings.active&&function(e,i){var s=e.object_settings.device,a="";if("right"==e.object_settings.position)a="left: auto;bottom: 25px; right: 25px;";else if("left"==e.object_settings.position)a="right: auto; bottom: 25px; left: 25px;";else if("custom"==e.object_settings.position){var o=e.object_settings.pos_side,n=e.object_settings.bot,g=e.object_settings.side;a="right"===o?"left: auto; bottom: "+n+"px; right: "+g+"px":"left: "+g+"px; bottom: "+n+"px; right: auto"}var r=e.object_settings.cta,l="",d=e.object_settings.social,h=!1;if((/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(h=!0),h?jQuery("body").addClass("chaty-in-mobile"):jQuery("body").addClass("chaty-in-desktop"),Object.keys(d).length>=1&&(l='<div class="chaty-widget hide-widget '+i+" "+s+' " style="display:block; '+a+'" dir="ltr">',l+='<div class="chaty-widget-is" id="transition_disabled">'),l+=function(e){var i="",s=0;return t.each(e.object_settings.social,function(t,a){if(e.object_settings.isPRO&&jQuery("body").addClass("has-pro-version"),!e.object_settings.isPRO&&"3"==++s)return!1;extra_class="","1"!=e.object_settings.analytics&&1!=e.object_settings.analytics||(extra_class+=" update-analytics ");var c=1==e.object_settings.social[t].is_desktop?"is-in-desktop":"",o=1==e.object_settings.social[t].is_mobile?"is-in-mobile":"",n=1==e.object_settings.is_mobile?e.object_settings.social[t].mobile_target:e.object_settings.social[t].desktop_target;if(jQuery("body").hasClass("chaty-in-mobile")&&(e.object_settings.social[t].href_url=e.object_settings.social[t].mobile_url),"viber"==e.object_settings.social[t].social_channel){if(jQuery("body").hasClass("chaty-in-mobile")){var g=e.object_settings.social[t].href_url;g=g.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(g="+"+g),e.object_settings.social[t].href_url=g}e.object_settings.social[t].href_url="viber://chat?number="+e.object_settings.social[t].href_url}var r="";""!=e.object_settings.social[t].on_click&&(r=' onclick="'+e.object_settings.social[t].on_click+'"'),console.log(e.object_settings.social[t].href_url),socialString='<div class="chaty-widget-i chaty-main-widget '+c+" "+o+" "+extra_class+" "+e.object_settings.social[t].social_channel+'" data-title="'+e.object_settings.social[t].val+'" id="chaty-channel-'+e.object_settings.social[t].social_channel+'" data-channel="'+e.object_settings.social[t].social_channel+'" data-code="'+e.object_settings.social[t].qr_code_image+'">',bgColor="",""!=e.object_settings.social[t].bg_color&&(socialString+="<style>#chaty-channel-"+e.object_settings.social[t].social_channel+" .color-element {fill: "+e.object_settings.social[t].bg_color+"}</style>",bgColor="style='background-color: "+e.object_settings.social[t].bg_color+";'"),socialString+="<a class='set-url-target' "+r+" rel='noopener' data-mobile-target='"+e.object_settings.social[t].mobile_target+"' data-desktop-target='"+e.object_settings.social[t].desktop_target+"' target='"+n+"' href='"+e.object_settings.social[t].href_url+"' >",""!=e.object_settings.social[t].img_url?socialString+="<span "+bgColor+" class='chaty-social-img'><img src='"+e.object_settings.social[t].img_url+"' alt='"+e.object_settings.social[t].title+"' /></span>":socialString+=e.object_settings.social[t].default_icon,socialString+="</a>",socialString+="<div class='chaty-widget-i-title'><p>"+e.object_settings.social[t].title+"</p></div>",socialString+="</div>",i+=socialString}),i}(e),d=e.object_settings.social,Object.keys(d).length>=1){l+="</div>",l+='<div class="i-trigger">';var y=c("display_cta"),w=current_url=window.location.origin;if(w=(w=w.replace("https://","")).replace("http://",""),""!=r&&"none"!=y)var _="true";else _="no-tooltip";l+='<div class="chaty-widget-i chaty-close-settings i-trigger-open '+_+' ">',l+=function(t){switch(t.object_settings.widget_type){case"chat-image":if(t.object_settings.widget_img.length>1)return'<div class="widget-img" style="background-color:'+t.object_settings.color+'"><img src="'+t.object_settings.widget_img+'"/></div>';case"chat-smile":return'<svg version="1.1" id="smile" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.8 507.1 54 54" style="enable-background:new -496.8 507.1 54 54;" xml:space="preserve"><style type="text/css">.st1{fill:#FFFFFF;} .st2{fill:none;stroke:#808080;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}</style><g><circle cx="-469.8" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" d="M-459.5,523.5H-482c-2.1,0-3.7,1.7-3.7,3.7v13.1c0,2.1,1.7,3.7,3.7,3.7h19.3l5.4,5.4c0.2,0.2,0.4,0.2,0.7,0.2c0.2,0,0.2,0,0.4,0c0.4-0.2,0.6-0.6,0.6-0.9v-21.5C-455.8,525.2-457.5,523.5-459.5,523.5z"/><path class="st2" d="M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7"/><path class="st2" d="M-460.8,534.5c-0.1-1.2-0.8-3.4-3.3-2.8"/></svg>';case"chat-bubble":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.9 507.1 54 54" style="enable-background:new -496.9 507.1 54 54;" xml:space="preserve"><style type="text/css">.st1{fill:#FFFFFF;}</style><g><circle cx="-469.9" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" d="M-472.6,522.1h5.3c3,0,6,1.2,8.1,3.4c2.1,2.1,3.4,5.1,3.4,8.1c0,6-4.6,11-10.6,11.5v4.4c0,0.4-0.2,0.7-0.5,0.9 c-0.2,0-0.2,0-0.4,0c-0.2,0-0.5-0.2-0.7-0.4l-4.6-5c-3,0-6-1.2-8.1-3.4s-3.4-5.1-3.4-8.1C-484.1,527.2-478.9,522.1-472.6,522.1z M-462.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-464.6,534.6-463.9,535.3-462.9,535.3z M-469.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-471.7,534.6-471,535.3-469.9,535.3z M-477,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-478.8,534.6-478.1,535.3-477,535.3z"/></svg>';case"chat-db":return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.1 54 54" style="enable-background:new -496 507.1 54 54;" xml:space="preserve"><style type="text/css">.st1{fill:#FFFFFF;}</style><g><circle cx="-469" cy="534.1" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" d="M-464.6,527.7h-15.6c-1.9,0-3.5,1.6-3.5,3.5v10.4c0,1.9,1.6,3.5,3.5,3.5h12.6l5,5c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18.2C-461.1,529.3-462.7,527.7-464.6,527.7z"/><path class="st1" d="M-459.4,522.5H-475c-1.9,0-3.5,1.6-3.5,3.5h13.9c2.9,0,5.2,2.3,5.2,5.2v11.6l1.9,1.9c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18C-455.9,524.1-457.5,522.5-459.4,522.5z"/></svg>';default:return'<svg version="1.1" id="ch" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.7 54 54" style="enable-background:new -496 507.7 54 54;" xml:space="preserve"><style type="text/css">.st1 {fill: #FFFFFF;}.st0{fill: #808080;}</style><g><circle cx="-469" cy="534.7" r="27" fill="'+t.object_settings.color+'"/></g><path class="st1" d="M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z"/><path class="st0" d="M-477.7,530.5h11.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-11.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,530.8-478.2,530.5-477.7,530.5z"/><path class="st0" d="M-477.7,533.5h7.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-7.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,533.9-478.2,533.5-477.7,533.5z"/></svg>'}}(e),y=c("display_cta"),""!=r&&"none"!=y&&(l+=' <div class="chaty-widget-i-title true"> ',l+=r,l+="</div>"),l+="</div>",l+='<div class="chaty-widget-i chaty-close-settings i-trigger-close" data-title="'+e.object_settings.close_text+'" style="background-color:'+e.object_settings.color+'">',""==e.object_settings.close_img?(l+='<svg viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">',l+='<ellipse cx="26" cy="26" rx="26" ry="26" fill="'+e.object_settings.color+'"/>',l+='<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="white"/>',l+='<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="white"/>',l+="</svg>"):l+="<span class='chaty-social-img'><img alt='"+e.object_settings.close_text+"' src='"+e.object_settings.close_img+"' /></span>",l+='<div class="chaty-widget-i-title">',l+=e.object_settings.close_text,l+="</div>",l+="</div>",l+=" </div>",0===i.length&&!e.object_settings.isPRO&&(l+=""),l+="</div>"}t("body").append(l)}(s,token),function(){var e=t(".chaty-widget"),i=s.object_settings.widget_size?s.object_settings.widget_size:54,a=+s.object_settings.widget_size+8;function o(){e.position().top;var t=e.find(".chaty-widget-is .chaty-widget-i").length;if((t=jQuery("body").hasClass("chaty-in-desktop")?e.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:e.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)*a>jQuery(window).height()-(chaty_settings.object_settings.widget_size+8)){var i=Math.round(Math.sqrt(t)),s=Math.ceil(Math.sqrt(t));e.find(".chaty-widget-is").css({height:s*a,width:i*a}),g(s),e.find("span").css({height:s*a,width:i*a}),g(s),e.find("img").css({height:s*a,width:i*a}),g(s)}else g()}function n(){"left"===s.object_settings.position&&e.addClass("chaty-widget-is-right"),"custom"===s.object_settings.position&&"left"===s.object_settings.pos_side&&e.addClass("chaty-widget-is-right")}function g(t){var s;s=jQuery("body").hasClass("chaty-in-desktop")?e.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:e.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length,e.find(".chaty-widget-i").css({height:i+"px",width:i+"px"}),e.find("img").css({height:i+"px",width:i+"px"}),e.find("span").css({height:i+"px",width:i+"px"}),e.find(".chaty-widget-is").css({top:"-"+100*s+"%"}),e.find(".chaty-widget-is").height(s*(parseInt(i)+8)),e.find(".chaty-widget-is").width(parseInt(i)+8),"horizontal"==chaty_settings.object_settings.mode?(e.find(".chaty-widget-is").css({top:"0"}),e.find(".chaty-widget-is").width(s*(parseInt(i)+8)),e.find(".chaty-widget-is").height(parseInt(i)+8)):(e.find(".chaty-widget-is").height(s*(parseInt(i)+8)),e.find(".chaty-widget-is").width(parseInt(i)+8))}n(),o(),jQuery(window).resize(function(){o(),1==Object.keys(s.object_settings.social).length&&(jQuery(".chaty-widget").addClass("chaty-widget-show"),jQuery(".chaty-widget-is").css("top","auto"))}),t(".chaty-widget-i.facebook").mouseenter(function(){t(".facebook_two_mess").css({opacity:"1","z-index":"1"}),t(this).addClass("before")}),t(".chaty-widget-i.facebook").mouseleave(function(){t(".facebook_two_mess").css({opacity:"0","z-index":"1"}),t(this).removeClass("before")}),t(".chaty-widget-i.facebook").on("click",function(){t(this).addClass("active"),t(".facebook_two_mess").hide(),jQuery(".chaty-widget .get a").hide(),t(this).children(".face_title").css({opacity:"1","z-index":"2"}).show(),t(".chaty-widget").hasClass("one_widget")?t(".chaty-widget").hasClass("chaty-widget-is-right")?t(".face_title").css({top:"calc(100% - 447px)",left:"20px"}):t(".face_title").css({top:"calc(100% - 447px)",left:"auto",right:"20px"}):(t(".facebook_two_mess").css({opacity:"0","z-index":"10001"}),t(".ico_d").hide(),t(".chaty-widget .chaty-widget-i").css({"box-shadow":"0px 3px 6px rgba(0,0,0,0)"}),t(".chaty-widget").hasClass("one_widget")||t(".i-trigger").hide())}),t(".i-trigger-close").on("click",function(i){i.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(e.removeClass("chaty-widget-show"),e.addClass("none-widget-show"))}),t("body").on("click",".close_facebook",function(){t(".facebook_two_mess").show(),jQuery(".chaty-widget .get a").show(),t(".chaty-widget-i.facebook").removeClass("active"),t(this).parent().parent().css({opacity:"1"}).hide(),t(".i-trigger").show(),t(".chaty-widget-is .chaty-widget-i svg").show()}),t(".i-trigger-close").on("click",function(i){t(".i-trigger-open").addClass("active_clos"),i.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(e.removeClass("chaty-widget-show"),e.addClass("none-widget-show"))}),t("body").on("click",".update-analytics",function(t){if(channelName=jQuery(this).attr("data-channel"),null!=channelName&&""!=channelName)if(window.hasOwnProperty("gtag"))gtag("event","chaty_"+channelName,{eventCategory:"chaty_"+channelName,event_action:"chaty_"+channelName});else if(window.hasOwnProperty("ga")){var e=window.ga.getAll()[0];e&&e.send("event","click",{eventCategory:"chaty_"+channelName,eventAction:"chaty_"+channelName})}}),t("body").on("click",".wechat",function(){var t=jQuery(".chaty-widget .chaty-widget-i.wechat").attr("data-code");null!=t&&""!=t&&(jQuery("#wechat-qr-code").length||(htmlString="<div id='wechat-qr-code' class='wechat-qr-code'>",htmlString+='<div class="wechat-box-head">WeChat<svg xmlns="http://www.w3.org/2000/svg" class="close_facebook" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="612px" height="612px" viewBox="0 0 612 612" style="fill: #fff; float: right; margin-top: 4px;" xml:space="preserve"><path xmlns="http://www.w3.org/2000/svg" d="M268.064,256.75l138.593-138.593c3.124-3.124,3.124-8.189,0-11.313c-3.125-3.124-8.189-3.124-11.314,0L256.75,245.436 L118.157,106.843c-3.124-3.124-8.189-3.124-11.313,0c-3.125,3.124-3.125,8.189,0,11.313L245.436,256.75L106.843,395.343 c-3.125,3.125-3.125,8.189,0,11.314c1.562,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343L256.75,268.064l138.593,138.593 c1.563,1.562,3.609,2.343,5.657,2.343s4.095-0.781,5.657-2.343c3.124-3.125,3.124-8.189,0-11.314L268.064,256.75z"></path></svg></div>',htmlString+="<div class='wechat-box'><img src='"+t+"' alt='QR Code' /><a href='javascript:;'>",htmlString+="</a></div></div>",jQuery("body").append(htmlString)),jQuery("#wechat-qr-code").show())});var r=c("display_cta");"hover"==chaty_settings.object_settings.display_state?e.find(".i-trigger-open").mouseenter(function(i){i.stopPropagation(),l(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(n(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),jQuery("body .chaty-widget-i-title.true").remove()}):e.find(".i-trigger-open").click(function(i){i.stopPropagation(),l(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(n(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),jQuery("body .chaty-widget-i-title.true").remove()}),t(".one_widget").on("click",function(){t(".chaty-widget-i-title").hasClass("face_title")?(t(".facebook_two_mess").detach(),t(".chaty-widget-i").addClass("bofore_del")):(t(".chaty-widget-i-title").detach(),t(".chaty-widget-i").addClass("bofore_del")),l()}),e.find(".i-trigger-open").on("click",function(){"none"!=r&&(t(".chaty-widget").hasClass(".one_widget")||t(".i-trigger-open .chaty-widget-i-title").detach()),t(".i-trigger-open").addClass("no-tooltip"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||e.hasClass("one_widget")||(n(),t(e).hasClass("chaty-widget-show")||(e.addClass("chaty-widget-show"),e.removeClass("none-widget-show"))),l()}),e.find(".i-trigger-open").mouseenter(function(){t(this).addClass("no-tooltip"),t(".i-trigger-open").removeClass("active_clos"),o()}),e.find(".chaty-widget-is").mouseleave(function(){t(".i-trigger-open").removeClass("active_clos"),t(".chaty-widget-i.facebook").hasClass("active")}),1===Object.keys(s.object_settings.social).length&&e.find(".i-trigger-open").on("touchstart",function(e){"use strict";t(this).find(".chaty-widget-i").toggleClass("hover")}),1==Object.keys(s.object_settings.social).length&&(jQuery(".chaty-widget").addClass("chaty-widget-show"),jQuery(".chaty-widget-is").css("top","auto"),jQuery(".chaty-widget-is").css("z-index","10001"),jQuery(".chaty-widget-i.i-trigger-close, .i-trigger.chaty-widget-i").remove(),jQuery(".chaty-widget .get a").css("top","-10px"),jQuery(".chaty-widget").addClass("one_widget"),jQuery(".chaty-widget-i:first .chaty-widget-i-title:last p").text(s.object_settings.cta),jQuery(document).on("click",".chaty-widget-i",function(){jQuery(".chaty-widget-i:first .chaty-widget-i-title:last").hide(),jQuery("body").addClass("hide-cht-widget")}),jQuery("body").append("<style>.chaty-widget-is{top:0!important;}</style>"))}(),t(document).ready(function(){1!==Object.keys(s.object_settings.social).length||!s.object_settings.social.snapchat&&!s.object_settings.social.wechat||s.object_settings.cta||(t(".chaty-widget-i-title").detach(),t(".chaty-widget-i").addClass("bofore_del")),t(".chaty-widget-i-title").hasClass("one_go")&&(t(".chaty-widget-i-title p").text(t(".chaty-widget-i-title.one_go").html()),"none"==c("display_cta")&&(t(".chaty-widget-i-title").hasClass("face_title")?(t(".facebook_two_mess").detach(),t(".chaty-widget-i").addClass("bofore_del")):(t(".chaty-widget-i-title").detach(),t(".chaty-widget-i").addClass("bofore_del")))),window.matchMedia("only screen and (max-width: 760px)").matches&&t(".i-trigger-open").addClass("active_clos"),jQuery(".chaty-widget-i-title").each(function(){""==jQuery(this).text()&&jQuery(this).remove()})}),t(document).ready(function(){var t=0;0==(t=jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)?jQuery(".chaty-widget").addClass("hide-widget").removeClass("desktop_active").removeClass("mobile_active"):(jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget").removeClass("hide-widget").addClass("desktop_active"):jQuery(".chaty-widget").removeClass("hide-widget").addClass("mobile_active"),1==t?(jQuery(".chaty-close-settings").hide(),jQuery("body").hasClass("chaty-in-desktop")?(htmlToAdd=jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop:first").clone(),jQuery(".i-trigger").html(htmlToAdd)):(htmlToAdd=jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile:first").clone(),jQuery(".i-trigger").html(htmlToAdd)),jQuery(".i-trigger .chaty-widget-i-title p").text(chaty_settings.object_settings.cta),jQuery(".chaty-widget").addClass("one_widget"),jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function(){jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow"),o(),l()})):(jQuery(".chaty-widget").removeClass("one_widget"),jQuery(".i-trigger .chaty-main-widget").remove(),jQuery(".chaty-close-settings").show(),jQuery(".chaty-widget-i-title").removeClass("hide-it"),jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function(){o(),jQuery(".i-trigger .chaty-widget-i-title").addClass("hide-it"),l()})));var e,a,d,h=0;if(1==parseInt(chaty_settings.object_settings.display_conditions)){var y=chaty_settings.object_settings.display_rules;if(y.length>0){var w=new Date;w.setHours(w.getHours()+chaty_settings.object_settings.gmt);for(var _=w.getUTCHours(),u=w.getUTCMinutes(),p=w.getUTCDay(),m=0;m<y.length;m++){var b=0,j=0;-1==y[m].days?j=1:y[m].days>=0&&y[m].days<=6?y[m].days==p&&(j=1):7==y[m].days?p>=0&&p<=4&&(j=1):8==y[m].days?p>=1&&p<=5&&(j=1):9==y[m].days&&(5!=p&&6!=p||(j=1)),1==j&&(_>y[m].start_hours&&_<y[m].end_hours?b=1:_==y[m].start_hours&&_<y[m].end_hours?u>=y[m].start_min&&(b=1):_>y[m].start_hours&&_==y[m].end_hours?u<=y[m].end_min&&(b=1):_==y[m].start_hours&&_==y[m].end_hours&&u>=y[m].start_min&&u<=y[m].end_min&&(b=1),1==b&&u>=y[m].start_min&&u<=y[m].end_min&&1),1==b&&1==j&&(h=1),1==h&&(m=y.length+1)}}else h=1}else h=1;if(1==t&&(""!=c("display_cta")&&(jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow"),setInterval(function(){o()},1e4)),jQuery(".chaty-main-widget").addClass("i-trigger-open").addClass("single-button"),jQuery(".chaty-widget-show .i-trigger-open svg").css("transform","rotate(0deg)")),jQuery("chaty-main-widget").mouseenter(function(){o()}),1==h)if("yes"==g("cta_widget_status"))jQuery(".chaty-widget").removeClass("hide-widget"),r();else if("no"==chaty_settings.object_settings.time_trigger&&"no"==chaty_settings.object_settings.exit_intent&&"no"==chaty_settings.object_settings.on_page_scroll)jQuery(".chaty-widget").removeClass("hide-widget"),"open"==chaty_settings.object_settings.display_state&&"no"==chaty_settings.object_settings.has_close_button?chaty_settings.object_settings.has_close_button="no":(chaty_settings.object_settings.display_state="hover",chaty_settings.object_settings.has_close_button="yes"),r();else{if(jQuery(".chaty-widget").addClass("hide-widget"),"yes"==chaty_settings.object_settings.time_trigger&&setTimeout(function(){i||(jQuery(".chaty-widget").removeClass("hide-widget"),r())},1e3*parseInt(chaty_settings.object_settings.trigger_time)),"yes"==chaty_settings.object_settings.exit_intent){e=document,a="mouseout",d=function(t){null==t.toElement&&null==t.relatedTarget&&null==g("cta_exit_intent_shown")&&(n("cta_exit_intent_shown","yes",1),i=!0,jQuery(".chaty-widget").removeClass("hide-widget"),jQuery(".chaty-widget").addClass("chaty-animation-widget"),jQuery(".chaty-animation-widget").append("<div class='chaty-nav'></div>"),"open"==chaty_settings.object_settings.display_state&&"no"==chaty_settings.object_settings.has_close_button?chaty_settings.object_settings.has_close_button="no":(chaty_settings.object_settings.display_state="open",chaty_settings.object_settings.has_close_button="yes"),r(),"left"==chaty_settings.object_settings.position?jQuery(".chaty-widget").addClass("left-position"):"right"==chaty_settings.object_settings.position?jQuery(".chaty-widget").addClass("right-position"):"custom"==chaty_settings.object_settings.position&&("left"==s.object_settings.pos_side?jQuery(".chaty-widget").addClass("left-position"):jQuery(".chaty-widget").addClass("right-position")),l(),setTimeout(function(){jQuery(".chaty-animation-widget").addClass("active")},100),setTimeout(function(){jQuery(".chaty-nav").remove()},2500))},e.addEventListener?e.addEventListener(a,d,!1):e.attachEvent&&e.attachEvent("on"+a,d)}"yes"==chaty_settings.object_settings.on_page_scroll&&parseInt(chaty_settings.object_settings.page_scroll)>0&&jQuery(window).scroll(function(){if(!i){var t=jQuery(document).height()-jQuery(window).height(),e=jQuery(window).scrollTop();0!=e&&e/t*100>=parseInt(chaty_settings.object_settings.page_scroll)&&(jQuery(".chaty-widget").removeClass("hide-widget"),r())}})}else jQuery(".chaty-widget").addClass("hide-widget")}),jQuery(".chaty-widget-i-title").each(function(){""==jQuery(this).text()&&(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery(this).remove())}),jQuery(".chaty-widget").hasClass("one_widget")||jQuery("body").append("<div class='trigger-chaty-button'></div>"),jQuery("body").addClass(chaty_settings.object_settings.mode+"-cht-menu"),jQuery("body").addClass(chaty_settings.object_settings.position+"-cht-position")}),jQuery(document).on("click",".trigger-chaty-button",function(){jQuery(".chaty-widget").removeClass("hide-widget"),r(),!jQuery(".chaty-widget").hasClass("none-widget-show")&&jQuery(".chaty-widget").hasClass("chaty-widget-show")||jQuery(".i-trigger-open").trigger("click")})}(jQuery)},12:function(t,e){}});
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: galdub, tomeraharon, premio
|
|
3 |
Tags: whatsapp, facebook messenger, click to chat, chat, chat button, call now button, messenger, whatsapp button, chat icon, messenger chat icon, contact button, click to call
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 5.4
|
6 |
-
Stable tag: 2.5.
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
Let your visitors contact you via Facebook Messenger, Whatsapp, Telegram, Viber, Email, Phone call, SMS and more with customizable chat & call buttons
|
@@ -92,19 +92,18 @@ You will get all the features of the free plan, plus:
|
|
92 |
2. Customize the chat button widget color with HEX code
|
93 |
3. Change the location of the chat button on the screen by the pixel
|
94 |
4. Upload your own custom chat button design
|
95 |
-
5.
|
96 |
-
6.
|
97 |
-
7. Create more than one chat widget and show it on specific pages and categories of your website based on page targeting rules. For example, you can display Skype, Whatsapp chat, and a click to call icon for one category, and Facebook Messenger, Telegram, and Line button for another category.
|
98 |
<strong>The main use cases for the multi chat widget are:</strong>
|
99 |
Separate widget design for mobile and desktop
|
100 |
Change widget language for WPML and multi-language websites
|
101 |
Different chat widgets for different products and categories
|
102 |
Different chats buttons based on purpose (support, sales, etc)
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
Works great for multi-language websites and WPML plugin, for different products, landing pages, and any other URL targeting rule.
|
109 |
<br><a href="https://premio.io/downloads/chaty/?utm_source=wordpressorg" target="_blank" title="Chaty pro plans"><strong>Upgrade to pro</strong></a> to get all pro features :)
|
110 |
|
@@ -174,7 +173,7 @@ We don't store any local data about your visitors. Any time your visitors click
|
|
174 |
== Frequently Asked Questions ==
|
175 |
|
176 |
= What’s included in the free plan? =
|
177 |
-
You can choose up to two channels (unlimited in the pro plan), display the widget on mobile and desktop, choose from 6 available colors (unlimited in the pro plan), position the widget on the left or right (custom positioning in the pro plan), custom call-to-action
|
178 |
|
179 |
= Is there a time limit for the free plan? =
|
180 |
No. you can use the free plan as long as you want.
|
@@ -226,6 +225,9 @@ Yes! You can even decide what chat buttons will show up on each device (desktop/
|
|
226 |
|
227 |
== Changelog ==
|
228 |
|
|
|
|
|
|
|
229 |
= 2.5.6 =
|
230 |
UI improvments
|
231 |
|
3 |
Tags: whatsapp, facebook messenger, click to chat, chat, chat button, call now button, messenger, whatsapp button, chat icon, messenger chat icon, contact button, click to call
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 5.4
|
6 |
+
Stable tag: 2.5.7
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
Let your visitors contact you via Facebook Messenger, Whatsapp, Telegram, Viber, Email, Phone call, SMS and more with customizable chat & call buttons
|
92 |
2. Customize the chat button widget color with HEX code
|
93 |
3. Change the location of the chat button on the screen by the pixel
|
94 |
4. Upload your own custom chat button design
|
95 |
+
5. Show (or don't show) the chat widget using targeting rules such as specific pages, pages that contain a string, and pages that start or end with a string
|
96 |
+
6. Create more than one chat widget and show it on specific pages and categories of your website based on page targeting rules. For example, you can display Skype, Whatsapp chat, and a click to call icon for one category, and Facebook Messenger, Telegram, and Line button for another category.
|
|
|
97 |
<strong>The main use cases for the multi chat widget are:</strong>
|
98 |
Separate widget design for mobile and desktop
|
99 |
Change widget language for WPML and multi-language websites
|
100 |
Different chat widgets for different products and categories
|
101 |
Different chats buttons based on purpose (support, sales, etc)
|
102 |
+
7. Create a pre-set WhatsApp chat message and pre-set email subject line. When people click on your WhatsApp button or email icon, you pre-set message will be automatically loaded
|
103 |
+
8. Fire a Google Analytics event every time one of your channels buttons is clicked. That's great news for you, because now you can fully track any click to call, chat, navigate, and more
|
104 |
+
9. Available days and hours - display the widget on specific days and hours based on your opening days and hours. E.g. You can show live chat channels like Facebook Messenger and WhatsApp on certain days & hours, and when you're not available for live chat you can display email and Instagram.
|
105 |
+
10. New! Country targeting - show different chat button for different countries. For example, you can show Line, Viber, WeChat, and Whatsapp chat for Chinese users, and Facebook Messenger, email button, and SMS text icon for visitors from the US.
|
106 |
+
11. New! Add your own custom CSS.
|
107 |
Works great for multi-language websites and WPML plugin, for different products, landing pages, and any other URL targeting rule.
|
108 |
<br><a href="https://premio.io/downloads/chaty/?utm_source=wordpressorg" target="_blank" title="Chaty pro plans"><strong>Upgrade to pro</strong></a> to get all pro features :)
|
109 |
|
173 |
== Frequently Asked Questions ==
|
174 |
|
175 |
= What’s included in the free plan? =
|
176 |
+
You can choose up to two channels (unlimited in the pro plan), display the widget on mobile and desktop, choose from 6 available colors (unlimited in the pro plan), position the widget on the left or right (custom positioning in the pro plan), custom call-to-action.
|
177 |
|
178 |
= Is there a time limit for the free plan? =
|
179 |
No. you can use the free plan as long as you want.
|
225 |
|
226 |
== Changelog ==
|
227 |
|
228 |
+
= 2.5.7 =
|
229 |
+
Credit removal
|
230 |
+
|
231 |
= 2.5.6 =
|
232 |
UI improvments
|
233 |
|
views/admin/customize-widget-section.php
CHANGED
@@ -447,21 +447,6 @@
|
|
447 |
</div>
|
448 |
</div>
|
449 |
|
450 |
-
<?php // Credit ?>
|
451 |
-
<div class="form-horizontal__item credit">
|
452 |
-
<?php if ($this->is_pro()) : ?>
|
453 |
-
<label></label>
|
454 |
-
<?php else: ?>
|
455 |
-
<label class="form-horizontal__item-label">Credit:</label>
|
456 |
-
<div>
|
457 |
-
<label class="custom-control custom-checkbox free-custom-checkbox">
|
458 |
-
<input type="checkbox" class="custom-control-input" disabled data-gramm_editor="false" />
|
459 |
-
<span class="custom-control-label"><?php esc_attr_e('Remove "Get widget" link', CHT_OPT); ?></span>
|
460 |
-
</label>
|
461 |
-
<a target="_blank" href="<?php echo esc_url($this->getUpgradeMenuItemUrl()); ?>">(<?php esc_attr_e('Upgrade to Pro', CHT_OPT); ?>)</a>
|
462 |
-
</div>
|
463 |
-
<?php endif; ?>
|
464 |
-
</div>
|
465 |
<input type="hidden" id="chaty_site_url" value="<?php echo site_url("/") ?>" >
|
466 |
<?php $request_data = filter_input_array(INPUT_GET); ?>
|
467 |
<?php if(isset($request_data['page']) && $request_data['page'] == "chaty-widget-settings") { ?>
|
447 |
</div>
|
448 |
</div>
|
449 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
<input type="hidden" id="chaty_site_url" value="<?php echo site_url("/") ?>" >
|
451 |
<?php $request_data = filter_input_array(INPUT_GET); ?>
|
452 |
<?php if(isset($request_data['page']) && $request_data['page'] == "chaty-widget-settings") { ?>
|
views/admin/upgrade.php
CHANGED
@@ -35,8 +35,7 @@
|
|
35 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Display the widget on specific days and hours based on your opening days and hours</span>Available days and hours<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
36 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Target your widget to specific countries. You can create different widgets for different countries</span>Country targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
37 |
<div class="rpt_feature rpt_feature_0-8"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Create different widgets for different pages. Show different icons based on page targeting rules</span>Multiple widgets<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
38 |
-
<div class="rpt_feature rpt_feature_0-
|
39 |
-
<div class="rpt_feature rpt_feature_0-7"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>QR code for WeChat, customizable WhatsApp message, customizable email subject, and remove the credit link</span>And more<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
40 |
|
41 |
<?php $pro_url = "https://go.premio.io/checkout/?edd_action=add_to_cart&download_id=185&edd_options[price_id]=" ?>
|
42 |
<div class="rpt_feature rpt_feature_0-9">
|
@@ -81,8 +80,7 @@
|
|
81 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Display the widget on specific days and hours based on your opening days and hours</span>Available days and hours<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
82 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Target your widget to specific countries. You can create different widgets for different countries</span>Country targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
83 |
<div class="rpt_feature rpt_feature_0-8"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Create different widgets for different pages. Show different icons based on page targeting rules</span>Multiple widgets<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
84 |
-
<div class="rpt_feature rpt_feature_0-
|
85 |
-
<div class="rpt_feature rpt_feature_0-7"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>QR code for WeChat, customizable WhatsApp message, customizable email subject, and remove the credit link</span>And more<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
86 |
<div class="rpt_feature rpt_feature_0-9">
|
87 |
<select data-key="0" class="multiple-options">
|
88 |
<option data-header="Renewals for 25% off" data-price="59" value="<?php echo esc_url($pro_url."2") ?>">
|
@@ -133,8 +131,7 @@
|
|
133 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Display the widget on specific days and hours based on your opening days and hours</span>Available days and hours<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
134 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Target your widget to specific countries. You can create different widgets for different countries</span>Country targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
135 |
<div class="rpt_feature rpt_feature_0-8"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Create different widgets for different pages. Show different icons based on page targeting rules</span>Multiple widgets<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
136 |
-
<div class="rpt_feature rpt_feature_0-
|
137 |
-
<div class="rpt_feature rpt_feature_0-7"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>QR code for WeChat, customizable WhatsApp message, customizable email subject, and remove the credit link</span>And more<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
138 |
<div class="rpt_feature rpt_feature_0-9">
|
139 |
<select data-key="0" class="multiple-options has-multiple-websites">
|
140 |
<option data-option="1_year" data-header="Renewals for 25% off" data-price="99" value="<?php echo esc_url($pro_url."10") ?>">
|
35 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Display the widget on specific days and hours based on your opening days and hours</span>Available days and hours<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
36 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Target your widget to specific countries. You can create different widgets for different countries</span>Country targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
37 |
<div class="rpt_feature rpt_feature_0-8"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Create different widgets for different pages. Show different icons based on page targeting rules</span>Multiple widgets<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
38 |
+
<div class="rpt_feature rpt_feature_0-7"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>QR code for WeChat, customizable WhatsApp message, customizable email subject</span>And more<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
|
|
39 |
|
40 |
<?php $pro_url = "https://go.premio.io/checkout/?edd_action=add_to_cart&download_id=185&edd_options[price_id]=" ?>
|
41 |
<div class="rpt_feature rpt_feature_0-9">
|
80 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Display the widget on specific days and hours based on your opening days and hours</span>Available days and hours<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
81 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Target your widget to specific countries. You can create different widgets for different countries</span>Country targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
82 |
<div class="rpt_feature rpt_feature_0-8"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Create different widgets for different pages. Show different icons based on page targeting rules</span>Multiple widgets<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
83 |
+
<div class="rpt_feature rpt_feature_0-7"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>QR code for WeChat, customizable WhatsApp message, customizable email subject</span>And more<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
|
|
84 |
<div class="rpt_feature rpt_feature_0-9">
|
85 |
<select data-key="0" class="multiple-options">
|
86 |
<option data-header="Renewals for 25% off" data-price="59" value="<?php echo esc_url($pro_url."2") ?>">
|
131 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Display the widget on specific days and hours based on your opening days and hours</span>Available days and hours<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
132 |
<div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Target your widget to specific countries. You can create different widgets for different countries</span>Country targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
133 |
<div class="rpt_feature rpt_feature_0-8"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Create different widgets for different pages. Show different icons based on page targeting rules</span>Multiple widgets<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
134 |
+
<div class="rpt_feature rpt_feature_0-7"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>QR code for WeChat, customizable WhatsApp message, customizable email subject</span>And more<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
|
|
|
135 |
<div class="rpt_feature rpt_feature_0-9">
|
136 |
<select data-key="0" class="multiple-options has-multiple-websites">
|
137 |
<option data-option="1_year" data-header="Renewals for 25% off" data-price="99" value="<?php echo esc_url($pro_url."10") ?>">
|
views/widget.php
CHANGED
@@ -119,7 +119,6 @@ $settings['widget_size'] = $cht_widget_size;
|
|
119 |
$settings['widget_type'] = get_option('widget_icon');
|
120 |
$settings['widget_img'] = $this->getCustomWidgetImg();
|
121 |
$settings['cta'] = $cta;
|
122 |
-
$settings['link_active'] = get_option('cht_credit');
|
123 |
$settings['active'] = ($cht_active && $len >= 1) ? 'true' : 'false';
|
124 |
$settings['close_text'] = $close_text;
|
125 |
$settings['analytics'] = $analytics;
|
119 |
$settings['widget_type'] = get_option('widget_icon');
|
120 |
$settings['widget_img'] = $this->getCustomWidgetImg();
|
121 |
$settings['cta'] = $cta;
|
|
|
122 |
$settings['active'] = ($cht_active && $len >= 1) ? 'true' : 'false';
|
123 |
$settings['close_text'] = $close_text;
|
124 |
$settings['analytics'] = $analytics;
|