Click to Chat for WhatsApp Chat - Version 3.0.4

Version Description

  • Style-1, Style-8 Full width option for Mobile, Desktop
  • bug fixes
Download this release

Release Info

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

Code changes from version 3.0.3 to 3.0.4

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.0.3
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.0.3' );
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.0.4
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.0.4' );
21
  }
22
 
23
  // environment - production, staging, development, test
common/class-ht-ctc-switch.php CHANGED
@@ -69,7 +69,7 @@ class HT_CTC_Swift {
69
  $is_new = 'yes';
70
  }
71
 
72
- // prev user and if switched ( checkbox option at admin )
73
  if ( 'prev' == $user ) {
74
 
75
  $ht_ctc_switch = get_option('ht_ctc_switch');
69
  $is_new = 'yes';
70
  }
71
 
72
+ // prev user and if switched
73
  if ( 'prev' == $user ) {
74
 
75
  $ht_ctc_switch = get_option('ht_ctc_switch');
new/admin/class-ht-ctc-admin-customize-styles.php CHANGED
@@ -30,7 +30,7 @@ class HT_CTC_Admin_Customize_Styles {
30
  public $cs_class = '';
31
 
32
  // public function __construct() {
33
- // $this->this_variables();
34
  // }
35
 
36
  public function this_variables() {
@@ -63,12 +63,8 @@ class HT_CTC_Admin_Customize_Styles {
63
  $this->s8_class .= ( '8' == $style_d || '8' == $style_m ) ? '' : 'ht_ctc_display_none';
64
  $this->s99_class .= ( '99' == $style_d || '99' == $style_m ) ? '' : 'ht_ctc_display_none';
65
  }
66
-
67
-
68
  }
69
 
70
-
71
-
72
  }
73
 
74
  public function menu() {
@@ -200,6 +196,7 @@ class HT_CTC_Admin_Customize_Styles {
200
  function ht_ctc_s1_cb() {
201
 
202
  $options = get_option('ht_ctc_s1');
 
203
  ?>
204
  <ul class="collapsible" data-collapsible="accordion">
205
  <li>
@@ -210,7 +207,41 @@ class HT_CTC_Admin_Customize_Styles {
210
  <input name="ht_ctc_s1[hello]" value="hello" id="" type="text" class="hide" >
211
 
212
  <p class="description"><?php _e( 'Style-1 is a button that appears like themes button', 'click-to-chat-for-whatsapp' ); ?></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
 
 
 
214
  </div>
215
  </div>
216
  </li>
@@ -1165,6 +1196,8 @@ class HT_CTC_Admin_Customize_Styles {
1165
  function ht_ctc_s8_cb() {
1166
 
1167
  $options = get_option('ht_ctc_s8');
 
 
1168
  $s8_txt_color = ( isset( $options['s8_txt_color']) ) ? esc_attr( $options['s8_txt_color'] ) : '';
1169
  $s8_txt_color_on_hover = ( isset( $options['s8_txt_color_on_hover']) ) ? esc_attr( $options['s8_txt_color_on_hover'] ) : '';
1170
  $s8_bg_color = ( isset( $options['s8_bg_color']) ) ? esc_attr( $options['s8_bg_color'] ) : '';
@@ -1181,6 +1214,36 @@ class HT_CTC_Admin_Customize_Styles {
1181
  <div class="collapsible-header"><?php _e( 'Style 8', 'click-to-chat-for-whatsapp' ); ?></div>
1182
  <div class="collapsible-body">
1183
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1184
 
1185
  <!-- text color -->
1186
  <div class="row">
@@ -1309,6 +1372,7 @@ class HT_CTC_Admin_Customize_Styles {
1309
  </div>
1310
  </div>
1311
 
 
1312
 
1313
 
1314
  </div>
30
  public $cs_class = '';
31
 
32
  // public function __construct() {
33
+ // // $this->this_variables();
34
  // }
35
 
36
  public function this_variables() {
63
  $this->s8_class .= ( '8' == $style_d || '8' == $style_m ) ? '' : 'ht_ctc_display_none';
64
  $this->s99_class .= ( '99' == $style_d || '99' == $style_m ) ? '' : 'ht_ctc_display_none';
65
  }
 
 
66
  }
67
 
 
 
68
  }
69
 
70
  public function menu() {
196
  function ht_ctc_s1_cb() {
197
 
198
  $options = get_option('ht_ctc_s1');
199
+ $dbrow = 'ht_ctc_s1';
200
  ?>
201
  <ul class="collapsible" data-collapsible="accordion">
202
  <li>
207
  <input name="ht_ctc_s1[hello]" value="hello" id="" type="text" class="hide" >
208
 
209
  <p class="description"><?php _e( 'Style-1 is a button that appears like themes button', 'click-to-chat-for-whatsapp' ); ?></p>
210
+ <br><br>
211
+
212
+ <!-- Full Width on Mobile -->
213
+ <div class="row">
214
+ <div class="col s6">
215
+ <p><?php _e( 'Full Width on Mobile', 'click-to-chat-for-whatsapp' ); ?></p>
216
+ </div>
217
+ <div class="input-field col s6">
218
+ <?php
219
+ if ( isset( $options['s1_m_fullwidth'] ) ) {
220
+ ?>
221
+ <p>
222
+ <label>
223
+ <input name="<?php echo $dbrow ?>[s1_m_fullwidth]" type="checkbox" value="1" <?php checked( $options['s1_m_fullwidth'], 1 ); ?> id="s1_m_fullwidth" />
224
+ <span><?php _e( 'Full Width on Mobile', 'click-to-chat-for-whatsapp' ); ?></span>
225
+ </label>
226
+ </p>
227
+ <?php
228
+ } else {
229
+ ?>
230
+ <p>
231
+ <label>
232
+ <input name="<?php echo $dbrow ?>[s1_m_fullwidth]" type="checkbox" value="1" id="s1_m_fullwidth" />
233
+ <span><?php _e( 'Full Width on Mobile', 'click-to-chat-for-whatsapp' ); ?></span>
234
+ </label>
235
+ </p>
236
+ <?php
237
+ }
238
+ ?>
239
+ <p class="description"><?php _e( 'Position for Mobile may need to change', 'click-to-chat-for-whatsapp' ); ?></p>
240
+ </div>
241
+ </div>
242
 
243
+ <!-- <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/style-1/"><?php _e( 'Style-1', 'click-to-chat-for-whatsapp' ); ?></a></p> -->
244
+
245
  </div>
246
  </div>
247
  </li>
1196
  function ht_ctc_s8_cb() {
1197
 
1198
  $options = get_option('ht_ctc_s8');
1199
+ $dbrow = 'ht_ctc_s8';
1200
+
1201
  $s8_txt_color = ( isset( $options['s8_txt_color']) ) ? esc_attr( $options['s8_txt_color'] ) : '';
1202
  $s8_txt_color_on_hover = ( isset( $options['s8_txt_color_on_hover']) ) ? esc_attr( $options['s8_txt_color_on_hover'] ) : '';
1203
  $s8_bg_color = ( isset( $options['s8_bg_color']) ) ? esc_attr( $options['s8_bg_color'] ) : '';
1214
  <div class="collapsible-header"><?php _e( 'Style 8', 'click-to-chat-for-whatsapp' ); ?></div>
1215
  <div class="collapsible-body">
1216
 
1217
+ <!-- Full Width on Mobile -->
1218
+ <div class="row">
1219
+ <div class="col s6">
1220
+ <p><?php _e( 'Full Width on Mobile', 'click-to-chat-for-whatsapp' ); ?></p>
1221
+ </div>
1222
+ <div class="input-field col s6">
1223
+ <?php
1224
+ if ( isset( $options['s8_m_fullwidth'] ) ) {
1225
+ ?>
1226
+ <p>
1227
+ <label>
1228
+ <input name="<?php echo $dbrow ?>[s8_m_fullwidth]" type="checkbox" value="1" <?php checked( $options['s8_m_fullwidth'], 1 ); ?> id="s8_m_fullwidth" />
1229
+ <span><?php _e( 'Full Width on Mobile', 'click-to-chat-for-whatsapp' ); ?></span>
1230
+ </label>
1231
+ </p>
1232
+ <?php
1233
+ } else {
1234
+ ?>
1235
+ <p>
1236
+ <label>
1237
+ <input name="<?php echo $dbrow ?>[s8_m_fullwidth]" type="checkbox" value="1" id="s8_m_fullwidth" />
1238
+ <span><?php _e( 'Full Width on Mobile', 'click-to-chat-for-whatsapp' ); ?></span>
1239
+ </label>
1240
+ </p>
1241
+ <?php
1242
+ }
1243
+ ?>
1244
+ <p class="description"><?php _e( 'Position for Mobile may need to change', 'click-to-chat-for-whatsapp' ); ?></p>
1245
+ </div>
1246
+ </div>
1247
 
1248
  <!-- text color -->
1249
  <div class="row">
1372
  </div>
1373
  </div>
1374
 
1375
+ <!-- <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/style-8/"><?php _e( 'Style-8', 'click-to-chat-for-whatsapp' ); ?></a></p> -->
1376
 
1377
 
1378
  </div>
new/admin/class-ht-ctc-db.php CHANGED
@@ -39,7 +39,7 @@ class HT_CTC_DB {
39
 
40
  $this->ht_ctc_switch();
41
 
42
- // $this->ht_ctc_s1();
43
  $this->ht_ctc_s2();
44
  $this->ht_ctc_s3();
45
  $this->ht_ctc_s3_1();
@@ -319,21 +319,24 @@ class HT_CTC_DB {
319
  * name: ht_ctc_s1
320
  *
321
  * Style-1
322
- * style-1 is default button, nothing to modify..
 
 
 
323
  */
324
- // public function ht_ctc_s1() {
325
 
326
- // $style_1 = array(
327
 
328
- // 's1_img' => '',
329
 
330
- // );
331
 
332
- // $db_values = get_option( 'ht_ctc_s1', array() );
333
- // $update_values = array_merge($style_1, $db_values);
334
- // update_option('ht_ctc_s1', $update_values);
335
 
336
- // }
337
 
338
 
339
 
@@ -623,6 +626,9 @@ class HT_CTC_DB {
623
  * Style-8
624
  *
625
  * s8_btn_size: btn / btn-large
 
 
 
626
  */
627
  public function ht_ctc_s8() {
628
 
39
 
40
  $this->ht_ctc_switch();
41
 
42
+ $this->ht_ctc_s1();
43
  $this->ht_ctc_s2();
44
  $this->ht_ctc_s3();
45
  $this->ht_ctc_s3_1();
319
  * name: ht_ctc_s1
320
  *
321
  * Style-1
322
+ * style-1 is default button
323
+ *
324
+ * checkbox
325
+ * s1_m_fullwidth
326
  */
327
+ public function ht_ctc_s1() {
328
 
329
+ $style_1 = array(
330
 
331
+ 'hello' => 'world',
332
 
333
+ );
334
 
335
+ $db_values = get_option( 'ht_ctc_s1', array() );
336
+ $update_values = array_merge($style_1, $db_values);
337
+ update_option('ht_ctc_s1', $update_values);
338
 
339
+ }
340
 
341
 
342
 
626
  * Style-8
627
  *
628
  * s8_btn_size: btn / btn-large
629
+ *
630
+ * checkbox
631
+ * s8_m_fullwidth
632
  */
633
  public function ht_ctc_s8() {
634
 
new/inc/chat/class-ht-ctc-chat-shortcode.php CHANGED
@@ -188,7 +188,7 @@ class HT_CTC_Chat_Shortcode {
188
  // if style is not in the list..
189
  $img_link = plugins_url("./new/inc/assets/img/whatsapp-logo.svg", HT_CTC_PLUGIN_FILE );
190
  $o .= '<div onclick="ht_ctc_shortcode_click(this);" data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-number="'.$number.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" data-is_fb_pixel="'.$is_fb_pixel.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
191
- $o .= '<img class="img-icon-sc sc_item pointer style-3-sc" src="'.$img_link.'" alt="WhatsApp chat" style="height: 50px; '.$css.' " >';
192
  $o .= '</div>';
193
  }
194
 
188
  // if style is not in the list..
189
  $img_link = plugins_url("./new/inc/assets/img/whatsapp-logo.svg", HT_CTC_PLUGIN_FILE );
190
  $o .= '<div onclick="ht_ctc_shortcode_click(this);" data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-number="'.$number.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" data-is_fb_pixel="'.$is_fb_pixel.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
191
+ $o .= '<img class="img-icon-sc sc_item pointer style-3-sc" src="'.$img_link.'" alt="'.$call_to_action.'" style="height: 50px; '.$css.' " >';
192
  $o .= '</div>';
193
  }
194
 
new/inc/group/class-ht-ctc-group-shortcode.php CHANGED
@@ -154,7 +154,7 @@ class HT_CTC_Group_Shortcode {
154
  // if style is not in the list..
155
  $img_link = plugins_url("./new/inc/assets/img/whatsapp-logo.svg", HT_CTC_PLUGIN_FILE );
156
  $o .= '<div data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_pixel="'.$is_fb_pixel.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
157
- $o .= '<img class="img-icon-sc sc_item pointer style-3-sc" src="'.$img_link.'" alt="WhatsApp chat" style="height: 50px; '.$css.' " >';
158
  $o .= '</div>';
159
  }
160
 
154
  // if style is not in the list..
155
  $img_link = plugins_url("./new/inc/assets/img/whatsapp-logo.svg", HT_CTC_PLUGIN_FILE );
156
  $o .= '<div data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_pixel="'.$is_fb_pixel.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
157
+ $o .= '<img class="img-icon-sc sc_item pointer style-3-sc" src="'.$img_link.'" alt="'.$call_to_action.'" style="height: 50px; '.$css.' " >';
158
  $o .= '</div>';
159
  }
160
 
new/inc/share/class-ht-ctc-share-shortcode.php CHANGED
@@ -175,7 +175,7 @@ class HT_CTC_Share_Shortcode {
175
  // if style is not in the list..
176
  $img_link = plugins_url("./new/inc/assets/img/whatsapp-logo.svg", HT_CTC_PLUGIN_FILE );
177
  $o .= '<div data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_pixel="'.$is_fb_pixel.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
178
- $o .= '<img class="img-icon-sc sc_item pointer style-3-sc" src="'.$img_link.'" alt="WhatsApp chat" style="height: 50px; '.$css.' " >';
179
  $o .= '</div>';
180
  }
181
 
175
  // if style is not in the list..
176
  $img_link = plugins_url("./new/inc/assets/img/whatsapp-logo.svg", HT_CTC_PLUGIN_FILE );
177
  $o .= '<div data-ctc-link="'.$link.'" data-return_type="'.$return_type.'" data-is_ga_enable="'.$is_ga_enable.'" data-is_fb_pixel="'.$is_fb_pixel.'" data-is_fb_an_enable="'.$is_fb_an_enable.'" style="display: inline; cursor: pointer; z-index: 99999999; '.$css.'" class="'.$class_names.' ht-ctc-inline">';
178
+ $o .= '<img class="img-icon-sc sc_item pointer style-3-sc" src="'.$img_link.'" alt="'.$call_to_action.'" style="height: 50px; '.$css.' " >';
179
  $o .= '</div>';
180
  }
181
 
new/inc/styles-shortcode/sc-style-2.php CHANGED
@@ -14,5 +14,5 @@ $s2_img_link = plugins_url( './new/inc/assets/img/whatsapp-icon-square.svg', HT_
14
 
15
 
16
  $o .= '
17
- <img class="img-icon ctc-analytics" title="'.$call_to_action.'" style="height: '.$s2_img_size.';" src="'.$s2_img_link.'" alt="WhatsApp chat">
18
  ';
14
 
15
 
16
  $o .= '
17
+ <img class="img-icon ctc-analytics" title="'.$call_to_action.'" style="height: '.$s2_img_size.';" src="'.$s2_img_link.'" alt="'.$call_to_action.'">
18
  ';
new/inc/styles-shortcode/sc-style-3.php CHANGED
@@ -21,7 +21,7 @@ include_once HT_CTC_PLUGIN_DIR .'new/inc/assets/img/ht-ctc-svg-images.php';
21
 
22
  $s3_simple = '';
23
  $s3_simple .= '
24
- <img class="img-icon ctc-analytics" title="'.$call_to_action.'" style="display: inline-block; height: '.$img_size.';" src="'.$s3_img_link.'" alt="WhatsApp chat">
25
  ';
26
 
27
  $o .= $s3_simple;
21
 
22
  $s3_simple = '';
23
  $s3_simple .= '
24
+ <img class="img-icon ctc-analytics" title="'.$call_to_action.'" style="display: inline-block; height: '.$img_size.';" src="'.$s3_img_link.'" alt="'.$call_to_action.'">
25
  ';
26
 
27
  $o .= $s3_simple;
new/inc/styles-shortcode/sc-style-4.php CHANGED
@@ -50,7 +50,7 @@ if ( '' == $s4_img_url ) {
50
  $s4_img = '<span style="'.$s4_chip_svg_css.'">'.$style_3_svg.'</span>';
51
  } else {
52
  // if user changed the image
53
- $s4_img = '<img style="'.$s4_chip_img_css.'" src="'.$s4_img_url.'" alt="whatsapp">';
54
  }
55
 
56
  $o .= '
50
  $s4_img = '<span style="'.$s4_chip_svg_css.'">'.$style_3_svg.'</span>';
51
  } else {
52
  // if user changed the image
53
+ $s4_img = '<img style="'.$s4_chip_img_css.'" src="'.$s4_img_url.'" alt="'.$call_to_action.'">';
54
  }
55
 
56
  $o .= '
new/inc/styles-shortcode/sc-style-5.php CHANGED
@@ -76,7 +76,7 @@ $o .= '</style>';
76
  $o .= '
77
  <div class="ht-ctc-style-5 ctc-analytics" style="display: inline-block; cursor: pointer; z-index: 99999999;" >
78
  <div class="s5_cta ctc-analytics" style="'.$s5_cta_style.'" >
79
- <img class="s5_img ctc-analytics" src="'.$s5_img.'" style="'.$s5_img_style.'" alt="whatsapp">
80
  <div class="s5_content '.$s5_img_position.'" style="'.$s5_content_style.'" >
81
  <span class="heading ctc-analytics" style="color: '.$s5_line_1_color.'">'.$s5_line_1.'</span>
82
  <span class="description ctc-analytics" style="color: '.$s5_line_2_color.'">'.$s5_line_2.'</span>
76
  $o .= '
77
  <div class="ht-ctc-style-5 ctc-analytics" style="display: inline-block; cursor: pointer; z-index: 99999999;" >
78
  <div class="s5_cta ctc-analytics" style="'.$s5_cta_style.'" >
79
+ <img class="s5_img ctc-analytics" src="'.$s5_img.'" style="'.$s5_img_style.'" alt="'.$call_to_action.'">
80
  <div class="s5_content '.$s5_img_position.'" style="'.$s5_content_style.'" >
81
  <span class="heading ctc-analytics" style="color: '.$s5_line_1_color.'">'.$s5_line_1.'</span>
82
  <span class="description ctc-analytics" style="color: '.$s5_line_2_color.'">'.$s5_line_2.'</span>
new/inc/styles-shortcode/sc-style-99.php CHANGED
@@ -51,5 +51,5 @@ if ( '' == $s99_own_image ) {
51
 
52
 
53
  $o .= '
54
- <img class="own-img" title="'.$call_to_action.'" id="style-99" src="'.$s99_own_image.'" style="'.$s99_img_css.'" alt="WhatsApp chat">
55
  ';
51
 
52
 
53
  $o .= '
54
+ <img class="own-img" title="'.$call_to_action.'" id="style-99" src="'.$s99_own_image.'" style="'.$s99_img_css.'" alt="'.$call_to_action.'">
55
  ';
new/inc/styles/style-1.php CHANGED
@@ -8,10 +8,20 @@
8
 
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
- // $s1_options = get_option( 'ht_ctc_s1' );
12
 
13
  if ( '' == $call_to_action ) {
14
  $call_to_action = "WhatsApp us";
15
  }
 
 
 
 
 
 
 
 
 
 
16
  ?>
17
- <button class="ctc-analytics"><?php echo $call_to_action ?></button>
8
 
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
+ $s1_options = get_option( 'ht_ctc_s1' );
12
 
13
  if ( '' == $call_to_action ) {
14
  $call_to_action = "WhatsApp us";
15
  }
16
+
17
+ $s1_fullwidth_css = "";
18
+ if ( isset( $s1_options['s1_m_fullwidth'] ) ) {
19
+ $s1_fullwidth_css = "@media(max-width:1201px){.ht-ctc.style-1,.ht-ctc .s1_btn{width:100%;}}";
20
+
21
+ ?>
22
+ <style id="ht-ctc-s1"><?php echo $s1_fullwidth_css ?></style>
23
+ <?php
24
+ }
25
+
26
  ?>
27
+ <button class="ctc-analytics s1_btn"><?php echo $call_to_action ?></button>
new/inc/styles/style-4.php CHANGED
@@ -55,7 +55,7 @@ $ht_ctc_svg_css = "pointer-events:none; display: block; height:$s4_img_size; wid
55
  } else {
56
  // if user changed the image
57
  ?>
58
- <img style="<?php echo $s4_chip_img_css ?>" src="<?php echo $s4_img_url ?>" alt="whatsapp">
59
  <?php
60
  }
61
  ?>
55
  } else {
56
  // if user changed the image
57
  ?>
58
+ <img style="<?php echo $s4_chip_img_css ?>" src="<?php echo $s4_img_url ?>" alt="<?php echo $call_to_action ?>">
59
  <?php
60
  }
61
  ?>
new/inc/styles/style-5.php CHANGED
@@ -113,7 +113,7 @@ echo $o;
113
  <div class="ht-ctc-style-5 ctc-analytics" style="cursor: pointer; z-index: 99999999;" >
114
 
115
  <div class="s5_cta" style="<?php echo $s5_cta_style ?>" >
116
- <img class="s5_img ctc-analytics" src="<?php echo $s5_img ?>" style="<?php echo $s5_img_style ?>" alt="whatsapp">
117
  <div class="s5_content ctc-analytics <?php echo $s5_img_position ?>" style="<?php echo $s5_content_style ?>" >
118
  <span class="heading ctc-analytics" style="color: <?php echo $s5_line_1_color ?>"><?php echo $s5_line_1 ?></span>
119
  <span class="description ctc-analytics" style="color: <?php echo $s5_line_2_color ?>"><?php echo $s5_line_2 ?></span>
113
  <div class="ht-ctc-style-5 ctc-analytics" style="cursor: pointer; z-index: 99999999;" >
114
 
115
  <div class="s5_cta" style="<?php echo $s5_cta_style ?>" >
116
+ <img class="s5_img ctc-analytics" src="<?php echo $s5_img ?>" style="<?php echo $s5_img_style ?>" alt="<?php echo $call_to_action ?>">
117
  <div class="s5_content ctc-analytics <?php echo $s5_img_position ?>" style="<?php echo $s5_content_style ?>" >
118
  <span class="heading ctc-analytics" style="color: <?php echo $s5_line_1_color ?>"><?php echo $s5_line_1 ?></span>
119
  <span class="description ctc-analytics" style="color: <?php echo $s5_line_2_color ?>"><?php echo $s5_line_2 ?></span>
new/inc/styles/style-8.php CHANGED
@@ -38,13 +38,18 @@ $s8_svg_attrs = array (
38
  'ht_ctc_svg_css' => 'display:block;',
39
  );
40
 
 
 
 
 
 
41
  $s8_icon_css = ( 'right' == $s8_icon_position ) ? "order:1;margin-left: 15px;" : "order:0;margin-right: 15px;";
42
  $s8_text_css = "color:$s8_txt_color; $s8_text_size_css ";
43
  $s8_main_span_css = "display: flex;padding: 0 2rem;letter-spacing: .5px;transition: .2s ease-out;text-align: center;justify-content: center;align-items: center;border-radius:2px;height:$s8_height;line-height:$s8_height;vertical-align:middle;box-shadow:0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12), 0 3px 1px -2px rgba(0,0,0,.2);box-sizing:inherit;background-color:$s8_bg_color;";
44
  ?>
45
 
46
  <style id="ht-ctc-s8">
47
- .ht-ctc-style-8 .s_8 svg{<?php echo $s8_icon_css ?>;}.ht-ctc:hover svg g path{fill:<?php echo $s8_txt_color_on_hover ?> !important;}.ht-ctc:hover .ht-ctc-s8-text{color:<?php echo $s8_txt_color_on_hover ?> !important;}.ht-ctc:hover .ht-ctc-style-8 .s_8{box-shadow: 0 3px 3px 0 rgba(7,6,6,.14), 0 1px 7px 0 rgba(0,0,0,.12), 0 3px 1px -1px rgba(0,0,0,.2) !important; transition: .2s ease-out !important; background-color:<?php echo $s8_bg_color_on_hover ?> !important; }
48
  </style>
49
 
50
  <div class = "ht-ctc-style-8 ctc-analytics" >
38
  'ht_ctc_svg_css' => 'display:block;',
39
  );
40
 
41
+ $s8_fullwidth_css = "";
42
+ if ( isset( $s8_options['s8_m_fullwidth'] ) ) {
43
+ $s8_fullwidth_css = "@media (max-width: 1201px){.ht-ctc.style-8,.ht-ctc-style-8,.ht-ctc-style-8 .s_8{width: 100%;} }";
44
+ }
45
+
46
  $s8_icon_css = ( 'right' == $s8_icon_position ) ? "order:1;margin-left: 15px;" : "order:0;margin-right: 15px;";
47
  $s8_text_css = "color:$s8_txt_color; $s8_text_size_css ";
48
  $s8_main_span_css = "display: flex;padding: 0 2rem;letter-spacing: .5px;transition: .2s ease-out;text-align: center;justify-content: center;align-items: center;border-radius:2px;height:$s8_height;line-height:$s8_height;vertical-align:middle;box-shadow:0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12), 0 3px 1px -2px rgba(0,0,0,.2);box-sizing:inherit;background-color:$s8_bg_color;";
49
  ?>
50
 
51
  <style id="ht-ctc-s8">
52
+ .ht-ctc-style-8 .s_8 svg{<?php echo $s8_icon_css ?>;}.ht-ctc:hover svg g path{fill:<?php echo $s8_txt_color_on_hover ?> !important;}.ht-ctc:hover .ht-ctc-s8-text{color:<?php echo $s8_txt_color_on_hover ?> !important;}.ht-ctc:hover .ht-ctc-style-8 .s_8{box-shadow: 0 3px 3px 0 rgba(7,6,6,.14), 0 1px 7px 0 rgba(0,0,0,.12), 0 3px 1px -1px rgba(0,0,0,.2) !important; transition: .2s ease-out !important; background-color:<?php echo $s8_bg_color_on_hover ?> !important; }<?php echo $s8_fullwidth_css ?>
53
  </style>
54
 
55
  <div class = "ht-ctc-style-8 ctc-analytics" >
new/inc/styles/style-99.php CHANGED
@@ -17,24 +17,14 @@ $s99_img_css = "";
17
 
18
  if( 'yes' == $is_mobile ) {
19
  $s99_own_image = esc_html( $s99_options['s99_mobile_img_url'] );
20
-
21
- if ( '' !== $s99_mobile_img_height ) {
22
- $s99_img_css .= "height: $s99_mobile_img_height; ";
23
- } else {
24
- $s99_img_css .= "height: 40px; ";
25
- }
26
 
27
  if ( '' !== $s99_mobile_img_width ) {
28
  $s99_img_css .= "width: $s99_mobile_img_width; ";
29
  }
30
  } else {
31
  $s99_own_image = esc_html( $s99_options['s99_dekstop_img_url'] );
32
-
33
- if ( '' !== $s99_desktop_img_height ) {
34
- $s99_img_css .= "height: $s99_desktop_img_height; ";
35
- } else {
36
- $s99_img_css .= "height: 50px; ";
37
- }
38
 
39
  if ( '' !== $s99_desktop_img_width ) {
40
  $s99_img_css .= "width: $s99_desktop_img_width; ";
@@ -48,4 +38,4 @@ if ( '' == $s99_own_image ) {
48
 
49
  ?>
50
 
51
- <img class="own-img ctc-analytics" title="<?php echo $call_to_action ?>" id="style-99" src="<?php echo $s99_own_image ?>" style="<?php echo $s99_img_css ?>" alt="WhatsApp chat">
17
 
18
  if( 'yes' == $is_mobile ) {
19
  $s99_own_image = esc_html( $s99_options['s99_mobile_img_url'] );
20
+ $s99_img_css .= ( '' !== $s99_mobile_img_height ) ? "height: $s99_mobile_img_height; " : "height: 40px; ";
 
 
 
 
 
21
 
22
  if ( '' !== $s99_mobile_img_width ) {
23
  $s99_img_css .= "width: $s99_mobile_img_width; ";
24
  }
25
  } else {
26
  $s99_own_image = esc_html( $s99_options['s99_dekstop_img_url'] );
27
+ $s99_img_css .= ( '' !== $s99_desktop_img_height ) ? "height: $s99_desktop_img_height; " : "height: 50px; ";
 
 
 
 
 
28
 
29
  if ( '' !== $s99_desktop_img_width ) {
30
  $s99_img_css .= "width: $s99_desktop_img_width; ";
38
 
39
  ?>
40
 
41
+ <img class="own-img ctc-analytics" title="<?php echo $call_to_action ?>" id="style-99" src="<?php echo $s99_own_image ?>" style="<?php echo $s99_img_css ?>" alt="<?php echo $call_to_action ?>">
readme.txt CHANGED
@@ -3,7 +3,7 @@ Requires at least: 4.6
3
  Tested up to: 5.5.3
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
- Stable tag: 3.0.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
@@ -78,7 +78,7 @@ Additional, variables to change values dynamically
78
  {regular_price} -> Regular product price (with out any sale)
79
  {sku} ->Stock keeping unit
80
  `
81
- = 📒 Change Values at page level =
82
 
83
  > Change 'WhatsApp Number', 'Call to Action' at the page level (while editing the post, at the right side bar 'Click to Chat' metabox)
84
 
@@ -383,6 +383,10 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
383
 
384
  == Changelog ==
385
 
 
 
 
 
386
  = 3.0.3 =
387
  * Updated Animations
388
  * Fixed: {url} variable at WooCommerce Pre-filled message.
3
  Tested up to: 5.5.3
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
+ Stable tag: 3.0.4
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
78
  {regular_price} -> Regular product price (with out any sale)
79
  {sku} ->Stock keeping unit
80
  `
81
+ = 📒 Change Settings at page level =
82
 
83
  > Change 'WhatsApp Number', 'Call to Action' at the page level (while editing the post, at the right side bar 'Click to Chat' metabox)
84
 
383
 
384
  == Changelog ==
385
 
386
+ = 3.0.4 =
387
+ * Style-1, Style-8 Full width option for Mobile, Desktop
388
+ * bug fixes
389
+
390
  = 3.0.3 =
391
  * Updated Animations
392
  * Fixed: {url} variable at WooCommerce Pre-filled message.