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

Version Description

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

Code changes from version 1.3.1 to 1.3.2

Files changed (3) hide show
  1. assets/images/rpt_recommended.png +0 -0
  2. cht-icons.php +52 -45
  3. readme.txt +5 -5
assets/images/rpt_recommended.png ADDED
Binary file
cht-icons.php CHANGED
@@ -5,68 +5,75 @@
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: 1.3.1
9
  License: GPL2
10
  */
11
 
12
 
13
- if ( ! defined( 'ABSPATH' ) ) {
14
  exit; // don't access directly
15
  };
16
 
17
- define( 'CHT_FILE', __FILE__ ); // this file
18
- define( 'CHT_OPT', 'chaty' );
19
- define( 'CHT_DIR', dirname( CHT_FILE ) ); // our directory
20
- 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
 
27
  if (!function_exists('wp_doing_ajax')) {
28
- function wp_doing_ajax() {
29
- /**
30
- * Filters whether the current request is a WordPress Ajax request.
31
- *
32
- * @since 4.7.0
33
- *
34
- * @param bool $wp_doing_ajax Whether the current request is a WordPress Ajax request.
35
- */
36
- return apply_filters( 'wp_doing_ajax', defined( 'DOING_AJAX' ) && DOING_AJAX );
37
- }
 
38
  }
39
 
40
  require_once CHT_INC . '/class-cht-icons.php';
41
- require_once CHT_FRONT_INC . '/class-frontend.php';
42
 
43
 
44
- add_action( 'activated_plugin', 'cht_activation_redirect' );
45
 
46
- register_activation_hook(CHT_FILE, 'cht_install', 10);
47
 
48
- function cht_install(){
49
- $cht_multidimensional_options = array(
50
- 'mobile' => '1',
51
- 'desktop' => '1',
52
- );
53
-
54
- update_option('cht_devices', $cht_multidimensional_options);
55
- update_option('cht_active','1');
56
- update_option('cht_position','right');
57
- update_option('cht_cta','Contact us');
58
- update_option('cht_numb_slug',',Phone,Whatsapp,Facebook Messenger');
59
- update_option('cht_social_whatsapp','' );
60
- update_option('cht_social_phone','');
61
- update_option('cht_widget_size','54');
62
- update_option('widget_icon','chat-base');
63
- update_option('cht_widget_img','');
64
- update_option('cht_color','#A886CD');
 
 
 
 
 
65
  }
66
 
67
- function cht_activation_redirect( $plugin ) {
68
- if( $plugin == plugin_basename( __FILE__ ) ) {
69
- exit( wp_redirect( admin_url( 'admin.php?page=chaty-app' ) ) );
70
- }
 
71
  }
72
 
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: 1.3.2
9
  License: GPL2
10
  */
11
 
12
 
13
+ if (!defined('ABSPATH')) {
14
  exit; // don't access directly
15
  };
16
 
17
+ define('CHT_FILE', __FILE__); // this file
18
+ define('CHT_OPT', 'chaty');
19
+ define('CHT_DIR', dirname(CHT_FILE)); // our directory
20
+ 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
 
27
  if (!function_exists('wp_doing_ajax')) {
28
+ function wp_doing_ajax()
29
+ {
30
+ /**
31
+ * Filters whether the current request is a WordPress Ajax request.
32
+ *
33
+ * @since 4.7.0
34
+ *
35
+ * @param bool $wp_doing_ajax Whether the current request is a WordPress Ajax request.
36
+ */
37
+ return apply_filters('wp_doing_ajax', defined('DOING_AJAX') && DOING_AJAX);
38
+ }
39
  }
40
 
41
  require_once CHT_INC . '/class-cht-icons.php';
42
+ require_once CHT_FRONT_INC . '/class-frontend.php';
43
 
44
 
45
+ add_action('activated_plugin', 'cht_activation_redirect');
46
 
47
+ register_activation_hook(CHT_FILE, 'cht_install', 10);
48
 
49
+ function cht_install()
50
+ {
51
+ $widgetSize = get_option('cht_widget_size');
52
+
53
+ if (empty($widgetSize)) {
54
+ $cht_multidimensional_options = array(
55
+ 'mobile' => '1',
56
+ 'desktop' => '1',
57
+ );
58
+
59
+ update_option('cht_devices', $cht_multidimensional_options);
60
+ update_option('cht_active', '1');
61
+ update_option('cht_position', 'right');
62
+ update_option('cht_cta', 'Contact us');
63
+ update_option('cht_numb_slug', ',Phone,Whatsapp,Facebook Messenger');
64
+ update_option('cht_social_whatsapp', '');
65
+ update_option('cht_social_phone', '');
66
+ update_option('cht_widget_size', '54');
67
+ update_option('widget_icon', 'chat-base');
68
+ update_option('cht_widget_img', '');
69
+ update_option('cht_color', '#A886CD');
70
+ }
71
  }
72
 
73
+ function cht_activation_redirect($plugin)
74
+ {
75
+ if ($plugin == plugin_basename(__FILE__)) {
76
+ exit(wp_redirect(admin_url('admin.php?page=chaty-app')));
77
+ }
78
  }
79
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Free WhatsApp, Messenger, Telegram, Email, SMS, Maps, Chat & Call button - Chaty ===
2
- Contributors: galdub, tomeraharon
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.0
6
- Stable tag: 1.3.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.
@@ -107,14 +107,14 @@ You can choose up to two channels (unlimited in the pro plan), display the widge
107
  = Is there a time limit for the free plan? =
108
  No. you can use the free plan as long as you want.
109
 
110
- = Can I show a Click To Call button on my site?? =
111
  Yes! Just choose the Phone icon and add your phone number.
112
 
113
  = I don’t see the widget on my site, what should I do? =
114
  Please make sure you’ve chosen at least one channel and clicked on the “SAVE CHANGES” button.
115
 
116
  = How do I activate my pro plan? =
117
- Once you've purchased your pro plan, go to the Chaty plugin page on your website, and click on the "Enter Token" button. Fill out your token and click on the "Upgrade Now" button.
118
 
119
  == Screenshots ==
120
 
1
  === Free WhatsApp, Messenger, Telegram, Email, SMS, Maps, Chat & Call button - Chaty ===
2
+ 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.1
6
+ Stable tag: 1.3.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.
107
  = Is there a time limit for the free plan? =
108
  No. you can use the free plan as long as you want.
109
 
110
+ = Can I show a Click To Call button on my site? =
111
  Yes! Just choose the Phone icon and add your phone number.
112
 
113
  = I don’t see the widget on my site, what should I do? =
114
  Please make sure you’ve chosen at least one channel and clicked on the “SAVE CHANGES” button.
115
 
116
  = How do I activate my pro plan? =
117
+ Just follow our <a href="https://premio.io/wordpress-premio-pro-version-installation-guide/" target="_blank" title="WordPress installation guide">pro installation guide</a>.
118
 
119
  == Screenshots ==
120