Version Description
- Updated Show/Hide settings
- Fix: Style-7 Background-color on hover issue
Download this release
Release Info
Developer | bhvreddy |
Plugin | Click to Chat for WhatsApp Chat |
Version | 3.2.3 |
Comparing to | |
See all releases |
Code changes from version 3.2.2 to 3.2.3
- click-to-chat.php +2 -2
- new/inc/commons/show-hide.php +19 -8
- new/inc/styles/style-7_1.php +1 -1
- readme.txt +7 -3
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.
|
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.
|
21 |
}
|
22 |
|
23 |
// environment - production, staging, development, test
|
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.3
|
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.3' );
|
21 |
}
|
22 |
|
23 |
// environment - production, staging, development, test
|
new/inc/commons/show-hide.php
CHANGED
@@ -23,19 +23,26 @@ if ( 'show' == $options['show_or_hide'] ) {
|
|
23 |
// in show - default display is no
|
24 |
$display = 'no';
|
25 |
|
26 |
-
$pages_list_toshow = esc_html(
|
27 |
$pages_list_toshow_array = explode(',', $pages_list_toshow);
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
32 |
}
|
33 |
|
|
|
34 |
if ( is_single() && isset( $options['showon_posts'] ) ) {
|
35 |
$display = 'yes';
|
36 |
return;
|
37 |
}
|
38 |
|
|
|
39 |
if ( is_page() && isset( $options['showon_page'] ) ) {
|
40 |
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
41 |
$display = 'yes';
|
@@ -108,12 +115,16 @@ if ( 'show' == $options['show_or_hide'] ) {
|
|
108 |
$display = 'yes';
|
109 |
|
110 |
|
111 |
-
$pages_list_tohide = esc_html(
|
112 |
$pages_list_tohide_array = explode(',', $pages_list_tohide);
|
113 |
|
114 |
-
if( ( is_single() || is_page() )
|
115 |
-
$
|
116 |
-
|
|
|
|
|
|
|
|
|
117 |
}
|
118 |
|
119 |
if ( is_single() && isset( $options['hideon_posts'] ) ) {
|
23 |
// in show - default display is no
|
24 |
$display = 'no';
|
25 |
|
26 |
+
$pages_list_toshow = (isset($options['list_showon_pages'])) ? esc_html($options['list_showon_pages']) : '';
|
27 |
$pages_list_toshow_array = explode(',', $pages_list_toshow);
|
28 |
|
29 |
+
// based on post id's (is_singular maybe better)
|
30 |
+
if( is_single() || is_page() ) {
|
31 |
+
if ( is_array($pages_list_toshow_array) && $pages_list_toshow_array[0] ) {
|
32 |
+
if ( in_array( $this_page_id, $pages_list_toshow_array ) ) {
|
33 |
+
$display = 'yes';
|
34 |
+
return;
|
35 |
+
}
|
36 |
+
}
|
37 |
}
|
38 |
|
39 |
+
// is_single (post type: posts or other, but not pages )
|
40 |
if ( is_single() && isset( $options['showon_posts'] ) ) {
|
41 |
$display = 'yes';
|
42 |
return;
|
43 |
}
|
44 |
|
45 |
+
// post type: page (but not home/front page)
|
46 |
if ( is_page() && isset( $options['showon_page'] ) ) {
|
47 |
if ( ( !is_home() ) && ( !is_front_page() ) ) {
|
48 |
$display = 'yes';
|
115 |
$display = 'yes';
|
116 |
|
117 |
|
118 |
+
$pages_list_tohide = (isset($options['list_hideon_pages'])) ? esc_html($options['list_hideon_pages']) : '';
|
119 |
$pages_list_tohide_array = explode(',', $pages_list_tohide);
|
120 |
|
121 |
+
if( ( is_single() || is_page() ) ) {
|
122 |
+
if( is_array($pages_list_tohide_array) && $pages_list_tohide_array[0] ) {
|
123 |
+
if( in_array( $this_page_id, $pages_list_tohide_array ) ) {
|
124 |
+
$display = 'no';
|
125 |
+
return;
|
126 |
+
}
|
127 |
+
}
|
128 |
}
|
129 |
|
130 |
if ( is_single() && isset( $options['hideon_posts'] ) ) {
|
new/inc/styles/style-7_1.php
CHANGED
@@ -63,7 +63,7 @@ if ( 'hover' == $s7_cta_type ) {
|
|
63 |
$s7_cta_css .= " display: none; order: $s7_cta_order; color: $s7_icon_color; $s7_hover_cta_padding_css margin:0 10px; border-radius: 25px; ";
|
64 |
$s7_cta_class .= " ht-ctc-cta-hover ";
|
65 |
$s7_icon_padding_css .= "padding: $s7_border_size;background-color: $s7_bgcolor;border-radius: 25px; ";
|
66 |
-
$s7_hover_styles = ".ht-ctc.style-7_1:hover .ctc_s_7_icon_padding{background-color:$s7_bgcolor_hover;border-radius: 25px;}";
|
67 |
} elseif ( 'show' == $s7_cta_type ) {
|
68 |
$s7_n1_styles .= "$s7_show_cta_padding_css background-color:$s7_bgcolor;border-radius:25px;";
|
69 |
$s7_cta_css .= "padding: 1px 16px; color: $s7_icon_color; border-radius:10px; margin:0 10px; order: $s7_cta_order; ";
|
63 |
$s7_cta_css .= " display: none; order: $s7_cta_order; color: $s7_icon_color; $s7_hover_cta_padding_css margin:0 10px; border-radius: 25px; ";
|
64 |
$s7_cta_class .= " ht-ctc-cta-hover ";
|
65 |
$s7_icon_padding_css .= "padding: $s7_border_size;background-color: $s7_bgcolor;border-radius: 25px; ";
|
66 |
+
$s7_hover_styles = ".ht-ctc.style-7_1:hover .ctc_s_7_icon_padding, .ht-ctc.style-7_1:hover .ctc_s_7_1{background-color:$s7_bgcolor_hover !important;border-radius: 25px;}.ht-ctc.style-7_1:hover .ctc_s_7_1_cta{color:$s7_icon_color_hover !important;}.ht-ctc.style-7_1:hover svg g path{fill:$s7_icon_color_hover !important;}";
|
67 |
} elseif ( 'show' == $s7_cta_type ) {
|
68 |
$s7_n1_styles .= "$s7_show_cta_padding_css background-color:$s7_bgcolor;border-radius:25px;";
|
69 |
$s7_cta_css .= "padding: 1px 16px; color: $s7_icon_color; border-radius:10px; margin:0 10px; order: $s7_cta_order; ";
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Requires at least: 4.6
|
|
3 |
Tested up to: 5.6
|
4 |
Requires PHP: 5.6
|
5 |
Contributors: holithemes
|
6 |
-
Stable tag: 3.2.
|
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
|
@@ -395,13 +395,17 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
|
|
395 |
|
396 |
== Changelog ==
|
397 |
|
|
|
|
|
|
|
|
|
398 |
= 3.2.2 =
|
399 |
* Font size settings for Call to Action - Style 2, 3, 3 Extend.
|
400 |
* Fix: Facebook Pixel integration for Shortcodes
|
401 |
|
402 |
= 3.2.1 =
|
403 |
-
*
|
404 |
-
*
|
405 |
|
406 |
= 3.2 =
|
407 |
* prefilled message at page level
|
3 |
Tested up to: 5.6
|
4 |
Requires PHP: 5.6
|
5 |
Contributors: holithemes
|
6 |
+
Stable tag: 3.2.3
|
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
|
395 |
|
396 |
== Changelog ==
|
397 |
|
398 |
+
= 3.2.3 =
|
399 |
+
* Updated Show/Hide settings
|
400 |
+
* Fix: Style-7 Background-color on hover issue
|
401 |
+
|
402 |
= 3.2.2 =
|
403 |
* Font size settings for Call to Action - Style 2, 3, 3 Extend.
|
404 |
* Fix: Facebook Pixel integration for Shortcodes
|
405 |
|
406 |
= 3.2.1 =
|
407 |
+
* Updated Share feature variable {url} on loop pages
|
408 |
+
* Fix: Shortcode click action,
|
409 |
|
410 |
= 3.2 =
|
411 |
* prefilled message at page level
|