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

Version Description

  • Added multi year plans
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.1.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.2

admin/class-admin-base.php CHANGED
@@ -7,7 +7,7 @@ use CHT\includes\CHT_Widget;
7
  * @since 1.0
8
  */
9
 
10
- require 'class-social-icons.php';
11
 
12
  class CHT_Admin_Base
13
  {
7
  * @since 1.0
8
  */
9
 
10
+ require_once 'class-social-icons.php';
11
 
12
  class CHT_Admin_Base
13
  {
assets/css/cht-style.css CHANGED
@@ -3344,6 +3344,7 @@ a.create-rule {
3344
  }
3345
  .rpt_description.title-text {
3346
  padding: 25px 0 0 !important;
 
3347
  }
3348
  .chaty-page-option {
3349
  padding: 5px;
@@ -3432,4 +3433,14 @@ span.chaty-url {
3432
  display: block;
3433
  vertical-align: baseline;
3434
  float: right;
 
 
 
 
 
 
 
 
 
 
3435
  }
3344
  }
3345
  .rpt_description.title-text {
3346
  padding: 25px 0 0 !important;
3347
+ display: block !important;
3348
  }
3349
  .chaty-page-option {
3350
  padding: 5px;
3433
  display: block;
3434
  vertical-align: baseline;
3435
  float: right;
3436
+ }
3437
+ select.multiple-options {
3438
+ max-width: 100%;
3439
+ }
3440
+
3441
+ .rpt_plan.pro-active .rpt_head {
3442
+ padding-bottom: 50px;
3443
+ }
3444
+ .rpt_plan.pro-active .rpt_head .rpt_description {
3445
+ display: none;
3446
  }
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.1.1
9
  License: GPL2
10
  */
11
 
@@ -22,7 +22,7 @@ define('CHT_INC', CHT_DIR . '/includes');
22
  define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
23
  define('CHT_PLUGIN_URL', plugins_url() . "/chaty/");
24
  define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
25
- define('CHT_VERSION', "2.1.1");
26
 
27
  if (!function_exists('wp_doing_ajax')) {
28
  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.1.2
9
  License: GPL2
10
  */
11
 
22
  define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
23
  define('CHT_PLUGIN_URL', plugins_url() . "/chaty/");
24
  define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
25
+ define('CHT_VERSION', "2.1.2");
26
 
27
  if (!function_exists('wp_doing_ajax')) {
28
  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
4
  Requires at least: 3.1
5
  Tested up to: 5.2
6
- Stable tag: 2.1.1
7
  Plugin URI: https://premio.io/downloads/chaty/
8
 
9
  FREE customizable live chat and call buttons. Let your visitors contact you via Facebook Messenger, Whatsapp, Telegram, Viber, Email, SMS and more.
@@ -70,7 +70,7 @@ You will get all the features of the free plan, plus:
70
  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 :)
71
  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
72
  10. New feature: 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
73
- 11. New feature: decide if you want the custon chat button open in a new tab or in the current tab.
74
  <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 :)
75
 
76
  = How does each channel work? =
@@ -172,6 +172,9 @@ Yes! You can even decide what chat buttons will show up on each device (desktop/
172
 
173
  == Changelog ==
174
 
 
 
 
175
  = 2.1.1 =
176
  * Instagram, Twitter, Linkedin, and second custom channel
177
 
3
  Tags: whatsapp, facebook messenger, click to chat, chat, chat button, call now button
4
  Requires at least: 3.1
5
  Tested up to: 5.2
6
+ Stable tag: 2.1.2
7
  Plugin URI: https://premio.io/downloads/chaty/
8
 
9
  FREE customizable live chat and call buttons. Let your visitors contact you via Facebook Messenger, Whatsapp, Telegram, Viber, Email, SMS and more.
70
  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 :)
71
  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
72
  10. New feature: 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
73
+ 11. New feature: decide if you want the custom chat button open in a new tab or in the current tab.
74
  <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 :)
75
 
76
  = How does each channel work? =
172
 
173
  == Changelog ==
174
 
175
+ = 2.1.2 =
176
+ * Added multi year plans
177
+
178
  = 2.1.1 =
179
  * Instagram, Twitter, Linkedin, and second custom channel
180
 
views/upgrade.php CHANGED
@@ -19,7 +19,7 @@
19
  <?php _e('For small website owners', CHT_OPT); ?>
20
  </div>
21
  <div class="rpt_price rpt_price_0">$25</div>
22
- <div class="rpt_description rpt_description_0">
23
  <?php _e('Per year. Renewals for 25% off', CHT_OPT); ?>
24
  </div>
25
  <div style="clear:both;"></div>
@@ -33,7 +33,20 @@
33
  <div class="rpt_feature rpt_feature_0-5"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Automatically track clicks on each of your channels on your Google Analytics account</span>Google Analytics<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
34
  <div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Show/don't show the widget on specific pages</span>Page targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
35
  <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>
36
- <div class="rpt_feature rpt_feature_0-8">Updates and support for 1 year</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  </div>
38
  <div style="clear:both;"></div>
39
  <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=185&amp;edd_options[price_id]=1" style="background:#9679d3" class="rpt_foot rpt_foot_0">
@@ -47,7 +60,7 @@
47
  <?php _e('For businesses with multiple websites', CHT_OPT); ?>
48
  </div>
49
  <div class="rpt_price rpt_price_1">$59</div>
50
- <div class="rpt_description rpt_description_0">
51
  <?php _e('Per year. Renewals for 25% off', CHT_OPT); ?>
52
  </div>
53
  <div style="clear:both;"></div>
@@ -61,7 +74,19 @@
61
  <div class="rpt_feature rpt_feature_0-5"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Automatically track clicks on each of your channels on your Google Analytics account</span>Google Analytics<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
62
  <div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Show/don't show the widget on specific pages</span>Page targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
63
  <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>
64
- <div class="rpt_feature rpt_feature_0-8">Updates and support for 1 year</div>
 
 
 
 
 
 
 
 
 
 
 
 
65
  </div>
66
  <div style="clear:both;"></div>
67
  <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=185&amp;edd_options[price_id]=2" style="background:#9679d3" class="rpt_foot rpt_foot_1">
@@ -77,7 +102,7 @@
77
  <?php _e('For agencies who manage clients', CHT_OPT); ?>
78
  </div>
79
  <div class="rpt_price rpt_price_2">$99</div>
80
- <div class="rpt_description rpt_description_0">
81
  <?php _e('Per year. Renewals for 25% off', CHT_OPT); ?>
82
  </div>
83
  <div style="clear:both;"></div>
@@ -91,7 +116,19 @@
91
  <div class="rpt_feature rpt_feature_0-5"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Automatically track clicks on each of your channels on your Google Analytics account</span>Google Analytics<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
92
  <div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Show/don't show the widget on specific pages</span>Page targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
93
  <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>
94
- <div class="rpt_feature rpt_feature_0-8">Updates and support for 1 year</div>
 
 
 
 
 
 
 
 
 
 
 
 
95
  </div>
96
  <div style="clear:both;"></div>
97
  <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">
@@ -167,4 +204,23 @@
167
 
168
  </div>
169
  </div>
170
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  <?php _e('For small website owners', CHT_OPT); ?>
20
  </div>
21
  <div class="rpt_price rpt_price_0">$25</div>
22
+ <div class="rpt_description rpt_desc rpt_description_0">
23
  <?php _e('Per year. Renewals for 25% off', CHT_OPT); ?>
24
  </div>
25
  <div style="clear:both;"></div>
33
  <div class="rpt_feature rpt_feature_0-5"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Automatically track clicks on each of your channels on your Google Analytics account</span>Google Analytics<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
34
  <div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Show/don't show the widget on specific pages</span>Page targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
35
  <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>
36
+ <?php $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=185&edd_options[price_id]=" ?>
37
+ <div class="rpt_feature rpt_feature_0-9">
38
+ <select data-key="0" class="multiple-options">
39
+ <option data-header="Renewals for 25% off" data-price="25" value="<?php echo esc_url($pro_url."1") ?>">
40
+ <?php esc_html_e("Updates & support for 1 year") ?>
41
+ </option>
42
+ <option data-header="For 3 years" data-price="49" value="<?php echo esc_url($pro_url."4") ?>">
43
+ <?php esc_html_e("Updates & support for 3 years") ?>
44
+ </option>
45
+ <option data-header="For lifetime" data-price="79" value="<?php echo esc_url($pro_url."5") ?>">
46
+ <?php esc_html_e("Updates & support for lifetime") ?>
47
+ </option>
48
+ </select>
49
+ </div>
50
  </div>
51
  <div style="clear:both;"></div>
52
  <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=185&amp;edd_options[price_id]=1" style="background:#9679d3" class="rpt_foot rpt_foot_0">
60
  <?php _e('For businesses with multiple websites', CHT_OPT); ?>
61
  </div>
62
  <div class="rpt_price rpt_price_1">$59</div>
63
+ <div class="rpt_description rpt_desc rpt_description_0">
64
  <?php _e('Per year. Renewals for 25% off', CHT_OPT); ?>
65
  </div>
66
  <div style="clear:both;"></div>
74
  <div class="rpt_feature rpt_feature_0-5"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Automatically track clicks on each of your channels on your Google Analytics account</span>Google Analytics<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
75
  <div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Show/don't show the widget on specific pages</span>Page targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
76
  <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>
77
+ <div class="rpt_feature rpt_feature_0-9">
78
+ <select data-key="0" class="multiple-options">
79
+ <option data-header="Renewals for 25% off" data-price="49" value="<?php echo esc_url($pro_url."2") ?>">
80
+ <?php esc_html_e("Updates & support for 1 year") ?>
81
+ </option>
82
+ <option data-header="For 3 years" data-price="99" value="<?php echo esc_url($pro_url."6") ?>">
83
+ <?php esc_html_e("Updates & support for 3 years") ?>
84
+ </option>
85
+ <option data-header="For lifetime" data-price="149" value="<?php echo esc_url($pro_url."7") ?>">
86
+ <?php esc_html_e("Updates & support for lifetime") ?>
87
+ </option>
88
+ </select>
89
+ </div>
90
  </div>
91
  <div style="clear:both;"></div>
92
  <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=185&amp;edd_options[price_id]=2" style="background:#9679d3" class="rpt_foot rpt_foot_1">
102
  <?php _e('For agencies who manage clients', CHT_OPT); ?>
103
  </div>
104
  <div class="rpt_price rpt_price_2">$99</div>
105
+ <div class="rpt_description rpt_desc rpt_description_0">
106
  <?php _e('Per year. Renewals for 25% off', CHT_OPT); ?>
107
  </div>
108
  <div style="clear:both;"></div>
116
  <div class="rpt_feature rpt_feature_0-5"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Automatically track clicks on each of your channels on your Google Analytics account</span>Google Analytics<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
117
  <div class="rpt_feature rpt_feature_0-6"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Show/don't show the widget on specific pages</span>Page targeting<span class="rpt_tooltip_plus" style="color:#5500ff !important;"> +</span></a></div>
118
  <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>
119
+ <div class="rpt_feature rpt_feature_0-9">
120
+ <select data-key="0" class="multiple-options">
121
+ <option data-header="Renewals for 25% off" data-price="99" value="<?php echo esc_url($pro_url."3") ?>">
122
+ <?php esc_html_e("Updates & support for 1 year") ?>
123
+ </option>
124
+ <option data-header="For 3 years" data-price="179" value="<?php echo esc_url($pro_url."8") ?>">
125
+ <?php esc_html_e("Updates & support for 3 years") ?>
126
+ </option>
127
+ <option data-header="For lifetime" data-price="249" value="<?php echo esc_url($pro_url."9") ?>">
128
+ <?php esc_html_e("Updates & support for lifetime") ?>
129
+ </option>
130
+ </select>
131
+ </div>
132
  </div>
133
  <div style="clear:both;"></div>
134
  <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">
204
 
205
  </div>
206
  </div>
207
+ </div>
208
+
209
+ <script>
210
+ jQuery(document).ready(function(){
211
+ jQuery(".multiple-options").change(function(){
212
+ thisValue = jQuery(this).val();
213
+ jQuery(this).closest(".rpt_plan").find("a.rpt_foot").attr("href", thisValue);
214
+ thisPrice = jQuery(this).find("option:selected").attr("data-price");
215
+ jQuery(this).closest(".rpt_plan").find(".rpt_price").text("$"+thisPrice);
216
+ /*firstPrice = jQuery(this).find("option:first").attr("data-price");
217
+ if(firstPrice == thisPrice) {
218
+ jQuery(this).closest(".rpt_plan").removeClass("pro-active");
219
+ } else {
220
+ jQuery(this).closest(".rpt_plan").addClass("pro-active");
221
+ }*/
222
+ priceText = jQuery(this).find("option:selected").attr("data-header");
223
+ jQuery(this).closest(".rpt_plan").find(".rpt_desc").text(priceText);
224
+ });
225
+ });
226
+ </script>