Version Description
- Enchantment: Shortcodes
Download this release
Release Info
Developer | bhvreddy |
Plugin | Click to Chat for WhatsApp Chat |
Version | 3.18.1 |
Comparing to | |
See all releases |
Code changes from version 3.18 to 3.18.1
- click-to-chat.php +2 -2
- new/inc/chat/class-ht-ctc-chat-shortcode.php +13 -13
- new/inc/group/class-ht-ctc-group-shortcode.php +12 -12
- new/inc/share/class-ht-ctc-share-shortcode.php +12 -12
- new/inc/styles-shortcode/sc-style-5.php +3 -3
- new/inc/styles-shortcode/sc-style-8.php +2 -2
- prev/inc/class-ccw-shortcode.php +15 -15
- prev/inc/commons/styles-list-sc/sc-style-1.php +1 -1
- prev/inc/commons/styles-list-sc/sc-style-2.php +5 -5
- prev/inc/commons/styles-list-sc/sc-style-3.php +1 -1
- prev/inc/commons/styles-list-sc/sc-style-4.php +3 -3
- prev/inc/commons/styles-list-sc/sc-style-5.php +3 -3
- prev/inc/commons/styles-list-sc/sc-style-6.php +8 -8
- prev/inc/commons/styles-list-sc/sc-style-7.php +8 -8
- prev/inc/commons/styles-list-sc/sc-style-8.1.php +9 -9
- prev/inc/commons/styles-list-sc/sc-style-8.php +9 -9
- prev/inc/commons/styles-list-sc/sc-style-9.php +1 -1
- prev/inc/commons/styles-list-sc/sc-style-99.php +6 -6
- readme.txt +4 -1
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.18
|
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.18' );
|
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.18.1
|
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.18.1' );
|
21 |
}
|
22 |
|
23 |
// define HT_CTC_PLUGIN_FILE
|
new/inc/chat/class-ht-ctc-chat-shortcode.php
CHANGED
@@ -106,10 +106,10 @@ class HT_CTC_Chat_Shortcode {
|
|
106 |
's8_icon_position' => '', // left, right, hide
|
107 |
|
108 |
), $atts, $shortcode );
|
109 |
-
// use like - '
|
110 |
|
111 |
// number
|
112 |
-
$number = $a["number"];
|
113 |
|
114 |
// if random number feature, this have to modify (ltrim, preg_replace)
|
115 |
// $number = preg_replace('/[^0-9,\s]/', '', $number );
|
@@ -120,14 +120,14 @@ class HT_CTC_Chat_Shortcode {
|
|
120 |
$page_url = get_permalink();
|
121 |
$post_title = esc_html( get_the_title() );
|
122 |
|
123 |
-
$pre_filled = $a["pre_filled"];
|
124 |
$pre_filled = str_replace( array('{{url}}', '{url}', '{{title}}', '{title}', '{{site}}', '{site}' ), array( $page_url, $page_url, $post_title, $post_title, HT_CTC_BLOG_NAME, HT_CTC_BLOG_NAME ), $pre_filled );
|
125 |
|
126 |
|
127 |
// hide on devices
|
128 |
// if 'yes' then hide
|
129 |
-
$hide_mobile = $a["hide_mobile"];
|
130 |
-
$hide_desktop = $a["hide_desktop"];
|
131 |
|
132 |
if( 'yes' == $is_mobile ) {
|
133 |
if ( 'yes' == $hide_mobile ) {
|
@@ -141,11 +141,11 @@ class HT_CTC_Chat_Shortcode {
|
|
141 |
|
142 |
|
143 |
|
144 |
-
$position = $a["position"];
|
145 |
-
$top = $a["top"];
|
146 |
-
$right = $a["right"];
|
147 |
-
$bottom = $a["bottom"];
|
148 |
-
$left = $a["left"];
|
149 |
|
150 |
$css = '';
|
151 |
|
@@ -166,7 +166,7 @@ class HT_CTC_Chat_Shortcode {
|
|
166 |
}
|
167 |
|
168 |
// to hide styles in home, archive, category pages
|
169 |
-
$home = $a["home"];
|
170 |
// $position !== 'fixed' why !== to avoid double time adding display: none ..
|
171 |
if ( 'fixed' !== $position && 'hide' == $home && ( is_home() || is_category() || is_archive() ) ) {
|
172 |
$css .= 'display:none;';
|
@@ -179,10 +179,10 @@ class HT_CTC_Chat_Shortcode {
|
|
179 |
|
180 |
$return_type = "chat";
|
181 |
|
182 |
-
$style = $a["style"];
|
183 |
|
184 |
// call to action
|
185 |
-
$call_to_action = $a["call_to_action"];
|
186 |
|
187 |
if ( '' == $call_to_action ) {
|
188 |
if ( '1' == $style || '4' == $style || '6' == $style || '8' == $style ) {
|
106 |
's8_icon_position' => '', // left, right, hide
|
107 |
|
108 |
), $atts, $shortcode );
|
109 |
+
// use like - '.esc_attr($a["title"]).'
|
110 |
|
111 |
// number
|
112 |
+
$number = esc_attr($a["number"]);
|
113 |
|
114 |
// if random number feature, this have to modify (ltrim, preg_replace)
|
115 |
// $number = preg_replace('/[^0-9,\s]/', '', $number );
|
120 |
$page_url = get_permalink();
|
121 |
$post_title = esc_html( get_the_title() );
|
122 |
|
123 |
+
$pre_filled = esc_attr($a["pre_filled"]);
|
124 |
$pre_filled = str_replace( array('{{url}}', '{url}', '{{title}}', '{title}', '{{site}}', '{site}' ), array( $page_url, $page_url, $post_title, $post_title, HT_CTC_BLOG_NAME, HT_CTC_BLOG_NAME ), $pre_filled );
|
125 |
|
126 |
|
127 |
// hide on devices
|
128 |
// if 'yes' then hide
|
129 |
+
$hide_mobile = esc_attr($a["hide_mobile"]);
|
130 |
+
$hide_desktop = esc_attr($a["hide_desktop"]);
|
131 |
|
132 |
if( 'yes' == $is_mobile ) {
|
133 |
if ( 'yes' == $hide_mobile ) {
|
141 |
|
142 |
|
143 |
|
144 |
+
$position = esc_attr($a["position"]);
|
145 |
+
$top = esc_attr($a["top"]);
|
146 |
+
$right = esc_attr($a["right"]);
|
147 |
+
$bottom = esc_attr($a["bottom"]);
|
148 |
+
$left = esc_attr($a["left"]);
|
149 |
|
150 |
$css = '';
|
151 |
|
166 |
}
|
167 |
|
168 |
// to hide styles in home, archive, category pages
|
169 |
+
$home = esc_attr($a["home"]);
|
170 |
// $position !== 'fixed' why !== to avoid double time adding display: none ..
|
171 |
if ( 'fixed' !== $position && 'hide' == $home && ( is_home() || is_category() || is_archive() ) ) {
|
172 |
$css .= 'display:none;';
|
179 |
|
180 |
$return_type = "chat";
|
181 |
|
182 |
+
$style = esc_attr($a["style"]);
|
183 |
|
184 |
// call to action
|
185 |
+
$call_to_action = esc_attr($a["call_to_action"]);
|
186 |
|
187 |
if ( '' == $call_to_action ) {
|
188 |
if ( '1' == $style || '4' == $style || '6' == $style || '8' == $style ) {
|
new/inc/group/class-ht-ctc-group-shortcode.php
CHANGED
@@ -74,15 +74,15 @@ class HT_CTC_Group_Shortcode {
|
|
74 |
's8_icon_position' => '', // left, right, hide
|
75 |
|
76 |
), $atts, $shortcode );
|
77 |
-
// use like - '
|
78 |
|
79 |
// group_id
|
80 |
-
$group_id = $a["group_id"];
|
81 |
|
82 |
// hide on devices
|
83 |
// if 'yes' then hide
|
84 |
-
$hide_mobile = $a["hide_mobile"];
|
85 |
-
$hide_desktop = $a["hide_desktop"];
|
86 |
|
87 |
if( 'yes' == $is_mobile ) {
|
88 |
if ( 'yes' == $hide_mobile ) {
|
@@ -94,11 +94,11 @@ class HT_CTC_Group_Shortcode {
|
|
94 |
}
|
95 |
}
|
96 |
|
97 |
-
$position = $a["position"];
|
98 |
-
$top = $a["top"];
|
99 |
-
$right = $a["right"];
|
100 |
-
$bottom = $a["bottom"];
|
101 |
-
$left = $a["left"];
|
102 |
|
103 |
$css = '';
|
104 |
|
@@ -119,7 +119,7 @@ class HT_CTC_Group_Shortcode {
|
|
119 |
}
|
120 |
|
121 |
// to hide styles in home page
|
122 |
-
$home = $a["home"];
|
123 |
|
124 |
// $position !== 'fixed' why !== to avoid double time adding display: none ..
|
125 |
if ( 'fixed' !== $position && 'hide' == $home && ( is_home() || is_category() || is_archive() ) ) {
|
@@ -136,9 +136,9 @@ class HT_CTC_Group_Shortcode {
|
|
136 |
$return_type = "group";
|
137 |
|
138 |
// call to action
|
139 |
-
$call_to_action = $a["call_to_action"];
|
140 |
|
141 |
-
$style = $a["style"];
|
142 |
|
143 |
$type = "group-sc";
|
144 |
$class_names = "ht-ctc-sc ht-ctc-sc-group sc-style-$style";
|
74 |
's8_icon_position' => '', // left, right, hide
|
75 |
|
76 |
), $atts, $shortcode );
|
77 |
+
// use like - '.esc_attr($a["title"]).'
|
78 |
|
79 |
// group_id
|
80 |
+
$group_id = esc_attr($a["group_id"]);
|
81 |
|
82 |
// hide on devices
|
83 |
// if 'yes' then hide
|
84 |
+
$hide_mobile = esc_attr($a["hide_mobile"]);
|
85 |
+
$hide_desktop = esc_attr($a["hide_desktop"]);
|
86 |
|
87 |
if( 'yes' == $is_mobile ) {
|
88 |
if ( 'yes' == $hide_mobile ) {
|
94 |
}
|
95 |
}
|
96 |
|
97 |
+
$position = esc_attr($a["position"]);
|
98 |
+
$top = esc_attr($a["top"]);
|
99 |
+
$right = esc_attr($a["right"]);
|
100 |
+
$bottom = esc_attr($a["bottom"]);
|
101 |
+
$left = esc_attr($a["left"]);
|
102 |
|
103 |
$css = '';
|
104 |
|
119 |
}
|
120 |
|
121 |
// to hide styles in home page
|
122 |
+
$home = esc_attr($a["home"]);
|
123 |
|
124 |
// $position !== 'fixed' why !== to avoid double time adding display: none ..
|
125 |
if ( 'fixed' !== $position && 'hide' == $home && ( is_home() || is_category() || is_archive() ) ) {
|
136 |
$return_type = "group";
|
137 |
|
138 |
// call to action
|
139 |
+
$call_to_action = esc_attr($a["call_to_action"]);
|
140 |
|
141 |
+
$style = esc_attr($a["style"]);
|
142 |
|
143 |
$type = "group-sc";
|
144 |
$class_names = "ht-ctc-sc ht-ctc-sc-group sc-style-$style";
|
new/inc/share/class-ht-ctc-share-shortcode.php
CHANGED
@@ -74,11 +74,11 @@ class HT_CTC_Share_Shortcode {
|
|
74 |
's8_icon_position' => '', // left, right, hide
|
75 |
|
76 |
), $atts, $shortcode );
|
77 |
-
// use like - '
|
78 |
|
79 |
|
80 |
// share_text
|
81 |
-
$share_text = $a["share_text"];
|
82 |
|
83 |
$page_url = get_permalink();
|
84 |
$post_title = esc_html( get_the_title() );
|
@@ -88,8 +88,8 @@ class HT_CTC_Share_Shortcode {
|
|
88 |
|
89 |
// hide on devices
|
90 |
// if 'yes' then hide
|
91 |
-
$hide_mobile = $a["hide_mobile"];
|
92 |
-
$hide_desktop = $a["hide_desktop"];
|
93 |
|
94 |
if( 'yes' == $is_mobile ) {
|
95 |
if ( 'yes' == $hide_mobile ) {
|
@@ -103,11 +103,11 @@ class HT_CTC_Share_Shortcode {
|
|
103 |
|
104 |
|
105 |
|
106 |
-
$position = $a["position"];
|
107 |
-
$top = $a["top"];
|
108 |
-
$right = $a["right"];
|
109 |
-
$bottom = $a["bottom"];
|
110 |
-
$left = $a["left"];
|
111 |
|
112 |
$css = '';
|
113 |
|
@@ -128,7 +128,7 @@ class HT_CTC_Share_Shortcode {
|
|
128 |
}
|
129 |
|
130 |
// to hide styles in home page
|
131 |
-
$home = $a["home"];
|
132 |
|
133 |
// $position !== 'fixed' why !== to avoid double time adding display: none ..
|
134 |
if ( 'fixed' !== $position && 'hide' == $home && ( is_home() || is_category() || is_archive() ) ) {
|
@@ -157,9 +157,9 @@ class HT_CTC_Share_Shortcode {
|
|
157 |
$return_type = "share";
|
158 |
|
159 |
// call to action
|
160 |
-
$call_to_action = $a["call_to_action"];
|
161 |
|
162 |
-
$style = $a["style"];
|
163 |
|
164 |
$type = "share-sc";
|
165 |
$class_names = "ht-ctc-sc ht-ctc-sc-share sc-style-$style";
|
74 |
's8_icon_position' => '', // left, right, hide
|
75 |
|
76 |
), $atts, $shortcode );
|
77 |
+
// use like - '.esc_attr($a["title"]).'
|
78 |
|
79 |
|
80 |
// share_text
|
81 |
+
$share_text = esc_attr($a["share_text"]);
|
82 |
|
83 |
$page_url = get_permalink();
|
84 |
$post_title = esc_html( get_the_title() );
|
88 |
|
89 |
// hide on devices
|
90 |
// if 'yes' then hide
|
91 |
+
$hide_mobile = esc_attr($a["hide_mobile"]);
|
92 |
+
$hide_desktop = esc_attr($a["hide_desktop"]);
|
93 |
|
94 |
if( 'yes' == $is_mobile ) {
|
95 |
if ( 'yes' == $hide_mobile ) {
|
103 |
|
104 |
|
105 |
|
106 |
+
$position = esc_attr($a["position"]);
|
107 |
+
$top = esc_attr($a["top"]);
|
108 |
+
$right = esc_attr($a["right"]);
|
109 |
+
$bottom = esc_attr($a["bottom"]);
|
110 |
+
$left = esc_attr($a["left"]);
|
111 |
|
112 |
$css = '';
|
113 |
|
128 |
}
|
129 |
|
130 |
// to hide styles in home page
|
131 |
+
$home = esc_attr($a["home"]);
|
132 |
|
133 |
// $position !== 'fixed' why !== to avoid double time adding display: none ..
|
134 |
if ( 'fixed' !== $position && 'hide' == $home && ( is_home() || is_category() || is_archive() ) ) {
|
157 |
$return_type = "share";
|
158 |
|
159 |
// call to action
|
160 |
+
$call_to_action = esc_attr($a["call_to_action"]);
|
161 |
|
162 |
+
$style = esc_attr($a["style"]);
|
163 |
|
164 |
$type = "share-sc";
|
165 |
$class_names = "ht-ctc-sc ht-ctc-sc-share sc-style-$style";
|
new/inc/styles-shortcode/sc-style-5.php
CHANGED
@@ -21,9 +21,9 @@ $s5_content_width = esc_attr( $s5_options['s5_content_width'] );
|
|
21 |
// $s5_img_position = esc_attr( $s5_options['s5_img_position'] );
|
22 |
|
23 |
// shortcode attributes
|
24 |
-
$s5_img_position_sc = $a["s5_img_position"];
|
25 |
-
$s5_img_url_sc = $a["s5_img_url"];
|
26 |
-
$s5_line_2_sc = $a["s5_line_2"];
|
27 |
|
28 |
// shortcodes image position default to left, can change position using attributes
|
29 |
$s5_img_position = ('' !== $s5_img_position_sc) ? $s5_img_position_sc : 'left';
|
21 |
// $s5_img_position = esc_attr( $s5_options['s5_img_position'] );
|
22 |
|
23 |
// shortcode attributes
|
24 |
+
$s5_img_position_sc = esc_attr($a["s5_img_position"]);
|
25 |
+
$s5_img_url_sc = esc_attr($a["s5_img_url"]);
|
26 |
+
$s5_line_2_sc = esc_attr($a["s5_line_2"]);
|
27 |
|
28 |
// shortcodes image position default to left, can change position using attributes
|
29 |
$s5_img_position = ('' !== $s5_img_position_sc) ? $s5_img_position_sc : 'left';
|
new/inc/styles-shortcode/sc-style-8.php
CHANGED
@@ -26,9 +26,9 @@ $s8_text_size_css = ('' == $s8_text_size) ? "" : "font-size: $s8_text_size;";
|
|
26 |
$s8_icon_position = esc_attr( $s8_options['s8_icon_position'] );
|
27 |
|
28 |
// shortcode attributes
|
29 |
-
$s8_width_sc = $a["s8_width"];
|
30 |
// left/right/hide or any thing to display icon just before the text
|
31 |
-
$s8_icon_position_sc = $a["s8_icon_position"];
|
32 |
|
33 |
$s8_width_css = '';
|
34 |
if ( '' !== $s8_width_sc ) {
|
26 |
$s8_icon_position = esc_attr( $s8_options['s8_icon_position'] );
|
27 |
|
28 |
// shortcode attributes
|
29 |
+
$s8_width_sc = esc_attr($a["s8_width"]);
|
30 |
// left/right/hide or any thing to display icon just before the text
|
31 |
+
$s8_icon_position_sc = esc_attr($a["s8_icon_position"]);
|
32 |
|
33 |
$s8_width_css = '';
|
34 |
if ( '' !== $s8_width_sc ) {
|
prev/inc/class-ccw-shortcode.php
CHANGED
@@ -139,14 +139,14 @@ class CCW_Shortcode {
|
|
139 |
|
140 |
|
141 |
), $atts, $shortcode );
|
142 |
-
// use like - '
|
143 |
|
144 |
|
145 |
-
$num = $a["num"];
|
146 |
|
147 |
// initial text
|
148 |
$page_url = get_permalink();
|
149 |
-
$text = $a["text"];
|
150 |
$initial_text = str_replace( '{{url}}', $page_url, $text );;
|
151 |
|
152 |
|
@@ -155,13 +155,13 @@ class CCW_Shortcode {
|
|
155 |
|
156 |
// hide based on device type
|
157 |
// "string" true or "true" not boolean - boolean means is exists like ..
|
158 |
-
$hide_mobile = $a["hide_mobile"];
|
159 |
-
$hide_desktop = $a["hide_desktop"];
|
160 |
|
161 |
$redirect = "";
|
162 |
|
163 |
-
$is_group = $a["type"];
|
164 |
-
$group_id = $a["group_id"];
|
165 |
|
166 |
/**
|
167 |
* If type = group_chat , then only it consider as group chat,
|
@@ -213,12 +213,12 @@ class CCW_Shortcode {
|
|
213 |
}
|
214 |
|
215 |
|
216 |
-
$position = $a["position"];
|
217 |
-
$top = $a["top"];
|
218 |
-
$right = $a["right"];
|
219 |
-
$bottom = $a["bottom"];
|
220 |
-
$left = $a["left"];
|
221 |
-
$home = $a["home"];
|
222 |
|
223 |
|
224 |
|
@@ -259,12 +259,12 @@ class CCW_Shortcode {
|
|
259 |
|
260 |
// to fix inline issue ..
|
261 |
$inline_issue = '';
|
262 |
-
if ( 'true' == $a["inline_issue"] ) {
|
263 |
// if "true" adds inline_issue class name
|
264 |
$inline_issue = 'inline_issue';
|
265 |
}
|
266 |
|
267 |
-
$style = $a["style"];
|
268 |
|
269 |
if ( '4.1' == $style ) {
|
270 |
$style = '4';
|
139 |
|
140 |
|
141 |
), $atts, $shortcode );
|
142 |
+
// use like - '.esc_attr($a["title"]).'
|
143 |
|
144 |
|
145 |
+
$num = esc_attr($a["num"]);
|
146 |
|
147 |
// initial text
|
148 |
$page_url = get_permalink();
|
149 |
+
$text = esc_attr($a["text"]);
|
150 |
$initial_text = str_replace( '{{url}}', $page_url, $text );;
|
151 |
|
152 |
|
155 |
|
156 |
// hide based on device type
|
157 |
// "string" true or "true" not boolean - boolean means is exists like ..
|
158 |
+
$hide_mobile = esc_attr($a["hide_mobile"]);
|
159 |
+
$hide_desktop = esc_attr($a["hide_desktop"]);
|
160 |
|
161 |
$redirect = "";
|
162 |
|
163 |
+
$is_group = esc_attr($a["type"]);
|
164 |
+
$group_id = esc_attr($a["group_id"]);
|
165 |
|
166 |
/**
|
167 |
* If type = group_chat , then only it consider as group chat,
|
213 |
}
|
214 |
|
215 |
|
216 |
+
$position = esc_attr($a["position"]);
|
217 |
+
$top = esc_attr($a["top"]);
|
218 |
+
$right = esc_attr($a["right"]);
|
219 |
+
$bottom = esc_attr($a["bottom"]);
|
220 |
+
$left = esc_attr($a["left"]);
|
221 |
+
$home = esc_attr($a["home"]);
|
222 |
|
223 |
|
224 |
|
259 |
|
260 |
// to fix inline issue ..
|
261 |
$inline_issue = '';
|
262 |
+
if ( 'true' == esc_attr($a["inline_issue"]) ) {
|
263 |
// if "true" adds inline_issue class name
|
264 |
$inline_issue = 'inline_issue';
|
265 |
}
|
266 |
|
267 |
+
$style = esc_attr($a["style"]);
|
268 |
|
269 |
if ( '4.1' == $style ) {
|
270 |
$style = '4';
|
prev/inc/commons/styles-list-sc/sc-style-1.php
CHANGED
@@ -3,5 +3,5 @@
|
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
$o .= '<div class="ccw_plugin inline style1-sc sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
6 |
-
$o .= '<button onclick="'.$img_click_link.'">'
|
7 |
$o .= '</div>';
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
$o .= '<div class="ccw_plugin inline style1-sc sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
6 |
+
$o .= '<button onclick="'.$img_click_link.'">'.esc_attr($a["val"]).'</button>';
|
7 |
$o .= '</div>';
|
prev/inc/commons/styles-list-sc/sc-style-2.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
-
$s2_text_color = $a['s2_text_color'];
|
6 |
-
$s2_text_color_onhover = $a['s2_text_color_onhover'];
|
7 |
-
$s2_decoration = $a['s2_decoration'];
|
8 |
-
$s2_decoration_onhover = $a['s2_decoration_onhover'];
|
9 |
|
10 |
|
11 |
$s2_text_color = $s2_text_color;
|
@@ -17,5 +17,5 @@ $input_onhover = "this.style.color= '$s2_text_color_onhover', this.style.textDec
|
|
17 |
$input_onhover_out = "this.style.color= '$s2_text_color', this.style.textDecoration= '$s2_decoration'; ";
|
18 |
|
19 |
$o .= '<div class="ccw_plugin inline style2-sc sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
20 |
-
$o .= '<a class="nofocus ccw-analytics" rel="noreferrer" data-ccw="style-2-sc" href="'.$redirect_a.'" target="_blank" style=" color:'.$s2_text_color.'; text-decoration: '.$s2_decoration.'; " onmouseover= " '.$input_onhover.' " onmouseout= " '.$input_onhover_out.' " >'
|
21 |
$o .= '</div>';
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
+
$s2_text_color = esc_attr($a['s2_text_color']);
|
6 |
+
$s2_text_color_onhover = esc_attr($a['s2_text_color_onhover']);
|
7 |
+
$s2_decoration = esc_attr($a['s2_decoration']);
|
8 |
+
$s2_decoration_onhover = esc_attr($a['s2_decoration_onhover']);
|
9 |
|
10 |
|
11 |
$s2_text_color = $s2_text_color;
|
17 |
$input_onhover_out = "this.style.color= '$s2_text_color', this.style.textDecoration= '$s2_decoration'; ";
|
18 |
|
19 |
$o .= '<div class="ccw_plugin inline style2-sc sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
20 |
+
$o .= '<a class="nofocus ccw-analytics" rel="noreferrer" data-ccw="style-2-sc" href="'.$redirect_a.'" target="_blank" style=" color:'.$s2_text_color.'; text-decoration: '.$s2_decoration.'; " onmouseover= " '.$input_onhover.' " onmouseout= " '.$input_onhover_out.' " >'.esc_attr($a["val"]).'</a>';
|
21 |
$o .= '</div>';
|
prev/inc/commons/styles-list-sc/sc-style-3.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
-
$s3_icon_size = $a['s3_icon_size'];
|
6 |
|
7 |
$img_link = plugins_url("./new/inc/assets/img/whatsapp-logo.svg", HT_CTC_PLUGIN_FILE );
|
8 |
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
+
$s3_icon_size = esc_attr($a['s3_icon_size']);
|
6 |
|
7 |
$img_link = plugins_url("./new/inc/assets/img/whatsapp-logo.svg", HT_CTC_PLUGIN_FILE );
|
8 |
|
prev/inc/commons/styles-list-sc/sc-style-4.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
-
$s4_text_color = $a['s4_text_color'];
|
6 |
-
$s4_background_color = $a['s4_background_color'];
|
7 |
|
8 |
|
9 |
$s4_text_color = $s4_text_color;
|
@@ -13,6 +13,6 @@ $img_link_s4 = plugins_url("./new/inc/assets/img/whatsapp-logo-32x32.png", HT_CT
|
|
13 |
|
14 |
$o .= '<div class="ccw_plugin sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
15 |
$o .= '<div class="style-4 chip pointer ccw-analytics" data-ccw="style-4-sc" style=" color: '.$s4_text_color.'; background-color: '.$s4_background_color.' " onclick="'.$img_click_link.'">';
|
16 |
-
$o .= '<img class="ccw-analytics" data-ccw="style-4-sc" src="'.$img_link_s4.'" alt="WhatsApp chat" >'
|
17 |
$o .= '</div>';
|
18 |
$o .= '</div>';
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
+
$s4_text_color = esc_attr($a['s4_text_color']);
|
6 |
+
$s4_background_color = esc_attr($a['s4_background_color']);
|
7 |
|
8 |
|
9 |
$s4_text_color = $s4_text_color;
|
13 |
|
14 |
$o .= '<div class="ccw_plugin sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
15 |
$o .= '<div class="style-4 chip pointer ccw-analytics" data-ccw="style-4-sc" style=" color: '.$s4_text_color.'; background-color: '.$s4_background_color.' " onclick="'.$img_click_link.'">';
|
16 |
+
$o .= '<img class="ccw-analytics" data-ccw="style-4-sc" src="'.$img_link_s4.'" alt="WhatsApp chat" >'.esc_attr($a["val"]).'';
|
17 |
$o .= '</div>';
|
18 |
$o .= '</div>';
|
prev/inc/commons/styles-list-sc/sc-style-5.php
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
-
$s5_color = $a['s5_color'];
|
6 |
-
$s5_hover_color = $a['s5_hover_color'];
|
7 |
-
$s5_icon_size = $a['s5_icon_size'];
|
8 |
|
9 |
$s5_color = $s5_color;
|
10 |
$s5_hover_color = $s5_hover_color;
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
+
$s5_color = esc_attr($a['s5_color']);
|
6 |
+
$s5_hover_color = esc_attr($a['s5_hover_color']);
|
7 |
+
$s5_icon_size = esc_attr($a['s5_icon_size']);
|
8 |
|
9 |
$s5_color = $s5_color;
|
10 |
$s5_hover_color = $s5_hover_color;
|
prev/inc/commons/styles-list-sc/sc-style-6.php
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
-
$s6_color = $a['s6_color'];
|
6 |
-
$s6_hover_color = $a['s6_hover_color'];
|
7 |
-
$s6_icon_size = $a['s6_icon_size'];
|
8 |
-
$s6_circle_background_color = $a['s6_circle_background_color'];
|
9 |
-
$s6_circle_background_hover_color = $a['s6_circle_background_hover_color'];
|
10 |
-
$s6_circle_height = $a['s6_circle_height'];
|
11 |
-
$s6_circle_width = $a['s6_circle_width'];
|
12 |
-
$s6_line_height = $a['s6_line_height'];
|
13 |
|
14 |
|
15 |
$s6_color = $s6_color;
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
+
$s6_color = esc_attr($a['s6_color']);
|
6 |
+
$s6_hover_color = esc_attr($a['s6_hover_color']);
|
7 |
+
$s6_icon_size = esc_attr($a['s6_icon_size']);
|
8 |
+
$s6_circle_background_color = esc_attr($a['s6_circle_background_color']);
|
9 |
+
$s6_circle_background_hover_color = esc_attr($a['s6_circle_background_hover_color']);
|
10 |
+
$s6_circle_height = esc_attr($a['s6_circle_height']);
|
11 |
+
$s6_circle_width = esc_attr($a['s6_circle_width']);
|
12 |
+
$s6_line_height = esc_attr($a['s6_line_height']);
|
13 |
|
14 |
|
15 |
$s6_color = $s6_color;
|
prev/inc/commons/styles-list-sc/sc-style-7.php
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
-
$s7_color = $a['s7_color'];
|
6 |
-
$s7_hover_color = $a['s7_hover_color'];
|
7 |
-
$s7_icon_size = $a['s7_icon_size'];
|
8 |
-
$s7_box_background_color = $a['s7_box_background_color'];
|
9 |
-
$s7_box_background_hover_color = $a['s7_box_background_hover_color'];
|
10 |
-
$s7_box_height = $a['s7_box_height'];
|
11 |
-
$s7_box_width = $a['s7_box_width'];
|
12 |
-
$s7_line_height = $a['s7_line_height'];
|
13 |
|
14 |
|
15 |
$s7_color = $s7_color;
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
+
$s7_color = esc_attr($a['s7_color']);
|
6 |
+
$s7_hover_color = esc_attr($a['s7_hover_color']);
|
7 |
+
$s7_icon_size = esc_attr($a['s7_icon_size']);
|
8 |
+
$s7_box_background_color = esc_attr($a['s7_box_background_color']);
|
9 |
+
$s7_box_background_hover_color = esc_attr($a['s7_box_background_hover_color']);
|
10 |
+
$s7_box_height = esc_attr($a['s7_box_height']);
|
11 |
+
$s7_box_width = esc_attr($a['s7_box_width']);
|
12 |
+
$s7_line_height = esc_attr($a['s7_line_height']);
|
13 |
|
14 |
|
15 |
$s7_color = $s7_color;
|
prev/inc/commons/styles-list-sc/sc-style-8.1.php
CHANGED
@@ -4,14 +4,14 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
4 |
|
5 |
wp_enqueue_style('ccw_mdstyle8_css');
|
6 |
|
7 |
-
$s8_text_color = $a['s8_text_color'];
|
8 |
-
$s8_background_color = $a['s8_background_color'];
|
9 |
-
$s8_icon_color = $a['s8_icon_color'];
|
10 |
-
$s8_text_color_onhover = $a['s8_text_color_onhover'];
|
11 |
-
$s8_background_color_onhover = $a['s8_background_color_onhover'];
|
12 |
-
$s8_icon_color_onhover = $a['s8_icon_color_onhover'];
|
13 |
-
$s8_icon_float = $a['s8_icon_float'];
|
14 |
-
$s8_1_width = $a['s8_1_width'];
|
15 |
|
16 |
|
17 |
$s8_text_color = $s8_text_color;
|
@@ -25,6 +25,6 @@ $input_onhover_out = "this.style.backgroundColor= '$s8_background_color', this.c
|
|
25 |
|
26 |
$o .= '<div class="ccw_plugin sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
27 |
$o .= '<a style="background-color: '.$s8_background_color.'; width: '.$s8_1_width.' " target="_blank" rel="noreferrer" href="'.$redirect_a.'" class="btn ccw-analytics" onmouseover= " '.$input_onhover.' " onmouseout= " '.$input_onhover_out.' " > ';
|
28 |
-
$o .= '<span style="color: '.$s8_text_color.';" class="ccw-s8-span-sc ccw-analytics" data-ccw="style-8-1-sc" id="ccw-s8-icon-sc" >'
|
29 |
$o .= '</a>';
|
30 |
$o .= '</div>';
|
4 |
|
5 |
wp_enqueue_style('ccw_mdstyle8_css');
|
6 |
|
7 |
+
$s8_text_color = esc_attr($a['s8_text_color']);
|
8 |
+
$s8_background_color = esc_attr($a['s8_background_color']);
|
9 |
+
$s8_icon_color = esc_attr($a['s8_icon_color']);
|
10 |
+
$s8_text_color_onhover = esc_attr($a['s8_text_color_onhover']);
|
11 |
+
$s8_background_color_onhover = esc_attr($a['s8_background_color_onhover']);
|
12 |
+
$s8_icon_color_onhover = esc_attr($a['s8_icon_color_onhover']);
|
13 |
+
$s8_icon_float = esc_attr($a['s8_icon_float']);
|
14 |
+
$s8_1_width = esc_attr($a['s8_1_width']);
|
15 |
|
16 |
|
17 |
$s8_text_color = $s8_text_color;
|
25 |
|
26 |
$o .= '<div class="ccw_plugin sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
27 |
$o .= '<a style="background-color: '.$s8_background_color.'; width: '.$s8_1_width.' " target="_blank" rel="noreferrer" href="'.$redirect_a.'" class="btn ccw-analytics" onmouseover= " '.$input_onhover.' " onmouseout= " '.$input_onhover_out.' " > ';
|
28 |
+
$o .= '<span style="color: '.$s8_text_color.';" class="ccw-s8-span-sc ccw-analytics" data-ccw="style-8-1-sc" id="ccw-s8-icon-sc" >'.esc_attr($a["val"]).'</span>';
|
29 |
$o .= '</a>';
|
30 |
$o .= '</div>';
|
prev/inc/commons/styles-list-sc/sc-style-8.php
CHANGED
@@ -4,14 +4,14 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
4 |
|
5 |
wp_enqueue_style('ccw_mdstyle8_css');
|
6 |
|
7 |
-
$s8_text_color = $a['s8_text_color'];
|
8 |
-
$s8_background_color = $a['s8_background_color'];
|
9 |
-
$s8_icon_color = $a['s8_icon_color'];
|
10 |
-
$s8_text_color_onhover = $a['s8_text_color_onhover'];
|
11 |
-
$s8_background_color_onhover = $a['s8_background_color_onhover'];
|
12 |
-
$s8_icon_color_onhover = $a['s8_icon_color_onhover'];
|
13 |
-
$s8_icon_float = $a['s8_icon_float'];
|
14 |
-
$s8_1_width = $a['s8_1_width'];
|
15 |
|
16 |
|
17 |
$s8_text_color = $s8_text_color;
|
@@ -28,6 +28,6 @@ $input_onhover_out = "this.style.backgroundColor= '$s8_background_color', this.c
|
|
28 |
$o .= '<div class="ccw_plugin mdstyle8 sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
29 |
$o .= '<a style="background-color: '.$s8_background_color.';" target="_blank" rel="noreferrer" href="'.$redirect_a.'" class="btn ccw-analytics" data-ccw="style-8-sc" onmouseover= " '.$input_onhover.' " onmouseout= " '.$input_onhover_out.' " > ';
|
30 |
$o .= '<i class="material-icons '.$s8_icon_float.' icon icon-whatsapp2 ccw-s8-icon-sc ccw-analytics" data-ccw="style-8" style="color: '.$s8_icon_color.';" ></i>';
|
31 |
-
$o .= '<span style="color: '.$s8_text_color.';" class="ccw-s8-span-sc ccw-analytics" data-ccw="style-8-sc" id="ccw-s8-icon-sc" >'
|
32 |
$o .= '</a>';
|
33 |
$o .= '</div>';
|
4 |
|
5 |
wp_enqueue_style('ccw_mdstyle8_css');
|
6 |
|
7 |
+
$s8_text_color = esc_attr($a['s8_text_color']);
|
8 |
+
$s8_background_color = esc_attr($a['s8_background_color']);
|
9 |
+
$s8_icon_color = esc_attr($a['s8_icon_color']);
|
10 |
+
$s8_text_color_onhover = esc_attr($a['s8_text_color_onhover']);
|
11 |
+
$s8_background_color_onhover = esc_attr($a['s8_background_color_onhover']);
|
12 |
+
$s8_icon_color_onhover = esc_attr($a['s8_icon_color_onhover']);
|
13 |
+
$s8_icon_float = esc_attr($a['s8_icon_float']);
|
14 |
+
$s8_1_width = esc_attr($a['s8_1_width']);
|
15 |
|
16 |
|
17 |
$s8_text_color = $s8_text_color;
|
28 |
$o .= '<div class="ccw_plugin mdstyle8 sc_item '.$inline_issue.' " style=" '.$css.' " >';
|
29 |
$o .= '<a style="background-color: '.$s8_background_color.';" target="_blank" rel="noreferrer" href="'.$redirect_a.'" class="btn ccw-analytics" data-ccw="style-8-sc" onmouseover= " '.$input_onhover.' " onmouseout= " '.$input_onhover_out.' " > ';
|
30 |
$o .= '<i class="material-icons '.$s8_icon_float.' icon icon-whatsapp2 ccw-s8-icon-sc ccw-analytics" data-ccw="style-8" style="color: '.$s8_icon_color.';" ></i>';
|
31 |
+
$o .= '<span style="color: '.$s8_text_color.';" class="ccw-s8-span-sc ccw-analytics" data-ccw="style-8-sc" id="ccw-s8-icon-sc" >'.esc_attr($a["val"]).'</span>';
|
32 |
$o .= '</a>';
|
33 |
$o .= '</div>';
|
prev/inc/commons/styles-list-sc/sc-style-9.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
-
$s9_icon_size = $a['s9_icon_size'];
|
6 |
|
7 |
|
8 |
$s9_icon_size = $s9_icon_size;
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
+
$s9_icon_size = esc_attr($a['s9_icon_size']);
|
6 |
|
7 |
|
8 |
$s9_icon_size = $s9_icon_size;
|
prev/inc/commons/styles-list-sc/sc-style-99.php
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
-
$s_99_img_height_desktop = $a['s99_img_height_desktop'];
|
6 |
-
$s_99_img_width_desktop = $a['s99_img_width_desktop'];
|
7 |
-
$s_99_img_height_mobile = $a['s99_img_height_mobile'];
|
8 |
-
$s_99_img_width_mobile = $a['s99_img_width_mobile'];
|
9 |
-
$s_99_desktop_img = $a['s99_desktop_img'];
|
10 |
-
$s_99_mobile_img = $a['s99_mobile_img'];
|
11 |
|
12 |
// img url
|
13 |
// image - width, height based on device
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
|
5 |
+
$s_99_img_height_desktop = esc_attr($a['s99_img_height_desktop']);
|
6 |
+
$s_99_img_width_desktop = esc_attr($a['s99_img_width_desktop']);
|
7 |
+
$s_99_img_height_mobile = esc_attr($a['s99_img_height_mobile']);
|
8 |
+
$s_99_img_width_mobile = esc_attr($a['s99_img_width_mobile']);
|
9 |
+
$s_99_desktop_img = esc_attr($a['s99_desktop_img']);
|
10 |
+
$s_99_mobile_img = esc_attr($a['s99_mobile_img']);
|
11 |
|
12 |
// img url
|
13 |
// image - width, height based on device
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Requires at least: 4.6
|
|
3 |
Tested up to: 6.1.1
|
4 |
Requires PHP: 5.6
|
5 |
Contributors: holithemes
|
6 |
-
Stable tag: 3.18
|
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
|
@@ -524,6 +524,9 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
|
|
524 |
|
525 |
== Changelog ==
|
526 |
|
|
|
|
|
|
|
527 |
= 3.18 =
|
528 |
* Enchantment: [Greetings Actions](https://holithemes.com/plugins/click-to-chat/greetings-actions/)
|
529 |
* Add class name 'ctc_greetings' or 'ctc_greetings_now' to any element to display greetings dialog on click.
|
3 |
Tested up to: 6.1.1
|
4 |
Requires PHP: 5.6
|
5 |
Contributors: holithemes
|
6 |
+
Stable tag: 3.18.1
|
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
|
524 |
|
525 |
== Changelog ==
|
526 |
|
527 |
+
= 3.18.1 =
|
528 |
+
* Enchantment: Shortcodes
|
529 |
+
|
530 |
= 3.18 =
|
531 |
* Enchantment: [Greetings Actions](https://holithemes.com/plugins/click-to-chat/greetings-actions/)
|
532 |
* Add class name 'ctc_greetings' or 'ctc_greetings_now' to any element to display greetings dialog on click.
|