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

Version Description

Static path bug fixed

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.2.8
Comparing to
See all releases

Code changes from version 2.2.7 to 2.2.8

admin/class-admin-base.php CHANGED
@@ -70,20 +70,6 @@ class CHT_Admin_Base
70
 
71
  }
72
 
73
- public function chaty_update_counter() {
74
- $current_count = get_option("chaty_total_channel_click");
75
- if($current_count === false || empty($current_count)) {
76
- $current_count = 1;
77
- add_option("chaty_total_channel_click", $current_count);
78
- } else {
79
- $current_count = intval($current_count);
80
- $current_count++;
81
- update_option("chaty_total_channel_click", $current_count);
82
- }
83
- echo "true";
84
- die;
85
- }
86
-
87
  public static function get_current_count() {
88
  $current_count = get_option("chaty_total_channel_click");
89
  if($current_count === false || empty($current_count)) {
70
 
71
  }
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  public static function get_current_count() {
74
  $current_count = get_option("chaty_total_channel_click");
75
  if($current_count === false || empty($current_count)) {
assets/js/cht-front-script.js CHANGED
@@ -303,24 +303,6 @@
303
  }
304
  }
305
  });
306
-
307
- if(chaty_settings.object_settings.save_user_clicks == "1") {
308
- jQuery(document).on("click", ".chaty-main-widget", function () {
309
- jQuery.ajax({
310
- type: 'POST',
311
- url: chaty_settings.object_settings.ajax_url,
312
- data: {
313
- action: 'chaty_update_counter'
314
- },
315
- success: function (bool) {
316
-
317
- },
318
- error: function (xhr, status, error) {
319
-
320
- }
321
- });
322
- });
323
- }
324
  })
325
  }(jQuery)
326
  }, 12: function (t, e) {
303
  }
304
  }
305
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
  })
307
  }(jQuery)
308
  }, 12: function (t, e) {
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.2.7
9
  License: GPL2
10
  */
11
 
@@ -21,9 +21,9 @@ define('CHT_ADMIN_INC', CHT_DIR . '/admin');
21
  define('CHT_FRONT_INC', CHT_DIR . '/frontend');
22
  define('CHT_INC', CHT_DIR . '/includes');
23
  define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
24
- define('CHT_PLUGIN_URL', plugins_url() . "/chaty/");
25
  define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
26
- define('CHT_VERSION', "2.2.7");
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.2.8
9
  License: GPL2
10
  */
11
 
21
  define('CHT_FRONT_INC', CHT_DIR . '/frontend');
22
  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.2.8");
27
 
28
  if (!function_exists('wp_doing_ajax')) {
29
  function wp_doing_ajax()
frontend/class-frontend.php CHANGED
@@ -28,23 +28,6 @@ class CHT_Frontend extends CHT_Admin_Base
28
 
29
  add_action('wp_ajax_chaty_check_for_mobile', array($this, 'chaty_check_for_mobile')); // initialize widget in footer
30
  add_action('wp_ajax_nopriv_chaty_check_for_mobile', array($this, 'chaty_check_for_mobile'));
31
-
32
- add_action('wp_ajax_nopriv_chaty_update_counter', array($this, 'chaty_update_counter'));
33
- add_action('wp_ajax_chaty_update_counter', array($this, 'chaty_update_counter'));
34
- }
35
-
36
- public function chaty_update_counter() {
37
- $current_count = get_option("chaty_total_channel_click");
38
- if($current_count === false || empty($current_count)) {
39
- $current_count = 1;
40
- add_option("chaty_total_channel_click", $current_count);
41
- } else {
42
- $current_count = intval($current_count);
43
- $current_count++;
44
- update_option("chaty_total_channel_click", $current_count);
45
- }
46
- echo "true";
47
- die;
48
  }
49
 
50
  public function chaty_check_for_mobile() {
28
 
29
  add_action('wp_ajax_chaty_check_for_mobile', array($this, 'chaty_check_for_mobile')); // initialize widget in footer
30
  add_action('wp_ajax_nopriv_chaty_check_for_mobile', array($this, 'chaty_check_for_mobile'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  }
32
 
33
  public function chaty_check_for_mobile() {
includes/class-affiliate.php CHANGED
@@ -124,9 +124,9 @@ class Chaty_affiliate_program {
124
  }
125
  </style>
126
  <div class="notice notice-info chaty-notice premio-affiliate <?php echo $this->plugin ?>-premio-affiliate">
127
- <p>Hi there, you've been using Chaty for a while now. Do you know that <b><?php echo $this->plugin ?></b> has an affiliate program? Join now and get 25% lifetime commission <a href="javascript:;" class="dismiss-btn"><span class="dashicons dashicons-no-alt"></span> Dismiss</a></p>
128
  <div class="clear clearfix"></div>
129
- <a class="button button-primary affiliate-btn" target="_blank" href="https://premio.io/affiliates/?utm_source=inapp&domain=<?php echo $_SERVER['HTTP_HOST'] ?>">Tell me more <span class="dashicons dashicons-arrow-right-alt"></span></a>
130
  </div>
131
  <div class="affiliate-popup">
132
  <div class="affiliate-popup-content">
124
  }
125
  </style>
126
  <div class="notice notice-info chaty-notice premio-affiliate <?php echo $this->plugin ?>-premio-affiliate">
127
+ <p>Hi there, you've been using Chaty for a while now. Do you know that <b><?php echo $this->plugin ?></b> has an affiliate program? Join now and get <b>25% lifetime commission</b> <a href="javascript:;" class="dismiss-btn"><span class="dashicons dashicons-no-alt"></span> Dismiss</a></p>
128
  <div class="clear clearfix"></div>
129
+ <a class="button button-primary affiliate-btn" target="_blank" href=" https://premio.io/affiliates/?utm_source=inapp&plugin=chaty&domain=<?php echo $_SERVER['HTTP_HOST'] ?>">Tell me more <span class="dashicons dashicons-arrow-right-alt"></span></a>
130
  </div>
131
  <div class="affiliate-popup">
132
  <div class="affiliate-popup-content">
includes/class-review-box.php CHANGED
@@ -31,8 +31,10 @@ class Chaty_free_review_box {
31
  if($is_hidden !== false) {
32
  return;
33
  }
34
- $current_count = get_option("chaty_total_channel_click");
35
- if($current_count === false || $current_count < 35) {
 
 
36
  return;
37
  }
38
  $date_to_show = get_option($this->plugin_slug."_show_review_box_after");
31
  if($is_hidden !== false) {
32
  return;
33
  }
34
+ $current_count = get_option($this->plugin_slug."_show_review_box_after");
35
+ if($current_count === false) {
36
+ $date = date("Y-m-d", strtotime("+7 days"));
37
+ add_option($this->plugin_slug."_show_review_box_after", $date);
38
  return;
39
  }
40
  $date_to_show = get_option($this->plugin_slug."_show_review_box_after");
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  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.2
6
- Stable tag: 2.2.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
@@ -69,7 +69,7 @@ You will get all the features of the free plan, plus:
69
  3. Change the location of the widget on the screen by the pixel
70
  4. Change the size of the widget
71
  5. Choose between new chat button designs or upload your own custom chat button design
72
- 6. Remove the "Get widget" link on the chat button
73
  7. New feature: you can 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
74
  8. New feature: fully customize all chat icons including colors, text on hover, and even upload your own custom image per channel button. You can also translate the "Hide" text to your language now :)
75
  9. New feature: 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
@@ -179,6 +179,9 @@ Yes! You can even decide what chat buttons will show up on each device (desktop/
179
 
180
  == Changelog ==
181
 
 
 
 
182
  = 2.2.7 =
183
  Call to action message minor bug fix
184
 
2
  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.2.8
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
69
  3. Change the location of the widget on the screen by the pixel
70
  4. Change the size of the widget
71
  5. Choose between new chat button designs or upload your own custom chat button design
72
+ 6. Remove the "Get Chaty" link on the chat button
73
  7. New feature: you can 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
74
  8. New feature: fully customize all chat icons including colors, text on hover, and even upload your own custom image per channel button. You can also translate the "Hide" text to your language now :)
75
  9. New feature: 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
179
 
180
  == Changelog ==
181
 
182
+ = 2.2.8 =
183
+ Static path bug fixed
184
+
185
  = 2.2.7 =
186
  Call to action message minor bug fix
187
 
views/upgrade.php CHANGED
@@ -113,7 +113,7 @@
113
  <div style="clear:both;"></div>
114
  </div>
115
  <div class="rpt_features rpt_features_0">
116
- <div class="rpt_feature rpt_feature_0-0"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Use Chaty on 20 domains</span>20 websites<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
117
  <div class="rpt_feature rpt_feature_0-1"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Show up to 16 channels of your choice</span>Unlimited channels<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
118
  <div class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Choose a background color, change the size of the widget, choose from 3 different widget desigins or upload your own</span>Widget customization<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
119
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Change each channel's background color, upload your own icon, and change the text on hover</span>Channels customization<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
@@ -125,20 +125,20 @@
125
  <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>
126
  <div class="rpt_feature rpt_feature_0-9">
127
  <select data-key="0" class="multiple-options">
128
- <option data-header="Renewals for 25% off" data-price="99" value="<?php echo esc_url($pro_url."3") ?>">
129
  <?php esc_html_e("Updates & support for 1 year") ?>
130
  </option>
131
- <option data-header="For 3 years" data-price="179" value="<?php echo esc_url($pro_url."8") ?>">
132
  <?php esc_html_e("Updates & support for 3 years") ?>
133
  </option>
134
- <option data-header="For lifetime" data-price="249" value="<?php echo esc_url($pro_url."9") ?>">
135
  <?php esc_html_e("Updates & support for lifetime") ?>
136
  </option>
137
  </select>
138
  </div>
139
  </div>
140
  <div style="clear:both;"></div>
141
- <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=185&amp;edd_options[price_id]=3" style="background:#9679d3" class="rpt_foot rpt_foot_2">
142
  <?php _e('Buy now', CHT_OPT); ?>
143
  </a>
144
  </div>
113
  <div style="clear:both;"></div>
114
  </div>
115
  <div class="rpt_features rpt_features_0">
116
+ <div class="rpt_feature rpt_feature_0-0"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Use Chaty on 50 domains</span>50 websites<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
117
  <div class="rpt_feature rpt_feature_0-1"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Show up to 16 channels of your choice</span>Unlimited channels<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
118
  <div class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Choose a background color, change the size of the widget, choose from 3 different widget desigins or upload your own</span>Widget customization<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
119
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Change each channel's background color, upload your own icon, and change the text on hover</span>Channels customization<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
125
  <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>
126
  <div class="rpt_feature rpt_feature_0-9">
127
  <select data-key="0" class="multiple-options">
128
+ <option data-header="Renewals for 25% off" data-price="99" value="<?php echo esc_url($pro_url."10") ?>">
129
  <?php esc_html_e("Updates & support for 1 year") ?>
130
  </option>
131
+ <option data-header="For 3 years" data-price="179" value="<?php echo esc_url($pro_url."11") ?>">
132
  <?php esc_html_e("Updates & support for 3 years") ?>
133
  </option>
134
+ <option data-header="For lifetime" data-price="249" value="<?php echo esc_url($pro_url."12") ?>">
135
  <?php esc_html_e("Updates & support for lifetime") ?>
136
  </option>
137
  </select>
138
  </div>
139
  </div>
140
  <div style="clear:both;"></div>
141
+ <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=185&amp;edd_options[price_id]=10" style="background:#9679d3" class="rpt_foot rpt_foot_2">
142
  <?php _e('Buy now', CHT_OPT); ?>
143
  </a>
144
  </div>