Click to Chat for WhatsApp Chat - Version 3.9.8

Version Description

  • Enchantment: Admin Greetings page
Download this release

Release Info

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

Code changes from version 3.9.7 to 3.9.8

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.9.7
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.9.7' );
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.9.8
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.9.8' );
21
  }
22
 
23
  // define HT_CTC_PLUGIN_FILE
new/admin/admin_assets/js/greetings.js CHANGED
@@ -7,6 +7,13 @@
7
  try {
8
  greetings_template();
9
  } catch (e) { }
 
 
 
 
 
 
 
10
  }
11
  if (document.querySelector('.ctc-admin-greetings-page') || document.querySelector('.ctc-admin-woo-page')) {
12
  try {
7
  try {
8
  greetings_template();
9
  } catch (e) { }
10
+
11
+ // md - reinstall
12
+ try {
13
+ $('select').formSelect();
14
+ // $('.collapsible').collapsible();
15
+ // $('.modal').modal();
16
+ } catch (e) { }
17
  }
18
  if (document.querySelector('.ctc-admin-greetings-page') || document.querySelector('.ctc-admin-woo-page')) {
19
  try {
new/admin/class-ht-ctc-admin-greetings-page.php CHANGED
@@ -276,8 +276,6 @@ class HT_CTC_Admin_Greetings {
276
  ],
277
  [
278
  'template' => 'collapsible_end',
279
- 'description' => "Currenlty available with 'Greetings-1', 'Greetings-2'",
280
-
281
  ],
282
  [
283
  'title' => __( 'Display', 'click-to-chat-for-whatsapp'),
@@ -537,7 +535,13 @@ class HT_CTC_Admin_Greetings {
537
  wp_die( 'not allowed to modify - please contact admin ' );
538
  }
539
 
540
- $textarea = [];
 
 
 
 
 
 
541
 
542
  $editor = [
543
  'header_content',
@@ -545,10 +549,6 @@ class HT_CTC_Admin_Greetings {
545
  'bottom_content',
546
  'opt_in'
547
  ];
548
-
549
- // formatting api - emoji ..
550
- include_once HT_CTC_PLUGIN_DIR .'new/admin/admin_commons/ht-ctc-admin-formatting.php';
551
-
552
  $editor = apply_filters( 'ht_ctc_fh_greetings_setting_editor_values', $editor );
553
 
554
 
@@ -558,7 +558,7 @@ class HT_CTC_Admin_Greetings {
558
  if( isset( $input[$key] ) ) {
559
 
560
  if ( is_array( $input[$key] ) ) {
561
- $new_input[$key] = map_deep( $input[$key], 'sanitize_text_field' );
562
  } else {
563
  if ( in_array( $key, $editor ) ) {
564
  // editor
276
  ],
277
  [
278
  'template' => 'collapsible_end',
 
 
279
  ],
280
  [
281
  'title' => __( 'Display', 'click-to-chat-for-whatsapp'),
535
  wp_die( 'not allowed to modify - please contact admin ' );
536
  }
537
 
538
+ // formatting api - emoji ..
539
+ include_once HT_CTC_PLUGIN_DIR .'new/admin/admin_commons/ht-ctc-admin-formatting.php';
540
+
541
+ $textarea = [
542
+ 'pre_filled',
543
+ 'woo_pre_filled'
544
+ ];
545
 
546
  $editor = [
547
  'header_content',
549
  'bottom_content',
550
  'opt_in'
551
  ];
 
 
 
 
552
  $editor = apply_filters( 'ht_ctc_fh_greetings_setting_editor_values', $editor );
553
 
554
 
558
  if( isset( $input[$key] ) ) {
559
 
560
  if ( is_array( $input[$key] ) ) {
561
+ $new_input[$key] = map_deep( $input[$key], 'sanitize_textarea_field' );
562
  } else {
563
  if ( in_array( $key, $editor ) ) {
564
  // editor
new/tools/woo/woo-admin/class-ht-ctc-admin-woo-page.php CHANGED
@@ -204,8 +204,7 @@ class HT_CTC_Admin_Woo_Page {
204
 
205
  if ( ! defined( 'HT_CTC_PRO_VERSION' ) ) {
206
  ?>
207
- <!-- todo: docs - greetings docs.. -->
208
- <!-- <p class="description">PRO: <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/woocommerce-single-product-pages/#greetings">Greetings for WooCommerce Single product pages</a></p> -->
209
  <?php
210
  }
211
  ?>
204
 
205
  if ( ! defined( 'HT_CTC_PRO_VERSION' ) ) {
206
  ?>
207
+ <p class="description">PRO: <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/woocommerce-single-product-pages/#greetings">Greetings Settings for WooCommerce Single product pages</a></p>
 
208
  <?php
209
  }
210
  ?>
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Click to Chat ===
2
  Requires at least: 4.6
3
- Tested up to: 6.0.1
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
- Stable tag: 3.9.7
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, WhatsApp WooCommerce, 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
@@ -503,6 +503,9 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
503
 
504
  == Changelog ==
505
 
 
 
 
506
  = 3.9.7 =
507
  * New: opt-in - user consent before initiate the chat
508
  * Enchantment: Greetings Text Editor, can add background color to text.
1
  === Click to Chat ===
2
  Requires at least: 4.6
3
+ Tested up to: 6.0
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
+ Stable tag: 3.9.8
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, WhatsApp WooCommerce, 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
503
 
504
  == Changelog ==
505
 
506
+ = 3.9.8 =
507
+ * Enchantment: Admin Greetings page
508
+
509
  = 3.9.7 =
510
  * New: opt-in - user consent before initiate the chat
511
  * Enchantment: Greetings Text Editor, can add background color to text.