Click to Chat for WhatsApp Chat - Version 3.2.7

Version Description

  • Enhancement: WhatsApp Number field. (country code and Number)
  • Enhancement: Change Settings at page level. (Click to Chat - Meta box)
Download this release

Release Info

Developer bhvreddy
Plugin Icon 128x128 Click to Chat for WhatsApp Chat
Version 3.2.7
Comparing to
See all releases

Code changes from version 3.2.6 to 3.2.7

click-to-chat.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Click to Chat
4
  Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
5
  Description: Lets make your Web page visitors contact you through WhatsApp with a single click/tap
6
- Version: 3.2.6
7
  Author: HoliThemes
8
  Author URI: https://holithemes.com/plugins/click-to-chat/
9
  License: GPL2
@@ -17,7 +17,7 @@ if ( ! defined( 'WPINC' ) ) {
17
 
18
  // ctc - Version - update version at readme 'Stable tag'
19
  if ( ! defined( 'HT_CTC_VERSION' ) ) {
20
- define( 'HT_CTC_VERSION', '3.2.6' );
21
  }
22
 
23
  // define HT_CTC_PLUGIN_FILE
3
  Plugin Name: Click to Chat
4
  Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
5
  Description: Lets make your Web page visitors contact you through WhatsApp with a single click/tap
6
+ Version: 3.2.7
7
  Author: HoliThemes
8
  Author URI: https://holithemes.com/plugins/click-to-chat/
9
  License: GPL2
17
 
18
  // ctc - Version - update version at readme 'Stable tag'
19
  if ( ! defined( 'HT_CTC_VERSION' ) ) {
20
+ define( 'HT_CTC_VERSION', '3.2.7' );
21
  }
22
 
23
  // define HT_CTC_PLUGIN_FILE
new/admin/admin.php CHANGED
@@ -45,4 +45,9 @@ include_once HT_CTC_PLUGIN_DIR .'new/admin/class-ht-ctc-admin-customize-styles.p
45
  include_once HT_CTC_PLUGIN_DIR .'new/admin/class-ht-ctc-admin-other-settings.php';
46
 
47
  // meta boxes - change values at page level
48
- include_once HT_CTC_PLUGIN_DIR .'new/admin/admin_commons/class-ht-ctc-metabox.php';
 
 
 
 
 
45
  include_once HT_CTC_PLUGIN_DIR .'new/admin/class-ht-ctc-admin-other-settings.php';
46
 
47
  // meta boxes - change values at page level
48
+ include_once HT_CTC_PLUGIN_DIR .'new/admin/admin_commons/class-ht-ctc-metabox.php';
49
+
50
+ // rtools
51
+ if ( ! isset ( $ht_ctc_othersettings['hide_rtools'] ) ) {
52
+ include_once HT_CTC_PLUGIN_DIR .'new/admin/class-ht-ctc-admin-rtools.php';
53
+ }
new/admin/admin_assets/js/admin.js CHANGED
@@ -141,6 +141,47 @@ $(document).on('click', '.hidebasedondevice', function () {
141
  $('.hidebasedondevice').not(this).prop('checked', false);
142
  });
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
 
145
  });
146
 
141
  $('.hidebasedondevice').not(this).prop('checked', false);
142
  });
143
 
144
+ // WhatsApp number
145
+ function wn() {
146
+
147
+ var cc = $("#whatsapp_cc").val();
148
+ var num = $("#whatsapp_number").val();
149
+
150
+ // $(".ht_ctc_wn").html(cc+num);
151
+ // $("#ctc_whatsapp_number").val(cc+num);
152
+
153
+ $("#whatsapp_cc").on("change paste keyup", function (e) {
154
+ cc = $("#whatsapp_cc").val();
155
+ call();
156
+ });
157
+
158
+ $("#whatsapp_number").on("change paste keyup", function (e) {
159
+ num = $("#whatsapp_number").val();
160
+ call();
161
+ });
162
+
163
+ function call() {
164
+ $(".ht_ctc_wn").html(cc+''+num);
165
+ $("#ctc_whatsapp_number").val(cc+''+num);
166
+ }
167
+
168
+ }
169
+ wn();
170
+
171
+ // things based on screen size
172
+ function ss() {
173
+
174
+ var is_mobile = (typeof screen.width !== "undefined" && screen.width > 1024) ? "no" : "yes";
175
+
176
+ if ('yes' == is_mobile) {
177
+
178
+ // WhatsApp number tooltip position for mobile
179
+ // $("#whatsapp_cc").data('position', 'bottom');
180
+ $("#whatsapp_cc").attr('data-position', 'bottom');
181
+ $("#whatsapp_number").attr('data-position', 'bottom');
182
+ }
183
+ }
184
+ ss();
185
 
186
  });
187
 
new/admin/admin_commons/admin-after-settings-page.php CHANGED
@@ -10,85 +10,102 @@
10
  if ( ! defined( 'ABSPATH' ) ) exit;
11
  ?>
12
 
13
- <ul class="collapsible popout">
14
- <p class="description" style="text-align: center"><?php _e( 'Frequently Asked Questions', 'click-to-chat-for-whatsapp' ); ?></p>
15
-
16
- <li>
17
- <div class="collapsible-header"><?php _e( 'Show/Hide on Selected pages, devices', 'click-to-chat-for-whatsapp' ); ?></div>
18
- <div class="collapsible-body">
19
- <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-only-on-selected-pages/"><?php _e( 'Show only on selected pages' ) ?></a></p>
20
- <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/hide-only-on-selected-pages/"><?php _e( 'Hide only on selected pages' ) ?></a></p>
21
- <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-hide-on-mobile-desktop/"><?php _e( 'Show/Hide on Mobile/Desktop' ) ?></a></p>
22
- </div>
23
- </li>
24
 
25
- <li>
26
- <div class="collapsible-header"><?php _e( 'Change Values at page level', 'click-to-chat-for-whatsapp' ); ?> (number, ..)</div>
27
- <div class="collapsible-body">
28
- <p class="description">We can change the WhatsApp number, Call to Action, prefilled message while editing the post from the right side bar' )</p>
29
- <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/"><?php _e( 'Change Settings at Page Level' ) ?></a></p>
30
- </div>
31
- </li>
32
-
33
- <li>
34
- <div class="collapsible-header"><?php _e( 'I Make Changes and Nothing Happens', 'click-to-chat-for-whatsapp' ); ?></div>
35
- <div class="collapsible-body">
36
- <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/clear-cache/"><?php _e( 'Clear Cache' ) ?>:</a> <br>
37
- &emsp; - <?php _e( 'Cache plugins', 'click-to-chat-for-whatsapp' ); ?> <br>
38
- &emsp; - <?php _e( 'Server cache', 'click-to-chat-for-whatsapp' ); ?> <br>
39
- &emsp; - <?php _e( 'Browser Cache', 'click-to-chat-for-whatsapp' ); ?>
40
- </p>
41
- </div>
42
- </li>
43
-
44
- <li>
45
- <div class="collapsible-header"><?php _e( 'No WhatsApp Number Found!', 'click-to-chat-for-whatsapp' ); ?></div>
46
- <div class="collapsible-body">
47
- <p class="description"><?php _e( 'Add', 'click-to-chat-for-whatsapp' ); ?> <a href="#chat_settings"><?php _e( 'WhatsApp Number with Country Code', 'click-to-chat-for-whatsapp' ); ?></a></p>
48
- <p class="description"><?php _e( 'If already added it might be cached version', 'click-to-chat-for-whatsapp' ); ?>, <strong><?php _e( 'Clear the Cache and try', 'click-to-chat-for-whatsapp' ); ?></strong></p>
49
- <p class="description"><?php _e( 'If still an issue, please contact us', 'click-to-chat-for-whatsapp' ); ?></p>
50
- </div>
51
- </li>
52
 
53
- <li>
54
- <div class="collapsible-header"><?php _e( 'Phone number shared via url is invalid', 'click-to-chat-for-whatsapp' ); ?></div>
55
- <div class="collapsible-body">
56
- <p class="description"><?php _e( 'Add WhatsApp Number With country code', 'click-to-chat-for-whatsapp' ); ?></p>
57
- <p class="description"><?php _e( 'If already added, clear the cache and check', 'click-to-chat-for-whatsapp' ); ?></p>
58
- </div>
59
- </li>
 
60
 
61
- <!-- <li>
62
- <div class="collapsible-header">Positon to place</div>
63
- <div class="collapsible-body">
64
- <p class="description">Center to the Screen</p>
65
- <p class="description">Different position for mobile, desktop (pro)</p>
66
- </div>
67
- </li> -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
 
69
- <li>
70
- <div class="collapsible-header"><?php _e( 'Contact Us', 'click-to-chat-for-whatsapp' ); ?></div>
71
- <div class="collapsible-body">
72
- <p class="description"><a href="http://api.whatsapp.com/send?phone=919494429789&text=<?php echo get_bloginfo('url'); ?>%0AHi%20HoliThemes!!" target="_blank"><?php _e( 'WhatsApp', 'click-to-chat-for-whatsapp' ); ?></a></p>
73
- <p class="description"><?php _e( 'mail', 'click-to-chat-for-whatsapp' ); ?>: ctc@holithemes.com</p>
74
- </div>
75
- </li>
76
-
77
- <li>
78
- <div class="collapsible-header"><?php _e( 'HoliThemes On', 'click-to-chat-for-whatsapp' ); ?></div>
79
- <div class="collapsible-body">
80
- <p class="description"><a href="https://www.facebook.com/holithemes/" target="_blank"><?php _e( 'Facebook', 'click-to-chat-for-whatsapp' ); ?></a></p>
81
- <p class="description"><a href="https://www.youtube.com/channel/UC2Tf_WB9PWffO2B3tswWCGw" target="_blank"><?php _e( 'YouTube', 'click-to-chat-for-whatsapp' ); ?></a></p>
82
- <p class="description"><a href="https://twitter.com/holithemes" target="_blank"><?php _e( 'Twitter', 'click-to-chat-for-whatsapp' ); ?></a></p>
83
- <p class="description"><a href="https://www.instagram.com/holithemes/" target="_blank"><?php _e( 'Instagram', 'click-to-chat-for-whatsapp' ); ?></a></p>
84
- <p class="description"><a href="https://www.linkedin.com/company/holithemes" target="_blank"><?php _e( 'LinkedIn', 'click-to-chat-for-whatsapp' ); ?></a></p>
85
  </div>
86
- </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
- <!-- <div class="collapsible-header">Support Us</div>
89
- <div class="collapsible-body">
90
- <p class="description">If you like the plugin support us by giving 5 star rating</p>
91
  </div>
92
- </li> -->
93
-
94
- </ul>
10
  if ( ! defined( 'ABSPATH' ) ) exit;
11
  ?>
12
 
13
+ <div class="col s12 m6 l4">
14
+ <div class="row">
 
 
 
 
 
 
 
 
 
15
 
16
+ <ul class="collapsible popout">
17
+ <p class="description" style="text-align: center"><?php _e( 'Frequently Asked Questions', 'click-to-chat-for-whatsapp' ); ?></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
+ <li>
20
+ <div class="collapsible-header"><?php _e( 'Show/Hide on Selected pages, devices', 'click-to-chat-for-whatsapp' ); ?></div>
21
+ <div class="collapsible-body">
22
+ <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-only-on-selected-pages/"><?php _e( 'Show only on selected pages' ) ?></a></p>
23
+ <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/hide-only-on-selected-pages/"><?php _e( 'Hide only on selected pages' ) ?></a></p>
24
+ <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-hide-on-mobile-desktop/"><?php _e( 'Show/Hide on Mobile/Desktop' ) ?></a></p>
25
+ </div>
26
+ </li>
27
 
28
+ <li>
29
+ <div class="collapsible-header"><?php _e( 'Change Values at page level', 'click-to-chat-for-whatsapp' ); ?> (number, ..)</div>
30
+ <div class="collapsible-body">
31
+ <p class="description">We can change the WhatsApp number, Call to Action, prefilled message while editing the post from the right side bar' )</p>
32
+ <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/"><?php _e( 'Change Settings at Page Level' ) ?></a></p>
33
+ </div>
34
+ </li>
35
+
36
+ <li>
37
+ <div class="collapsible-header"><?php _e( 'I Make Changes and Nothing Happens', 'click-to-chat-for-whatsapp' ); ?></div>
38
+ <div class="collapsible-body">
39
+ <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/clear-cache/"><?php _e( 'Clear Cache' ) ?>:</a> <br>
40
+ &emsp; - <?php _e( 'Cache plugins', 'click-to-chat-for-whatsapp' ); ?> <br>
41
+ &emsp; - <?php _e( 'Server cache', 'click-to-chat-for-whatsapp' ); ?> <br>
42
+ &emsp; - <?php _e( 'Browser Cache', 'click-to-chat-for-whatsapp' ); ?>
43
+ </p>
44
+ </div>
45
+ </li>
46
+
47
+ <li>
48
+ <div class="collapsible-header"><?php _e( 'No WhatsApp Number Found!', 'click-to-chat-for-whatsapp' ); ?></div>
49
+ <div class="collapsible-body">
50
+ <p class="description"><?php _e( 'Add', 'click-to-chat-for-whatsapp' ); ?> <a href="#chat_settings"><?php _e( 'WhatsApp Number with Country Code', 'click-to-chat-for-whatsapp' ); ?></a></p>
51
+ <p class="description"><?php _e( 'If already added it might be cached version', 'click-to-chat-for-whatsapp' ); ?>, <strong><?php _e( 'Clear the Cache and try', 'click-to-chat-for-whatsapp' ); ?></strong></p>
52
+ <p class="description"><?php _e( 'If still an issue, please contact us', 'click-to-chat-for-whatsapp' ); ?></p>
53
+ </div>
54
+ </li>
55
+
56
+ <!-- <li>
57
+ <div class="collapsible-header"><?php _e( 'Phone number shared via url is invalid', 'click-to-chat-for-whatsapp' ); ?></div>
58
+ <div class="collapsible-body">
59
+ <p class="description"><?php _e( 'Add WhatsApp Number With country code', 'click-to-chat-for-whatsapp' ); ?></p>
60
+ <p class="description"><?php _e( 'If already added, clear the cache and check', 'click-to-chat-for-whatsapp' ); ?></p>
61
+ </div>
62
+ </li> -->
63
+
64
+
65
+ <!-- <div class="collapsible-header">Support Us</div>
66
+ <div class="collapsible-body">
67
+ <p class="description">If you like the plugin support us by giving 5 star rating</p>
68
+ </div>
69
+ </li> -->
70
+
71
+ </ul>
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  </div>
74
+ </div>
75
+
76
+
77
+ <div class="col s12 m6 l4">
78
+ <div class="row">
79
+ <ul class="collapsible popout">
80
+
81
+ <p class="description" style="text-align: center"><?php _e( 'Click to Chat - HoliThemes', 'click-to-chat-for-whatsapp' ); ?></p>
82
+
83
+ <li>
84
+ <div class="collapsible-header"><?php _e( 'ShowCase', 'click-to-chat-for-whatsapp' ); ?></div>
85
+ <div class="collapsible-body">
86
+ <p class="description"><a target="_blank" href="https://docs.google.com/forms/d/e/1FAIpQLSdPgUgjaZLxfEk-jRQUd8efV-SNh5eOgc2Qe5Xl9uz0ti8tEw/viewform?usp=sf_link">Share your website address</a>, we will add your website link in 'Click to Chat' portfolio.</p>
87
+ </div>
88
+ </li>
89
+
90
+ <li>
91
+ <div class="collapsible-header"><?php _e( 'Contact Us', 'click-to-chat-for-whatsapp' ); ?></div>
92
+ <div class="collapsible-body">
93
+ <p class="description"><?php _e( 'Please let us know if you have any suggestions or feedback!!', 'click-to-chat-for-whatsapp' ); ?> <br><br> <a href="http://api.whatsapp.com/send?phone=919494429789&text=<?php echo get_bloginfo('url'); ?>%0AHi%20HoliThemes,%0AI%20have%20a%20Suggestion/Feedback:" target="_blank"><?php _e( 'WhatsApp', 'click-to-chat-for-whatsapp' ); ?></a></p>
94
+ <p class="description"><?php _e( 'Mail', 'click-to-chat-for-whatsapp' ); ?>:<a href="mailto: ctc@holithemes.com"> ctc@holithemes.com</a></p>
95
+ </div>
96
+ </li>
97
+
98
+ <li>
99
+ <div class="collapsible-header"><?php _e( 'HoliThemes On', 'click-to-chat-for-whatsapp' ); ?></div>
100
+ <div class="collapsible-body">
101
+ <p class="description"><a href="https://www.facebook.com/holithemes/" target="_blank"><?php _e( 'Facebook', 'click-to-chat-for-whatsapp' ); ?></a></p>
102
+ <p class="description"><a href="https://www.youtube.com/channel/UC2Tf_WB9PWffO2B3tswWCGw" target="_blank"><?php _e( 'YouTube', 'click-to-chat-for-whatsapp' ); ?></a></p>
103
+ <p class="description"><a href="https://twitter.com/holithemes" target="_blank"><?php _e( 'Twitter', 'click-to-chat-for-whatsapp' ); ?></a></p>
104
+ <p class="description"><a href="https://www.instagram.com/holithemes/" target="_blank"><?php _e( 'Instagram', 'click-to-chat-for-whatsapp' ); ?></a></p>
105
+ <p class="description"><a href="https://www.linkedin.com/company/holithemes" target="_blank"><?php _e( 'LinkedIn', 'click-to-chat-for-whatsapp' ); ?></a></p>
106
+ </div>
107
+ </li>
108
 
109
+ </ul>
 
 
110
  </div>
111
+ </div>
 
 
new/admin/admin_commons/admin-sidebar-content.php CHANGED
@@ -2,51 +2,54 @@
2
  /**
3
  * sidebar content
4
  */
 
 
 
 
 
 
5
  ?>
6
 
7
  <div class="sidebar-content">
8
 
9
  <div class="col s12 m8 l12 xl12">
10
- <div class="row">
11
- <!-- <ul class="collapsible popout"> -->
12
- <ul class="collapsible popout">
13
- <li class="active">
14
- <div class="collapsible-header"><?php _e( 'Contact Us', 'click-to-chat-for-whatsapp' ); ?></div>
15
- <div class="collapsible-body">
16
- <p class="description"><?php _e( 'Please let us know if you have any suggestions or feedback!!', 'click-to-chat-for-whatsapp' ); ?> <br><br> <a href="http://api.whatsapp.com/send?phone=919494429789&text=<?php echo get_bloginfo('url'); ?>%0AHi%20HoliThemes,%0AI%20have%20a%20Suggestion/Feedback:" target="_blank"><?php _e( 'WhatsApp', 'click-to-chat-for-whatsapp' ); ?></a></p>
17
- <p class="description"><?php _e( 'Mail', 'click-to-chat-for-whatsapp' ); ?>:<a href="mailto: ctc@holithemes.com"> ctc@holithemes.com</a></p>
18
- </div>
19
- </li>
20
- </ul>
21
- </div>
22
- </div>
23
 
24
- <div class="col s12 m8 l12 xl12">
25
- <div class="row">
26
- <!-- <ul class="collapsible popout"> -->
27
- <ul class="collapsible popout">
28
- <li class="active">
29
- <div class="collapsible-header"><?php _e( 'ShowCase', 'click-to-chat-for-whatsapp' ); ?></div>
30
- <div class="collapsible-body">
31
- <!-- <p class="description"><?php _e( 'Click to Chat is Customizable - Style, color, own image', 'click-to-chat-for-whatsapp' ); ?> </p> -->
32
- <!-- <p class="description"><?php _e( 'We are planning to add a portfolio for Click to Chat installed Website', 'click-to-chat-for-whatsapp' ); ?> </p> -->
33
- <!-- <br> -->
34
- <p class="description"><a target="_blank" href="https://docs.google.com/forms/d/e/1FAIpQLSdPgUgjaZLxfEk-jRQUd8efV-SNh5eOgc2Qe5Xl9uz0ti8tEw/viewform?usp=sf_link">Share your website address</a>, we will add your website link in 'Click to Chat' portfolio.</p>
35
- </div>
36
- </li>
37
- </ul>
38
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  </div>
40
 
41
- <!-- <div class="col s12 m8">
42
- <div class="collection with-header">
43
- <div class="collection-header"><bold>HoliThemes On</bold></div>
44
- <a target="_blank" href="https://www.facebook.com/holithemes/" class="collection-item">Facebook</a>
45
- <a target="_blank" href="https://twitter.com/holithemes" class="collection-item">Twitter</a>
46
- <a target="_blank" href="https://www.instagram.com/holithemes/" class="collection-item">Instagram</a>
47
- <a target="_blank" href="https://www.youtube.com/channel/UC2Tf_WB9PWffO2B3tswWCGw" class="collection-item">YouTube</a>
48
- <a target="_blank" href="https://www.linkedin.com/company/holithemes" class="collection-item">LinkedIn</a>
49
- </div>
50
- </div> -->
51
 
52
  </div>
2
  /**
3
  * sidebar content
4
  */
5
+
6
+
7
+ if ( ! defined( 'ABSPATH' ) ) exit;
8
+
9
+ $othersettings = get_option('ht_ctc_othersettings');
10
+
11
  ?>
12
 
13
  <div class="sidebar-content">
14
 
15
  <div class="col s12 m8 l12 xl12">
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
+ <?php
18
+ // rtools
19
+ if ( ! isset ( $othersettings['hide_rtools'] ) ) {
20
+ ?>
21
+
22
+ <div class="row">
23
+ <ul class="collapsible popout">
24
+ <li class="active">
25
+
26
+
27
+ <ul class="collapsible popout">
28
+ <li class="active">
29
+ <div class="collapsible-header"><?php _e( 'Contact Us', 'click-to-chat-for-whatsapp' ); ?></div>
30
+ <div class="collapsible-body">
31
+ <p class="description"><?php _e( 'Please let us know if you have any suggestions or feedback!!', 'click-to-chat-for-whatsapp' ); ?> <br><br> <a href="http://api.whatsapp.com/send?phone=919494429789&text=<?php echo get_bloginfo('url'); ?>%0AHi%20HoliThemes,%0AI%20have%20a%20Suggestion/Feedback:" target="_blank"><?php _e( 'WhatsApp', 'click-to-chat-for-whatsapp' ); ?></a></p>
32
+ <p class="description"><?php _e( 'Mail', 'click-to-chat-for-whatsapp' ); ?>:<a href="mailto: ctc@holithemes.com"> ctc@holithemes.com</a></p>
33
+ </div>
34
+ </li>
35
+ </ul>
36
+
37
+
38
+
39
+
40
+ <!-- <br> -->
41
+ <!-- <p class="description" style="font-size: 0.7em; float: right;">Disclosure: contains affiliate links | <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-other-settings#hide_rtools:~:text=Hide,Tools' ); ?>" style="color: unset;">Hide this</a></p> -->
42
+ <!-- </div> -->
43
+
44
+ </li>
45
+ </ul>
46
+ </div>
47
+
48
+ <?php
49
+ }
50
+ ?>
51
+
52
  </div>
53
 
 
 
 
 
 
 
 
 
 
 
54
 
55
  </div>
new/admin/admin_commons/class-ht-ctc-metabox.php CHANGED
@@ -15,17 +15,25 @@ class HT_CTC_MetaBox {
15
  * add meta box
16
  */
17
  function meta_box() {
18
-
19
- add_meta_box(
20
- 'ht_ctc_settings_meta_box', // Id.
21
- 'Click to Chat', // Title.
22
- array( $this, 'display_meta_box' ), // Callback.
23
- '', // Post_type.
24
- 'side', // Context.
25
- 'default' // Priority.
26
- );
 
 
 
 
 
 
 
27
  }
28
 
 
29
  /**
30
  * render meta box content
31
  */
15
  * add meta box
16
  */
17
  function meta_box() {
18
+
19
+ $post_types = get_post_types( array('public' => true) );
20
+
21
+ foreach ( $post_types as $type ) {
22
+ if ( 'attachment' !== $type ) {
23
+ add_meta_box(
24
+ 'ht_ctc_settings_meta_box', // Id.
25
+ 'Click to Chat', // Title.
26
+ array( $this, 'display_meta_box' ), // Callback.
27
+ $type, // Post_type.
28
+ 'side', // Context.
29
+ 'default' // Priority.
30
+ );
31
+ }
32
+ }
33
+
34
  }
35
 
36
+
37
  /**
38
  * render meta box content
39
  */
new/admin/class-ht-ctc-admin-main-page.php CHANGED
@@ -69,12 +69,10 @@ class HT_CTC_Admin_Main_Page {
69
 
70
  <!-- new row - After settings page -->
71
  <div class="row">
72
- <div class="col s12 m8 l4">
73
- <div class="row">
74
- <!-- after settings page / faq -->
75
  <?php include_once HT_CTC_PLUGIN_DIR .'new/admin/admin_commons/admin-after-settings-page.php'; ?>
76
- </div>
77
- </div>
78
  </div>
79
 
80
  </div>
@@ -130,19 +128,64 @@ class HT_CTC_Admin_Main_Page {
130
  }
131
 
132
 
133
- // WhatsApp number
 
 
 
 
 
134
  function number_cb() {
135
  $options = get_option('ht_ctc_chat_options');
136
- $value = ( isset( $options['number']) ) ? esc_attr( $options['number'] ) : '';
 
 
 
 
 
137
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  <div class="row">
139
- <div class="input-field col s12">
140
- <input name="ht_ctc_chat_options[number]" value="<?php echo $value ?>" id="whatsapp_number" type="text" class="input-margin tooltipped" data-position="top" data-tooltip="Country Code and Number">
141
- <label for="whatsapp_number"><?php _e( 'WhatsApp Number with Country Code', 'click-to-chat-for-whatsapp' ); ?></label>
142
- <!-- <span class="helper-text">Country code + number</span> -->
143
- <p class="description"><?php _e( "Enter 'WhatsApp' or 'WhatsApp business' number with country code", 'click-to-chat-for-whatsapp' ); ?>
144
- <br> <?php _e( '( E.g. 916123456789 - herein e.g. 91 is country code, 6123456789 is the mobile number )', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/whatsapp-number/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> ) </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  </div>
 
 
146
  </div>
147
  <?php
148
  }
@@ -255,9 +298,9 @@ class HT_CTC_Admin_Main_Page {
255
 
256
  function ctc_notes_cb() {
257
  ?>
258
- <p class="description card-panel" style="padding: 18px;"> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize Styles</a></p>
259
- <p class="description card-panel" style="padding: 18px;"> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-other-settings' ); ?>">Other Settings</a></p>
260
- <p class="description card-panel" style="padding: 18px;"> <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/shortcodes-chat">Shortcodes for Chat: </a>[ht-ctc-chat]</p>
261
  <?php
262
  }
263
 
69
 
70
  <!-- new row - After settings page -->
71
  <div class="row">
72
+
73
+ <!-- after settings page -->
 
74
  <?php include_once HT_CTC_PLUGIN_DIR .'new/admin/admin_commons/admin-after-settings-page.php'; ?>
75
+
 
76
  </div>
77
 
78
  </div>
128
  }
129
 
130
 
131
+ /**
132
+ * WhatsApp number
133
+ *
134
+ *
135
+ * @since 3.2.7 - $cc, $num - updated user interface
136
+ */
137
  function number_cb() {
138
  $options = get_option('ht_ctc_chat_options');
139
+ $cc = ( isset( $options['cc']) ) ? esc_attr( $options['cc'] ) : '';
140
+ $num = ( isset( $options['num']) ) ? esc_attr( $options['num'] ) : '';
141
+ $number = ( isset( $options['number']) ) ? esc_attr( $options['number'] ) : '';
142
+ if ('' == $num) {
143
+ $num = $number;
144
+ }
145
  ?>
146
+
147
+ <style>
148
+ .ctc_num_field {
149
+ padding-left: 0px !important;
150
+ }
151
+ .ctc_num_field input {
152
+ border: 1px solid #9e9e9e !important;
153
+ padding-left: 15px !important;
154
+ }
155
+ .ctc_num_field input#whatsapp_cc {
156
+ border-right: none !important;
157
+ }
158
+ </style>
159
+
160
+ <!-- Full WhatsApp Number Card -->
161
  <div class="row">
162
+ <div class="col s12 m8">
163
+ <p class="description card-panel grey lighten-3" style="padding: 5px 24px; display: inline-block;"><?php _e( 'WhatsApp Number', 'click-to-chat-for-whatsapp' ); ?>: <span class="ht_ctc_wn"><?php echo $number ?></span> </p>
164
+ </div>
165
+ </div>
166
+
167
+ <div class="row">
168
+ <div class="col s12">
169
+
170
+ <!-- country code -->
171
+ <div class="input-field col s3 m3 ctc_num_field">
172
+ <input name="ht_ctc_chat_options[cc]" value="<?php echo $cc ?>" id="whatsapp_cc" type="text" class="input-margin tooltipped" data-position="left" data-tooltip="Country Code">
173
+ <label for="whatsapp_cc"><?php _e( 'Country Code', 'click-to-chat-for-whatsapp' ); ?></label>
174
+ </div>
175
+
176
+ <!-- number -->
177
+ <div class="input-field col s9 m7 ctc_num_field">
178
+ <input name="ht_ctc_chat_options[num]" value="<?php echo $num ?>" id="whatsapp_number" type="text" class="input-margin tooltipped" data-position="right" data-tooltip="Number">
179
+ <label for="whatsapp_number"><?php _e( 'Number', 'click-to-chat-for-whatsapp' ); ?></label>
180
+ <!-- <span class="helper-text ">WhatsApp Number: <span class="ht_ctc_wn"></span></span> -->
181
+ </div>
182
+
183
+ <!-- full number - hidden field -->
184
+ <input name="ht_ctc_chat_options[number]" hidden value="<?php echo $number ?>" id="ctc_whatsapp_number" type="text">
185
+
186
  </div>
187
+ <p class="description"><?php _e( "WhatsApp or WhatsApp business number with country code", 'click-to-chat-for-whatsapp' ); ?> </p>
188
+ <p class="description"><?php _e( '( E.g. 916123456789 - herein e.g. 91 is country code, 6123456789 is the mobile number )', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/whatsapp-number/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> ) </p>
189
  </div>
190
  <?php
191
  }
298
 
299
  function ctc_notes_cb() {
300
  ?>
301
+ <p class="description"><a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize Styles</a></p>
302
+ <p class="description"><a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-other-settings' ); ?>">Other Settings</a></p>
303
+ <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/shortcodes-chat">Shortcodes for Chat: </a>[ht-ctc-chat]</p>
304
  <?php
305
  }
306
 
new/admin/class-ht-ctc-admin-other-settings.php CHANGED
@@ -65,8 +65,8 @@ class HT_CTC_Admin_Other_Settings {
65
 
66
  add_settings_section( 'ht_ctc_os_settings_sections_add', '', array( $this, 'main_settings_section_cb' ), 'ht_ctc_os_page_settings_sections_do' );
67
 
68
- add_settings_field( 'ht_ctc_analytics', 'Analytics', array( $this, 'ht_ctc_analytics_cb' ), 'ht_ctc_os_page_settings_sections_do', 'ht_ctc_os_settings_sections_add' );
69
  add_settings_field( 'ht_ctc_animations', 'Animations', array( $this, 'ht_ctc_animations_cb' ), 'ht_ctc_os_page_settings_sections_do', 'ht_ctc_os_settings_sections_add' );
 
70
  add_settings_field( 'ht_ctc_othersettings', 'Other Settings', array( $this, 'ht_ctc_othersettings_cb' ), 'ht_ctc_os_page_settings_sections_do', 'ht_ctc_os_settings_sections_add' );
71
 
72
  }
@@ -85,8 +85,8 @@ class HT_CTC_Admin_Other_Settings {
85
 
86
  ?>
87
  <ul class="collapsible" data-collapsible="accordion" id="ht_ctc_analytics">
88
- <li class="active">
89
- <div class="collapsible-header"><?php _e( 'Analytics', 'click-to-chat-for-whatsapp' ); ?></div>
90
  <div class="collapsible-body">
91
 
92
  <?php
@@ -299,6 +299,37 @@ class HT_CTC_Admin_Other_Settings {
299
  ?>
300
  <br>
301
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  </div>
303
  </li>
304
  </ul>
65
 
66
  add_settings_section( 'ht_ctc_os_settings_sections_add', '', array( $this, 'main_settings_section_cb' ), 'ht_ctc_os_page_settings_sections_do' );
67
 
 
68
  add_settings_field( 'ht_ctc_animations', 'Animations', array( $this, 'ht_ctc_animations_cb' ), 'ht_ctc_os_page_settings_sections_do', 'ht_ctc_os_settings_sections_add' );
69
+ add_settings_field( 'ht_ctc_analytics', 'Analytics', array( $this, 'ht_ctc_analytics_cb' ), 'ht_ctc_os_page_settings_sections_do', 'ht_ctc_os_settings_sections_add' );
70
  add_settings_field( 'ht_ctc_othersettings', 'Other Settings', array( $this, 'ht_ctc_othersettings_cb' ), 'ht_ctc_os_page_settings_sections_do', 'ht_ctc_os_settings_sections_add' );
71
 
72
  }
85
 
86
  ?>
87
  <ul class="collapsible" data-collapsible="accordion" id="ht_ctc_analytics">
88
+ <li class="">
89
+ <div class="collapsible-header"><?php _e( 'Google Analytics, Facebook Pixel', 'click-to-chat-for-whatsapp' ); ?></div>
90
  <div class="collapsible-body">
91
 
92
  <?php
299
  ?>
300
  <br>
301
 
302
+ <?php
303
+ // Hide/Remove rtools
304
+ if ( isset( $options['hide_rtools'] ) ) {
305
+ ?>
306
+ <p id="rtools">
307
+ <label>
308
+ <input name="<?php echo $dbrow ?>[hide_rtools]" type="checkbox" value="1" <?php checked( $options['hide_rtools'], 1 ); ?> id="hide_rtools" />
309
+ <span><?php _e( 'Hide Recommended Tools', 'click-to-chat-for-whatsapp' ); ?></span>
310
+ </label>
311
+ </p>
312
+ <?php
313
+ } else {
314
+ ?>
315
+ <p id="rtools">
316
+ <label>
317
+ <input name="<?php echo $dbrow ?>[hide_rtools]" type="checkbox" value="1" id="hide_rtools" />
318
+ <span><?php _e( 'Hide Recommended Tools', 'click-to-chat-for-whatsapp' ); ?></span>
319
+ </label>
320
+ </p>
321
+ <?php
322
+ }
323
+ ?>
324
+ <br>
325
+
326
+
327
+ <?php
328
+ // hook
329
+ // in other settings
330
+ do_action('ht_ctc_ah_admin_in_os');
331
+ ?>
332
+
333
  </div>
334
  </li>
335
  </ul>
new/admin/class-ht-ctc-admin-rtools.php ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Other settings page - admin
4
+ *
5
+ * this main settings page contains ..
6
+ *
7
+ * Analytics, ..
8
+ *
9
+ * @package ctc
10
+ * @subpackage admin
11
+ * @since 3.0
12
+ */
13
+
14
+ if ( ! defined( 'ABSPATH' ) ) exit;
15
+
16
+ if ( ! class_exists( 'HT_CTC_Admin_Rtools' ) ) :
17
+
18
+ class HT_CTC_Admin_Rtools {
19
+
20
+
21
+ public function menu() {
22
+
23
+ add_submenu_page(
24
+ 'click-to-chat',
25
+ 'Recommended-Tools',
26
+ 'Recommended Tools',
27
+ 'manage_options',
28
+ 'click-to-chat-rtools',
29
+ array( $this, 'settings_page' )
30
+ );
31
+ }
32
+
33
+
34
+ public function settings_page() {
35
+
36
+ if ( ! current_user_can('manage_options') ) {
37
+ return;
38
+ }
39
+
40
+ ?>
41
+
42
+ <div class="wrap">
43
+
44
+ <?php settings_errors(); ?>
45
+
46
+ <div class="row">
47
+ <div class="col s12 m12 xl8 options">
48
+ <form action="options.php" method="post" class="">
49
+ <?php settings_fields( 'ht_ctc_rtools_page_settings_fields' ); ?>
50
+ <?php do_settings_sections( 'ht_ctc_rtools_page_settings_sections_do' ) ?>
51
+ <!-- submit_button() -->
52
+ </form>
53
+ </div>
54
+ <!-- <div class="col s12 m12 xl6 ht-ctc-admin-sidebar">
55
+ </div> -->
56
+ </div>
57
+
58
+ </div>
59
+
60
+ <?php
61
+
62
+ }
63
+
64
+
65
+
66
+ public function settings() {
67
+
68
+ register_setting( 'ht_ctc_rtools_page_settings_fields', 'ht_ctc_othersettings' , array( $this, 'options_sanitize' ) );
69
+
70
+ add_settings_section( 'ht_ctc_rtools_settings_sections_add', '', array( $this, 'main_settings_section_cb' ), 'ht_ctc_rtools_page_settings_sections_do' );
71
+
72
+ // add_settings_field( 'ht_ctc_tools', '', array( $this, 'ht_ctc_tools_cb' ), 'ht_ctc_rtools_page_settings_sections_do', 'ht_ctc_rtools_settings_sections_add' );
73
+
74
+ }
75
+
76
+ function main_settings_section_cb() {
77
+ ?>
78
+
79
+ <div class="row">
80
+ <div class="col s12">
81
+ <h4>Recommended Tools</h4>
82
+ </div>
83
+ </div>
84
+
85
+
86
+ <div class="row">
87
+
88
+ <div class="col s12 m6 l4">
89
+ <ul class="collection with-header">
90
+ <li class="collection-header"><h5>WhatsApp API</h5></li>
91
+ <li><a class="collection-item" target="_blank" href="https://landbot.grsm.io/ctc">Landbot</a></li>
92
+ <li><a class="collection-item" target="_blank" href="https://freshchat.grsm.io/ctc">FreshChat</a></li>
93
+ <li><a class="collection-item" target="_blank" href="https://trengo.com/en?ref=ht">Trengo</a></li>
94
+ <li><a class="collection-item" target="_blank" href="https://www.wati.io?ref=ht">Wati</a></li>
95
+ </ul>
96
+ </div>
97
+
98
+ <div class="col s12 m6 l4">
99
+ <ul class="collection with-header">
100
+ <li class="collection-header"><h5>Hosting</h5></li>
101
+ <li><a class="collection-item" target="_blank" href="https://wordpress.com/pricing/?aff=7043">WordPress</a></li>
102
+ <li><a class="collection-item" target="_blank" href="https://kinsta.com/?kaid=PNHFRBHEOEWF">Kinsta</a></li>
103
+ <!-- <li><a class="collection-item" target="_blank" href=""></a></li> -->
104
+ <li><a class="collection-item" target="_blank" href="https://www.bluehost.com/track/ht/">bluehost</a></li>
105
+ </ul>
106
+ </div>
107
+
108
+ <div class="col s12 m6 l4">
109
+ <ul class="collection with-header">
110
+ <li class="collection-header"><h5>Themes</h5></li>
111
+ <li><a class="collection-item" target="_blank" href="https://wpastra.com/?bsf=891">Astra</a></li>
112
+ <li><a class="collection-item" target="_blank" href="https://www.elegantthemes.com/affiliates/idevaffiliate.php?id=46605">Divi</a></li>
113
+ <!-- <li><a class="collection-item" target="_blank" href=""></a></li> -->
114
+ <!-- <li><a class="collection-item" target="_blank" href=""></a></li> -->
115
+ </ul>
116
+ </div>
117
+
118
+
119
+
120
+ </div>
121
+
122
+ <p class="description" style="font-size: 0.7em; float: right;">Disclosure: contains affiliate links | <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-other-settings#hide_rtools:~:text=Hide,Tools' ); ?>" style="">Hide this</a></p>
123
+
124
+ <?php
125
+ }
126
+
127
+
128
+ // function ht_ctc_tools_cb() {
129
+ // }
130
+
131
+
132
+
133
+
134
+
135
+ }
136
+
137
+ $ht_ctc_admin_rtools = new HT_CTC_Admin_Rtools();
138
+
139
+ add_action('admin_menu', array($ht_ctc_admin_rtools, 'menu') );
140
+ add_action('admin_init', array($ht_ctc_admin_rtools, 'settings') );
141
+
142
+ endif; // END class_exists check
new/admin/class-ht-ctc-admin-scripts.php CHANGED
@@ -21,7 +21,7 @@ class HT_CTC_Admin_Scripts {
21
  $load_js_bottom = apply_filters( 'ht_ctc_fh_load_js_bottom', false );
22
 
23
  // hook ..
24
- if( 'toplevel_page_click-to-chat' == $hook || 'click-to-chat_page_click-to-chat-chat-feature' == $hook || 'click-to-chat_page_click-to-chat-group-feature' == $hook || 'click-to-chat_page_click-to-chat-share-feature' == $hook || 'click-to-chat_page_click-to-chat-customize-styles' == $hook || 'click-to-chat_page_click-to-chat-other-settings' == $hook ) {
25
 
26
  wp_enqueue_style( 'wp-color-picker' );
27
  wp_enqueue_style('ctc_admin_md_css', plugins_url( 'new/admin/admin_assets/css/materialize.min.css', HT_CTC_PLUGIN_FILE ) , '', HT_CTC_VERSION );
21
  $load_js_bottom = apply_filters( 'ht_ctc_fh_load_js_bottom', false );
22
 
23
  // hook ..
24
+ if( 'toplevel_page_click-to-chat' == $hook || 'click-to-chat_page_click-to-chat-chat-feature' == $hook || 'click-to-chat_page_click-to-chat-group-feature' == $hook || 'click-to-chat_page_click-to-chat-share-feature' == $hook || 'click-to-chat_page_click-to-chat-customize-styles' == $hook || 'click-to-chat_page_click-to-chat-other-settings' == $hook || 'click-to-chat_page_click-to-chat-rtools' == $hook ) {
25
 
26
  wp_enqueue_style( 'wp-color-picker' );
27
  wp_enqueue_style('ctc_admin_md_css', plugins_url( 'new/admin/admin_assets/css/materialize.min.css', HT_CTC_PLUGIN_FILE ) , '', HT_CTC_VERSION );
new/admin/class-ht-ctc-db.php CHANGED
@@ -120,10 +120,14 @@ class HT_CTC_DB {
120
  *
121
  * webandapi if checked ? web/api.whatsapp(mobile,desktop) : wa.me
122
  *
 
 
123
  */
124
  public function ht_ctc_chat_options() {
125
 
126
  $values = array(
 
 
127
  'number' => '',
128
  'pre_filled' => '',
129
  'call_to_action' => 'WhatsApp us',
120
  *
121
  * webandapi if checked ? web/api.whatsapp(mobile,desktop) : wa.me
122
  *
123
+ * @since 3.2.7 - cc, num - better user interface to add number
124
+ *
125
  */
126
  public function ht_ctc_chat_options() {
127
 
128
  $values = array(
129
+ 'cc' => '',
130
+ 'num' => '',
131
  'number' => '',
132
  'pre_filled' => '',
133
  'call_to_action' => 'WhatsApp us',
new/inc/chat/class-ht-ctc-chat-shortcode.php CHANGED
@@ -196,6 +196,7 @@ class HT_CTC_Chat_Shortcode {
196
  // analytics
197
  $ht_ctc_os['is_ga_enable'] = 'yes';
198
  $ht_ctc_os['is_fb_pixel'] = 'yes';
 
199
 
200
  // Hooks
201
  $ht_ctc_os = apply_filters( 'ht_ctc_fh_os', $ht_ctc_os );
196
  // analytics
197
  $ht_ctc_os['is_ga_enable'] = 'yes';
198
  $ht_ctc_os['is_fb_pixel'] = 'yes';
199
+ $ht_ctc_os['data-attributes'] = '';
200
 
201
  // Hooks
202
  $ht_ctc_os = apply_filters( 'ht_ctc_fh_os', $ht_ctc_os );
new/inc/chat/class-ht-ctc-chat.php CHANGED
@@ -73,12 +73,16 @@ class HT_CTC_Chat {
73
  $ht_ctc_chat['position_mobile'] = $position_mobile;
74
 
75
 
76
-
77
-
78
- // Number
79
  $ht_ctc_chat['number'] = (isset($ht_ctc_pagelevel['number'])) ? esc_attr($ht_ctc_pagelevel['number']) : esc_attr( $options['number'] );
80
  $ht_ctc_chat['number'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_chat['number'], 'Click to Chat for WhatsApp', 'number' );
81
 
 
 
 
 
 
 
 
82
  // call to action
83
  $ht_ctc_chat['call_to_action'] = (isset($ht_ctc_pagelevel['call_to_action'])) ? esc_attr($ht_ctc_pagelevel['call_to_action']) : __( esc_attr( $options['call_to_action'] ) , 'click-to-chat-for-whatsapp' );
84
  $ht_ctc_chat['call_to_action'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_chat['call_to_action'], 'Click to Chat for WhatsApp', 'call_to_action' );
@@ -118,9 +122,9 @@ class HT_CTC_Chat {
118
  // analytics
119
  $ht_ctc_os['is_ga_enable'] = 'yes';
120
  $ht_ctc_os['is_fb_pixel'] = 'yes';
 
121
  // show effect
122
  $ht_ctc_os['show_effect'] = '';
123
- $ht_ctc_os['data-attributes'] = '';
124
 
125
  // hooks
126
  $ht_ctc_chat = apply_filters( 'ht_ctc_fh_chat', $ht_ctc_chat );
73
  $ht_ctc_chat['position_mobile'] = $position_mobile;
74
 
75
 
 
 
 
76
  $ht_ctc_chat['number'] = (isset($ht_ctc_pagelevel['number'])) ? esc_attr($ht_ctc_pagelevel['number']) : esc_attr( $options['number'] );
77
  $ht_ctc_chat['number'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_chat['number'], 'Click to Chat for WhatsApp', 'number' );
78
 
79
+ // safe side action .. if number not saved in new method
80
+ if ( '' == $ht_ctc_chat['number'] ) {
81
+ $cc = (isset($options['cc'])) ? esc_attr($options['cc']) : '';
82
+ $num = (isset($options['num'])) ? esc_attr($options['num']) : '';
83
+ $ht_ctc_chat['number'] = $cc.$num;
84
+ }
85
+
86
  // call to action
87
  $ht_ctc_chat['call_to_action'] = (isset($ht_ctc_pagelevel['call_to_action'])) ? esc_attr($ht_ctc_pagelevel['call_to_action']) : __( esc_attr( $options['call_to_action'] ) , 'click-to-chat-for-whatsapp' );
88
  $ht_ctc_chat['call_to_action'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_chat['call_to_action'], 'Click to Chat for WhatsApp', 'call_to_action' );
122
  // analytics
123
  $ht_ctc_os['is_ga_enable'] = 'yes';
124
  $ht_ctc_os['is_fb_pixel'] = 'yes';
125
+ $ht_ctc_os['data-attributes'] = '';
126
  // show effect
127
  $ht_ctc_os['show_effect'] = '';
 
128
 
129
  // hooks
130
  $ht_ctc_chat = apply_filters( 'ht_ctc_fh_chat', $ht_ctc_chat );
new/inc/commons/class-ht-ctc-hooks.php CHANGED
@@ -112,7 +112,7 @@ class HT_CTC_Hooks {
112
  // Animations
113
  $an_type = ( isset( $othersettings['an_type']) ) ? esc_attr( $othersettings['an_type'] ) : 'no-animation';
114
  if ( 'no-animation' !== $an_type ) {
115
- $ht_ctc_os['data-attributes'] = "data-an_type='ht_ctc_an_$an_type' ";
116
  }
117
 
118
  return $ht_ctc_os;
112
  // Animations
113
  $an_type = ( isset( $othersettings['an_type']) ) ? esc_attr( $othersettings['an_type'] ) : 'no-animation';
114
  if ( 'no-animation' !== $an_type ) {
115
+ $ht_ctc_os['data-attributes'] .= "data-an_type='ht_ctc_an_$an_type' ";
116
  }
117
 
118
  return $ht_ctc_os;
new/inc/commons/class-ht-ctc-scripts.php CHANGED
@@ -26,8 +26,8 @@ class HT_CTC_Scripts {
26
  $load_app_js_bottom = apply_filters( 'ht_ctc_fh_load_app_js_bottom', true );
27
 
28
  // js
29
- // $js = 'app.js';
30
- $js = '325.app.js';
31
  $group_js = 'group.js';
32
  $share_js = 'share.js';
33
 
26
  $load_app_js_bottom = apply_filters( 'ht_ctc_fh_load_app_js_bottom', true );
27
 
28
  // js
29
+ $js = 'app.js';
30
+ // $js = '325.app.js';
31
  $group_js = 'group.js';
32
  $share_js = 'share.js';
33
 
new/inc/group/class-ht-ctc-group-shortcode.php CHANGED
@@ -142,6 +142,7 @@ class HT_CTC_Group_Shortcode {
142
  // analytics
143
  $ht_ctc_os['is_ga_enable'] = 'yes';
144
  $ht_ctc_os['is_fb_pixel'] = 'yes';
 
145
 
146
  // Hooks
147
  $ht_ctc_os = apply_filters( 'ht_ctc_fh_os', $ht_ctc_os );
142
  // analytics
143
  $ht_ctc_os['is_ga_enable'] = 'yes';
144
  $ht_ctc_os['is_fb_pixel'] = 'yes';
145
+ $ht_ctc_os['data-attributes'] = '';
146
 
147
  // Hooks
148
  $ht_ctc_os = apply_filters( 'ht_ctc_fh_os', $ht_ctc_os );
new/inc/group/class-ht-ctc-group.php CHANGED
@@ -84,9 +84,9 @@ class HT_CTC_Group {
84
  // analytics
85
  $ht_ctc_os['is_ga_enable'] = 'yes';
86
  $ht_ctc_os['is_fb_pixel'] = 'yes';
 
87
  // show effect
88
  $ht_ctc_os['show_effect'] = '';
89
- $ht_ctc_os['data-attributes'] = '';
90
 
91
  // hooks
92
  $ht_ctc_group = apply_filters( 'ht_ctc_fh_group', $ht_ctc_group );
84
  // analytics
85
  $ht_ctc_os['is_ga_enable'] = 'yes';
86
  $ht_ctc_os['is_fb_pixel'] = 'yes';
87
+ $ht_ctc_os['data-attributes'] = '';
88
  // show effect
89
  $ht_ctc_os['show_effect'] = '';
 
90
 
91
  // hooks
92
  $ht_ctc_group = apply_filters( 'ht_ctc_fh_group', $ht_ctc_group );
new/inc/share/class-ht-ctc-share-shortcode.php CHANGED
@@ -163,6 +163,7 @@ class HT_CTC_Share_Shortcode {
163
  // analytics
164
  $ht_ctc_os['is_ga_enable'] = 'yes';
165
  $ht_ctc_os['is_fb_pixel'] = 'yes';
 
166
 
167
  // Hooks
168
  $ht_ctc_os = apply_filters( 'ht_ctc_fh_os', $ht_ctc_os );
163
  // analytics
164
  $ht_ctc_os['is_ga_enable'] = 'yes';
165
  $ht_ctc_os['is_fb_pixel'] = 'yes';
166
+ $ht_ctc_os['data-attributes'] = '';
167
 
168
  // Hooks
169
  $ht_ctc_os = apply_filters( 'ht_ctc_fh_os', $ht_ctc_os );
new/inc/share/class-ht-ctc-share.php CHANGED
@@ -99,9 +99,9 @@ class HT_CTC_Share {
99
  // analytics
100
  $ht_ctc_os['is_ga_enable'] = 'yes';
101
  $ht_ctc_os['is_fb_pixel'] = 'yes';
 
102
  // show effect
103
  $ht_ctc_os['show_effect'] = '';
104
- $ht_ctc_os['data-attributes'] = '';
105
 
106
  // hooks
107
  $ht_ctc_share = apply_filters( 'ht_ctc_fh_share', $ht_ctc_share );
99
  // analytics
100
  $ht_ctc_os['is_ga_enable'] = 'yes';
101
  $ht_ctc_os['is_fb_pixel'] = 'yes';
102
+ $ht_ctc_os['data-attributes'] = '';
103
  // show effect
104
  $ht_ctc_os['show_effect'] = '';
 
105
 
106
  // hooks
107
  $ht_ctc_share = apply_filters( 'ht_ctc_fh_share', $ht_ctc_share );
prev/admin/class-ccw-admin-page-customize-styles.php CHANGED
@@ -62,7 +62,7 @@ class CCW_Admin_Page_Customize_Styles {
62
  <br>
63
  <p class="description">For customizable button, please select style-8</p>
64
  <br><br>
65
- <p class="description">changes made in style-1 since <a target="_blank" href="https://holithemes.com/whatsapp-chat/v-1-7">Version-1.7</a></p>
66
  </div>
67
 
68
  </div>
@@ -587,7 +587,7 @@ class CCW_Admin_Page_Customize_Styles {
587
  <div class="input-field col s12">
588
  <input name="ccw_options_cs[s99_desktop_img]" value="<?php echo esc_attr( $ccw_style_99_own_img['s99_desktop_img'] ) ?>" id="img-url-desktop" type="text" class="validate">
589
  <label for="img-url-desktop"><?php _e( 'Image URL - Desktop', 'click-to-chat-for-whatsapp' ); ?> </label>
590
- <p class="description">e.g. https://example.com/img.png - <a target="_blank" href="https://holithemes.com/whatsapp-chat/style-99-own-image/">own image - style 99</a> </p>
591
  <p class="description">Image / GIF </p>
592
  </div>
593
  </div>
@@ -596,13 +596,13 @@ class CCW_Admin_Page_Customize_Styles {
596
  <div class="input-field col s12">
597
  <input name="ccw_options_cs[s99_mobile_img]" value="<?php echo esc_attr( $ccw_style_99_own_img['s99_mobile_img'] ) ?>" id="img-url-mobile" type="text" class="validate">
598
  <label for="img-url-mobile"><?php _e( 'Image URL - Mobile', 'click-to-chat-for-whatsapp' ); ?> </label>
599
- <p class="description">e.g. https://example.com/img.png - <a target="_blank" href="https://holithemes.com/whatsapp-chat/style-99-own-image/">own image - style 99</a> </p>
600
  </div>
601
  </div>
602
 
603
  <br><hr><br>
604
  <p class="description">Instead of changing the Heigth, Width - Add Image with pefect size, and keep this field blank </p>
605
- <p class="description">If not then add only height or width for better result ( Heigth preferred ) <a target="_blank" href="https://holithemes.com/whatsapp-chat/style-99-own-image/">own image - style 99</a> </p>
606
  <br>
607
 
608
  <div class="row">
@@ -674,7 +674,7 @@ class CCW_Admin_Page_Customize_Styles {
674
  <div class="collapsible-body">
675
 
676
  <p class="description"> alpha stage, things may change, may not work as like this in next releases, </br> may need to reconfigure also .. </p>
677
- <p class="description"> Animations for floating styles - <a target="_blank" href="https://holithemes.com/whatsapp-chat/animations/">more info</a> </p>
678
  <br><br>
679
 
680
 
@@ -742,7 +742,7 @@ class CCW_Admin_Page_Customize_Styles {
742
  <div class="collapsible-body">
743
 
744
  <p class="description"> Enable Google Analytics at plugin home settings - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat' ); ?>">Click to Chat</a> </p>
745
- <p class="description"> Event Values - <a target="_blank" href="https://holithemes.com/whatsapp-chat/google-analytics/"><?php _e( 'more info' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
746
  <br><br>
747
 
748
  <!-- Category Name -->
@@ -802,7 +802,7 @@ class CCW_Admin_Page_Customize_Styles {
802
  <div class="collapsible-body">
803
 
804
  <p class="description"> Enable Facebook Analytics at plugin home settings - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat' ); ?>"><?php _e( 'Click to Chat' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
805
- <p class="description"> Event Parameters - <a target="_blank" href="https://holithemes.com/whatsapp-chat/facebook-analytics/"><?php _e( 'more info' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
806
  <br><br>
807
 
808
  <!-- Event Name -->
62
  <br>
63
  <p class="description">For customizable button, please select style-8</p>
64
  <br><br>
65
+ <p class="description">changes made in style-1 since <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/v-1-7">Version-1.7</a></p>
66
  </div>
67
 
68
  </div>
587
  <div class="input-field col s12">
588
  <input name="ccw_options_cs[s99_desktop_img]" value="<?php echo esc_attr( $ccw_style_99_own_img['s99_desktop_img'] ) ?>" id="img-url-desktop" type="text" class="validate">
589
  <label for="img-url-desktop"><?php _e( 'Image URL - Desktop', 'click-to-chat-for-whatsapp' ); ?> </label>
590
+ <p class="description">e.g. https://example.com/img.png - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/style-99-own-image/">own image - style 99</a> </p>
591
  <p class="description">Image / GIF </p>
592
  </div>
593
  </div>
596
  <div class="input-field col s12">
597
  <input name="ccw_options_cs[s99_mobile_img]" value="<?php echo esc_attr( $ccw_style_99_own_img['s99_mobile_img'] ) ?>" id="img-url-mobile" type="text" class="validate">
598
  <label for="img-url-mobile"><?php _e( 'Image URL - Mobile', 'click-to-chat-for-whatsapp' ); ?> </label>
599
+ <p class="description">e.g. https://example.com/img.png - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/style-99-own-image/">own image - style 99</a> </p>
600
  </div>
601
  </div>
602
 
603
  <br><hr><br>
604
  <p class="description">Instead of changing the Heigth, Width - Add Image with pefect size, and keep this field blank </p>
605
+ <p class="description">If not then add only height or width for better result ( Heigth preferred ) <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/style-99-own-image/">own image - style 99</a> </p>
606
  <br>
607
 
608
  <div class="row">
674
  <div class="collapsible-body">
675
 
676
  <p class="description"> alpha stage, things may change, may not work as like this in next releases, </br> may need to reconfigure also .. </p>
677
+ <p class="description"> Animations for floating styles - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/animations/">more info</a> </p>
678
  <br><br>
679
 
680
 
742
  <div class="collapsible-body">
743
 
744
  <p class="description"> Enable Google Analytics at plugin home settings - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat' ); ?>">Click to Chat</a> </p>
745
+ <p class="description"> Event Values - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/google-analytics/"><?php _e( 'more info' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
746
  <br><br>
747
 
748
  <!-- Category Name -->
802
  <div class="collapsible-body">
803
 
804
  <p class="description"> Enable Facebook Analytics at plugin home settings - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat' ); ?>"><?php _e( 'Click to Chat' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
805
+ <p class="description"> Event Parameters - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/facebook-analytics/"><?php _e( 'more info' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
806
  <br><br>
807
 
808
  <!-- Event Name -->
prev/admin/class-ccw-admin-page.php CHANGED
@@ -131,7 +131,7 @@ class CCW_Admin_Page {
131
  <option value="2" <?php echo esc_attr( $ccw_enable_sc['enable_sc'] ) == 2 ? 'SELECTED' : ''; ?> >Yes</option>
132
  </select>
133
  <label>enable ShortCodes</label>
134
- <p class="description">If Selected - No - then Hides Shortcodes and its syntax - <a target="_blank" href="https://holithemes.com/whatsapp-chat/enable-disable-styles/">more info</a> </p>
135
  </div>
136
  </div>
137
  <?php
@@ -148,7 +148,7 @@ class CCW_Admin_Page {
148
  <option value="group_chat" <?php echo esc_attr( $ccw_return_type['return_type'] ) == 'group_chat' ? 'SELECTED' : ''; ?> >Group chat - Invite</option>
149
  </select>
150
  <label>Default return type - Chat or Group Chat Invite</label>
151
- <p class="description">Default return type for Floating Style, shortcodes. But for shortcodes can change using shortcode attributes - <a target="_blank" href="https://holithemes.com/whatsapp-chat/return-type-chat-or-group-chat/">more info</a> </p>
152
  </div>
153
  </div>
154
  <?php
@@ -176,7 +176,7 @@ class CCW_Admin_Page {
176
  <option value="0" <?php echo $style_value == 0 ? 'SELECTED' : ''; ?> >Hide on Desktop Devices</option>
177
  </select>
178
  <label>Select Style for Desktop</label>
179
- <p class="description"> - <a target="_blank" href="https://holithemes.com/whatsapp-chat/styles/">List of Styles</a> </p>
180
  <p class="description">These styles are customizable - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles' ); ?>">Customize Styles</a> </p>
181
 
182
  </div>
@@ -218,7 +218,7 @@ class CCW_Admin_Page {
218
  <div class="input-field col s12">
219
  <input name="ccw_options[number]" value="<?php echo esc_attr( $ccw_number['number'] ) ?>" id="whatsapp_number" type="text" class="input-margin">
220
  <label for="whatsapp_number">Enter whatsapp number </label>
221
- <p class="description">Enter whatsapp number with country code ( e.g. 916123456789 ) please dont include +, ( here in e.g. 91 is country code 6123456789 is mobile number - <a target="_blank" href="https://holithemes.com/whatsapp-chat/whatsapp-number/">more info</a> ) </p>
222
  </div>
223
  </div>
224
  <?php
@@ -233,7 +233,7 @@ class CCW_Admin_Page {
233
  <div class="input-field col s12">
234
  <input name="ccw_options[initial]" value="<?php echo esc_attr( $ccw_initial['initial'] ) ?>" id="whatsapp_initial" type="text" class="input-margin">
235
  <label for="whatsapp_initial">Initial Message</label>
236
- <p class="description">Initial message ( pre-filled ), placeholder {{url}} to add webpage url - <a target="_blank" href="https://holithemes.com/whatsapp-chat/pre-filled-message/">more info</a> </p>
237
  </div>
238
  </div>
239
  <?php
@@ -248,7 +248,7 @@ class CCW_Admin_Page {
248
  <div class="input-field col s12">
249
  <input name="ccw_options[group_id]" value="<?php echo esc_attr( $ccw_group_id['group_id'] ) ?>" id="whatsapp_group_id" type="text" class="input-margin">
250
  <label for="whatsapp_group_id">whatsapp group ID Extenstion </label>
251
- <p class="description">Enter whatsapp Group Id - E.g. 9EHLsEsOeJk6AVtE8AvXiA - <a target="_blank" href="https://holithemes.com/whatsapp-chat/find-whatsapp-group-id/">more info</a> </p>
252
  </div>
253
  </div>
254
  <?php
@@ -268,7 +268,7 @@ class CCW_Admin_Page {
268
  <option value="4" <?php echo $ccw_position_value == 4 ? 'SELECTED' : ''; ?> >top right</option>
269
  </select>
270
  <label>Fixed position to place</label>
271
- <p class="description">e.g. 10px - please add css units as suffix, e.g. 10px, 10%, 10rem, 10em .. <a target="_blank" href="https://holithemes.com/whatsapp-chat/position-to-place/">more info</a> </p>
272
  </div>
273
  </div>
274
 
@@ -329,7 +329,7 @@ class CCW_Admin_Page {
329
  <div class="input-field col s12">
330
  <input name="ccw_options[input_placeholder]" value="<?php echo esc_attr( $ccw_placeholder['input_placeholder'] ) ?>" id="input_placeholder" type="text" class="input-margin">
331
  <label for="input_placeholder">placeholder value</label>
332
- <p class="description"> - <a target="_blank" href="https://holithemes.com/whatsapp-chat/text-to-display/">more info</a> </p>
333
  </div>
334
  </div>
335
  <?php
@@ -362,7 +362,7 @@ class CCW_Admin_Page {
362
  }
363
  ?>
364
 
365
- <p class="description"> If Google Analytics is installed - creates an Event at there - <a target="_blank" href="https://holithemes.com/whatsapp-chat/google-analytics/">more info</a> </p>
366
  <p class="description"> Customize Event Values - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles#ga-analytics' ); ?>"><?php _e( 'Customize Styles' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
367
  <p class="description"> Using - <a target="_blank" href="https://holithemes.com/google-analytics-for-click-to-chat-for-whatsapp-plugin/">Google Tag Manager</a> </p>
368
  <?php
@@ -394,7 +394,7 @@ class CCW_Admin_Page {
394
  <?php
395
  }
396
  ?>
397
- <p class="description"> If Facebook Analytics is installed - creates an Event at there - <a target="_blank" href="https://holithemes.com/whatsapp-chat/facebook-analytics/">more info</a> </p>
398
  <p class="description"> Customize Event Values - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles#fb-analytics' ); ?>">Customize Styles</a> </p>
399
  <?php
400
  }
@@ -559,7 +559,7 @@ class CCW_Admin_Page {
559
  <?php
560
  }
561
  ?>
562
- <p class="description">Check to hide - Hide - Styles - based on type of the page <a target="_blank" href="https://holithemes.com/whatsapp-chat/show-hide-styles-based-on-type-of-the-page/">more info</a> </p>
563
  <?php
564
  }
565
 
@@ -571,7 +571,7 @@ class CCW_Admin_Page {
571
  <div class="input-field col s12">
572
  <input name="ccw_options[list_hideon_pages]" value="<?php echo esc_attr( $ccw_list_id_tohide['list_hideon_pages'] ) ?>" id="ccw_list_id_tohide" type="text" class="input-margin">
573
  <label for="ccw_list_id_tohide">Id's list to Hide - add ',' after each id </label>
574
- <p class="description"> Add Post, Pages, Media - ID's to hide, Add multiple id's separate with a comma ( , ) - <a target="_blank" href="https://holithemes.com/whatsapp-chat/show-hide-styles-based-on-id/">more info</a> </p>
575
  </div>
576
  </div>
577
  <?php
@@ -585,7 +585,7 @@ class CCW_Admin_Page {
585
  <div class="input-field col s12">
586
  <input name="ccw_options[list_hideon_cat]" value="<?php echo esc_attr( $ccw_list_cat_tohide['list_hideon_cat'] ) ?>" id="ccw_list_cat_tohide" type="text" class="input-margin">
587
  <label for="ccw_list_cat_tohide">Category name's to Hide - add ',' after each category name </label>
588
- <p class="description">Category name's to hide, Add multiple Categories separate with a comma ( , ) - <a target="_blank" href="https://holithemes.com/whatsapp-chat/hide-styles-based-on-category/">more info</a> </p>
589
  </div>
590
  </div>
591
  <?php
@@ -606,7 +606,7 @@ class CCW_Admin_Page {
606
  $shortcode_list .= $key . ', ';
607
  }
608
  ?>
609
- <p class="description"> Default values is 'chat', can customize shortcode name - <a target="_blank" href="https://holithemes.com/whatsapp-chat/change-shortcode-name/">more info</a> </p>
610
  <!-- <p class="description"> please dont add this already existing shortcode names - <?php echo $shortcode_list ?> </p> -->
611
  <p class="description"> please dont change to already existing shortcode name </p>
612
  </div>
@@ -642,7 +642,7 @@ class CCW_Admin_Page {
642
  <?php
643
  }
644
  ?>
645
- <p class="description"> check this only if an issue with some cache plugin - api.whatsapp, web.whatsapp - <a target="_blank" href="https://holithemes.com/whatsapp-chat/app-first/">more info</a> </p>
646
  <?php
647
  }
648
 
131
  <option value="2" <?php echo esc_attr( $ccw_enable_sc['enable_sc'] ) == 2 ? 'SELECTED' : ''; ?> >Yes</option>
132
  </select>
133
  <label>enable ShortCodes</label>
134
+ <p class="description">If Selected - No - then Hides Shortcodes and its syntax - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/enable-disable-styles/">more info</a> </p>
135
  </div>
136
  </div>
137
  <?php
148
  <option value="group_chat" <?php echo esc_attr( $ccw_return_type['return_type'] ) == 'group_chat' ? 'SELECTED' : ''; ?> >Group chat - Invite</option>
149
  </select>
150
  <label>Default return type - Chat or Group Chat Invite</label>
151
+ <p class="description">Default return type for Floating Style, shortcodes. But for shortcodes can change using shortcode attributes - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/return-type-chat-or-group-chat/">more info</a> </p>
152
  </div>
153
  </div>
154
  <?php
176
  <option value="0" <?php echo $style_value == 0 ? 'SELECTED' : ''; ?> >Hide on Desktop Devices</option>
177
  </select>
178
  <label>Select Style for Desktop</label>
179
+ <p class="description"> - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/styles/">List of Styles</a> </p>
180
  <p class="description">These styles are customizable - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles' ); ?>">Customize Styles</a> </p>
181
 
182
  </div>
218
  <div class="input-field col s12">
219
  <input name="ccw_options[number]" value="<?php echo esc_attr( $ccw_number['number'] ) ?>" id="whatsapp_number" type="text" class="input-margin">
220
  <label for="whatsapp_number">Enter whatsapp number </label>
221
+ <p class="description">Enter whatsapp number with country code ( e.g. 916123456789 ) please dont include +, ( here in e.g. 91 is country code 6123456789 is mobile number - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/whatsapp-number/">more info</a> ) </p>
222
  </div>
223
  </div>
224
  <?php
233
  <div class="input-field col s12">
234
  <input name="ccw_options[initial]" value="<?php echo esc_attr( $ccw_initial['initial'] ) ?>" id="whatsapp_initial" type="text" class="input-margin">
235
  <label for="whatsapp_initial">Initial Message</label>
236
+ <p class="description">Initial message ( pre-filled ), placeholder {{url}} to add webpage url - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/pre-filled-message/">more info</a> </p>
237
  </div>
238
  </div>
239
  <?php
248
  <div class="input-field col s12">
249
  <input name="ccw_options[group_id]" value="<?php echo esc_attr( $ccw_group_id['group_id'] ) ?>" id="whatsapp_group_id" type="text" class="input-margin">
250
  <label for="whatsapp_group_id">whatsapp group ID Extenstion </label>
251
+ <p class="description">Enter whatsapp Group Id - E.g. 9EHLsEsOeJk6AVtE8AvXiA - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/find-whatsapp-group-id/">more info</a> </p>
252
  </div>
253
  </div>
254
  <?php
268
  <option value="4" <?php echo $ccw_position_value == 4 ? 'SELECTED' : ''; ?> >top right</option>
269
  </select>
270
  <label>Fixed position to place</label>
271
+ <p class="description">e.g. 10px - please add css units as suffix, e.g. 10px, 10%, 10rem, 10em .. <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/position-to-place/">more info</a> </p>
272
  </div>
273
  </div>
274
 
329
  <div class="input-field col s12">
330
  <input name="ccw_options[input_placeholder]" value="<?php echo esc_attr( $ccw_placeholder['input_placeholder'] ) ?>" id="input_placeholder" type="text" class="input-margin">
331
  <label for="input_placeholder">placeholder value</label>
332
+ <p class="description"> - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/text-to-display/">more info</a> </p>
333
  </div>
334
  </div>
335
  <?php
362
  }
363
  ?>
364
 
365
+ <p class="description"> If Google Analytics is installed - creates an Event at there - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/google-analytics/">more info</a> </p>
366
  <p class="description"> Customize Event Values - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles#ga-analytics' ); ?>"><?php _e( 'Customize Styles' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
367
  <p class="description"> Using - <a target="_blank" href="https://holithemes.com/google-analytics-for-click-to-chat-for-whatsapp-plugin/">Google Tag Manager</a> </p>
368
  <?php
394
  <?php
395
  }
396
  ?>
397
+ <p class="description"> If Facebook Analytics is installed - creates an Event at there - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/facebook-analytics/">more info</a> </p>
398
  <p class="description"> Customize Event Values - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles#fb-analytics' ); ?>">Customize Styles</a> </p>
399
  <?php
400
  }
559
  <?php
560
  }
561
  ?>
562
+ <p class="description">Check to hide - Hide - Styles - based on type of the page <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/show-hide-styles-based-on-type-of-the-page/">more info</a> </p>
563
  <?php
564
  }
565
 
571
  <div class="input-field col s12">
572
  <input name="ccw_options[list_hideon_pages]" value="<?php echo esc_attr( $ccw_list_id_tohide['list_hideon_pages'] ) ?>" id="ccw_list_id_tohide" type="text" class="input-margin">
573
  <label for="ccw_list_id_tohide">Id's list to Hide - add ',' after each id </label>
574
+ <p class="description"> Add Post, Pages, Media - ID's to hide, Add multiple id's separate with a comma ( , ) - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/show-hide-styles-based-on-id/">more info</a> </p>
575
  </div>
576
  </div>
577
  <?php
585
  <div class="input-field col s12">
586
  <input name="ccw_options[list_hideon_cat]" value="<?php echo esc_attr( $ccw_list_cat_tohide['list_hideon_cat'] ) ?>" id="ccw_list_cat_tohide" type="text" class="input-margin">
587
  <label for="ccw_list_cat_tohide">Category name's to Hide - add ',' after each category name </label>
588
+ <p class="description">Category name's to hide, Add multiple Categories separate with a comma ( , ) - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/hide-styles-based-on-category/">more info</a> </p>
589
  </div>
590
  </div>
591
  <?php
606
  $shortcode_list .= $key . ', ';
607
  }
608
  ?>
609
+ <p class="description"> Default values is 'chat', can customize shortcode name - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/change-shortcode-name/">more info</a> </p>
610
  <!-- <p class="description"> please dont add this already existing shortcode names - <?php echo $shortcode_list ?> </p> -->
611
  <p class="description"> please dont change to already existing shortcode name </p>
612
  </div>
642
  <?php
643
  }
644
  ?>
645
+ <p class="description"> check this only if an issue with some cache plugin - api.whatsapp, web.whatsapp - <a target="_blank" href="https://holithemes.com/plugins/whatsapp-chat/app-first/">more info</a> </p>
646
  <?php
647
  }
648
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Click to Chat ===
2
  Requires at least: 4.6
3
- Tested up to: 5.6.1
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
- Stable tag: 3.2.6
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, social chat, whatsapp wordpress, whatsapp floating button, whatsapp icon, holithemes
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -397,6 +397,10 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
397
 
398
  == Changelog ==
399
 
 
 
 
 
400
  = 3.2.6 =
401
  * Enhancement: AMP Compatibility
402
  * Fix: Shortcode prefilled, call to action for WooCommerce single product pages
1
  === Click to Chat ===
2
  Requires at least: 4.6
3
+ Tested up to: 5.6.2
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
+ Stable tag: 3.2.7
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, social chat, whatsapp wordpress, whatsapp floating button, whatsapp icon, holithemes
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
397
 
398
  == Changelog ==
399
 
400
+ = 3.2.7 =
401
+ * Enhancement: WhatsApp Number field. (country code and Number)
402
+ * Enhancement: Change Settings at page level. (Click to Chat - Meta box)
403
+
404
  = 3.2.6 =
405
  * Enhancement: AMP Compatibility
406
  * Fix: Shortcode prefilled, call to action for WooCommerce single product pages