Click to Chat for WhatsApp Chat - Version 3.16

Version Description

  • Enchantment: Shortcodes
  • PRO: Greetings Multi Agent
Download this release

Release Info

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

Code changes from version 3.15 to 3.16

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.15
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.15' );
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.16
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.16' );
21
  }
22
 
23
  // define HT_CTC_PLUGIN_FILE
new/admin/admin_commons/admin-sidebar-content.php CHANGED
@@ -40,6 +40,8 @@ $othersettings = get_option('ht_ctc_othersettings');
40
  <div class="collapsible-body">
41
  <p class="description">Random Numbers</p>
42
  <p class="description">Form Filling</p>
 
 
43
  <p class="description">Webhooks - dynamic variables</p>
44
  <p class="description">Google Ads Conversion</p>
45
  <p class="description">Business Hours</p>
40
  <div class="collapsible-body">
41
  <p class="description">Random Numbers</p>
42
  <p class="description">Form Filling</p>
43
+ <p class="description">Multi Agent</p>
44
+ <p class="description">&emsp;Hide or display agent with next available time</p>
45
  <p class="description">Webhooks - dynamic variables</p>
46
  <p class="description">Google Ads Conversion</p>
47
  <p class="description">Business Hours</p>
new/admin/admin_commons/class-ht-ctc-admin-hooks.php CHANGED
@@ -175,6 +175,9 @@ class HT_CTC_Admin_Others {
175
 
176
  }
177
 
 
 
 
178
  }
179
 
180
  function ifnumberblank() {
@@ -207,7 +210,7 @@ class HT_CTC_Admin_Others {
207
  <div class="notice notice-info is-dismissible ht-ctc-notice-pro-banner" data-db="pro_banner" style="display:flex; flex-direction:column; padding:14px; border-radius:5px;">
208
  <p style="margin:0; font-size:1.4rem; color:#1d2327; font-weight:600;">Click to Chat - PRO</p>
209
  <p style="margin:0 0 2px;">
210
- Random Number, <strong>Form filling</strong>, Webhooks, Business hours, Display based on time range, days in a week, time dealy, scroll delay, login status and much more.
211
  </p>
212
  <p>
213
  <a class="button button-primary" style="padding:2px 15px;" href="https://holithemes.com/plugins/click-to-chat/pricing/" target="_blank">Buy Now</a>
175
 
176
  }
177
 
178
+ // add_action('admin_notices', array( $this, 'pro_notice') );
179
+ // add_action('admin_footer', array( $this, 'admin_pro_notice_scripts') );
180
+
181
  }
182
 
183
  function ifnumberblank() {
210
  <div class="notice notice-info is-dismissible ht-ctc-notice-pro-banner" data-db="pro_banner" style="display:flex; flex-direction:column; padding:14px; border-radius:5px;">
211
  <p style="margin:0; font-size:1.4rem; color:#1d2327; font-weight:600;">Click to Chat - PRO</p>
212
  <p style="margin:0 0 2px;">
213
+ Random Number, <strong>Form filling</strong>, <strong>Multi Agent</strong>, Webhooks, Business hours, Display based on time range, days in a week, time dealy, scroll delay, login status and much more.
214
  </p>
215
  <p>
216
  <a class="button button-primary" style="padding:2px 15px;" href="https://holithemes.com/plugins/click-to-chat/pricing/" target="_blank">Buy Now</a>
new/admin/class-ht-ctc-admin-greetings-page.php CHANGED
@@ -118,7 +118,7 @@ class HT_CTC_Admin_Greetings {
118
  'description' => "",
119
  'list_cb' => 'greetings_template',
120
  'parent_class' => 'pr_greetings_template',
121
- 'description' => "<a href='https://holithemes.com/plugins/click-to-chat/greetings/' target='_blank'>Greetings</a> | <a href='https://holithemes.com/plugins/click-to-chat/greetings-1/' target='_blank'>Greetings-1</a> | <a href='https://holithemes.com/plugins/click-to-chat/greetings-2/' target='_blank'>Greetings-2</a> | <a href='https://holithemes.com/plugins/click-to-chat/greetings-form/' target='_blank'>Greetings - Form Filling</a> ",
122
  ],
123
  [
124
  'template' => 'collapsible_start',
@@ -427,6 +427,9 @@ class HT_CTC_Admin_Greetings {
427
  <div class="collapsible-header"><?php _e( 'PRO', 'click-to-chat-for-whatsapp' ); ?></div>
428
  <div class="collapsible-body">
429
  <p class="description">Greetings - Form filling</p>
 
 
 
430
  <p class="description">Actions: Time, Scroll, Viewport</p>
431
  <p class="description">Greetings page level settings</p>
432
  <p class="description" style="text-align: center; position:sticky; bottom:2px; margin-top:20px;"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/pricing/" class="waves-effect waves-light btn" style="width: 100%;">PRO Version</a></p>
@@ -515,11 +518,12 @@ class HT_CTC_Admin_Greetings {
515
  ?>
516
  <div class="ctc_greetings_settings ctc_greetings_notes">
517
  <p class="description">
518
- <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/greetings-actions/">Actions</a>: Displays Greetings when
519
  </p>
520
  <p class="description">
521
- <strong>Click</strong>: Clicked on any element with Class name: 'ctc_greetings' <br>
522
- <strong>Viewport</strong>: an element is in viewport(25% margin) with Class name: 'ctc_greetings_now' [PRO]
 
523
  </p>
524
 
525
  <?php
@@ -529,6 +533,7 @@ class HT_CTC_Admin_Greetings {
529
  <p class="description"><strong>PRO</strong>:</p>
530
  <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/greetings-actions/">Actions</a>: Time, Scroll, Click, Viewport</p>
531
  <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/greetings-form/">Greetings Form</a>: Form filling before initiating the chat</p>
 
532
  <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/#greetings">Greetings Page level settings</a>: Change Greetings content for any post</p>
533
  <br>
534
  <p class="description"><a href="https://holithemes.com/plugins/click-to-chat/pricing/">PRO Version</a></p>
118
  'description' => "",
119
  'list_cb' => 'greetings_template',
120
  'parent_class' => 'pr_greetings_template',
121
+ 'description' => "<a href='https://holithemes.com/plugins/click-to-chat/greetings/' target='_blank'>Greetings</a> | <a href='https://holithemes.com/plugins/click-to-chat/greetings-1/' target='_blank'>Greetings-1</a> | <a href='https://holithemes.com/plugins/click-to-chat/greetings-2/' target='_blank'>Greetings-2</a> | <a href='https://holithemes.com/plugins/click-to-chat/greetings-form/' target='_blank'>Form Filling</a> | <a href='https://holithemes.com/plugins/click-to-chat/multi-agent/' target='_blank'>Multi Agent</a>",
122
  ],
123
  [
124
  'template' => 'collapsible_start',
427
  <div class="collapsible-header"><?php _e( 'PRO', 'click-to-chat-for-whatsapp' ); ?></div>
428
  <div class="collapsible-body">
429
  <p class="description">Greetings - Form filling</p>
430
+ <p class="description">Greetings - Multi Agent</p>
431
+ <p class="description">&emsp;with different time ranges</p>
432
+ <p class="description">&emsp;Hide or display agent with next available time</p>
433
  <p class="description">Actions: Time, Scroll, Viewport</p>
434
  <p class="description">Greetings page level settings</p>
435
  <p class="description" style="text-align: center; position:sticky; bottom:2px; margin-top:20px;"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/pricing/" class="waves-effect waves-light btn" style="width: 100%;">PRO Version</a></p>
518
  ?>
519
  <div class="ctc_greetings_settings ctc_greetings_notes">
520
  <p class="description">
521
+ <a href='https://holithemes.com/plugins/click-to-chat/greetings/' target='_blank'>Greetings</a>: <a href='https://holithemes.com/plugins/click-to-chat/greetings-1/' target='_blank'>Greetings-1</a>, <a href='https://holithemes.com/plugins/click-to-chat/greetings-2/' target='_blank'>Greetings-2</a>, <a href='https://holithemes.com/plugins/click-to-chat/greetings-form/' target='_blank'>Form Filling</a>, <a href='https://holithemes.com/plugins/click-to-chat/multi-agent/' target='_blank'>Multi Agent</a>
522
  </p>
523
  <p class="description">
524
+ <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/greetings-actions/">Actions</a>: Displays Greetings based on <br>
525
+ &emsp;<strong>Click</strong>: Clicked on any element with Class name: 'ctc_greetings' <br>
526
+ &emsp;<strong>Viewport</strong>: an element is in viewport(25% margin) with Class name: 'ctc_greetings_now' [PRO]
527
  </p>
528
 
529
  <?php
533
  <p class="description"><strong>PRO</strong>:</p>
534
  <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/greetings-actions/">Actions</a>: Time, Scroll, Click, Viewport</p>
535
  <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/greetings-form/">Greetings Form</a>: Form filling before initiating the chat</p>
536
+ <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/multi-agent/">Multi Agent</a>: Display Multiple agent with different time ranges</p>
537
  <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/#greetings">Greetings Page level settings</a>: Change Greetings content for any post</p>
538
  <br>
539
  <p class="description"><a href="https://holithemes.com/plugins/click-to-chat/pricing/">PRO Version</a></p>
new/admin/class-ht-ctc-admin-main-page.php CHANGED
@@ -307,7 +307,7 @@ class HT_CTC_Admin_Main_Page {
307
 
308
 
309
  ?>
310
- <p class="description"><a target="_blank" href="<?= admin_url( 'admin.php?page=click-to-chat-greetings' ); ?>">Greetings</a></p>
311
  <p class="description"><a target="_blank" href="<?= admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize Styles</a></p>
312
  <p class="description"><a target="_blank" href="<?= admin_url( 'admin.php?page=click-to-chat-other-settings' ); ?>">Other Settings</a></p>
313
  <p class="description"><a target="_blank" href="<?= $woo_link ?>">WooCommerce</a> <?= $woo_text ?></p>
307
 
308
 
309
  ?>
310
+ <p class="description"><a target="_blank" href="<?= admin_url( 'admin.php?page=click-to-chat-greetings' ); ?>">Greetings</a>: Greetings-1, Greetings-2, Form filling(PRO), Multi Agent(PRO)</p>
311
  <p class="description"><a target="_blank" href="<?= admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize Styles</a></p>
312
  <p class="description"><a target="_blank" href="<?= admin_url( 'admin.php?page=click-to-chat-other-settings' ); ?>">Other Settings</a></p>
313
  <p class="description"><a target="_blank" href="<?= $woo_link ?>">WooCommerce</a> <?= $woo_text ?></p>
new/inc/styles-shortcode/sc-style-3_1.php CHANGED
@@ -52,7 +52,7 @@ $o .= '</style>';
52
 
53
  $s3_extend = '';
54
  $s3_extend .= '
55
- <div title="'.$call_to_action.'" class="ctc-analytics ht_ctc_padding" style="'.$s3_extend_css.' display:inline-block;">
56
  '.$style_3_extend_svg.'
57
  </div>
58
  ';
52
 
53
  $s3_extend = '';
54
  $s3_extend .= '
55
+ <div title="'.$call_to_action.'" class="ctc-analytics ht_ctc_padding" style="'.$s3_extend_css.' display:inline-flex;">
56
  '.$style_3_extend_svg.'
57
  </div>
58
  ';
new/inc/styles-shortcode/sc-style-7.php CHANGED
@@ -24,7 +24,7 @@ $s7_cta_font_size = (isset( $s7_options['cta_font_size'])) ? esc_attr( $s7_optio
24
  $s7_cta_font_size = ('' !== $s7_cta_font_size) ? "font-size: $s7_cta_font_size;" : "";
25
 
26
  $s7_n1_styles = "display:inline-flex;justify-content:center;align-items:center;";
27
- $s7_icon_css = "font-size: $s7_icon_size; color: $s7_icon_color; padding: $s7_border_size; background-color: $s7_border_color; border-radius: $s7_border_radius;";
28
 
29
  // Call to action
30
  $s7_cta_order = "1";
24
  $s7_cta_font_size = ('' !== $s7_cta_font_size) ? "font-size: $s7_cta_font_size;" : "";
25
 
26
  $s7_n1_styles = "display:inline-flex;justify-content:center;align-items:center;";
27
+ $s7_icon_css = "display:inline-flex; font-size: $s7_icon_size; color: $s7_icon_color; padding: $s7_border_size; background-color: $s7_border_color; border-radius: $s7_border_radius;";
28
 
29
  // Call to action
30
  $s7_cta_order = "1";
new/inc/styles-shortcode/sc-style-7_1.php CHANGED
@@ -32,7 +32,7 @@ $s7_cta_class = "ht-ctc-cta ";
32
  // hover style is not there in shortcodes..
33
  $s7_n1_styles .= "padding:5px 25px; background-color:$s7_bgcolor;border-radius:25px;";
34
  $s7_cta_css .= "padding: 1px 16px; color: $s7_icon_color; border-radius:10px; margin:0 10px; order: $s7_cta_order; ";
35
- $s7_icon_padding_css .= "";
36
 
37
  // $s7_mouse_hover = "this.style.backgroundColor= '$s7_bgcolor_hover', this.querySelector('.ctc_s_7_1_cta').style.color= '$s7_icon_color_hover', this.querySelector('svg g path').style.fill= '$s7_icon_color_hover' ";
38
  // $s7_mouse_out = "this.style.backgroundColor= '$s7_bgcolor', this.querySelector('.ctc_s_7_1_cta').style.color= '$s7_icon_color', this.querySelector('svg g path').style.fill= '$s7_icon_color' ";
32
  // hover style is not there in shortcodes..
33
  $s7_n1_styles .= "padding:5px 25px; background-color:$s7_bgcolor;border-radius:25px;";
34
  $s7_cta_css .= "padding: 1px 16px; color: $s7_icon_color; border-radius:10px; margin:0 10px; order: $s7_cta_order; ";
35
+ $s7_icon_padding_css .= "display:inline-flex; ";
36
 
37
  // $s7_mouse_hover = "this.style.backgroundColor= '$s7_bgcolor_hover', this.querySelector('.ctc_s_7_1_cta').style.color= '$s7_icon_color_hover', this.querySelector('svg g path').style.fill= '$s7_icon_color_hover' ";
38
  // $s7_mouse_out = "this.style.backgroundColor= '$s7_bgcolor', this.querySelector('.ctc_s_7_1_cta').style.color= '$s7_icon_color', this.querySelector('svg g path').style.fill= '$s7_icon_color' ";
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Click to Chat ===
2
  Requires at least: 4.6
3
- Tested up to: 6.1
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
- Stable tag: 3.15
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp share, WhatsApp WooCommerce, whatsapp wordpress, whatsapp floating button, chat, holithemes
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -64,6 +64,7 @@ Encourage user engagement by displaying the perfect message at the perfect time
64
  * [Greetings-1](https://holithemes.com/plugins/click-to-chat/greetings-1/): Customizable Design
65
  * [Greetings-2](https://holithemes.com/plugins/click-to-chat/greetings-2/): Content Specific Design
66
  * [Greetings-Form](https://holithemes.com/plugins/click-to-chat/greetings-form/): Form Filling before initializing the chat [PRO]
 
67
 
68
  = Greetings Actions =
69
 
@@ -199,6 +200,9 @@ Connect other applications using Integrate, Automation tools like Zapier, IFTTT,
199
  * WooCommerce
200
  * Overwrite greetings template, Content for Single product pages.
201
  * Overwrite settings for Shop, Checkout, and Account pages at page level settings
 
 
 
202
 
203
  [PRO](https://holithemes.com/plugins/click-to-chat/pricing/)
204
 
@@ -519,6 +523,10 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
519
 
520
  == Changelog ==
521
 
 
 
 
 
522
  = 3.15 =
523
  * Fix: Style-7 Extend - shortcode - fontsize settings
524
  * Fix: prefilled message with special characters
1
  === Click to Chat ===
2
  Requires at least: 4.6
3
+ Tested up to: 6.1.1
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
+ Stable tag: 3.16
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp share, WhatsApp WooCommerce, whatsapp wordpress, whatsapp floating button, chat, holithemes
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
64
  * [Greetings-1](https://holithemes.com/plugins/click-to-chat/greetings-1/): Customizable Design
65
  * [Greetings-2](https://holithemes.com/plugins/click-to-chat/greetings-2/): Content Specific Design
66
  * [Greetings-Form](https://holithemes.com/plugins/click-to-chat/greetings-form/): Form Filling before initializing the chat [PRO]
67
+ * [Multi Agent](https://holithemes.com/plugins/click-to-chat/multi-agent): Displays multiple WhatsApp accounts with different time ranges
68
 
69
  = Greetings Actions =
70
 
200
  * WooCommerce
201
  * Overwrite greetings template, Content for Single product pages.
202
  * Overwrite settings for Shop, Checkout, and Account pages at page level settings
203
+ * Multi Agent: Displays multiple WhatsApp chat accounts [NEW]
204
+ * Set Multiple time ranges for each agent
205
+ * Hide or Display agent with next available time
206
 
207
  [PRO](https://holithemes.com/plugins/click-to-chat/pricing/)
208
 
523
 
524
  == Changelog ==
525
 
526
+ = 3.16 =
527
+ * Enchantment: Shortcodes
528
+ * PRO: Greetings [Multi Agent](https://holithemes.com/plugins/click-to-chat/multi-agent)
529
+
530
  = 3.15 =
531
  * Fix: Style-7 Extend - shortcode - fontsize settings
532
  * Fix: prefilled message with special characters