Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line, WeChat, Email, SMS, Call Button – Chaty - Version 2.4.3

Version Description

Preview call-to-action bug and Instagram button bug

Download this release

Release Info

Developer galdub
Plugin Icon wp plugin Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line, WeChat, Email, SMS, Call Button – Chaty
Version 2.4.3
Comparing to
See all releases

Code changes from version 2.4.2 to 2.4.3

assets/css/animation.css CHANGED
@@ -640,3 +640,7 @@ body .no-tooltip .chaty-widget-i-title.true {
640
  .chaty-widget-i.hide-chaty-arrow:before {
641
  display: none;
642
  }
 
 
 
 
640
  .chaty-widget-i.hide-chaty-arrow:before {
641
  display: none;
642
  }
643
+ .chaty-widget-show .i-trigger-open.single-button svg {
644
+ transform: rotate(0deg) !important;
645
+ -webkit-transform: rotate(0deg) !important;
646
+ }
assets/js/cht-front-script.js CHANGED
@@ -267,6 +267,10 @@
267
  jQuery("body").addClass("hide-cht-widget");
268
  });
269
  jQuery("body").append("<style>.chaty-widget-is{top:0!important;}</style>");
 
 
 
 
270
  }
271
 
272
  var widget_status = get_chaty_cookie("cta_widget_status");
267
  jQuery("body").addClass("hide-cht-widget");
268
  });
269
  jQuery("body").append("<style>.chaty-widget-is{top:0!important;}</style>");
270
+
271
+ jQuery(".chaty-main-widget").addClass("i-trigger-open").addClass("single-button");
272
+
273
+ jQuery(".chaty-widget-show .i-trigger-open.single-button svg").css("transform","rotate(0deg)");
274
  }
275
 
276
  var widget_status = get_chaty_cookie("cta_widget_status");
assets/js/cht-scripts.min.js CHANGED
@@ -249,7 +249,7 @@
249
  var t = e("#widgetTooltip"), o = e(".preview .page .icon");
250
 
251
  function a() {
252
- e("[name=cht_cta]").val().length >= 1 ? o.removeClass("no-tooltip") : o.addClass("no-tooltip")
253
  }
254
 
255
  a(), t.change(function () {
@@ -405,11 +405,11 @@
405
 
406
  if(jQuery("#chaty_default_state").val() == "open" && jQuery("#cht_close_button").is(":checked")) {
407
  jQuery("#iconWidget").css("display", "block");
408
- jQuery(".chaty-widget .tooltiptext").show();
409
  jQuery(".chaty-widget").removeClass("hide-arrow");
410
  } else if(jQuery("#chaty_default_state").val() != "open") {
411
  jQuery("#iconWidget").css("display", "block");
412
- jQuery(".chaty-widget .tooltiptext").show();
413
  jQuery(".chaty-widget").removeClass("hide-arrow");
414
  } else if(jQuery("#chaty_default_state").val() == "open") {
415
  jQuery("#iconWidget").hide();
@@ -420,11 +420,11 @@
420
  } else if (jQuery(eClass+':checked').length == 1) {
421
  if(jQuery("#chaty_default_state").val() == "open" && !jQuery("#cht_close_button").is(":checked")) {
422
  jQuery("#iconWidget").css("display","block");
423
- jQuery(".chaty-widget .tooltiptext").show();
424
  jQuery(".chaty-widget").removeClass("hide-arrow");
425
  } else if(jQuery("#chaty_default_state").val() != "open") {
426
  jQuery("#iconWidget").css("display","block");
427
- jQuery(".chaty-widget .tooltiptext").show();
428
  jQuery(".chaty-widget").removeClass("hide-arrow");
429
  }
430
  jQuery(".chaty-widget").addClass("has-single");
@@ -448,8 +448,15 @@
448
  jQuery("#chaty_trigger_on_page_scroll").attr("readonly", true);
449
  }
450
 
 
451
  if(jQuery(".chaty-widget .tooltiptext").text() == "") {
452
  jQuery(".chaty-widget .tooltiptext").hide();
 
 
 
 
 
 
453
  }
454
  }
455
 
@@ -467,6 +474,9 @@
467
  l = t.target.classList.contains("js-upload") ? e(".file-preview-image").last().parent().html() : e("i[data-type=" + t.target.dataset.type + "]").html(), d()
468
  }), "chat-image" !== e(".js-widget-i:checked").attr("data-type") && (l = e("i[data-type=" + e(".js-widget-i:checked").attr("data-type") + "]").html(), d());
469
 
 
 
 
470
 
471
  /*font family Privew*/
472
  jQuery('.form-fonts').on( 'change', function() {
249
  var t = e("#widgetTooltip"), o = e(".preview .page .icon");
250
 
251
  function a() {
252
+ e("[name=cht_cta]").val().length >= 1 ? o.removeClass("no-tooltip") : o.addClass("no-tooltip");
253
  }
254
 
255
  a(), t.change(function () {
405
 
406
  if(jQuery("#chaty_default_state").val() == "open" && jQuery("#cht_close_button").is(":checked")) {
407
  jQuery("#iconWidget").css("display", "block");
408
+ jQuery(".chaty-widget .tooltiptext").css("display","block");
409
  jQuery(".chaty-widget").removeClass("hide-arrow");
410
  } else if(jQuery("#chaty_default_state").val() != "open") {
411
  jQuery("#iconWidget").css("display", "block");
412
+ jQuery(".chaty-widget .tooltiptext").css("display","block");
413
  jQuery(".chaty-widget").removeClass("hide-arrow");
414
  } else if(jQuery("#chaty_default_state").val() == "open") {
415
  jQuery("#iconWidget").hide();
420
  } else if (jQuery(eClass+':checked').length == 1) {
421
  if(jQuery("#chaty_default_state").val() == "open" && !jQuery("#cht_close_button").is(":checked")) {
422
  jQuery("#iconWidget").css("display","block");
423
+ jQuery(".chaty-widget .tooltiptext").css("display","block");
424
  jQuery(".chaty-widget").removeClass("hide-arrow");
425
  } else if(jQuery("#chaty_default_state").val() != "open") {
426
  jQuery("#iconWidget").css("display","block");
427
+ jQuery(".chaty-widget .tooltiptext").css("display","block");
428
  jQuery(".chaty-widget").removeClass("hide-arrow");
429
  }
430
  jQuery(".chaty-widget").addClass("has-single");
448
  jQuery("#chaty_trigger_on_page_scroll").attr("readonly", true);
449
  }
450
 
451
+
452
  if(jQuery(".chaty-widget .tooltiptext").text() == "") {
453
  jQuery(".chaty-widget .tooltiptext").hide();
454
+ } else {
455
+ if(jQuery("#chaty_default_state").val() == "open") {
456
+ jQuery(".chaty-widget .tooltiptext").hide();
457
+ } else {
458
+ jQuery(".chaty-widget .tooltiptext").css("display", "block");
459
+ }
460
  }
461
  }
462
 
474
  l = t.target.classList.contains("js-upload") ? e(".file-preview-image").last().parent().html() : e("i[data-type=" + t.target.dataset.type + "]").html(), d()
475
  }), "chat-image" !== e(".js-widget-i:checked").attr("data-type") && (l = e("i[data-type=" + e(".js-widget-i:checked").attr("data-type") + "]").html(), d());
476
 
477
+ jQuery(document).on("keyup", "textarea.test_textarea", function(){
478
+ d();
479
+ });
480
 
481
  /*font family Privew*/
482
  jQuery('.form-fonts').on( 'change', function() {
cht-icons.php CHANGED
@@ -5,7 +5,7 @@
5
  Description: Chat with your website visitors via their favorite channels. Show a chat icon on the bottom of your site and communicate with your customers.
6
  Author: Premio
7
  Author URI: https://premio.io/downloads/chaty/
8
- Version: 2.4.2
9
  License: GPL2
10
  */
11
 
@@ -23,7 +23,7 @@ define('CHT_INC', CHT_DIR . '/includes');
23
  define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
24
  define('CHT_PLUGIN_URL', plugin_dir_url(__FILE__));
25
  define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
26
- define('CHT_VERSION', "2.4.2");
27
 
28
  if (!function_exists('wp_doing_ajax')) {
29
  function wp_doing_ajax()
5
  Description: Chat with your website visitors via their favorite channels. Show a chat icon on the bottom of your site and communicate with your customers.
6
  Author: Premio
7
  Author URI: https://premio.io/downloads/chaty/
8
+ Version: 2.4.3
9
  License: GPL2
10
  */
11
 
23
  define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
24
  define('CHT_PLUGIN_URL', plugin_dir_url(__FILE__));
25
  define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
26
+ define('CHT_VERSION', "2.4.3");
27
 
28
  if (!function_exists('wp_doing_ajax')) {
29
  function wp_doing_ajax()
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.3
6
- Stable tag: 2.4.2
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
@@ -194,6 +194,9 @@ Yes! You can even decide what chat buttons will show up on each device (desktop/
194
 
195
  == Changelog ==
196
 
 
 
 
197
  = 2.4.2 =
198
  Single chat button call-to-action bug
199
 
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.3
6
+ Stable tag: 2.4.3
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
194
 
195
  == Changelog ==
196
 
197
+ = 2.4.3 =
198
+ Preview call-to-action bug and Instagram button bug
199
+
200
  = 2.4.2 =
201
  Single chat button call-to-action bug
202
 
views/parts/section1.php CHANGED
@@ -1,4 +1,18 @@
1
  <div class="preview-section-chaty wrap">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <div class="preview" id="admin-preview">
3
  <div class="h2"><span class="header-tooltip"><span class="header-tooltip-text">Please make all your live tests in <a href="https://www.computerworld.com/article/3356840/how-to-go-incognito-in-chrome-firefox-safari-and-edge.html" target="_blank">incognito mode</a>. Some of the features like call to action, attention effect, and trigger will appear for your website visitors just once until they engage with the chat widget, so to emulate it you'll need to use incognito mode</span> <span class="dashicons dashicons-editor-help"></span></span><?php esc_attr_e('Preview', CHT_OPT); ?>:</div>
4
 
1
  <div class="preview-section-chaty wrap">
2
+ <svg class="read-only" aria-hidden="true" width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <defs>
4
+ <linearGradient id="linear-gradient" x1="0.892" y1="0.192" x2="0.128" y2="0.85" gradientUnits="objectBoundingBox">
5
+ <stop offset="0" stop-color="#4a64d5"></stop>
6
+ <stop offset="0.322" stop-color="#9737bd"></stop>
7
+ <stop offset="0.636" stop-color="#f15540"></stop>
8
+ <stop offset="1" stop-color="#fecc69"></stop>
9
+ </linearGradient>
10
+ </defs>
11
+ <circle class="color-element" cx="19.5" cy="19.5" r="19.5" fill="url(#linear-gradient)"></circle>
12
+ <path id="Path_1923" data-name="Path 1923" d="M13.177,0H5.022A5.028,5.028,0,0,0,0,5.022v8.155A5.028,5.028,0,0,0,5.022,18.2h8.155A5.028,5.028,0,0,0,18.2,13.177V5.022A5.028,5.028,0,0,0,13.177,0Zm3.408,13.177a3.412,3.412,0,0,1-3.408,3.408H5.022a3.411,3.411,0,0,1-3.408-3.408V5.022A3.412,3.412,0,0,1,5.022,1.615h8.155a3.412,3.412,0,0,1,3.408,3.408v8.155Z" transform="translate(10 10.4)" fill="#fff"></path>
13
+ <path id="Path_1924" data-name="Path 1924" d="M45.658,40.97a4.689,4.689,0,1,0,4.69,4.69A4.695,4.695,0,0,0,45.658,40.97Zm0,7.764a3.075,3.075,0,1,1,3.075-3.075A3.078,3.078,0,0,1,45.658,48.734Z" transform="translate(-26.558 -26.159)" fill="#fff"></path>
14
+ <path id="Path_1925" data-name="Path 1925" d="M120.105,28.251a1.183,1.183,0,1,0,.838.347A1.189,1.189,0,0,0,120.105,28.251Z" transform="translate(-96.119 -14.809)" fill="#fff"></path>
15
+ </svg>
16
  <div class="preview" id="admin-preview">
17
  <div class="h2"><span class="header-tooltip"><span class="header-tooltip-text">Please make all your live tests in <a href="https://www.computerworld.com/article/3356840/how-to-go-incognito-in-chrome-firefox-safari-and-edge.html" target="_blank">incognito mode</a>. Some of the features like call to action, attention effect, and trigger will appear for your website visitors just once until they engage with the chat widget, so to emulate it you'll need to use incognito mode</span> <span class="dashicons dashicons-editor-help"></span></span><?php esc_attr_e('Preview', CHT_OPT); ?>:</div>
18
 
views/parts/trigger-and-target.php CHANGED
@@ -29,7 +29,7 @@ $days = array(
29
  "hover" => "Hover to open",
30
  "open" => "Opened by default"
31
  );
32
- $state = get_option('chaty_default_state'.$this->widget_index);
33
  $state = empty($state)?"click":$state;
34
  ?>
35
  <select name="chaty_default_state" id="chaty_default_state" class="chaty-select">
@@ -44,7 +44,7 @@ $days = array(
44
  <div>
45
  <label class="switch">
46
  <span class="switch__label"><?php esc_attr_e('Off', CHT_OPT);?></span>
47
- <?php $close_button = get_option('cht_close_button'.$this->widget_index); ?>
48
  <?php $close_button = empty($close_button)?"yes":$close_button; ?>
49
  <input type="hidden" name="cht_close_button" value="no" >
50
  <input data-gramm_editor="false" type="checkbox" id="cht_close_button" name="cht_close_button" value="yes" <?php checked($close_button, "yes") ?> >
@@ -56,8 +56,8 @@ $days = array(
56
  <div class="form-horizontal__item">
57
  <label class="form-horizontal__item-label"><?php esc_attr_e('Trigger', CHT_OPT);?>:</label>
58
  <div class="trigger-block">
59
- <?php $checked = get_option('chaty_trigger_on_time'.$this->widget_index) ?>
60
- <?php $time = get_option('chaty_trigger_time'.$this->widget_index); ?>
61
  <?php $time = empty($time)?"0":$time; ?>
62
  <?php $checked = empty($checked)?"yes":$checked; ?>
63
  <input type="hidden" name="chaty_trigger_on_time" value="no" >
@@ -71,8 +71,8 @@ $days = array(
71
  Display after <input type="number" id="chaty_trigger_time" name="chaty_trigger_time" value="<?php echo esc_attr($time) ?>"> seconds on the page
72
  </div>
73
  </div>
74
- <?php $checked = get_option('chaty_trigger_on_exit'.$this->widget_index) ?>
75
- <?php $time = get_option('chaty_trigger_on_exit'.$this->widget_index); ?>
76
  <?php $time = empty($time)?"0":$time; ?>
77
  <?php $checked = empty($checked)?"no":$checked; ?>
78
  <div class="trigger-option-block">
@@ -86,8 +86,8 @@ $days = array(
86
  Display when visitor is about to leave the page
87
  </div>
88
  </div>
89
- <?php $checked = get_option('chaty_trigger_on_scroll'.$this->widget_index) ?>
90
- <?php $time = get_option('chaty_trigger_on_page_scroll'.$this->widget_index); ?>
91
  <?php $time = empty($time)?"0":$time; ?>
92
  <?php $checked = empty($checked)?"no":$checked; ?>
93
  <div class="trigger-option-block">
29
  "hover" => "Hover to open",
30
  "open" => "Opened by default"
31
  );
32
+ $state = get_option('chaty_default_state');
33
  $state = empty($state)?"click":$state;
34
  ?>
35
  <select name="chaty_default_state" id="chaty_default_state" class="chaty-select">
44
  <div>
45
  <label class="switch">
46
  <span class="switch__label"><?php esc_attr_e('Off', CHT_OPT);?></span>
47
+ <?php $close_button = get_option('cht_close_button'); ?>
48
  <?php $close_button = empty($close_button)?"yes":$close_button; ?>
49
  <input type="hidden" name="cht_close_button" value="no" >
50
  <input data-gramm_editor="false" type="checkbox" id="cht_close_button" name="cht_close_button" value="yes" <?php checked($close_button, "yes") ?> >
56
  <div class="form-horizontal__item">
57
  <label class="form-horizontal__item-label"><?php esc_attr_e('Trigger', CHT_OPT);?>:</label>
58
  <div class="trigger-block">
59
+ <?php $checked = get_option('chaty_trigger_on_time') ?>
60
+ <?php $time = get_option('chaty_trigger_time'); ?>
61
  <?php $time = empty($time)?"0":$time; ?>
62
  <?php $checked = empty($checked)?"yes":$checked; ?>
63
  <input type="hidden" name="chaty_trigger_on_time" value="no" >
71
  Display after <input type="number" id="chaty_trigger_time" name="chaty_trigger_time" value="<?php echo esc_attr($time) ?>"> seconds on the page
72
  </div>
73
  </div>
74
+ <?php $checked = get_option('chaty_trigger_on_exit') ?>
75
+ <?php $time = get_option('chaty_trigger_on_exit'); ?>
76
  <?php $time = empty($time)?"0":$time; ?>
77
  <?php $checked = empty($checked)?"no":$checked; ?>
78
  <div class="trigger-option-block">
86
  Display when visitor is about to leave the page
87
  </div>
88
  </div>
89
+ <?php $checked = get_option('chaty_trigger_on_scroll') ?>
90
+ <?php $time = get_option('chaty_trigger_on_page_scroll'); ?>
91
  <?php $time = empty($time)?"0":$time; ?>
92
  <?php $checked = empty($checked)?"no":$checked; ?>
93
  <div class="trigger-option-block">