Click to Chat for WhatsApp Chat - Version 3.1

Version Description

  • Updated: Full Width Style-1, Style-8 for mobile.
  • Add Animation Delay, Animation Iteration
  • New Animations - heartBeat, flip
  • Shortcode style-5 new attributes - s5_img_url, s5_line_2
  • Fix: Group ID Page level settings
  • RTL Compatible for Styles.
  • Updated Admin User Interface
Download this release

Release Info

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

Code changes from version 3.0.4 to 3.1

Files changed (38) hide show
  1. click-to-chat.php +2 -2
  2. new/admin/admin_assets/js/admin.js +25 -0
  3. new/admin/admin_commons/admin-desktop.php +4 -4
  4. new/admin/admin_commons/admin-mobile.php +4 -4
  5. new/admin/admin_commons/admin-show-hide.php +15 -13
  6. new/admin/admin_commons/admin-sidebar-content.php +1 -20
  7. new/admin/class-ht-ctc-admin-customize-styles.php +29 -29
  8. new/admin/class-ht-ctc-admin-group-page.php +3 -3
  9. new/admin/class-ht-ctc-admin-main-page.php +5 -5
  10. new/admin/class-ht-ctc-admin-other-settings.php +36 -8
  11. new/admin/class-ht-ctc-admin-share-page.php +4 -4
  12. new/admin/class-ht-ctc-db.php +7 -5
  13. new/inc/chat/class-ht-ctc-chat-shortcode.php +3 -0
  14. new/inc/chat/class-ht-ctc-chat.php +4 -4
  15. new/inc/class-ht-ctc-main.php +0 -2
  16. new/inc/commons/class-ht-ctc-animations.php +14 -3
  17. new/inc/commons/class-ht-ctc-hooks.php +7 -2
  18. new/inc/commons/position-to-place.php +3 -0
  19. new/inc/group/class-ht-ctc-group-shortcode.php +3 -0
  20. new/inc/group/class-ht-ctc-group.php +9 -11
  21. new/inc/share/class-ht-ctc-share-shortcode.php +3 -0
  22. new/inc/share/class-ht-ctc-share.php +3 -4
  23. new/inc/styles-shortcode/sc-style-5.php +9 -10
  24. new/inc/styles/style-1.php +4 -2
  25. new/inc/styles/style-2.php +9 -2
  26. new/inc/styles/style-3.php +9 -2
  27. new/inc/styles/style-3_1.php +10 -2
  28. new/inc/styles/style-4.php +3 -2
  29. new/inc/styles/style-5.php +6 -47
  30. new/inc/styles/style-6.php +1 -0
  31. new/inc/styles/style-7.php +9 -3
  32. new/inc/styles/style-7_1.php +22 -8
  33. new/inc/styles/style-8.php +8 -2
  34. new/inc/styles/style-99.php +1 -0
  35. new/tools/woo/class-ht-ctc-admin-woo.php +2 -2
  36. prev/admin/class-ccw-admin-page.php +17 -17
  37. prev/admin/commons/admin-sidebar.php +2 -2
  38. readme.txt +39 -18
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.4
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.4' );
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.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.1' );
21
  }
22
 
23
  // environment - production, staging, development, test
new/admin/admin_assets/js/admin.js CHANGED
@@ -58,6 +58,31 @@ jQuery(document).ready(function ($) {
58
  }
59
  ht_ctc_show_hide_options();
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
  // on change - styles
63
  $(".chat_select_style").on("change", function (e) {
58
  }
59
  ht_ctc_show_hide_options();
60
 
61
+ // call to action
62
+ var cta_styles = ['.ht_ctc_s2', '.ht_ctc_s3', '.ht_ctc_s3_1', '.ht_ctc_s7'];
63
+ cta_styles.forEach(ht_ctc_admin_cta);
64
+
65
+ function ht_ctc_admin_cta(style) {
66
+ // default display
67
+ var val = $(style + ' .select_cta_type').find(":selected").val();
68
+ if (val == 'hide') {
69
+ $(style + " .cta_textcolor").hide();
70
+ $(style + " .cta_bgcolor").hide();
71
+ }
72
+
73
+ // on change
74
+ $(style + " .select_cta_type").on("change", function (e) {
75
+ var change_val = e.target.value;
76
+ if (change_val == 'hide') {
77
+ $(style + " .cta_textcolor").hide(100);
78
+ $(style + " .cta_bgcolor").hide(100);
79
+ } else {
80
+ $(style + " .cta_textcolor").show(200);
81
+ $(style + " .cta_bgcolor").show(400);
82
+ }
83
+ });
84
+ }
85
+
86
 
87
  // on change - styles
88
  $(".chat_select_style").on("change", function (e) {
new/admin/admin_commons/admin-desktop.php CHANGED
@@ -35,17 +35,17 @@ $side_2_value = ( isset( $options['side_2_value']) ) ? esc_attr( $options['side_
35
  <option value="2" <?php echo $style_desktop == 2 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-2', 'click-to-chat-for-whatsapp' ); ?></option>
36
  <!-- <optgroup label="Style 3"> -->
37
  <option value="3" <?php echo $style_desktop == 3 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-3', 'click-to-chat-for-whatsapp' ); ?></option>
38
- <option value="3_1" <?php echo $style_desktop == '3_1' ? 'SELECTED' : ''; ?> ><?php _e( 'Style-3 Extend', 'click-to-chat-for-whatsapp' ); ?></option>
39
  <!-- </optgroup> -->
40
  <option value="4" <?php echo $style_desktop == 4 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-4', 'click-to-chat-for-whatsapp' ); ?></option>
41
  <option value="5" <?php echo $style_desktop == 5 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-5', 'click-to-chat-for-whatsapp' ); ?></option>
42
  <option value="6" <?php echo $style_desktop == 6 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-6', 'click-to-chat-for-whatsapp' ); ?></option>
43
  <option value="7" <?php echo $style_desktop == 7 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-7', 'click-to-chat-for-whatsapp' ); ?></option>
44
- <option value="7_1" <?php echo $style_desktop == '7_1' ? 'SELECTED' : ''; ?> ><?php _e( 'Style-7 Extend', 'click-to-chat-for-whatsapp' ); ?></option>
45
  <option value="8" <?php echo $style_desktop == 8 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-8', 'click-to-chat-for-whatsapp' ); ?></option>
46
  <option value="99" <?php echo $style_desktop == 99 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-99 (Add your own image / GIF)', 'click-to-chat-for-whatsapp' ); ?></option>
47
  </select>
48
- <p class="description"><a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/list-of-styles/"><?php _e( 'List of styles', 'click-to-chat-for-whatsapp' ); ?></a> &emsp; | &emsp; <span><?php _e( 'Customize the styles', 'click-to-chat-for-whatsapp' ); ?> <a target="_blank" class="customize_styles_link" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">( Click to Chat -> Customize )</a></span> </p>
49
  <p class="description"><span class="check_select_styles" style="font-size: 0.7em;"><?php _e( 'If Styles for desktop, mobile not selected as expected', 'click-to-chat-for-whatsapp' ); ?> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-other-settings#styles_issue:~:text=Check,cache)' ); ?>"><?php _e( 'Check this', 'click-to-chat-for-whatsapp' ); ?></a>, - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/select-styles/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a></span></p>
50
  <!-- <span class="check_select_styles" style="font-size: 0.7em;">If Styles for desktop, mobile not selected as expected <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles#:~:text=check%20this, cache)' ); ?>">Check this</a>, - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/select-styles/">more info</a></span></p> -->
51
  </div>
@@ -84,7 +84,7 @@ $side_2_value = ( isset( $options['side_2_value']) ) ? esc_attr( $options['side_
84
  <label for="side_2_value"><?php _e( 'E.g. 50%', 'click-to-chat-for-whatsapp' ); ?></label>
85
  </div>
86
  </div>
87
- <p class="description ht_ctc_admin_desktop"><?php _e( 'Add css units as suffix - e.g. 10px, 50%', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/position-to-place/">more info</a> </p>
88
 
89
  <br class="ht_ctc_admin_desktop">
90
  <hr class="ht_ctc_admin_desktop" style="max-width: 500px;">
35
  <option value="2" <?php echo $style_desktop == 2 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-2', 'click-to-chat-for-whatsapp' ); ?></option>
36
  <!-- <optgroup label="Style 3"> -->
37
  <option value="3" <?php echo $style_desktop == 3 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-3', 'click-to-chat-for-whatsapp' ); ?></option>
38
+ <option value="3_1" <?php echo $style_desktop == '3_1' ? 'SELECTED' : ''; ?> >&emsp;<?php _e( 'Style-3 Extend', 'click-to-chat-for-whatsapp' ); ?></option>
39
  <!-- </optgroup> -->
40
  <option value="4" <?php echo $style_desktop == 4 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-4', 'click-to-chat-for-whatsapp' ); ?></option>
41
  <option value="5" <?php echo $style_desktop == 5 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-5', 'click-to-chat-for-whatsapp' ); ?></option>
42
  <option value="6" <?php echo $style_desktop == 6 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-6', 'click-to-chat-for-whatsapp' ); ?></option>
43
  <option value="7" <?php echo $style_desktop == 7 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-7', 'click-to-chat-for-whatsapp' ); ?></option>
44
+ <option value="7_1" <?php echo $style_desktop == '7_1' ? 'SELECTED' : ''; ?> >&emsp;<?php _e( 'Style-7 Extend', 'click-to-chat-for-whatsapp' ); ?></option>
45
  <option value="8" <?php echo $style_desktop == 8 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-8', 'click-to-chat-for-whatsapp' ); ?></option>
46
  <option value="99" <?php echo $style_desktop == 99 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-99 (Add your own image / GIF)', 'click-to-chat-for-whatsapp' ); ?></option>
47
  </select>
48
+ <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/list-of-styles/"><?php _e( 'List of styles', 'click-to-chat-for-whatsapp' ); ?></a> &emsp; | &emsp; <span><?php _e( 'Customize the styles', 'click-to-chat-for-whatsapp' ); ?> <a target="_blank" class="customize_styles_link" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">( Click to Chat -> Customize )</a></span> </p>
49
  <p class="description"><span class="check_select_styles" style="font-size: 0.7em;"><?php _e( 'If Styles for desktop, mobile not selected as expected', 'click-to-chat-for-whatsapp' ); ?> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-other-settings#styles_issue:~:text=Check,cache)' ); ?>"><?php _e( 'Check this', 'click-to-chat-for-whatsapp' ); ?></a>, - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/select-styles/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a></span></p>
50
  <!-- <span class="check_select_styles" style="font-size: 0.7em;">If Styles for desktop, mobile not selected as expected <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles#:~:text=check%20this, cache)' ); ?>">Check this</a>, - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/select-styles/">more info</a></span></p> -->
51
  </div>
84
  <label for="side_2_value"><?php _e( 'E.g. 50%', 'click-to-chat-for-whatsapp' ); ?></label>
85
  </div>
86
  </div>
87
+ <p class="description ht_ctc_admin_desktop"><?php _e( 'Add css units as suffix - e.g. 10px, 50%', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/position-to-place/">more info</a> </p>
88
 
89
  <br class="ht_ctc_admin_desktop">
90
  <hr class="ht_ctc_admin_desktop" style="max-width: 500px;">
new/admin/admin_commons/admin-mobile.php CHANGED
@@ -33,16 +33,16 @@ $mobile_side_2_value = ( isset( $options['mobile_side_2_value'])) ? esc_attr( $o
33
  <option value="1" <?php echo $style_mobile == 1 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-1', 'click-to-chat-for-whatsapp' ); ?></option>
34
  <option value="2" <?php echo $style_mobile == 2 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-2', 'click-to-chat-for-whatsapp' ); ?></option>
35
  <option value="3" <?php echo $style_mobile == 3 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-3', 'click-to-chat-for-whatsapp' ); ?></option>
36
- <option value="3_1" <?php echo $style_mobile == '3_1' ? 'SELECTED' : ''; ?> ><?php _e( 'Style-3 Extend', 'click-to-chat-for-whatsapp' ); ?></option>
37
  <option value="4" <?php echo $style_mobile == 4 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-4', 'click-to-chat-for-whatsapp' ); ?></option>
38
  <option value="5" <?php echo $style_mobile == 5 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-5', 'click-to-chat-for-whatsapp' ); ?></option>
39
  <option value="6" <?php echo $style_mobile == 6 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-6', 'click-to-chat-for-whatsapp' ); ?></option>
40
  <option value="7" <?php echo $style_mobile == 7 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-7', 'click-to-chat-for-whatsapp' ); ?></option>
41
- <option value="7_1" <?php echo $style_mobile == '7_1' ? 'SELECTED' : ''; ?> ><?php _e( 'Style-7 Extend', 'click-to-chat-for-whatsapp' ); ?></option>
42
  <option value="8" <?php echo $style_mobile == 8 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-8', 'click-to-chat-for-whatsapp' ); ?></option>
43
  <option value="99" <?php echo $style_mobile == 99 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-99 (Add your own image / GIF)', 'click-to-chat-for-whatsapp' ); ?></option>
44
  </select>
45
- <p class="description"><a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/list-of-styles/"><?php _e( 'List of styles', 'click-to-chat-for-whatsapp' ); ?></a> &emsp; | &emsp; <span><?php _e( 'Customize the styles', 'click-to-chat-for-whatsapp' ); ?> <a target="_blank" class="customize_styles_link" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">( Click to Chat -> Customize )</a></span> </p>
46
  <p class="description"><span class="check_select_styles" style="font-size: 0.7em;">If Styles for desktop, mobile not selected as expected <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-other-settings#styles_issue:~:text=Check,cache)' ); ?>">Check this</a>, - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/select-styles/">more info</a></span></p>
47
  </div>
48
  </div>
@@ -80,7 +80,7 @@ $mobile_side_2_value = ( isset( $options['mobile_side_2_value'])) ? esc_attr( $o
80
  <label for="side_2_value"><?php _e( 'E.g. 50%', 'click-to-chat-for-whatsapp' ); ?></label>
81
  </div>
82
  </div>
83
- <p class="description ht_ctc_admin_mobile"><?php _e( 'Add css units as suffix - e.g. 10px, 50%', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/position-to-place/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
84
 
85
  <br class="ht_ctc_admin_mobile">
86
  <hr class="ht_ctc_admin_mobile" style="max-width: 500px;">
33
  <option value="1" <?php echo $style_mobile == 1 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-1', 'click-to-chat-for-whatsapp' ); ?></option>
34
  <option value="2" <?php echo $style_mobile == 2 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-2', 'click-to-chat-for-whatsapp' ); ?></option>
35
  <option value="3" <?php echo $style_mobile == 3 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-3', 'click-to-chat-for-whatsapp' ); ?></option>
36
+ <option value="3_1" <?php echo $style_mobile == '3_1' ? 'SELECTED' : ''; ?> >&emsp;<?php _e( 'Style-3 Extend', 'click-to-chat-for-whatsapp' ); ?></option>
37
  <option value="4" <?php echo $style_mobile == 4 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-4', 'click-to-chat-for-whatsapp' ); ?></option>
38
  <option value="5" <?php echo $style_mobile == 5 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-5', 'click-to-chat-for-whatsapp' ); ?></option>
39
  <option value="6" <?php echo $style_mobile == 6 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-6', 'click-to-chat-for-whatsapp' ); ?></option>
40
  <option value="7" <?php echo $style_mobile == 7 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-7', 'click-to-chat-for-whatsapp' ); ?></option>
41
+ <option value="7_1" <?php echo $style_mobile == '7_1' ? 'SELECTED' : ''; ?> >&emsp;<?php _e( 'Style-7 Extend', 'click-to-chat-for-whatsapp' ); ?></option>
42
  <option value="8" <?php echo $style_mobile == 8 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-8', 'click-to-chat-for-whatsapp' ); ?></option>
43
  <option value="99" <?php echo $style_mobile == 99 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-99 (Add your own image / GIF)', 'click-to-chat-for-whatsapp' ); ?></option>
44
  </select>
45
+ <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/list-of-styles/"><?php _e( 'List of styles', 'click-to-chat-for-whatsapp' ); ?></a> &emsp; | &emsp; <span><?php _e( 'Customize the styles', 'click-to-chat-for-whatsapp' ); ?> <a target="_blank" class="customize_styles_link" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">( Click to Chat -> Customize )</a></span> </p>
46
  <p class="description"><span class="check_select_styles" style="font-size: 0.7em;">If Styles for desktop, mobile not selected as expected <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-other-settings#styles_issue:~:text=Check,cache)' ); ?>">Check this</a>, - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/select-styles/">more info</a></span></p>
47
  </div>
48
  </div>
80
  <label for="side_2_value"><?php _e( 'E.g. 50%', 'click-to-chat-for-whatsapp' ); ?></label>
81
  </div>
82
  </div>
83
+ <p class="description ht_ctc_admin_mobile"><?php _e( 'Add css units as suffix - e.g. 10px, 50%', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/position-to-place/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
84
 
85
  <br class="ht_ctc_admin_mobile">
86
  <hr class="ht_ctc_admin_mobile" style="max-width: 500px;">
new/admin/admin_commons/admin-show-hide.php CHANGED
@@ -38,8 +38,10 @@ do_action('ht_ctc_ah_admin_before_showhide');
38
  <div class="input-field col s8">
39
  <select name="<?php echo $dbrow ?>[show_or_hide]" class="select_show_or_hide">
40
  <option value="hide" <?php echo $show_or_hide == "hide" ? 'SELECTED' : ''; ?> ><?php _e( 'Hide on selected pages', 'click-to-chat-for-whatsapp' ); ?></option>
41
- <option value="show" <?php echo $show_or_hide == "show" ? 'SELECTED' : ''; ?> ><?php _e( 'Show on selected pages', 'click-to-chat-for-whatsapp' ); ?></option>
42
  </select>
 
 
43
  <!-- <label><?php _e( 'enable' , 'click-to-chat-for-whatsapp' ) ?></label> -->
44
  </div>
45
  </div>
@@ -50,8 +52,8 @@ do_action('ht_ctc_ah_admin_before_showhide');
50
 
51
 
52
 
53
- <p class="description ctc_show_hide_display show-hide_display-none hidebased" style="margin-bottom: 15px">
54
- <?php echo 'Select pages to Hide styles <span style="color: green;"> ( Default Shows on all pages ) ' ?>
55
  </p>
56
  <!-- <br><br> -->
57
  <?php
@@ -218,13 +220,13 @@ if ( isset( $options['hideon_wooproduct'] ) ) {
218
 
219
  ?>
220
  <p class="description ctc_show_hide_display show-hide_display-none hidebased"><?php _e( 'Check to hide Styles based on the type of pages', 'click-to-chat-for-whatsapp' ); ?></p>
221
- <br>
222
 
223
  <!-- ID's list to hide styles -->
224
  <div class="row ctc_show_hide_display show-hide_display-none hidebased">
225
  <div class="input-field col s7">
226
  <input name="<?php echo $dbrow ?>[list_hideon_pages]" value="<?php echo $list_hideon_pages ?>" id="ccw_list_id_tohide" type="text" class="input-margin">
227
- <label for="ccw_list_id_tohide"><?php _e( 'Hide on this pages', 'click-to-chat-for-whatsapp' ); ?></label>
228
  <p class="description"><?php _e( "Add post id's to hide. Add multiple post id's by separating with a comma ( , )", 'click-to-chat-for-whatsapp' ); ?></p>
229
  </div>
230
  </div>
@@ -233,8 +235,8 @@ if ( isset( $options['hideon_wooproduct'] ) ) {
233
  <div class="row ctc_show_hide_display show-hide_display-none hidebased">
234
  <div class="input-field col s7">
235
  <input name="<?php echo $dbrow ?>[list_hideon_cat]" value="<?php echo $list_hideon_cat ?>" id="list_hideon_cat" type="text" class="input-margin">
236
- <label for="list_hideon_cat"><?php _e( 'Hide on this Category pages' , 'click-to-chat-for-whatsapp' ) ?> </label>
237
- <p class="description"><?php _e( 'Add Categories names to hide, Add multiple Categories by separating with a comma ( , ) ', 'click-to-chat-for-whatsapp' ); ?></p>
238
  </div>
239
  </div>
240
 
@@ -245,7 +247,7 @@ if ( isset( $options['hideon_wooproduct'] ) ) {
245
 
246
 
247
  <p class="description ctc_show_hide_display show-hide_display-none showbased" style="margin-bottom: 15px">
248
- <?php echo 'Select pages to display styles <span style="background-color: #dddddd; color: red;"> ( Default hides on all pages ) ' ?>
249
  </p>
250
  <?php
251
 
@@ -407,13 +409,13 @@ if ( isset( $options['showon_wooproduct'] ) ) {
407
 
408
  ?>
409
  <p class="description ctc_show_hide_display show-hide_display-none showbased">Check to display Styles based on type of the page</p>
410
- <br>
411
 
412
  <!-- ID's list to show styles -->
413
  <div class="row ctc_show_hide_display show-hide_display-none showbased">
414
  <div class="input-field col s7">
415
  <input name="<?php echo $dbrow ?>[list_showon_pages]" value="<?php echo $list_showon_pages ?>" id="ccw_list_id_toshow" type="text" class="input-margin">
416
- <label for="ccw_list_id_toshow">Show on this pages</label>
417
  <p class="description"><?php _e( "Add Post, Page, Media - ID's to show styles, Add multiple id's by separating with a comma ( , )", 'click-to-chat-for-whatsapp' ); ?></p>
418
  </div>
419
  </div>
@@ -423,8 +425,8 @@ if ( isset( $options['showon_wooproduct'] ) ) {
423
  <div class="row ctc_show_hide_display show-hide_display-none showbased">
424
  <div class="input-field col s7">
425
  <input name="<?php echo $dbrow ?>[list_showon_cat]" value="<?php echo $list_showon_cat ?>" id="ccw_list_cat_toshow" type="text" class="input-margin">
426
- <label for="ccw_list_cat_toshow"><?php _e( 'Show on this Category pages' , 'click-to-chat-for-whatsapp' ) ?> </label>
427
- <p class="description"><?php _e( 'Add Categories name to show styles, Add multiple Categories by separating with a comma ( , )', 'click-to-chat-for-whatsapp' ); ?> </p>
428
  </div>
429
  </div>
430
 
@@ -435,7 +437,7 @@ if ( 'chat' == $type ) {
435
  do_action('ht_ctc_ah_admin_after_showhide');
436
  ?>
437
 
438
- <p class="description"><a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/show-hide-styles/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
439
  <br>
440
  <p class="description"><?php _e( 'Usecases', 'click-to-chat-for-whatsapp' ); ?>:</p>
441
  <p class="description"> > <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-only-on-selected-pages/"><?php _e( 'Show only on selected pages', 'click-to-chat-for-whatsapp' ); ?></a><?php _e( ' (Single, Cart, Checkout page)', 'click-to-chat-for-whatsapp' ); ?></p>
38
  <div class="input-field col s8">
39
  <select name="<?php echo $dbrow ?>[show_or_hide]" class="select_show_or_hide">
40
  <option value="hide" <?php echo $show_or_hide == "hide" ? 'SELECTED' : ''; ?> ><?php _e( 'Hide on selected pages', 'click-to-chat-for-whatsapp' ); ?></option>
41
+ <option value="show" <?php echo $show_or_hide == "show" ? 'SELECTED' : ''; ?> ><?php _e( 'Show only on selected pages', 'click-to-chat-for-whatsapp' ); ?></option>
42
  </select>
43
+ <p class="description ctc_show_hide_display show-hide_display-none hidebased"><span style="background-color: #ddd; padding: 0 5px; border-radius: 5px; color: green; "><?php _e( 'Default shows on all pages', 'click-to-chat-for-whatsapp' ); ?> </span></p>
44
+ <p class="description ctc_show_hide_display show-hide_display-none showbased"><span style="color: red; "><?php _e( 'Default Hides on all pages', 'click-to-chat-for-whatsapp' ); ?> </span></p>
45
  <!-- <label><?php _e( 'enable' , 'click-to-chat-for-whatsapp' ) ?></label> -->
46
  </div>
47
  </div>
52
 
53
 
54
 
55
+ <p class="description ctc_show_hide_display show-hide_display-none hidebased" style="margin-bottom: 15px;">
56
+ <strong style=""><?php _e( 'Select pages to Hide styles', 'click-to-chat-for-whatsapp' ); ?></strong>
57
  </p>
58
  <!-- <br><br> -->
59
  <?php
220
 
221
  ?>
222
  <p class="description ctc_show_hide_display show-hide_display-none hidebased"><?php _e( 'Check to hide Styles based on the type of pages', 'click-to-chat-for-whatsapp' ); ?></p>
223
+ <br class="ctc_show_hide_display show-hide_display-none hidebased">
224
 
225
  <!-- ID's list to hide styles -->
226
  <div class="row ctc_show_hide_display show-hide_display-none hidebased">
227
  <div class="input-field col s7">
228
  <input name="<?php echo $dbrow ?>[list_hideon_pages]" value="<?php echo $list_hideon_pages ?>" id="ccw_list_id_tohide" type="text" class="input-margin">
229
+ <label for="ccw_list_id_tohide"><?php _e( "Add Post ID's to Hide Styles", 'click-to-chat-for-whatsapp' ); ?></label>
230
  <p class="description"><?php _e( "Add post id's to hide. Add multiple post id's by separating with a comma ( , )", 'click-to-chat-for-whatsapp' ); ?></p>
231
  </div>
232
  </div>
235
  <div class="row ctc_show_hide_display show-hide_display-none hidebased">
236
  <div class="input-field col s7">
237
  <input name="<?php echo $dbrow ?>[list_hideon_cat]" value="<?php echo $list_hideon_cat ?>" id="list_hideon_cat" type="text" class="input-margin">
238
+ <label for="list_hideon_cat"><?php _e( 'Add Category names to Hide Styles' , 'click-to-chat-for-whatsapp' ) ?> </label>
239
+ <p class="description"><?php _e( 'Hides on this Category type pages, Add multiple Categories by separating with a comma ( , ) ', 'click-to-chat-for-whatsapp' ); ?></p>
240
  </div>
241
  </div>
242
 
247
 
248
 
249
  <p class="description ctc_show_hide_display show-hide_display-none showbased" style="margin-bottom: 15px">
250
+ <strong><?php _e( 'Select pages to display styles', 'click-to-chat-for-whatsapp' ); ?></strong>
251
  </p>
252
  <?php
253
 
409
 
410
  ?>
411
  <p class="description ctc_show_hide_display show-hide_display-none showbased">Check to display Styles based on type of the page</p>
412
+ <br class="ctc_show_hide_display show-hide_display-none showbased">
413
 
414
  <!-- ID's list to show styles -->
415
  <div class="row ctc_show_hide_display show-hide_display-none showbased">
416
  <div class="input-field col s7">
417
  <input name="<?php echo $dbrow ?>[list_showon_pages]" value="<?php echo $list_showon_pages ?>" id="ccw_list_id_toshow" type="text" class="input-margin">
418
+ <label for="ccw_list_id_toshow"><?php _e( "Add Post ID's to show Styles", 'click-to-chat-for-whatsapp' ); ?></label>
419
  <p class="description"><?php _e( "Add Post, Page, Media - ID's to show styles, Add multiple id's by separating with a comma ( , )", 'click-to-chat-for-whatsapp' ); ?></p>
420
  </div>
421
  </div>
425
  <div class="row ctc_show_hide_display show-hide_display-none showbased">
426
  <div class="input-field col s7">
427
  <input name="<?php echo $dbrow ?>[list_showon_cat]" value="<?php echo $list_showon_cat ?>" id="ccw_list_cat_toshow" type="text" class="input-margin">
428
+ <label for="ccw_list_cat_toshow"><?php _e( 'Add Category names to Show Styles' , 'click-to-chat-for-whatsapp' ) ?> </label>
429
+ <p class="description"><?php _e( 'Show on this Category type pages, Add multiple Categories by separating with a comma ( , )', 'click-to-chat-for-whatsapp' ); ?> </p>
430
  </div>
431
  </div>
432
 
437
  do_action('ht_ctc_ah_admin_after_showhide');
438
  ?>
439
 
440
+ <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-hide-styles/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
441
  <br>
442
  <p class="description"><?php _e( 'Usecases', 'click-to-chat-for-whatsapp' ); ?>:</p>
443
  <p class="description"> > <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/show-only-on-selected-pages/"><?php _e( 'Show only on selected pages', 'click-to-chat-for-whatsapp' ); ?></a><?php _e( ' (Single, Cart, Checkout page)', 'click-to-chat-for-whatsapp' ); ?></p>
new/admin/admin_commons/admin-sidebar-content.php CHANGED
@@ -25,30 +25,11 @@ mail: ctc@holithemes.com
25
  </div>
26
  </li> -->
27
 
28
- <!-- <li>
29
- <div class="collapsible-header">I Make Changes and Nothing Happens</div>
30
- <div class="collapsible-body">
31
- <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/clear-cache/">Clear Cache:</a> <br>
32
- &emsp; - Cache plugins <br>
33
- &emsp; - Server cache <br>
34
- &emsp; - Browser Cache
35
- </p>
36
- </div>
37
- </li> -->
38
-
39
- <!-- <li>
40
- <div class="collapsible-header">Positon to place</div>
41
- <div class="collapsible-body">
42
- <p class="description">Center to the Screen</p>
43
- <p class="description">Different position for mobile, desktop (pro)</p>
44
- </div>
45
- </li> -->
46
-
47
  <li class="active">
48
  <div class="collapsible-header"><?php _e( 'Contact Us', 'click-to-chat-for-whatsapp' ); ?></div>
49
  <div class="collapsible-body">
50
  <p class="description"><?php _e( 'Please let us know if you have any suggestions or feedback!!', 'click-to-chat-for-whatsapp' ); ?> <br><br> <a href="http://api.whatsapp.com/send?phone=919494429789&text=<?php echo get_bloginfo('url'); ?>%0AHi%20HoliThemes,%0AI%20have%20a%20Suggestion/Feedback:" target="_blank"><?php _e( 'WhatsApp', 'click-to-chat-for-whatsapp' ); ?></a></p>
51
- <p class="description"><?php _e( 'mail', 'click-to-chat-for-whatsapp' ); ?>: ctc@holithemes.com</p>
52
  </div>
53
  </li>
54
 
25
  </div>
26
  </li> -->
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  <li class="active">
29
  <div class="collapsible-header"><?php _e( 'Contact Us', 'click-to-chat-for-whatsapp' ); ?></div>
30
  <div class="collapsible-body">
31
  <p class="description"><?php _e( 'Please let us know if you have any suggestions or feedback!!', 'click-to-chat-for-whatsapp' ); ?> <br><br> <a href="http://api.whatsapp.com/send?phone=919494429789&text=<?php echo get_bloginfo('url'); ?>%0AHi%20HoliThemes,%0AI%20have%20a%20Suggestion/Feedback:" target="_blank"><?php _e( 'WhatsApp', 'click-to-chat-for-whatsapp' ); ?></a></p>
32
+ <p class="description"><?php _e( 'Mail', 'click-to-chat-for-whatsapp' ); ?>:<a href="mailto: ctc@holithemes.com"> ctc@holithemes.com</a></p>
33
  </div>
34
  </li>
35
 
new/admin/class-ht-ctc-admin-customize-styles.php CHANGED
@@ -198,7 +198,7 @@ class HT_CTC_Admin_Customize_Styles {
198
  $options = get_option('ht_ctc_s1');
199
  $dbrow = 'ht_ctc_s1';
200
  ?>
201
- <ul class="collapsible" data-collapsible="accordion">
202
  <li>
203
  <div class="collapsible-header"><?php _e( 'Style 1', 'click-to-chat-for-whatsapp' ); ?></div>
204
  <div class="collapsible-body">
@@ -261,7 +261,7 @@ class HT_CTC_Admin_Customize_Styles {
261
  $s2_img_size = ( isset( $options['s2_img_size']) ) ? esc_attr( $options['s2_img_size'] ) : '';
262
 
263
  ?>
264
- <ul class="collapsible" data-collapsible="accordion">
265
  <li>
266
  <div class="collapsible-header"><?php _e( 'Style 2', 'click-to-chat-for-whatsapp' ); ?></div>
267
  <div class="collapsible-body">
@@ -286,7 +286,7 @@ class HT_CTC_Admin_Customize_Styles {
286
 
287
  ?>
288
 
289
- <h5 style="display: inline-block;">Call to Action </h5><span> (beta)</span>
290
  <hr>
291
  <!-- call to action - hover / show / hide -->
292
  <div class="row">
@@ -294,7 +294,7 @@ class HT_CTC_Admin_Customize_Styles {
294
  <p><?php _e( 'Display - Call to Action', 'click-to-chat-for-whatsapp' ); ?></p>
295
  </div>
296
  <div class="input-field col s6">
297
- <select name="<?php echo $dbrow ?>[cta_type]" class="select_style_2_cta_type">
298
  <option value="hover" <?php echo $select_cta_type == 'hover' ? 'SELECTED' : ''; ?> >On Hover</option>
299
  <option value="show" <?php echo $select_cta_type == 'show' ? 'SELECTED' : ''; ?> >Show</option>
300
  <option value="hide" <?php echo $select_cta_type == 'hide' ? 'SELECTED' : ''; ?> >Hide</option>
@@ -310,7 +310,7 @@ class HT_CTC_Admin_Customize_Styles {
310
  </div>
311
 
312
  <!-- call to action - Text color -->
313
- <div class="row">
314
  <div class="col s6">
315
  <p><?php _e( 'Call to Action - Text Color', 'click-to-chat-for-whatsapp' ); ?></p>
316
  </div>
@@ -320,7 +320,7 @@ class HT_CTC_Admin_Customize_Styles {
320
  </div>
321
 
322
  <!-- call to action - background color -->
323
- <div class="row">
324
  <div class="col s6">
325
  <p><?php _e( 'Call to Action - Background Color', 'click-to-chat-for-whatsapp' ); ?></p>
326
  </div>
@@ -362,7 +362,7 @@ class HT_CTC_Admin_Customize_Styles {
362
  $cta_textcolor = ( isset( $options['cta_textcolor']) ) ? esc_attr( $options['cta_textcolor'] ) : '';
363
  $cta_bgcolor = ( isset( $options['cta_bgcolor']) ) ? esc_attr( $options['cta_bgcolor'] ) : '';
364
  ?>
365
- <ul class="collapsible" data-collapsible="accordion">
366
  <li>
367
  <div class="collapsible-header"><?php _e( 'Style 3', 'click-to-chat-for-whatsapp' ); ?></div>
368
  <div class="collapsible-body">
@@ -379,7 +379,7 @@ class HT_CTC_Admin_Customize_Styles {
379
  </div>
380
 
381
 
382
- <h5 style="display: inline-block;">Call to Action </h5><span> (beta)</span>
383
  <!-- call to action - hover / show / hide -->
384
  <hr>
385
  <div class="row">
@@ -387,7 +387,7 @@ class HT_CTC_Admin_Customize_Styles {
387
  <p><?php _e( 'Display - Call to Action', 'click-to-chat-for-whatsapp' ); ?></p>
388
  </div>
389
  <div class="input-field col s6">
390
- <select name="<?php echo $dbrow ?>[cta_type]" class="select_style_3_cta_type">
391
  <option value="hover" <?php echo $select_cta_type == 'hover' ? 'SELECTED' : ''; ?> >On Hover</option>
392
  <option value="show" <?php echo $select_cta_type == 'show' ? 'SELECTED' : ''; ?> >Show</option>
393
  <option value="hide" <?php echo $select_cta_type == 'hide' ? 'SELECTED' : ''; ?> >Hide</option>
@@ -403,7 +403,7 @@ class HT_CTC_Admin_Customize_Styles {
403
  </div>
404
 
405
  <!-- call to action - Text color -->
406
- <div class="row">
407
  <div class="col s6">
408
  <p><?php _e( 'Call to Action - Text Color', 'click-to-chat-for-whatsapp' ); ?></p>
409
  </div>
@@ -413,7 +413,7 @@ class HT_CTC_Admin_Customize_Styles {
413
  </div>
414
 
415
  <!-- call to action - background color -->
416
- <div class="row">
417
  <div class="col s6">
418
  <p><?php _e( 'Call to Action - Background Color', 'click-to-chat-for-whatsapp' ); ?></p>
419
  </div>
@@ -448,7 +448,7 @@ class HT_CTC_Admin_Customize_Styles {
448
  $s3_bg_color_hover = ( isset( $options['s3_bg_color_hover']) ) ? esc_attr( $options['s3_bg_color_hover'] ) : '';
449
 
450
  ?>
451
- <ul class="collapsible" data-collapsible="accordion">
452
  <li>
453
  <div class="collapsible-header"><?php _e( 'Style 3 Extend', 'click-to-chat-for-whatsapp' ); ?></div>
454
  <div class="collapsible-body">
@@ -552,7 +552,7 @@ class HT_CTC_Admin_Customize_Styles {
552
 
553
  ?>
554
 
555
- <h5 style="display: inline-block;">Call to Action </h5><span> (beta)</span>
556
  <hr>
557
  <!-- call to action - hover / show / hide -->
558
  <div class="row">
@@ -560,7 +560,7 @@ class HT_CTC_Admin_Customize_Styles {
560
  <p><?php _e( 'Display - Call to Action', 'click-to-chat-for-whatsapp' ); ?></p>
561
  </div>
562
  <div class="input-field col s6">
563
- <select name="<?php echo $dbrow ?>[cta_type]" class="select_style_3_cta_type">
564
  <option value="hover" <?php echo $select_cta_type == 'hover' ? 'SELECTED' : ''; ?> >On Hover</option>
565
  <option value="show" <?php echo $select_cta_type == 'show' ? 'SELECTED' : ''; ?> >Show</option>
566
  <option value="hide" <?php echo $select_cta_type == 'hide' ? 'SELECTED' : ''; ?> >Hide</option>
@@ -576,7 +576,7 @@ class HT_CTC_Admin_Customize_Styles {
576
  </div>
577
 
578
  <!-- call to action - Text color -->
579
- <div class="row">
580
  <div class="col s6">
581
  <p><?php _e( 'Call to Action - Text Color', 'click-to-chat-for-whatsapp' ); ?></p>
582
  </div>
@@ -586,7 +586,7 @@ class HT_CTC_Admin_Customize_Styles {
586
  </div>
587
 
588
  <!-- call to action - background color -->
589
- <div class="row">
590
  <div class="col s6">
591
  <p><?php _e( 'Call to Action - Background Color', 'click-to-chat-for-whatsapp' ); ?></p>
592
  </div>
@@ -615,7 +615,7 @@ class HT_CTC_Admin_Customize_Styles {
615
  $s4_img_size = ( isset( $options['s4_img_size']) ) ? esc_attr( $options['s4_img_size'] ) : '';
616
  $select_s4_img_position = ( isset( $options['s4_img_position']) ) ? esc_attr( $options['s4_img_position'] ) : '';
617
  ?>
618
- <ul class="collapsible" data-collapsible="accordion">
619
  <li>
620
  <div class="collapsible-header">Style 4</div>
621
  <div class="collapsible-body">
@@ -704,7 +704,7 @@ class HT_CTC_Admin_Customize_Styles {
704
  $s5_content_width = ( isset( $options['s5_content_width']) ) ? esc_attr( $options['s5_content_width'] ) : '';
705
  $select_s5_img_position = ( isset( $options['s5_img_position']) ) ? esc_attr( $options['s5_img_position'] ) : '';
706
  ?>
707
- <ul class="collapsible" data-collapsible="accordion">
708
  <li>
709
  <div class="collapsible-header"><?php _e( 'Style 5', 'click-to-chat-for-whatsapp' ); ?></div>
710
  <div class="collapsible-body">
@@ -861,7 +861,7 @@ class HT_CTC_Admin_Customize_Styles {
861
  $text_decoration_value = ( isset( $options['s6_txt_decoration']) ) ? esc_attr( $options['s6_txt_decoration'] ) : '';
862
  $text_decoration_hover_value = ( isset( $options['s6_txt_decoration_on_hover']) ) ? esc_attr( $options['s6_txt_decoration_on_hover'] ) : '';
863
  ?>
864
- <ul class="collapsible" data-collapsible="accordion">
865
  <li>
866
  <div class="collapsible-header">Style 6</div>
867
  <div class="collapsible-body">
@@ -954,7 +954,7 @@ class HT_CTC_Admin_Customize_Styles {
954
  $cta_bgcolor = ( isset( $options['cta_bgcolor']) ) ? esc_attr( $options['cta_bgcolor'] ) : '';
955
  $cta_bgcolor_hover = ( isset( $options['cta_bgcolor_hover']) ) ? esc_attr( $options['cta_bgcolor_hover'] ) : '';
956
  ?>
957
- <ul class="collapsible" data-collapsible="accordion">
958
  <li>
959
  <div class="collapsible-header"><?php _e( 'Style 7', 'click-to-chat-for-whatsapp' ); ?></div>
960
  <div class="collapsible-body">
@@ -1038,7 +1038,7 @@ class HT_CTC_Admin_Customize_Styles {
1038
 
1039
  <br><br>
1040
 
1041
- <h5 style="display: inline-block;">Call to Action </h5><span> (beta)</span>
1042
  <hr>
1043
  <!-- call to action - hover / show / hide -->
1044
  <div class="row">
@@ -1054,7 +1054,7 @@ class HT_CTC_Admin_Customize_Styles {
1054
  </div>
1055
  </div>
1056
  <!-- call to action - Text color -->
1057
- <div class="row">
1058
  <div class="col s6">
1059
  <p><?php _e( 'Text Color', 'click-to-chat-for-whatsapp' ); ?></p>
1060
  </div>
@@ -1064,7 +1064,7 @@ class HT_CTC_Admin_Customize_Styles {
1064
  </div>
1065
 
1066
  <!-- call to action - background color -->
1067
- <div class="row">
1068
  <div class="col s6">
1069
  <p><?php _e( 'Background Color', 'click-to-chat-for-whatsapp' ); ?></p>
1070
  </div>
@@ -1099,12 +1099,12 @@ class HT_CTC_Admin_Customize_Styles {
1099
  $select_cta_type = ( isset( $options['cta_type']) ) ? esc_attr( $options['cta_type'] ) : '';
1100
 
1101
  ?>
1102
- <ul class="collapsible" data-collapsible="accordion">
1103
  <li>
1104
  <div class="collapsible-header"><?php _e( 'Style 7 Extend', 'click-to-chat-for-whatsapp' ); ?></div>
1105
  <div class="collapsible-body">
1106
 
1107
- <!-- call to action - hover / show -->
1108
  <div class="row">
1109
  <div class="col s6">
1110
  <p><?php _e( 'Display - Call to Action', 'click-to-chat-for-whatsapp' ); ?></p>
@@ -1209,7 +1209,7 @@ class HT_CTC_Admin_Customize_Styles {
1209
  $s8_icon_size = ( isset( $options['s8_icon_size']) ) ? esc_attr( $options['s8_icon_size'] ) : '';
1210
  $s8_btn_size = ( isset( $options['s8_btn_size']) ) ? esc_attr( $options['s8_btn_size'] ) : '';
1211
  ?>
1212
- <ul class="collapsible" data-collapsible="accordion">
1213
  <li>
1214
  <div class="collapsible-header"><?php _e( 'Style 8', 'click-to-chat-for-whatsapp' ); ?></div>
1215
  <div class="collapsible-body">
@@ -1373,7 +1373,7 @@ class HT_CTC_Admin_Customize_Styles {
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>
1379
  </div>
@@ -1395,7 +1395,7 @@ class HT_CTC_Admin_Customize_Styles {
1395
  $s99_mobile_img_height = ( isset( $options['s99_mobile_img_height']) ) ? esc_attr( $options['s99_mobile_img_height'] ) : '';
1396
  $s99_mobile_img_width = ( isset( $options['s99_mobile_img_width']) ) ? esc_attr( $options['s99_mobile_img_width'] ) : '';
1397
  ?>
1398
- <ul class="collapsible" data-collapsible="accordion">
1399
  <li>
1400
  <div class="collapsible-header"><?php _e( 'Style 99 - Own Image / GIF', 'click-to-chat-for-whatsapp' ); ?></div>
1401
  <div class="collapsible-body">
@@ -1529,7 +1529,7 @@ class HT_CTC_Admin_Customize_Styles {
1529
  $input[$key] = ('' == $input[$key]) ? '270px' : $input[$key];
1530
  }
1531
  if ( 's7_icon_size' == $key ) {
1532
- $input[$key] = ('' == $input[$key]) ? '28px' : $input[$key];
1533
  }
1534
  if ( 's7_border_size' == $key ) {
1535
  $input[$key] = ('' == $input[$key]) ? '12px' : $input[$key];
198
  $options = get_option('ht_ctc_s1');
199
  $dbrow = 'ht_ctc_s1';
200
  ?>
201
+ <ul class="collapsible ht_ctc_s1" data-collapsible="accordion">
202
  <li>
203
  <div class="collapsible-header"><?php _e( 'Style 1', 'click-to-chat-for-whatsapp' ); ?></div>
204
  <div class="collapsible-body">
261
  $s2_img_size = ( isset( $options['s2_img_size']) ) ? esc_attr( $options['s2_img_size'] ) : '';
262
 
263
  ?>
264
+ <ul class="collapsible ht_ctc_s2" data-collapsible="accordion">
265
  <li>
266
  <div class="collapsible-header"><?php _e( 'Style 2', 'click-to-chat-for-whatsapp' ); ?></div>
267
  <div class="collapsible-body">
286
 
287
  ?>
288
 
289
+ <h5 style="display: inline-block;">Call to Action </h5>
290
  <hr>
291
  <!-- call to action - hover / show / hide -->
292
  <div class="row">
294
  <p><?php _e( 'Display - Call to Action', 'click-to-chat-for-whatsapp' ); ?></p>
295
  </div>
296
  <div class="input-field col s6">
297
+ <select name="<?php echo $dbrow ?>[cta_type]" class="select_cta_type">
298
  <option value="hover" <?php echo $select_cta_type == 'hover' ? 'SELECTED' : ''; ?> >On Hover</option>
299
  <option value="show" <?php echo $select_cta_type == 'show' ? 'SELECTED' : ''; ?> >Show</option>
300
  <option value="hide" <?php echo $select_cta_type == 'hide' ? 'SELECTED' : ''; ?> >Hide</option>
310
  </div>
311
 
312
  <!-- call to action - Text color -->
313
+ <div class="row cta_textcolor">
314
  <div class="col s6">
315
  <p><?php _e( 'Call to Action - Text Color', 'click-to-chat-for-whatsapp' ); ?></p>
316
  </div>
320
  </div>
321
 
322
  <!-- call to action - background color -->
323
+ <div class="row cta_bgcolor">
324
  <div class="col s6">
325
  <p><?php _e( 'Call to Action - Background Color', 'click-to-chat-for-whatsapp' ); ?></p>
326
  </div>
362
  $cta_textcolor = ( isset( $options['cta_textcolor']) ) ? esc_attr( $options['cta_textcolor'] ) : '';
363
  $cta_bgcolor = ( isset( $options['cta_bgcolor']) ) ? esc_attr( $options['cta_bgcolor'] ) : '';
364
  ?>
365
+ <ul class="collapsible ht_ctc_s3" data-collapsible="accordion">
366
  <li>
367
  <div class="collapsible-header"><?php _e( 'Style 3', 'click-to-chat-for-whatsapp' ); ?></div>
368
  <div class="collapsible-body">
379
  </div>
380
 
381
 
382
+ <h5 style="display: inline-block;">Call to Action </h5>
383
  <!-- call to action - hover / show / hide -->
384
  <hr>
385
  <div class="row">
387
  <p><?php _e( 'Display - Call to Action', 'click-to-chat-for-whatsapp' ); ?></p>
388
  </div>
389
  <div class="input-field col s6">
390
+ <select name="<?php echo $dbrow ?>[cta_type]" class="select_cta_type">
391
  <option value="hover" <?php echo $select_cta_type == 'hover' ? 'SELECTED' : ''; ?> >On Hover</option>
392
  <option value="show" <?php echo $select_cta_type == 'show' ? 'SELECTED' : ''; ?> >Show</option>
393
  <option value="hide" <?php echo $select_cta_type == 'hide' ? 'SELECTED' : ''; ?> >Hide</option>
403
  </div>
404
 
405
  <!-- call to action - Text color -->
406
+ <div class="row cta_textcolor">
407
  <div class="col s6">
408
  <p><?php _e( 'Call to Action - Text Color', 'click-to-chat-for-whatsapp' ); ?></p>
409
  </div>
413
  </div>
414
 
415
  <!-- call to action - background color -->
416
+ <div class="row cta_bgcolor">
417
  <div class="col s6">
418
  <p><?php _e( 'Call to Action - Background Color', 'click-to-chat-for-whatsapp' ); ?></p>
419
  </div>
448
  $s3_bg_color_hover = ( isset( $options['s3_bg_color_hover']) ) ? esc_attr( $options['s3_bg_color_hover'] ) : '';
449
 
450
  ?>
451
+ <ul class="collapsible ht_ctc_s3_1" data-collapsible="accordion">
452
  <li>
453
  <div class="collapsible-header"><?php _e( 'Style 3 Extend', 'click-to-chat-for-whatsapp' ); ?></div>
454
  <div class="collapsible-body">
552
 
553
  ?>
554
 
555
+ <h5 style="display: inline-block;">Call to Action </h5>
556
  <hr>
557
  <!-- call to action - hover / show / hide -->
558
  <div class="row">
560
  <p><?php _e( 'Display - Call to Action', 'click-to-chat-for-whatsapp' ); ?></p>
561
  </div>
562
  <div class="input-field col s6">
563
+ <select name="<?php echo $dbrow ?>[cta_type]" class="select_cta_type">
564
  <option value="hover" <?php echo $select_cta_type == 'hover' ? 'SELECTED' : ''; ?> >On Hover</option>
565
  <option value="show" <?php echo $select_cta_type == 'show' ? 'SELECTED' : ''; ?> >Show</option>
566
  <option value="hide" <?php echo $select_cta_type == 'hide' ? 'SELECTED' : ''; ?> >Hide</option>
576
  </div>
577
 
578
  <!-- call to action - Text color -->
579
+ <div class="row cta_textcolor">
580
  <div class="col s6">
581
  <p><?php _e( 'Call to Action - Text Color', 'click-to-chat-for-whatsapp' ); ?></p>
582
  </div>
586
  </div>
587
 
588
  <!-- call to action - background color -->
589
+ <div class="row cta_bgcolor">
590
  <div class="col s6">
591
  <p><?php _e( 'Call to Action - Background Color', 'click-to-chat-for-whatsapp' ); ?></p>
592
  </div>
615
  $s4_img_size = ( isset( $options['s4_img_size']) ) ? esc_attr( $options['s4_img_size'] ) : '';
616
  $select_s4_img_position = ( isset( $options['s4_img_position']) ) ? esc_attr( $options['s4_img_position'] ) : '';
617
  ?>
618
+ <ul class="collapsible ht_ctc_s4" data-collapsible="accordion">
619
  <li>
620
  <div class="collapsible-header">Style 4</div>
621
  <div class="collapsible-body">
704
  $s5_content_width = ( isset( $options['s5_content_width']) ) ? esc_attr( $options['s5_content_width'] ) : '';
705
  $select_s5_img_position = ( isset( $options['s5_img_position']) ) ? esc_attr( $options['s5_img_position'] ) : '';
706
  ?>
707
+ <ul class="collapsible ht_ctc_s5" data-collapsible="accordion">
708
  <li>
709
  <div class="collapsible-header"><?php _e( 'Style 5', 'click-to-chat-for-whatsapp' ); ?></div>
710
  <div class="collapsible-body">
861
  $text_decoration_value = ( isset( $options['s6_txt_decoration']) ) ? esc_attr( $options['s6_txt_decoration'] ) : '';
862
  $text_decoration_hover_value = ( isset( $options['s6_txt_decoration_on_hover']) ) ? esc_attr( $options['s6_txt_decoration_on_hover'] ) : '';
863
  ?>
864
+ <ul class="collapsible ht_ctc_s6" data-collapsible="accordion">
865
  <li>
866
  <div class="collapsible-header">Style 6</div>
867
  <div class="collapsible-body">
954
  $cta_bgcolor = ( isset( $options['cta_bgcolor']) ) ? esc_attr( $options['cta_bgcolor'] ) : '';
955
  $cta_bgcolor_hover = ( isset( $options['cta_bgcolor_hover']) ) ? esc_attr( $options['cta_bgcolor_hover'] ) : '';
956
  ?>
957
+ <ul class="collapsible ht_ctc_s7" data-collapsible="accordion">
958
  <li>
959
  <div class="collapsible-header"><?php _e( 'Style 7', 'click-to-chat-for-whatsapp' ); ?></div>
960
  <div class="collapsible-body">
1038
 
1039
  <br><br>
1040
 
1041
+ <h5 style="display: inline-block;">Call to Action </h5>
1042
  <hr>
1043
  <!-- call to action - hover / show / hide -->
1044
  <div class="row">
1054
  </div>
1055
  </div>
1056
  <!-- call to action - Text color -->
1057
+ <div class="row cta_textcolor">
1058
  <div class="col s6">
1059
  <p><?php _e( 'Text Color', 'click-to-chat-for-whatsapp' ); ?></p>
1060
  </div>
1064
  </div>
1065
 
1066
  <!-- call to action - background color -->
1067
+ <div class="row cta_bgcolor">
1068
  <div class="col s6">
1069
  <p><?php _e( 'Background Color', 'click-to-chat-for-whatsapp' ); ?></p>
1070
  </div>
1099
  $select_cta_type = ( isset( $options['cta_type']) ) ? esc_attr( $options['cta_type'] ) : '';
1100
 
1101
  ?>
1102
+ <ul class="collapsible ht_ctc_s7_1" data-collapsible="accordion">
1103
  <li>
1104
  <div class="collapsible-header"><?php _e( 'Style 7 Extend', 'click-to-chat-for-whatsapp' ); ?></div>
1105
  <div class="collapsible-body">
1106
 
1107
+ <!-- s7_1 call to action - hover / show -->
1108
  <div class="row">
1109
  <div class="col s6">
1110
  <p><?php _e( 'Display - Call to Action', 'click-to-chat-for-whatsapp' ); ?></p>
1209
  $s8_icon_size = ( isset( $options['s8_icon_size']) ) ? esc_attr( $options['s8_icon_size'] ) : '';
1210
  $s8_btn_size = ( isset( $options['s8_btn_size']) ) ? esc_attr( $options['s8_btn_size'] ) : '';
1211
  ?>
1212
+ <ul class="collapsible ht_ctc_s8" data-collapsible="accordion">
1213
  <li>
1214
  <div class="collapsible-header"><?php _e( 'Style 8', 'click-to-chat-for-whatsapp' ); ?></div>
1215
  <div class="collapsible-body">
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>
1379
  </div>
1395
  $s99_mobile_img_height = ( isset( $options['s99_mobile_img_height']) ) ? esc_attr( $options['s99_mobile_img_height'] ) : '';
1396
  $s99_mobile_img_width = ( isset( $options['s99_mobile_img_width']) ) ? esc_attr( $options['s99_mobile_img_width'] ) : '';
1397
  ?>
1398
+ <ul class="collapsible ht_ctc_s99" data-collapsible="accordion">
1399
  <li>
1400
  <div class="collapsible-header"><?php _e( 'Style 99 - Own Image / GIF', 'click-to-chat-for-whatsapp' ); ?></div>
1401
  <div class="collapsible-body">
1529
  $input[$key] = ('' == $input[$key]) ? '270px' : $input[$key];
1530
  }
1531
  if ( 's7_icon_size' == $key ) {
1532
+ $input[$key] = ('' == $input[$key]) ? '24px' : $input[$key];
1533
  }
1534
  if ( 's7_border_size' == $key ) {
1535
  $input[$key] = ('' == $input[$key]) ? '12px' : $input[$key];
new/admin/class-ht-ctc-admin-group-page.php CHANGED
@@ -94,7 +94,7 @@ class HT_CTC_Admin_Group_Page {
94
  <div class="input-field col s12">
95
  <input name="ht_ctc_group[group_id]" value="<?php echo $value ?>" id="whatsapp_group_id" type="text" class="input-margin">
96
  <label for="whatsapp_group_id"><?php _e( 'WhatsApp Group ID', 'click-to-chat-for-whatsapp' ); ?>.</label>
97
- <p class="description"><?php _e( 'Enter WhatsApp Group ID. E.g. 9EHLsEsOeJk6AVtE8AvXiA', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/find-whatsapp-group-id/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
98
  </div>
99
  </div>
100
  <?php
@@ -109,7 +109,7 @@ class HT_CTC_Admin_Group_Page {
109
  <div class="input-field col s12">
110
  <input name="ht_ctc_group[call_to_action]" value="<?php echo $value ?>" id="call_to_action" type="text" class="input-margin">
111
  <label for="call_to_action"><?php _e( 'Call to Action', 'click-to-chat-for-whatsapp' ); ?></label>
112
- <p class="description"> <?php _e( 'Text that appears along with WhatsApp icon/button', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/call-to-action/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
113
  </div>
114
  </div>
115
  <?php
@@ -148,7 +148,7 @@ class HT_CTC_Admin_Group_Page {
148
 
149
  function group_shortcode_cb() {
150
  ?>
151
- <p class="description"><?php _e( 'Shortcodes for Group Chat', 'click-to-chat-for-whatsapp' ); ?>: [ht-ctc-group] - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/shortcodes-group">more info</a></p>
152
  <?php
153
  }
154
 
94
  <div class="input-field col s12">
95
  <input name="ht_ctc_group[group_id]" value="<?php echo $value ?>" id="whatsapp_group_id" type="text" class="input-margin">
96
  <label for="whatsapp_group_id"><?php _e( 'WhatsApp Group ID', 'click-to-chat-for-whatsapp' ); ?>.</label>
97
+ <p class="description"><?php _e( 'Enter WhatsApp Group ID. E.g. 9EHLsEsOeJk6AVtE8AvXiA', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/find-whatsapp-group-id/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
98
  </div>
99
  </div>
100
  <?php
109
  <div class="input-field col s12">
110
  <input name="ht_ctc_group[call_to_action]" value="<?php echo $value ?>" id="call_to_action" type="text" class="input-margin">
111
  <label for="call_to_action"><?php _e( 'Call to Action', 'click-to-chat-for-whatsapp' ); ?></label>
112
+ <p class="description"> <?php _e( 'Text that appears along with WhatsApp icon/button', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/call-to-action/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
113
  </div>
114
  </div>
115
  <?php
148
 
149
  function group_shortcode_cb() {
150
  ?>
151
+ <p class="description"><?php _e( 'Shortcodes for Group Chat', 'click-to-chat-for-whatsapp' ); ?>: [ht-ctc-group] - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/shortcodes-group">more info</a></p>
152
  <?php
153
  }
154
 
new/admin/class-ht-ctc-admin-main-page.php CHANGED
@@ -139,7 +139,7 @@ class HT_CTC_Admin_Main_Page {
139
  <label for="whatsapp_number"><?php _e( 'WhatsApp Number with Country Code', 'click-to-chat-for-whatsapp' ); ?></label>
140
  <!-- <span class="helper-text">Country code + number</span> -->
141
  <p class="description"><?php _e( "Enter 'WhatsApp' or 'WhatsApp business' number with country code", 'click-to-chat-for-whatsapp' ); ?>
142
- <br> <?php _e( '( E.g. 916123456789 - herein e.g. 91 is country code, 6123456789 is the mobile number )', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/whatsapp-number/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> ) </p>
143
  </div>
144
  </div>
145
  <?php
@@ -157,7 +157,7 @@ class HT_CTC_Admin_Main_Page {
157
  <!-- <input name="ht_ctc_chat_options[pre_filled]" value="<?php // echo esc_attr( $options['pre_filled'] ) ?>" id="pre_filled" type="text" class="input-margin"> -->
158
  <textarea style="min-height: 84px;" placeholder="<?php echo $placeholder ?>" name="ht_ctc_chat_options[pre_filled]" id="pre_filled" class="materialize-textarea input-margin"><?php echo $value ?></textarea>
159
  <label for="pre_filled"><?php _e( 'Pre-filled message', 'click-to-chat-for-whatsapp' ); ?></label>
160
- <p class="description"><?php _e( "Text that appears in the WhatsApp Chat window. Add variables {site}, {url}, {title} to replace with site name, current webpage URL, Post title", 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/pre-filled-message/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
161
  </div>
162
  </div>
163
  <?php
@@ -172,7 +172,7 @@ class HT_CTC_Admin_Main_Page {
172
  <div class="input-field col s12">
173
  <input name="ht_ctc_chat_options[call_to_action]" value="<?php echo $value ?>" id="call_to_action" type="text" class="input-margin">
174
  <label for="call_to_action"><?php _e( 'Call to Action', 'click-to-chat-for-whatsapp' ); ?></label>
175
- <p class="description"><?php _e( 'Text that appears along with WhatsApp icon/button', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/call-to-action/">more info</a> </p>
176
  </div>
177
  </div>
178
  <?php
@@ -202,7 +202,7 @@ class HT_CTC_Admin_Main_Page {
202
  <?php
203
  }
204
  ?>
205
- <p class="description"><?php _e( 'If checked opens Web.WhatsApp directly on Desktop and in mobile WhatsApp App', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/web-whatsapp/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
206
  <br>
207
 
208
  <?php
@@ -244,7 +244,7 @@ class HT_CTC_Admin_Main_Page {
244
  ?>
245
  <p class="description card-panel" style="padding: 18px;"> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize Styles</a></p>
246
  <p class="description card-panel" style="padding: 18px;"> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-other-settings' ); ?>">Other Settings</a></p>
247
- <p class="description card-panel" style="padding: 18px;"> <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/shortcodes-chat">Shortcodes for Chat: </a>[ht-ctc-chat]</p>
248
  <?php
249
  }
250
 
139
  <label for="whatsapp_number"><?php _e( 'WhatsApp Number with Country Code', 'click-to-chat-for-whatsapp' ); ?></label>
140
  <!-- <span class="helper-text">Country code + number</span> -->
141
  <p class="description"><?php _e( "Enter 'WhatsApp' or 'WhatsApp business' number with country code", 'click-to-chat-for-whatsapp' ); ?>
142
+ <br> <?php _e( '( E.g. 916123456789 - herein e.g. 91 is country code, 6123456789 is the mobile number )', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/whatsapp-number/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> ) </p>
143
  </div>
144
  </div>
145
  <?php
157
  <!-- <input name="ht_ctc_chat_options[pre_filled]" value="<?php // echo esc_attr( $options['pre_filled'] ) ?>" id="pre_filled" type="text" class="input-margin"> -->
158
  <textarea style="min-height: 84px;" placeholder="<?php echo $placeholder ?>" name="ht_ctc_chat_options[pre_filled]" id="pre_filled" class="materialize-textarea input-margin"><?php echo $value ?></textarea>
159
  <label for="pre_filled"><?php _e( 'Pre-filled message', 'click-to-chat-for-whatsapp' ); ?></label>
160
+ <p class="description"><?php _e( "Text that appears in the WhatsApp Chat window. Add variables {site}, {url}, {title} to replace with site name, current webpage URL, Post title", 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/pre-filled-message/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
161
  </div>
162
  </div>
163
  <?php
172
  <div class="input-field col s12">
173
  <input name="ht_ctc_chat_options[call_to_action]" value="<?php echo $value ?>" id="call_to_action" type="text" class="input-margin">
174
  <label for="call_to_action"><?php _e( 'Call to Action', 'click-to-chat-for-whatsapp' ); ?></label>
175
+ <p class="description"><?php _e( 'Text that appears along with WhatsApp icon/button', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/call-to-action/">more info</a> </p>
176
  </div>
177
  </div>
178
  <?php
202
  <?php
203
  }
204
  ?>
205
+ <p class="description"><?php _e( 'If checked opens Web.WhatsApp directly on Desktop and in mobile WhatsApp App', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/web-whatsapp/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
206
  <br>
207
 
208
  <?php
244
  ?>
245
  <p class="description card-panel" style="padding: 18px;"> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize Styles</a></p>
246
  <p class="description card-panel" style="padding: 18px;"> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat-other-settings' ); ?>">Other Settings</a></p>
247
+ <p class="description card-panel" style="padding: 18px;"> <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/shortcodes-chat">Shortcodes for Chat: </a>[ht-ctc-chat]</p>
248
  <?php
249
  }
250
 
new/admin/class-ht-ctc-admin-other-settings.php CHANGED
@@ -111,7 +111,7 @@ class HT_CTC_Admin_Other_Settings {
111
  <?php
112
  }
113
  ?>
114
- <p class="description"><?php _e( 'If Google Analytics installed creates an Event there', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/google-analytics/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
115
  <br>
116
 
117
 
@@ -138,7 +138,7 @@ class HT_CTC_Admin_Other_Settings {
138
  <?php
139
  }
140
  ?>
141
- <p class="description"><?php _e( 'If Facebook Pixel installed creates an Event there', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/facebook-pixel/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
142
  <br>
143
 
144
 
@@ -153,6 +153,8 @@ class HT_CTC_Admin_Other_Settings {
153
  $dbrow = 'ht_ctc_othersettings';
154
 
155
  $show_effect = ( isset( $options['show_effect']) ) ? esc_attr( $options['show_effect'] ) : 'no-show-effects';
 
 
156
  $show_effect_list = array(
157
  'no-show-effects',
158
  'From Center',
@@ -166,16 +168,18 @@ class HT_CTC_Admin_Other_Settings {
166
  'bounce',
167
  'flash',
168
  'pulse',
 
 
169
  );
170
 
171
  ?>
172
  <ul class="collapsible" data-collapsible="accordion" id="ht_ctc_animations">
173
  <li class="active">
174
- <div class="collapsible-header"><?php _e( 'Animations', 'click-to-chat-for-whatsapp' ); ?> (beta)</div>
175
  <div class="collapsible-body">
176
 
177
  <!-- <p class="description"><?php _e( "Animations for floating styles", 'click-to-chat-for-whatsapp' ); ?> -->
178
- <p class="description"><?php _e( "Beta stage - We are planning to improve this feature. please contact us, for any suggestions.", 'click-to-chat-for-whatsapp' ); ?>
179
  <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/animations/">Animations</a></p>
180
  <br><br><br><br>
181
 
@@ -201,6 +205,30 @@ class HT_CTC_Admin_Other_Settings {
201
  </div>
202
  </div>
203
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
  <hr style="width: 50%;">
205
  <br><br>
206
 
@@ -295,7 +323,7 @@ class HT_CTC_Admin_Other_Settings {
295
  <span><?php _e( 'Enable Group Features', 'click-to-chat-for-whatsapp' ); ?></span>
296
  </label>
297
  </p>
298
- <p class="description"> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/enable-group"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
299
  <?php
300
  }
301
  ?>
@@ -322,7 +350,7 @@ class HT_CTC_Admin_Other_Settings {
322
  <span><?php _e( 'Enable Share Features', 'click-to-chat-for-whatsapp' ); ?></span>
323
  </label>
324
  </p>
325
- <p class="description"> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/enable-share"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
326
  <?php
327
  }
328
  ?>
@@ -330,7 +358,7 @@ class HT_CTC_Admin_Other_Settings {
330
 
331
  <!-- chat -->
332
  <p class="description"><?php _e( "Chat settings are enabled by default and can't disbale. If like to hide chat on all pages select", 'click-to-chat-for-whatsapp' ); ?> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat#showhide_settings' ); ?>"><?php _e( 'show on selected pages', 'click-to-chat-for-whatsapp' ); ?></a> </p>
333
- <p class="description"> - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat' ); ?>"><?php _e( 'Chat Settings page', 'click-to-chat-for-whatsapp' ); ?></a> <br> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/enable-chat"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
334
  </p>
335
  <br>
336
 
@@ -357,7 +385,7 @@ class HT_CTC_Admin_Other_Settings {
357
  }
358
  ?>
359
  <p class="description"> <?php _e( 'This feature is', 'click-to-chat-for-whatsapp' ); ?> <b><?php _e( 'depreacted', 'click-to-chat-for-whatsapp' ); ?></b> <?php _e( 'in the favor of Facebook Pixel', 'click-to-chat-for-whatsapp' ); ?></p>
360
- <p class="description"> <?php _e( 'If Facebook Analytics installed - creates an Event there', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/facebook-analytics/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
361
  <br><br><br>
362
 
363
  <?php
111
  <?php
112
  }
113
  ?>
114
+ <p class="description"><?php _e( 'If Google Analytics installed creates an Event there', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/google-analytics/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
115
  <br>
116
 
117
 
138
  <?php
139
  }
140
  ?>
141
+ <p class="description"><?php _e( 'If Facebook Pixel installed creates an Event there', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/facebook-pixel/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
142
  <br>
143
 
144
 
153
  $dbrow = 'ht_ctc_othersettings';
154
 
155
  $show_effect = ( isset( $options['show_effect']) ) ? esc_attr( $options['show_effect'] ) : 'no-show-effects';
156
+ $an_delay = ( isset( $options['an_delay']) ) ? esc_attr( $options['an_delay'] ) : '';
157
+ $an_itr = ( isset( $options['an_itr']) ) ? esc_attr( $options['an_itr'] ) : '';
158
  $show_effect_list = array(
159
  'no-show-effects',
160
  'From Center',
168
  'bounce',
169
  'flash',
170
  'pulse',
171
+ 'heartBeat',
172
+ 'flip',
173
  );
174
 
175
  ?>
176
  <ul class="collapsible" data-collapsible="accordion" id="ht_ctc_animations">
177
  <li class="active">
178
+ <div class="collapsible-header"><?php _e( 'Animations', 'click-to-chat-for-whatsapp' ); ?></div>
179
  <div class="collapsible-body">
180
 
181
  <!-- <p class="description"><?php _e( "Animations for floating styles", 'click-to-chat-for-whatsapp' ); ?> -->
182
+ <p class="description"><?php _e( "We are planning to improve this feature. please contact us, for any suggestions.", 'click-to-chat-for-whatsapp' ); ?>
183
  <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/animations/">Animations</a></p>
184
  <br><br><br><br>
185
 
205
  </div>
206
  </div>
207
 
208
+ <!-- animation delay -->
209
+ <div class="row">
210
+ <div class="col s6">
211
+ <p><?php _e( 'Animation Delay', 'click-to-chat-for-whatsapp' ); ?></p>
212
+ </div>
213
+ <div class="input-field col s6">
214
+ <input name="<?php echo $dbrow ?>[an_delay]" value="<?php echo $an_delay ?>" id="an_delay" type="number" min="0" class="" >
215
+ <label for="an_delay"><?php _e( 'Animation Delay', 'click-to-chat-for-whatsapp' ); ?></label>
216
+ <p class="description"><?php _e( 'E.g. Add 1 for 1 second delay', 'click-to-chat-for-whatsapp' ); ?></p>
217
+ </div>
218
+ </div>
219
+
220
+ <!-- animation iteration -->
221
+ <div class="row">
222
+ <div class="col s6">
223
+ <p><?php _e( 'Animation Iteration', 'click-to-chat-for-whatsapp' ); ?></p>
224
+ </div>
225
+ <div class="input-field col s6">
226
+ <input name="<?php echo $dbrow ?>[an_itr]" value="<?php echo $an_itr ?>" id="an_itr" type="number" min="1" class="" >
227
+ <label for="an_itr"><?php _e( 'Animation Iteration', 'click-to-chat-for-whatsapp' ); ?></label>
228
+ <p class="description"><?php _e( 'E.g. Add 2 to repeat animation 2 times', 'click-to-chat-for-whatsapp' ); ?></p>
229
+ </div>
230
+ </div>
231
+
232
  <hr style="width: 50%;">
233
  <br><br>
234
 
323
  <span><?php _e( 'Enable Group Features', 'click-to-chat-for-whatsapp' ); ?></span>
324
  </label>
325
  </p>
326
+ <p class="description"> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/enable-group-feature/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
327
  <?php
328
  }
329
  ?>
350
  <span><?php _e( 'Enable Share Features', 'click-to-chat-for-whatsapp' ); ?></span>
351
  </label>
352
  </p>
353
+ <p class="description"> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/enable-share-feature/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
354
  <?php
355
  }
356
  ?>
358
 
359
  <!-- chat -->
360
  <p class="description"><?php _e( "Chat settings are enabled by default and can't disbale. If like to hide chat on all pages select", 'click-to-chat-for-whatsapp' ); ?> <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat#showhide_settings' ); ?>"><?php _e( 'show on selected pages', 'click-to-chat-for-whatsapp' ); ?></a> </p>
361
+ <p class="description"> - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=click-to-chat' ); ?>"><?php _e( 'Chat Settings page', 'click-to-chat-for-whatsapp' ); ?></a> <br> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/enable-chat"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
362
  </p>
363
  <br>
364
 
385
  }
386
  ?>
387
  <p class="description"> <?php _e( 'This feature is', 'click-to-chat-for-whatsapp' ); ?> <b><?php _e( 'depreacted', 'click-to-chat-for-whatsapp' ); ?></b> <?php _e( 'in the favor of Facebook Pixel', 'click-to-chat-for-whatsapp' ); ?></p>
388
+ <p class="description"> <?php _e( 'If Facebook Analytics installed - creates an Event there', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/facebook-analytics/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
389
  <br><br><br>
390
 
391
  <?php
new/admin/class-ht-ctc-admin-share-page.php CHANGED
@@ -95,7 +95,7 @@ class HT_CTC_Admin_Share_Page {
95
  <div class="input-field col s12">
96
  <input name="ht_ctc_share[share_text]" value="<?php echo $value ?>" id="whatsapp_share_text" type="text" class="input-margin">
97
  <label for="whatsapp_share_text"><?php _e( 'Share Text', 'click-to-chat-for-whatsapp' ); ?></label>
98
- <p class="description"><?php _e( "Placeholder {{url}} returns current webpage URL", 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/share-text/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> ) </p>
99
  </div>
100
  </div>
101
  <?php
@@ -110,7 +110,7 @@ class HT_CTC_Admin_Share_Page {
110
  <div class="input-field col s12">
111
  <input name="ht_ctc_share[call_to_action]" value="<?php echo $value ?>" id="call_to_action" type="text" class="input-margin">
112
  <label for="call_to_action"><?php _e( 'Call to Action', 'click-to-chat-for-whatsapp' ); ?></label>
113
- <p class="description"><?php _e( 'Text that appears along with WhatsApp icon/button', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/call-to-action/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
114
  </div>
115
  </div>
116
  <?php
@@ -141,7 +141,7 @@ class HT_CTC_Admin_Share_Page {
141
  <?php
142
  }
143
  ?>
144
- <p class="description"><?php _e( 'If checked opens Web.WhatsApp directly on Desktop and in mobile WhatsApp App', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/web-whatsapp/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
145
  <br>
146
 
147
  <?php
@@ -180,7 +180,7 @@ class HT_CTC_Admin_Share_Page {
180
 
181
  function share_shortcode_cb() {
182
  ?>
183
- <p class="description"><?php _e( 'Shortcodes for Share', 'click-to-chat-for-whatsapp' ); ?>: [ht-ctc-share] - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/shortcodes-share"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a></p>
184
  <?php
185
  }
186
 
95
  <div class="input-field col s12">
96
  <input name="ht_ctc_share[share_text]" value="<?php echo $value ?>" id="whatsapp_share_text" type="text" class="input-margin">
97
  <label for="whatsapp_share_text"><?php _e( 'Share Text', 'click-to-chat-for-whatsapp' ); ?></label>
98
+ <p class="description"><?php _e( "Placeholder {{url}} returns current webpage URL", 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/share-text/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> ) </p>
99
  </div>
100
  </div>
101
  <?php
110
  <div class="input-field col s12">
111
  <input name="ht_ctc_share[call_to_action]" value="<?php echo $value ?>" id="call_to_action" type="text" class="input-margin">
112
  <label for="call_to_action"><?php _e( 'Call to Action', 'click-to-chat-for-whatsapp' ); ?></label>
113
+ <p class="description"><?php _e( 'Text that appears along with WhatsApp icon/button', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/call-to-action/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
114
  </div>
115
  </div>
116
  <?php
141
  <?php
142
  }
143
  ?>
144
+ <p class="description"><?php _e( 'If checked opens Web.WhatsApp directly on Desktop and in mobile WhatsApp App', 'click-to-chat-for-whatsapp' ); ?> - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/web-whatsapp/"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a> </p>
145
  <br>
146
 
147
  <?php
180
 
181
  function share_shortcode_cb() {
182
  ?>
183
+ <p class="description"><?php _e( 'Shortcodes for Share', 'click-to-chat-for-whatsapp' ); ?>: [ht-ctc-share] - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/shortcodes-share"><?php _e( 'more info', 'click-to-chat-for-whatsapp' ); ?></a></p>
184
  <?php
185
  }
186
 
new/admin/class-ht-ctc-db.php CHANGED
@@ -106,6 +106,8 @@ class HT_CTC_DB {
106
 
107
  $values = array(
108
  'an_type' => 'no-animation',
 
 
109
  'show_effect' => 'no-show-effects',
110
  );
111
 
@@ -115,6 +117,7 @@ class HT_CTC_DB {
115
  if ( !isset ( $ht_ctc_plugin_details['version'] ) ) {
116
  $values['google_analytics'] = '1';
117
  $values['fb_pixel'] = '1';
 
118
  }
119
 
120
  $db_values = get_option( 'ht_ctc_othersettings', array() );
@@ -148,9 +151,9 @@ class HT_CTC_DB {
148
  'style_mobile' => '2',
149
 
150
  'side_1' => 'bottom',
151
- 'side_1_value' => '10px',
152
  'side_2' => 'right',
153
- 'side_2_value' => '10px',
154
 
155
  'show_or_hide' => 'hide',
156
  'list_hideon_pages' => '',
@@ -440,9 +443,10 @@ class HT_CTC_DB {
440
  's3_img_size' => '40px',
441
  's3_bg_color' => '#25D366',
442
  's3_bg_color_hover' => '#25D366',
443
- 's3_padding' => '16px',
444
  's3_box_shadow' => '1',
445
  's3_box_shadow_hover' => '1',
 
446
  'cta_textcolor' => '#ffffff',
447
  'cta_bgcolor' => '#25d366',
448
 
@@ -453,8 +457,6 @@ class HT_CTC_DB {
453
  // cta
454
  if ( !isset ( $ht_ctc_plugin_details['version'] ) ) {
455
  $style_3_1['cta_type'] = 'hover';
456
- } else {
457
- $style_3_1['cta_type'] = 'hide';
458
  }
459
 
460
  $db_values = get_option( 'ht_ctc_s3_1', array() );
106
 
107
  $values = array(
108
  'an_type' => 'no-animation',
109
+ 'an_delay' => '0',
110
+ 'an_itr' => '1',
111
  'show_effect' => 'no-show-effects',
112
  );
113
 
117
  if ( !isset ( $ht_ctc_plugin_details['version'] ) ) {
118
  $values['google_analytics'] = '1';
119
  $values['fb_pixel'] = '1';
120
+ $values['show_effect'] = 'From Corner';
121
  }
122
 
123
  $db_values = get_option( 'ht_ctc_othersettings', array() );
151
  'style_mobile' => '2',
152
 
153
  'side_1' => 'bottom',
154
+ 'side_1_value' => '15px',
155
  'side_2' => 'right',
156
+ 'side_2_value' => '15px',
157
 
158
  'show_or_hide' => 'hide',
159
  'list_hideon_pages' => '',
443
  's3_img_size' => '40px',
444
  's3_bg_color' => '#25D366',
445
  's3_bg_color_hover' => '#25D366',
446
+ 's3_padding' => '14px',
447
  's3_box_shadow' => '1',
448
  's3_box_shadow_hover' => '1',
449
+ 'cta_type' => 'hide',
450
  'cta_textcolor' => '#ffffff',
451
  'cta_bgcolor' => '#25d366',
452
 
457
  // cta
458
  if ( !isset ( $ht_ctc_plugin_details['version'] ) ) {
459
  $style_3_1['cta_type'] = 'hover';
 
 
460
  }
461
 
462
  $db_values = get_option( 'ht_ctc_s3_1', array() );
new/inc/chat/class-ht-ctc-chat-shortcode.php CHANGED
@@ -63,6 +63,9 @@ class HT_CTC_Chat_Shortcode {
63
  'hide_desktop' => '',
64
 
65
  's5_img_position' => '', //left, right
 
 
 
66
  's8_width' => '',
67
  's8_icon_position' => '', // left, right, hide
68
 
63
  'hide_desktop' => '',
64
 
65
  's5_img_position' => '', //left, right
66
+ 's5_img_url' => '',
67
+ 's5_line_2' => '',
68
+
69
  's8_width' => '',
70
  's8_icon_position' => '', // left, right, hide
71
 
new/inc/chat/class-ht-ctc-chat.php CHANGED
@@ -26,6 +26,8 @@ class HT_CTC_Chat {
26
  return;
27
  }
28
 
 
 
29
  // position
30
  include HT_CTC_PLUGIN_DIR .'new/inc/commons/position-to-place.php';
31
  $ht_ctc_chat['position'] = $position;
@@ -47,13 +49,12 @@ class HT_CTC_Chat {
47
  $wp_device = 'ctc_wp_desktop';
48
  }
49
 
50
- $ht_ctc_chat['type'] = "chat";
51
 
52
  $page_id = get_the_ID();
53
  $page_url = get_permalink();
54
  $post_title = esc_html( get_the_title() );
55
 
56
- do_action('ht_ctc_ah_previous_metabox');
57
 
58
  // page level
59
  $ht_ctc_pagelevel = get_post_meta( $page_id, 'ht_ctc_pagelevel', true );
@@ -119,7 +120,6 @@ class HT_CTC_Chat {
119
  $style = $ht_ctc_chat['style'];
120
  $style_d = $ht_ctc_chat['style_d'];
121
  $style_m = $ht_ctc_chat['style_m'];
122
- $type = $ht_ctc_chat['type'];
123
  $call_to_action = $ht_ctc_chat['call_to_action'];
124
 
125
  $ht_ctc_chat['class_names'] .= " style-$style ";
@@ -144,7 +144,7 @@ class HT_CTC_Chat {
144
  ?>
145
  <div onclick="ht_ctc_click(this);" class="<?php echo $ht_ctc_chat['class_names'] ?>"
146
  style="display: none; <?php echo $backend_position ?>"
147
- data-return_type="<?php echo $ht_ctc_chat['type'] ?>"
148
  data-style="<?php echo $ht_ctc_chat['style'] ?>"
149
  data-number="<?php echo $ht_ctc_chat['number'] ?>"
150
  data-pre_filled="<?php echo $ht_ctc_chat['pre_filled'] ?>"
26
  return;
27
  }
28
 
29
+ $type = "chat";
30
+
31
  // position
32
  include HT_CTC_PLUGIN_DIR .'new/inc/commons/position-to-place.php';
33
  $ht_ctc_chat['position'] = $position;
49
  $wp_device = 'ctc_wp_desktop';
50
  }
51
 
 
52
 
53
  $page_id = get_the_ID();
54
  $page_url = get_permalink();
55
  $post_title = esc_html( get_the_title() );
56
 
57
+ do_action('ht_ctc_ah_previous_metabox');
58
 
59
  // page level
60
  $ht_ctc_pagelevel = get_post_meta( $page_id, 'ht_ctc_pagelevel', true );
120
  $style = $ht_ctc_chat['style'];
121
  $style_d = $ht_ctc_chat['style_d'];
122
  $style_m = $ht_ctc_chat['style_m'];
 
123
  $call_to_action = $ht_ctc_chat['call_to_action'];
124
 
125
  $ht_ctc_chat['class_names'] .= " style-$style ";
144
  ?>
145
  <div onclick="ht_ctc_click(this);" class="<?php echo $ht_ctc_chat['class_names'] ?>"
146
  style="display: none; <?php echo $backend_position ?>"
147
+ data-return_type="<?php echo $type ?>"
148
  data-style="<?php echo $ht_ctc_chat['style'] ?>"
149
  data-number="<?php echo $ht_ctc_chat['number'] ?>"
150
  data-pre_filled="<?php echo $ht_ctc_chat['pre_filled'] ?>"
new/inc/class-ht-ctc-main.php CHANGED
@@ -26,14 +26,12 @@ class HT_CTC_Main {
26
  if ( isset( $options['enable_group'] ) ) {
27
  include_once HT_CTC_PLUGIN_DIR .'new/inc/group/class-ht-ctc-group.php';
28
  include_once HT_CTC_PLUGIN_DIR . 'new/inc/group/class-ht-ctc-group-shortcode.php';
29
-
30
  }
31
 
32
  // if enabled call 'share' feature
33
  if ( isset( $options['enable_share'] ) ) {
34
  include_once HT_CTC_PLUGIN_DIR .'new/inc/share/class-ht-ctc-share.php';
35
  include_once HT_CTC_PLUGIN_DIR . 'new/inc/share/class-ht-ctc-share-shortcode.php';
36
-
37
  }
38
  }
39
 
26
  if ( isset( $options['enable_group'] ) ) {
27
  include_once HT_CTC_PLUGIN_DIR .'new/inc/group/class-ht-ctc-group.php';
28
  include_once HT_CTC_PLUGIN_DIR . 'new/inc/group/class-ht-ctc-group-shortcode.php';
 
29
  }
30
 
31
  // if enabled call 'share' feature
32
  if ( isset( $options['enable_share'] ) ) {
33
  include_once HT_CTC_PLUGIN_DIR .'new/inc/share/class-ht-ctc-share.php';
34
  include_once HT_CTC_PLUGIN_DIR . 'new/inc/share/class-ht-ctc-share-shortcode.php';
 
35
  }
36
  }
37
 
new/inc/commons/class-ht-ctc-animations.php CHANGED
@@ -15,10 +15,9 @@ class HT_CTC_Animations {
15
  // $this->base();
16
  // }
17
 
18
-
19
- function animations( $a ) {
20
  ?>
21
- <style id="ht-ctc-animations">.ht_ctc_animation {animation-duration:1s;animation-fill-mode:both;animation-delay:0s;animation-iteration-count:1;}</style>
22
  <?php $this->$a(); ?>
23
  <?php
24
  }
@@ -41,6 +40,18 @@ class HT_CTC_Animations {
41
  <?php
42
  }
43
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
 
46
  }
15
  // $this->base();
16
  // }
17
 
18
+ function animations( $a, $d, $i ) {
 
19
  ?>
20
+ <style id="ht-ctc-animations">.ht_ctc_animation{animation-duration:1s;animation-fill-mode:both;animation-delay:<?php echo $d ?>;animation-iteration-count:<?php echo $i ?>;}</style>
21
  <?php $this->$a(); ?>
22
  <?php
23
  }
40
  <?php
41
  }
42
 
43
+ function heartbeat() {
44
+ ?>
45
+ <style id="ht-ctc-an-heartBeat">@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}.ht_ctc_an_heartBeat{animation-name:heartBeat;animation-duration:calc(1s * 1.3);animation-duration:calc(var(1) * 1.3);animation-timing-function:ease-in-out}</style>
46
+ <?php
47
+ }
48
+
49
+ function flip() {
50
+ ?>
51
+ <style id="ht-ctc-an-flip">@keyframes flip{from{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in}to{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in}}.ht_ctc_an_flip{backface-visibility:visible;animation-name:flip}</style>
52
+ <?php
53
+ }
54
+
55
 
56
 
57
  }
new/inc/commons/class-ht-ctc-hooks.php CHANGED
@@ -36,7 +36,7 @@ class HT_CTC_Hooks {
36
  // other settings
37
  add_filter( 'ht_ctc_fh_os', array($this, 'other_settings') );
38
 
39
- // previous metaboxes to new
40
  add_action( 'ht_ctc_ah_previous_metabox', array($this, 'previous_metabox') );
41
 
42
  }
@@ -62,9 +62,14 @@ class HT_CTC_Hooks {
62
  $an_type = ( isset( $othersettings['an_type']) ) ? esc_attr( $othersettings['an_type'] ) : '';
63
 
64
  if ( '' !== $an_type && 'no-animation' !== $an_type ) {
 
 
 
 
 
65
  include_once HT_CTC_PLUGIN_DIR .'new/inc/commons/class-ht-ctc-animations.php';
66
  $animations = new HT_CTC_Animations();
67
- $animations->animations( $an_type );
68
  }
69
 
70
  }
36
  // other settings
37
  add_filter( 'ht_ctc_fh_os', array($this, 'other_settings') );
38
 
39
+ // previous metaboxes to new (clear: 3.11)
40
  add_action( 'ht_ctc_ah_previous_metabox', array($this, 'previous_metabox') );
41
 
42
  }
62
  $an_type = ( isset( $othersettings['an_type']) ) ? esc_attr( $othersettings['an_type'] ) : '';
63
 
64
  if ( '' !== $an_type && 'no-animation' !== $an_type ) {
65
+
66
+ $an_delay = ( isset( $othersettings['an_delay']) ) ? esc_attr( $othersettings['an_delay'] ) : '0';
67
+ $an_delay = "{$an_delay}s";
68
+ $an_itr = ( isset( $othersettings['an_itr']) ) ? esc_attr( $othersettings['an_itr'] ) : '1';
69
+
70
  include_once HT_CTC_PLUGIN_DIR .'new/inc/commons/class-ht-ctc-animations.php';
71
  $animations = new HT_CTC_Animations();
72
+ $animations->animations( $an_type, $an_delay, $an_itr );
73
  }
74
 
75
  }
new/inc/commons/position-to-place.php CHANGED
@@ -13,6 +13,8 @@ $position_type_mobile = 'fixed';
13
  $side_1 = esc_attr( $options['side_1'] );
14
  $side_1_value = esc_attr( $options['side_1_value'] );
15
  $side_2 = esc_attr( $options['side_2'] );
 
 
16
  $side_2_value = esc_attr( $options['side_2_value'] );
17
 
18
  $position = "position: $position_type; $side_1: $side_1_value; $side_2: $side_2_value;";
@@ -21,6 +23,7 @@ $position = "position: $position_type; $side_1: $side_1_value; $side_2: $side_2_
21
  $mobile_side_1 = ( isset( $options['mobile_side_1']) ) ? esc_attr( $options['mobile_side_1'] ) : '';
22
  $mobile_side_1_value = ( isset( $options['mobile_side_1_value'])) ? esc_attr( $options['mobile_side_1_value'] ) : '';
23
  $mobile_side_2 = ( isset( $options['mobile_side_2']) ) ? esc_attr( $options['mobile_side_2'] ) : '';
 
24
  $mobile_side_2_value = ( isset( $options['mobile_side_2_value'])) ? esc_attr( $options['mobile_side_2_value'] ) : '';
25
 
26
  $position_mobile = "position: $position_type_mobile; $mobile_side_1: $mobile_side_1_value; $mobile_side_2: $mobile_side_2_value;";
13
  $side_1 = esc_attr( $options['side_1'] );
14
  $side_1_value = esc_attr( $options['side_1_value'] );
15
  $side_2 = esc_attr( $options['side_2'] );
16
+ // @uses position, call to action .. (cta - desktop value only uses for both devices. )
17
+ $side_2 = apply_filters( 'ht_ctc_fh_side_2', $side_2 );
18
  $side_2_value = esc_attr( $options['side_2_value'] );
19
 
20
  $position = "position: $position_type; $side_1: $side_1_value; $side_2: $side_2_value;";
23
  $mobile_side_1 = ( isset( $options['mobile_side_1']) ) ? esc_attr( $options['mobile_side_1'] ) : '';
24
  $mobile_side_1_value = ( isset( $options['mobile_side_1_value'])) ? esc_attr( $options['mobile_side_1_value'] ) : '';
25
  $mobile_side_2 = ( isset( $options['mobile_side_2']) ) ? esc_attr( $options['mobile_side_2'] ) : '';
26
+ $mobile_side_2 = apply_filters( 'ht_ctc_fh_mobile_side_2', $mobile_side_2 );
27
  $mobile_side_2_value = ( isset( $options['mobile_side_2_value'])) ? esc_attr( $options['mobile_side_2_value'] ) : '';
28
 
29
  $position_mobile = "position: $position_type_mobile; $mobile_side_1: $mobile_side_1_value; $mobile_side_2: $mobile_side_2_value;";
new/inc/group/class-ht-ctc-group-shortcode.php CHANGED
@@ -62,6 +62,9 @@ class HT_CTC_Group_Shortcode {
62
  // 'inline_issue' => '',
63
 
64
  's5_img_position' => '', //left, right
 
 
 
65
  's8_width' => '',
66
  's8_icon_position' => '', // left, right, hide
67
 
62
  // 'inline_issue' => '',
63
 
64
  's5_img_position' => '', //left, right
65
+ 's5_img_url' => '',
66
+ 's5_line_2' => '',
67
+
68
  's8_width' => '',
69
  's8_icon_position' => '', // left, right, hide
70
 
new/inc/group/class-ht-ctc-group.php CHANGED
@@ -31,6 +31,8 @@ class HT_CTC_Group {
31
  return;
32
  }
33
 
 
 
34
  // position
35
  include HT_CTC_PLUGIN_DIR .'new/inc/commons/position-to-place.php';
36
  $ht_ctc_group['position'] = $position;
@@ -48,7 +50,6 @@ class HT_CTC_Group {
48
  $ht_ctc_group['style'] = $ht_ctc_group['style_d'];
49
  }
50
 
51
- $ht_ctc_group['type'] = "group";
52
 
53
  // call to action
54
  $ht_ctc_group['call_to_action'] = esc_attr( $options['call_to_action'] );
@@ -57,17 +58,15 @@ class HT_CTC_Group {
57
  // class names
58
  $ht_ctc_group['class_names'] = "ht-ctc ht-ctc-group ";
59
 
60
- // group id
61
- $ht_ctc_group['group_id'] = esc_attr( $options['group_id'] );
62
-
63
- // group_id - at page level
64
  $page_id = get_the_ID();
65
- $page_group_id = esc_attr( get_post_meta( $page_id, 'ht_ctc_page_group_id', true ) );
66
 
67
- if ( isset( $page_group_id ) && '' !== $page_group_id ){
68
- $group_id = $page_group_id;
69
- }
 
70
 
 
 
71
  $ht_ctc_group['group_id'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_group['group_id'], 'Click to Chat for WhatsApp', 'group_id__group' );
72
 
73
  // analytics
@@ -99,7 +98,6 @@ class HT_CTC_Group {
99
  $style = $ht_ctc_group['style'];
100
  $style_d = $ht_ctc_group['style_d'];
101
  $style_m = $ht_ctc_group['style_m'];
102
- $type = $ht_ctc_group['type'];
103
  $call_to_action = $ht_ctc_group['call_to_action'];
104
 
105
  $ht_ctc_group['class_names'] .= " style-$style ";
@@ -122,7 +120,7 @@ class HT_CTC_Group {
122
  ?>
123
  <div class="<?php echo $ht_ctc_group['class_names'] ?>"
124
  style="display: none;"
125
- data-return_type="<?php echo $ht_ctc_group['type'] ?>"
126
  data-group_id="<?php echo $ht_ctc_group['group_id'] ?>"
127
  data-is_ga_enable="<?php echo $ht_ctc_os['is_ga_enable'] ?>"
128
  data-is_fb_pixel="<?php echo $ht_ctc_os['is_fb_pixel'] ?>"
31
  return;
32
  }
33
 
34
+ $type = "group";
35
+
36
  // position
37
  include HT_CTC_PLUGIN_DIR .'new/inc/commons/position-to-place.php';
38
  $ht_ctc_group['position'] = $position;
50
  $ht_ctc_group['style'] = $ht_ctc_group['style_d'];
51
  }
52
 
 
53
 
54
  // call to action
55
  $ht_ctc_group['call_to_action'] = esc_attr( $options['call_to_action'] );
58
  // class names
59
  $ht_ctc_group['class_names'] = "ht-ctc ht-ctc-group ";
60
 
 
 
 
 
61
  $page_id = get_the_ID();
 
62
 
63
+ do_action('ht_ctc_ah_previous_metabox');
64
+
65
+ // At page level
66
+ $ht_ctc_pagelevel = get_post_meta( $page_id, 'ht_ctc_pagelevel', true );
67
 
68
+ // group id
69
+ $ht_ctc_group['group_id'] = (isset($ht_ctc_pagelevel['group_id'])) ? esc_attr($ht_ctc_pagelevel['group_id']) : esc_attr( $options['group_id'] );
70
  $ht_ctc_group['group_id'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_group['group_id'], 'Click to Chat for WhatsApp', 'group_id__group' );
71
 
72
  // analytics
98
  $style = $ht_ctc_group['style'];
99
  $style_d = $ht_ctc_group['style_d'];
100
  $style_m = $ht_ctc_group['style_m'];
 
101
  $call_to_action = $ht_ctc_group['call_to_action'];
102
 
103
  $ht_ctc_group['class_names'] .= " style-$style ";
120
  ?>
121
  <div class="<?php echo $ht_ctc_group['class_names'] ?>"
122
  style="display: none;"
123
+ data-return_type="<?php echo $type ?>"
124
  data-group_id="<?php echo $ht_ctc_group['group_id'] ?>"
125
  data-is_ga_enable="<?php echo $ht_ctc_os['is_ga_enable'] ?>"
126
  data-is_fb_pixel="<?php echo $ht_ctc_os['is_fb_pixel'] ?>"
new/inc/share/class-ht-ctc-share-shortcode.php CHANGED
@@ -62,6 +62,9 @@ class HT_CTC_Share_Shortcode {
62
  // 'inline_issue' => '',
63
 
64
  's5_img_position' => '', //left, right
 
 
 
65
  's8_width' => '',
66
  's8_icon_position' => '', // left, right, hide
67
 
62
  // 'inline_issue' => '',
63
 
64
  's5_img_position' => '', //left, right
65
+ 's5_img_url' => '',
66
+ 's5_line_2' => '',
67
+
68
  's8_width' => '',
69
  's8_icon_position' => '', // left, right, hide
70
 
new/inc/share/class-ht-ctc-share.php CHANGED
@@ -40,6 +40,8 @@ class HT_CTC_Share {
40
  return;
41
  }
42
 
 
 
43
  // position
44
  include HT_CTC_PLUGIN_DIR .'new/inc/commons/position-to-place.php';
45
  $ht_ctc_share['position'] = $position;
@@ -57,8 +59,6 @@ class HT_CTC_Share {
57
  $ht_ctc_share['style'] = $ht_ctc_share['style_d'];
58
  }
59
 
60
- $ht_ctc_share['type'] = "share";
61
-
62
  // call to action
63
  $ht_ctc_share['call_to_action'] = esc_html( $options['call_to_action'] );
64
  $ht_ctc_share['call_to_action'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_share['call_to_action'], 'Click to Chat for WhatsApp', 'call_to_action__share' );
@@ -104,7 +104,6 @@ class HT_CTC_Share {
104
  $style = $ht_ctc_share['style'];
105
  $style_d = $ht_ctc_share['style_d'];
106
  $style_m = $ht_ctc_share['style_m'];
107
- $type = $ht_ctc_share['type'];
108
  $call_to_action = $ht_ctc_share['call_to_action'];
109
 
110
  $ht_ctc_share['class_names'] .= " style-$style ";
@@ -128,7 +127,7 @@ class HT_CTC_Share {
128
  ?>
129
  <div class="<?php echo $ht_ctc_share['class_names'] ?>"
130
  style="display: none;"
131
- data-return_type="<?php echo $ht_ctc_share['type'] ?>"
132
  data-share_text="<?php echo $ht_ctc_share['share_text'] ?>"
133
  data-is_ga_enable="<?php echo $ht_ctc_os['is_ga_enable'] ?>"
134
  data-is_fb_pixel="<?php echo $ht_ctc_os['is_fb_pixel'] ?>"
40
  return;
41
  }
42
 
43
+ $type = "share";
44
+
45
  // position
46
  include HT_CTC_PLUGIN_DIR .'new/inc/commons/position-to-place.php';
47
  $ht_ctc_share['position'] = $position;
59
  $ht_ctc_share['style'] = $ht_ctc_share['style_d'];
60
  }
61
 
 
 
62
  // call to action
63
  $ht_ctc_share['call_to_action'] = esc_html( $options['call_to_action'] );
64
  $ht_ctc_share['call_to_action'] = apply_filters( 'wpml_translate_single_string', $ht_ctc_share['call_to_action'], 'Click to Chat for WhatsApp', 'call_to_action__share' );
104
  $style = $ht_ctc_share['style'];
105
  $style_d = $ht_ctc_share['style_d'];
106
  $style_m = $ht_ctc_share['style_m'];
 
107
  $call_to_action = $ht_ctc_share['call_to_action'];
108
 
109
  $ht_ctc_share['class_names'] .= " style-$style ";
127
  ?>
128
  <div class="<?php echo $ht_ctc_share['class_names'] ?>"
129
  style="display: none;"
130
+ data-return_type="<?php echo $type ?>"
131
  data-share_text="<?php echo $ht_ctc_share['share_text'] ?>"
132
  data-is_ga_enable="<?php echo $ht_ctc_os['is_ga_enable'] ?>"
133
  data-is_fb_pixel="<?php echo $ht_ctc_os['is_fb_pixel'] ?>"
new/inc/styles-shortcode/sc-style-5.php CHANGED
@@ -8,30 +8,29 @@ if ( ! defined( 'ABSPATH' ) ) exit;
8
  $s5_options = get_option( 'ht_ctc_s5' );
9
 
10
  $s5_line_1 = esc_attr( $s5_options['s5_line_1'] );
11
- $s5_line_2 = esc_attr( $s5_options['s5_line_2'] );
12
  $s5_line_1_color = esc_attr( $s5_options['s5_line_1_color'] );
13
  $s5_line_2_color = esc_attr( $s5_options['s5_line_2_color'] );
14
  $s5_background_color = esc_attr( $s5_options['s5_background_color'] );
15
  $s5_border_color = esc_attr( $s5_options['s5_border_color'] );
16
- $s5_img = esc_attr( $s5_options['s5_img'] );
17
  $s5_img_height = esc_attr( $s5_options['s5_img_height'] );
18
  $s5_img_width = esc_attr( $s5_options['s5_img_width'] );
19
  $s5_content_height = esc_attr( $s5_options['s5_content_height'] );
20
  $s5_content_width = esc_attr( $s5_options['s5_content_width'] );
21
-
22
- // shortcodes image position default to left, can change position using attributes
23
  // $s5_img_position = esc_attr( $s5_options['s5_img_position'] );
24
- $s5_img_position = 'left';
25
 
26
  // shortcode attributes
27
  $s5_img_position_sc = $a["s5_img_position"];
 
 
28
 
29
- if ( '' !== $s5_img_position_sc ) {
30
- $s5_img_position = $s5_img_position_sc;
31
- }
32
-
33
 
34
- // default image - if user not added any image
35
  if ( '' == $s5_img ) {
36
  $s5_img = plugins_url( './new/inc/assets/img/new_style8.jpg', HT_CTC_PLUGIN_FILE );
37
  }
8
  $s5_options = get_option( 'ht_ctc_s5' );
9
 
10
  $s5_line_1 = esc_attr( $s5_options['s5_line_1'] );
 
11
  $s5_line_1_color = esc_attr( $s5_options['s5_line_1_color'] );
12
  $s5_line_2_color = esc_attr( $s5_options['s5_line_2_color'] );
13
  $s5_background_color = esc_attr( $s5_options['s5_background_color'] );
14
  $s5_border_color = esc_attr( $s5_options['s5_border_color'] );
 
15
  $s5_img_height = esc_attr( $s5_options['s5_img_height'] );
16
  $s5_img_width = esc_attr( $s5_options['s5_img_width'] );
17
  $s5_content_height = esc_attr( $s5_options['s5_content_height'] );
18
  $s5_content_width = esc_attr( $s5_options['s5_content_width'] );
19
+ // $s5_img = esc_attr( $s5_options['s5_img'] );
20
+ // $s5_line_2 = esc_attr( $s5_options['s5_line_2'] );
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';
30
+ $s5_line_2 = ('' !== $s5_line_2_sc) ? $s5_line_2_sc : esc_attr( $s5_options['s5_line_2'] );
31
+ $s5_img = ('' !== $s5_img_url_sc) ? $s5_img_url_sc : esc_attr( $s5_options['s5_img'] );
32
 
33
+ // default image - if user not added any image from customize/shortcode
34
  if ( '' == $s5_img ) {
35
  $s5_img = plugins_url( './new/inc/assets/img/new_style8.jpg', HT_CTC_PLUGIN_FILE );
36
  }
new/inc/styles/style-1.php CHANGED
@@ -9,14 +9,16 @@
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>
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
  $s1_options = get_option( 'ht_ctc_s1' );
12
+ $s1_options = apply_filters( 'ht_ctc_fh_s1_options', $s1_options );
13
+
14
+ $s1_fullwidth_css = "";
15
 
16
  if ( '' == $call_to_action ) {
17
  $call_to_action = "WhatsApp us";
18
  }
19
 
 
20
  if ( isset( $s1_options['s1_m_fullwidth'] ) ) {
21
+ $s1_fullwidth_css = "@media(max-width:1201px){.ht-ctc.style-1{left:unset !important;right:0px !important;}.ht-ctc.style-1,.ht-ctc .s1_btn{width:100%;}}";
22
 
23
  ?>
24
  <style id="ht-ctc-s1"><?php echo $s1_fullwidth_css ?></style>
new/inc/styles/style-2.php CHANGED
@@ -9,6 +9,7 @@
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
  $s2_options = get_option( 'ht_ctc_s2' );
 
12
 
13
  $s2_img_size = esc_attr( $s2_options['s2_img_size'] );
14
  $img_size = esc_attr( $s2_options['s2_img_size'] );
@@ -20,17 +21,23 @@ if ( '' == $img_size ) {
20
  $s2_cta_type = (isset( $s2_options['cta_type'])) ? esc_attr( $s2_options['cta_type'] ) : 'hover';
21
 
22
  $s2_cta_order = "1";
23
- if ('right' == $options['side_2']) {
24
  // if side_2 is right then cta is left
25
  $s2_cta_order = "0";
26
  }
27
 
 
 
 
 
 
28
  $s2_cta_textcolor = (isset( $s2_options['cta_textcolor'])) ? esc_attr( $s2_options['cta_textcolor'] ) : '';
29
  $s2_cta_bgcolor = (isset( $s2_options['cta_bgcolor'])) ? esc_attr( $s2_options['cta_bgcolor'] ) : '#ffffff';
30
 
31
  $s2_cta_textcolor = ('' !== $s2_cta_textcolor) ? "color: $s2_cta_textcolor" : "";
32
  $s2_cta_bgcolor = ('' !== $s2_cta_bgcolor) ? "background-color: $s2_cta_bgcolor" : "";
33
 
 
34
  $s2_cta_css = "padding: 0px 16px; $s2_cta_bgcolor; $s2_cta_textcolor; border-radius:10px; margin:0 10px; ";
35
  $s2_cta_class = "ht-ctc-cta ";
36
  $title = "";
@@ -48,7 +55,7 @@ $ht_ctc_svg_css = "pointer-events:none; display:block; height:$img_size; width:$
48
 
49
  include_once HT_CTC_PLUGIN_DIR .'new/inc/assets/img/ht-ctc-svg-images.php';
50
  ?>
51
- <div <?php echo $title ?> style="display: flex; justify-content: center; align-items: center;">
52
  <p class="<?php echo $s2_cta_class ?>" style="<?php echo $s2_cta_css ?>"><?php echo $call_to_action; ?></p>
53
  <?php echo ht_ctc_style_2_svg( $img_size, $type, $ht_ctc_svg_css ); ?>
54
  </div>
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
  $s2_options = get_option( 'ht_ctc_s2' );
12
+ $s2_options = apply_filters( 'ht_ctc_fh_s2_options', $s2_options );
13
 
14
  $s2_img_size = esc_attr( $s2_options['s2_img_size'] );
15
  $img_size = esc_attr( $s2_options['s2_img_size'] );
21
  $s2_cta_type = (isset( $s2_options['cta_type'])) ? esc_attr( $s2_options['cta_type'] ) : 'hover';
22
 
23
  $s2_cta_order = "1";
24
+ if ('right' == $side_2) {
25
  // if side_2 is right then cta is left
26
  $s2_cta_order = "0";
27
  }
28
 
29
+ $rtl_css = "";
30
+ if ( function_exists('is_rtl') && is_rtl() ) {
31
+ $rtl_css = "flex-direction:row-reverse;";
32
+ }
33
+
34
  $s2_cta_textcolor = (isset( $s2_options['cta_textcolor'])) ? esc_attr( $s2_options['cta_textcolor'] ) : '';
35
  $s2_cta_bgcolor = (isset( $s2_options['cta_bgcolor'])) ? esc_attr( $s2_options['cta_bgcolor'] ) : '#ffffff';
36
 
37
  $s2_cta_textcolor = ('' !== $s2_cta_textcolor) ? "color: $s2_cta_textcolor" : "";
38
  $s2_cta_bgcolor = ('' !== $s2_cta_bgcolor) ? "background-color: $s2_cta_bgcolor" : "";
39
 
40
+ $s2_css = "display: flex; justify-content: center; align-items: center; $rtl_css ";
41
  $s2_cta_css = "padding: 0px 16px; $s2_cta_bgcolor; $s2_cta_textcolor; border-radius:10px; margin:0 10px; ";
42
  $s2_cta_class = "ht-ctc-cta ";
43
  $title = "";
55
 
56
  include_once HT_CTC_PLUGIN_DIR .'new/inc/assets/img/ht-ctc-svg-images.php';
57
  ?>
58
+ <div <?php echo $title ?> style="<?php echo $s2_css; ?>">
59
  <p class="<?php echo $s2_cta_class ?>" style="<?php echo $s2_cta_css ?>"><?php echo $call_to_action; ?></p>
60
  <?php echo ht_ctc_style_2_svg( $img_size, $type, $ht_ctc_svg_css ); ?>
61
  </div>
new/inc/styles/style-3.php CHANGED
@@ -9,6 +9,7 @@
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
  $s3_options = get_option( 'ht_ctc_s3' );
 
12
  $s3_type = ( isset( $s3_options['s3_type']) ) ? esc_attr( $s3_options['s3_type'] ) : 'simple';
13
 
14
  $s3_img_size = esc_attr( $s3_options['s3_img_size'] );
@@ -20,12 +21,18 @@ if ( '' == $img_size ) {
20
  // Call to action
21
  $s3_cta_type = (isset( $s3_options['cta_type'])) ? esc_attr( $s3_options['cta_type'] ) : 'hover';
22
 
 
 
 
 
 
23
  $s3_cta_order = "1";
24
- if ('right' == $options['side_2']) {
25
  // if side_2 is right then cta is left
26
  $s3_cta_order = "0";
27
  }
28
 
 
29
  $s3_cta_textcolor = (isset( $s3_options['cta_textcolor'])) ? esc_attr( $s3_options['cta_textcolor'] ) : '';
30
  $s3_cta_bgcolor = (isset( $s3_options['cta_bgcolor'])) ? esc_attr( $s3_options['cta_bgcolor'] ) : '#ffffff';
31
 
@@ -50,7 +57,7 @@ $ht_ctc_svg_css = "pointer-events:none; display:block; height:$img_size; width:$
50
  include_once HT_CTC_PLUGIN_DIR .'new/inc/assets/img/ht-ctc-svg-images.php';
51
 
52
  ?>
53
- <div <?php echo $title ?> style="display: flex; justify-content: center; align-items: center;">
54
  <p class="<?php echo $s3_cta_class ?>" style="<?php echo $s3_cta_css ?>"><?php echo $call_to_action; ?></p>
55
  <?php echo ht_ctc_style_3_svg( $img_size, $type, $ht_ctc_svg_css ); ?>
56
  </div>
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
  $s3_options = get_option( 'ht_ctc_s3' );
12
+ $s3_options = apply_filters( 'ht_ctc_fh_s3_options', $s3_options );
13
  $s3_type = ( isset( $s3_options['s3_type']) ) ? esc_attr( $s3_options['s3_type'] ) : 'simple';
14
 
15
  $s3_img_size = esc_attr( $s3_options['s3_img_size'] );
21
  // Call to action
22
  $s3_cta_type = (isset( $s3_options['cta_type'])) ? esc_attr( $s3_options['cta_type'] ) : 'hover';
23
 
24
+ $rtl_css = "";
25
+ if ( function_exists('is_rtl') && is_rtl() ) {
26
+ $rtl_css = "flex-direction:row-reverse;";
27
+ }
28
+
29
  $s3_cta_order = "1";
30
+ if ('right' == $side_2) {
31
  // if side_2 is right then cta is left
32
  $s3_cta_order = "0";
33
  }
34
 
35
+ $s3_css = "display:flex;justify-content:center;align-items:center;$rtl_css ";
36
  $s3_cta_textcolor = (isset( $s3_options['cta_textcolor'])) ? esc_attr( $s3_options['cta_textcolor'] ) : '';
37
  $s3_cta_bgcolor = (isset( $s3_options['cta_bgcolor'])) ? esc_attr( $s3_options['cta_bgcolor'] ) : '#ffffff';
38
 
57
  include_once HT_CTC_PLUGIN_DIR .'new/inc/assets/img/ht-ctc-svg-images.php';
58
 
59
  ?>
60
+ <div <?php echo $title ?> style="<?php echo $s3_css ?>">
61
  <p class="<?php echo $s3_cta_class ?>" style="<?php echo $s3_cta_css ?>"><?php echo $call_to_action; ?></p>
62
  <?php echo ht_ctc_style_3_svg( $img_size, $type, $ht_ctc_svg_css ); ?>
63
  </div>
new/inc/styles/style-3_1.php CHANGED
@@ -7,6 +7,7 @@
7
  if ( ! defined( 'ABSPATH' ) ) exit;
8
 
9
  $s3_1_options = get_option( 'ht_ctc_s3_1' );
 
10
 
11
  $img_size = esc_attr( $s3_1_options['s3_img_size'] );
12
  if ( '' == $img_size ) {
@@ -17,7 +18,7 @@ if ( '' == $img_size ) {
17
  $s3_1_cta_type = (isset( $s3_1_options['cta_type'])) ? esc_attr( $s3_1_options['cta_type'] ) : 'hover';
18
 
19
  $s3_1_cta_order = "1";
20
- if ('right' == $options['side_2']) {
21
  // if side_2 is right then cta is left
22
  $s3_1_cta_order = "0";
23
  }
@@ -46,6 +47,13 @@ $ht_ctc_svg_css = "pointer-events:none; display:block; height:$img_size; width:$
46
  include_once HT_CTC_PLUGIN_DIR .'new/inc/assets/img/ht-ctc-svg-images.php';
47
 
48
 
 
 
 
 
 
 
 
49
  // extend
50
  $s3_1_padding = ( isset( $s3_1_options['s3_padding']) ) ? esc_attr( $s3_1_options['s3_padding'] ) : '';
51
  $s3_1_bg_color = ( isset( $s3_1_options['s3_bg_color']) ) ? esc_attr( $s3_1_options['s3_bg_color'] ) : '#25D366';
@@ -73,7 +81,7 @@ $others = array(
73
  .ht-ctc:hover svg stop{stop-color:<?php echo $s3_1_bg_color_hover ?>;}.ht-ctc:hover .ht_ctc_padding{<?php echo $s3_1_hover_css ?>}
74
  </style>
75
 
76
- <div <?php echo $title ?> style="display: flex; justify-content: center; align-items: center;">
77
  <p class="<?php echo $s3_1_cta_class ?>" style="<?php echo $s3_1_cta_css ?>"><?php echo $call_to_action ?></p>
78
  <div class="ht_ctc_padding" style="<?php echo $s3_1_extend_css ?>">
79
  <?php echo ht_ctc_style_3_1_svg( $img_size, $type, $ht_ctc_svg_css, $others ); ?>
7
  if ( ! defined( 'ABSPATH' ) ) exit;
8
 
9
  $s3_1_options = get_option( 'ht_ctc_s3_1' );
10
+ $s3_1_options = apply_filters( 'ht_ctc_fh_s3_1_options', $s3_1_options );
11
 
12
  $img_size = esc_attr( $s3_1_options['s3_img_size'] );
13
  if ( '' == $img_size ) {
18
  $s3_1_cta_type = (isset( $s3_1_options['cta_type'])) ? esc_attr( $s3_1_options['cta_type'] ) : 'hover';
19
 
20
  $s3_1_cta_order = "1";
21
+ if ('right' == $side_2) {
22
  // if side_2 is right then cta is left
23
  $s3_1_cta_order = "0";
24
  }
47
  include_once HT_CTC_PLUGIN_DIR .'new/inc/assets/img/ht-ctc-svg-images.php';
48
 
49
 
50
+ $rtl_css = "";
51
+ if ( function_exists('is_rtl') && is_rtl() ) {
52
+ $rtl_css = "flex-direction:row-reverse;";
53
+ }
54
+
55
+ $s3_1_css = "display:flex;justify-content:center;align-items:center;$rtl_css ";
56
+
57
  // extend
58
  $s3_1_padding = ( isset( $s3_1_options['s3_padding']) ) ? esc_attr( $s3_1_options['s3_padding'] ) : '';
59
  $s3_1_bg_color = ( isset( $s3_1_options['s3_bg_color']) ) ? esc_attr( $s3_1_options['s3_bg_color'] ) : '#25D366';
81
  .ht-ctc:hover svg stop{stop-color:<?php echo $s3_1_bg_color_hover ?>;}.ht-ctc:hover .ht_ctc_padding{<?php echo $s3_1_hover_css ?>}
82
  </style>
83
 
84
+ <div <?php echo $title ?> style="<?php echo $s3_1_css ?>">
85
  <p class="<?php echo $s3_1_cta_class ?>" style="<?php echo $s3_1_cta_css ?>"><?php echo $call_to_action ?></p>
86
  <div class="ht_ctc_padding" style="<?php echo $s3_1_extend_css ?>">
87
  <?php echo ht_ctc_style_3_1_svg( $img_size, $type, $ht_ctc_svg_css, $others ); ?>
new/inc/styles/style-4.php CHANGED
@@ -9,6 +9,7 @@
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
  $s4_options = get_option( 'ht_ctc_s4' );
 
12
 
13
  $s4_text_color = esc_attr( $s4_options['s4_text_color'] );
14
  $s4_bg_color = esc_attr( $s4_options['s4_bg_color'] );
@@ -34,11 +35,11 @@ if ( 'left' == $s4_img_position ) {
34
 
35
  $rtl_css = "";
36
  if ( is_rtl() ) {
37
- $rtl_css = "flex-direction:row-reverse";
38
  }
39
 
40
 
41
- $s4_chip_css = "display:flex;$rtl_css;justify-content: center;align-items: center;background-color:$s4_bg_color;color:$s4_text_color;padding:0 12px;border-radius:25px;font-size:13px;line-height:32px;";
42
  $s4_chip_svg_css ="margin:$s4_margin;order:$s4_order;";
43
  $s4_chip_img_css ="margin:$s4_margin;order:$s4_order;height:$s4_img_size;width:$s4_img_size;border-radius:50%";
44
  $ht_ctc_svg_css = "pointer-events:none; display: block; height:$s4_img_size; width:$s4_img_size;";
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
  $s4_options = get_option( 'ht_ctc_s4' );
12
+ $s4_options = apply_filters( 'ht_ctc_fh_s4_options', $s4_options );
13
 
14
  $s4_text_color = esc_attr( $s4_options['s4_text_color'] );
15
  $s4_bg_color = esc_attr( $s4_options['s4_bg_color'] );
35
 
36
  $rtl_css = "";
37
  if ( is_rtl() ) {
38
+ $rtl_css = "flex-direction:row-reverse;";
39
  }
40
 
41
 
42
+ $s4_chip_css = "display:flex;justify-content: center;align-items: center;background-color:$s4_bg_color;color:$s4_text_color;padding:0 12px;border-radius:25px;font-size:13px;line-height:32px;$rtl_css ";
43
  $s4_chip_svg_css ="margin:$s4_margin;order:$s4_order;";
44
  $s4_chip_img_css ="margin:$s4_margin;order:$s4_order;height:$s4_img_size;width:$s4_img_size;border-radius:50%";
45
  $ht_ctc_svg_css = "pointer-events:none; display: block; height:$s4_img_size; width:$s4_img_size;";
new/inc/styles/style-5.php CHANGED
@@ -7,6 +7,7 @@
7
  if ( ! defined( 'ABSPATH' ) ) exit;
8
 
9
  $s5_options = get_option( 'ht_ctc_s5' );
 
10
 
11
  $s5_line_1 = esc_attr( $s5_options['s5_line_1'] );
12
  $s5_line_2 = esc_attr( $s5_options['s5_line_2'] );
@@ -31,8 +32,12 @@ if ( '' == $s5_line_1 ) {
31
  $s5_line_1 = $call_to_action;
32
  }
33
 
 
 
 
 
34
 
35
- $s5_cta_style = "display: -ms-flexbox; display: -webkit-flex; display: flex;";
36
 
37
 
38
  $s5_img_style = '';
@@ -50,52 +55,6 @@ if ( 'right' == $s5_img_position ) {
50
  $s5_content_style .= 'margin-left: -4px;';
51
  }
52
 
53
-
54
- // // adding styles..
55
- // $s5_css_code = '
56
- // .ht-ctc-style-5 .s5_img {
57
- // box-shadow: 2px 5px 10px rgba(0,0,0,.5);
58
- // }
59
- // .ht-ctc-style-5 .s5_content {
60
- // box-shadow: 2px 5px 10px rgba(0,0,0,.5);
61
- // border-radius: 5px;
62
- // }
63
- // .ht-ctc-style-5 .s5_content span {
64
- // padding: 5px;
65
- // overflow: hidden;
66
- // }
67
- // .ht-ctc-style-5 .s5_content .heading {
68
- // font-size: 20px;
69
- // }
70
- // .ht-ctc-style-5 .s5_content .description {
71
- // font-size: 12px;
72
- // }
73
- // .ht-ctc-style-5 .s5_content.right {
74
- // animation: 1s s5_translate_right;
75
- // }
76
- // .ht-ctc-style-5 .s5_content.left {
77
- // animation: 1s s5_translate_left;
78
- // }
79
-
80
- // @keyframes s5_translate_right {
81
- // 0% {
82
- // transform: translateX(55px)
83
- // }
84
- // 100% {
85
- // transform: translateX(0px)
86
- // }
87
- // }
88
-
89
- // @keyframes s5_translate_left {
90
- // 0% {
91
- // transform: translateX(-55px)
92
- // }
93
- // 100% {
94
- // transform: translateX(0px)
95
- // }
96
- // }
97
- // ';
98
-
99
  $s5_css_code = '
100
  .ht-ctc-style-5 .s5_img{box-shadow:2px 5px 10px rgba(0,0,0,.5)}.ht-ctc-style-5 .s5_content{box-shadow:2px 5px 10px rgba(0,0,0,.5);border-radius:5px}.ht-ctc-style-5 .s5_content span{padding:5px;overflow:hidden}.ht-ctc-style-5 .s5_content .heading{font-size:20px}.ht-ctc-style-5 .s5_content .description{font-size:12px}.ht-ctc-style-5 .s5_content.right{animation:1s s5_translate_right}.ht-ctc-style-5 .s5_content.left{animation:1s s5_translate_left}@keyframes s5_translate_right{0%{transform:translateX(55px)}100%{transform:translateX(0)}}@keyframes s5_translate_left{0%{transform:translateX(-55px)}100%{transform:translateX(0)}}
101
  ';
7
  if ( ! defined( 'ABSPATH' ) ) exit;
8
 
9
  $s5_options = get_option( 'ht_ctc_s5' );
10
+ $s5_options = apply_filters( 'ht_ctc_fh_s5_options', $s5_options );
11
 
12
  $s5_line_1 = esc_attr( $s5_options['s5_line_1'] );
13
  $s5_line_2 = esc_attr( $s5_options['s5_line_2'] );
32
  $s5_line_1 = $call_to_action;
33
  }
34
 
35
+ $rtl_css = "";
36
+ if ( function_exists('is_rtl') && is_rtl() ) {
37
+ $rtl_css = "flex-direction:row-reverse;";
38
+ }
39
 
40
+ $s5_cta_style = "display: -ms-flexbox;display: -webkit-flex; display: flex;$rtl_css ";
41
 
42
 
43
  $s5_img_style = '';
55
  $s5_content_style .= 'margin-left: -4px;';
56
  }
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  $s5_css_code = '
59
  .ht-ctc-style-5 .s5_img{box-shadow:2px 5px 10px rgba(0,0,0,.5)}.ht-ctc-style-5 .s5_content{box-shadow:2px 5px 10px rgba(0,0,0,.5);border-radius:5px}.ht-ctc-style-5 .s5_content span{padding:5px;overflow:hidden}.ht-ctc-style-5 .s5_content .heading{font-size:20px}.ht-ctc-style-5 .s5_content .description{font-size:12px}.ht-ctc-style-5 .s5_content.right{animation:1s s5_translate_right}.ht-ctc-style-5 .s5_content.left{animation:1s s5_translate_left}@keyframes s5_translate_right{0%{transform:translateX(55px)}100%{transform:translateX(0)}}@keyframes s5_translate_left{0%{transform:translateX(-55px)}100%{transform:translateX(0)}}
60
  ';
new/inc/styles/style-6.php CHANGED
@@ -9,6 +9,7 @@
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
  $s6_options = get_option( 'ht_ctc_s6' );
 
12
 
13
  $s6_txt_color = esc_attr( $s6_options['s6_txt_color'] );
14
  $s6_txt_color_on_hover = esc_attr( $s6_options['s6_txt_color_on_hover'] );
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
  $s6_options = get_option( 'ht_ctc_s6' );
12
+ $s6_options = apply_filters( 'ht_ctc_fh_s6_options', $s6_options );
13
 
14
  $s6_txt_color = esc_attr( $s6_options['s6_txt_color'] );
15
  $s6_txt_color_on_hover = esc_attr( $s6_options['s6_txt_color_on_hover'] );
new/inc/styles/style-7.php CHANGED
@@ -6,6 +6,7 @@
6
  if ( ! defined( 'ABSPATH' ) ) exit;
7
 
8
  $s7_options = get_option( 'ht_ctc_s7' );
 
9
 
10
  $s7_icon_size = esc_attr( $s7_options['s7_icon_size'] );
11
  $s7_icon_color = esc_attr( $s7_options['s7_icon_color'] );
@@ -20,12 +21,17 @@ $s7_cta_type = (isset( $s7_options['cta_type'])) ? esc_attr( $s7_options['cta_ty
20
  $s7_cta_textcolor = (isset( $s7_options['cta_textcolor'])) ? esc_attr( $s7_options['cta_textcolor'] ) : '';
21
  $s7_cta_bgcolor = (isset( $s7_options['cta_bgcolor'])) ? esc_attr( $s7_options['cta_bgcolor'] ) : '#ffffff';
22
 
23
- $s7_n1_styles = "display:flex;justify-content:center;align-items:center;";
 
 
 
 
 
24
  $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;";
25
 
26
  // Call to action
27
  $s7_cta_order = "1";
28
- if ('right' == $options['side_2']) {
29
  // if side_2 is right then cta is left
30
  $s7_cta_order = "0";
31
  }
@@ -54,7 +60,7 @@ $s7_svg_attrs = array(
54
 
55
  // cta order
56
  $s7_cta_order = "1";
57
- if ('right' == $options['side_2']) {
58
  // if side_2 is right then cta is left
59
  $s7_cta_order = "0";
60
  }
6
  if ( ! defined( 'ABSPATH' ) ) exit;
7
 
8
  $s7_options = get_option( 'ht_ctc_s7' );
9
+ $s7_options = apply_filters( 'ht_ctc_fh_s7_options', $s7_options );
10
 
11
  $s7_icon_size = esc_attr( $s7_options['s7_icon_size'] );
12
  $s7_icon_color = esc_attr( $s7_options['s7_icon_color'] );
21
  $s7_cta_textcolor = (isset( $s7_options['cta_textcolor'])) ? esc_attr( $s7_options['cta_textcolor'] ) : '';
22
  $s7_cta_bgcolor = (isset( $s7_options['cta_bgcolor'])) ? esc_attr( $s7_options['cta_bgcolor'] ) : '#ffffff';
23
 
24
+ $rtl_css = "";
25
+ if ( function_exists('is_rtl') && is_rtl() ) {
26
+ $rtl_css = "flex-direction:row-reverse;";
27
+ }
28
+
29
+ $s7_n1_styles = "display:flex;justify-content:center;align-items:center;$rtl_css ";
30
  $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;";
31
 
32
  // Call to action
33
  $s7_cta_order = "1";
34
+ if ('right' == $side_2) {
35
  // if side_2 is right then cta is left
36
  $s7_cta_order = "0";
37
  }
60
 
61
  // cta order
62
  $s7_cta_order = "1";
63
+ if ('right' == $side_2) {
64
  // if side_2 is right then cta is left
65
  $s7_cta_order = "0";
66
  }
new/inc/styles/style-7_1.php CHANGED
@@ -18,6 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
18
  // }
19
 
20
  $s7_1_options = get_option( 'ht_ctc_s7_1' );
 
21
 
22
  $s7_icon_size = esc_attr( $s7_1_options['s7_icon_size'] );
23
  $s7_icon_color = esc_attr( $s7_1_options['s7_icon_color'] );
@@ -32,26 +33,39 @@ $s7_cta_type = (isset( $s7_1_options['cta_type'])) ? esc_attr( $s7_1_options['ct
32
 
33
  // Call to action - Order
34
  $s7_cta_order = "1";
35
- $s7_cta_padding_css = "padding-right: 21px;";
36
- if ('right' == $options['side_2']) {
 
37
  // if side_2 is right then cta is left
38
  $s7_cta_order = "0";
39
- $s7_cta_padding_css = "padding-left: 21px;";
 
40
  }
41
 
42
- $s7_n1_styles = "display:flex;justify-content:center;align-items:center;";
 
 
 
 
 
 
 
 
 
 
 
43
  $s7_cta_css = "";
44
  $s7_icon_padding_css = "";
45
  $s7_cta_class = "ht-ctc-cta ";
46
  $s7_hover_styles = "";
47
  if ( 'hover' == $s7_cta_type ) {
48
- $s7_n1_styles .= "background-color: $s7_bgcolor; border-radius: 25px;";
49
- $s7_cta_css .= " display: none; order: $s7_cta_order; color: $s7_icon_color; $s7_cta_padding_css margin:0 10px; border-radius: 25px; ";
50
  $s7_cta_class .= " ht-ctc-cta-hover ";
51
  $s7_icon_padding_css .= "padding: $s7_border_size;background-color: $s7_bgcolor;border-radius: 25px; ";
52
  $s7_hover_styles = ".ht-ctc.style-7_1:hover .ctc_s_7_icon_padding{background-color:$s7_bgcolor_hover;border-radius: 25px;}";
53
  } elseif ( 'show' == $s7_cta_type ) {
54
- $s7_n1_styles .= "padding:5px 25px; background-color:$s7_bgcolor;border-radius:25px;";
55
  $s7_cta_css .= "padding: 1px 16px; color: $s7_icon_color; border-radius:10px; margin:0 10px; order: $s7_cta_order; ";
56
  $s7_icon_padding_css .= "";
57
  $s7_hover_styles = ".ht-ctc.style-7_1:hover .ctc_s_7_1{background-color:$s7_bgcolor_hover !important;}.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;}";
@@ -69,7 +83,7 @@ $s7_svg_attrs = array(
69
 
70
  // cta order
71
  $s7_cta_order = "1";
72
- if ('right' == $options['side_2']) {
73
  // if side_2 is right then cta is left
74
  $s7_cta_order = "0";
75
  }
18
  // }
19
 
20
  $s7_1_options = get_option( 'ht_ctc_s7_1' );
21
+ $s7_1_options = apply_filters( 'ht_ctc_fh_s7_1_options', $s7_1_options );
22
 
23
  $s7_icon_size = esc_attr( $s7_1_options['s7_icon_size'] );
24
  $s7_icon_color = esc_attr( $s7_1_options['s7_icon_color'] );
33
 
34
  // Call to action - Order
35
  $s7_cta_order = "1";
36
+ $s7_hover_cta_padding_css = "padding-right: 21px;";
37
+ $s7_show_cta_padding_css = "padding:5px 5px 5px 20px;";
38
+ if ('right' == $side_2) {
39
  // if side_2 is right then cta is left
40
  $s7_cta_order = "0";
41
+ $s7_hover_cta_padding_css = "padding-left: 21px;";
42
+ $s7_show_cta_padding_css = "padding:5px 20px 5px 5px;";
43
  }
44
 
45
+ $rtl_css = "";
46
+ if ( function_exists('is_rtl') && is_rtl() ) {
47
+ $rtl_css = "flex-direction:row-reverse;";
48
+
49
+ if ('right' == $side_2) {
50
+ $s7_show_cta_padding_css = "padding:5px 5px 5px 20px;";
51
+ } else {
52
+ $s7_show_cta_padding_css = "padding:5px 20px 5px 5px;";
53
+ }
54
+ }
55
+
56
+ $s7_n1_styles = "display:flex;justify-content:center;align-items:center;$rtl_css ";
57
  $s7_cta_css = "";
58
  $s7_icon_padding_css = "";
59
  $s7_cta_class = "ht-ctc-cta ";
60
  $s7_hover_styles = "";
61
  if ( 'hover' == $s7_cta_type ) {
62
+ $s7_n1_styles .= "background-color: $s7_bgcolor; border-radius:25px;";
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; ";
70
  $s7_icon_padding_css .= "";
71
  $s7_hover_styles = ".ht-ctc.style-7_1:hover .ctc_s_7_1{background-color:$s7_bgcolor_hover !important;}.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;}";
83
 
84
  // cta order
85
  $s7_cta_order = "1";
86
+ if ('right' == $side_2) {
87
  // if side_2 is right then cta is left
88
  $s7_cta_order = "0";
89
  }
new/inc/styles/style-8.php CHANGED
@@ -9,6 +9,7 @@
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
  $s8_options = get_option( 'ht_ctc_s8' );
 
12
 
13
  $s8_icon_color = esc_attr( $s8_options['s8_icon_color'] );
14
  $s8_icon_color_on_hover = esc_attr( $s8_options['s8_icon_color_on_hover'] );
@@ -40,12 +41,17 @@ $s8_svg_attrs = array (
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">
9
  if ( ! defined( 'ABSPATH' ) ) exit;
10
 
11
  $s8_options = get_option( 'ht_ctc_s8' );
12
+ $s8_options = apply_filters( 'ht_ctc_fh_s8_options', $s8_options );
13
 
14
  $s8_icon_color = esc_attr( $s8_options['s8_icon_color'] );
15
  $s8_icon_color_on_hover = esc_attr( $s8_options['s8_icon_color_on_hover'] );
41
 
42
  $s8_fullwidth_css = "";
43
  if ( isset( $s8_options['s8_m_fullwidth'] ) ) {
44
+ $s8_fullwidth_css = "@media(max-width:1201px){.ht-ctc.style-8{left:unset !important;right:0px !important;}.ht-ctc.style-8,.ht-ctc-style-8,.ht-ctc-style-8 .s_8{width: 100%;}}";
45
+ }
46
+
47
+ $rtl_css = "";
48
+ if ( function_exists('is_rtl') && is_rtl() ) {
49
+ $rtl_css = "flex-direction:row-reverse;";
50
  }
51
 
52
  $s8_icon_css = ( 'right' == $s8_icon_position ) ? "order:1;margin-left: 15px;" : "order:0;margin-right: 15px;";
53
  $s8_text_css = "color:$s8_txt_color; $s8_text_size_css ";
54
+ $s8_main_span_css = "display: flex; $rtl_css 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;";
55
  ?>
56
 
57
  <style id="ht-ctc-s8">
new/inc/styles/style-99.php CHANGED
@@ -6,6 +6,7 @@
6
  if ( ! defined( 'ABSPATH' ) ) exit;
7
 
8
  $s99_options = get_option( 'ht_ctc_s99' );
 
9
 
10
  $s99_desktop_img_height = esc_attr( $s99_options['s99_desktop_img_height'] );
11
  $s99_desktop_img_width = esc_attr( $s99_options['s99_desktop_img_width'] );
6
  if ( ! defined( 'ABSPATH' ) ) exit;
7
 
8
  $s99_options = get_option( 'ht_ctc_s99' );
9
+ $s99_options = apply_filters( 'ht_ctc_fh_s99_options', $s99_options );
10
 
11
  $s99_desktop_img_height = esc_attr( $s99_options['s99_desktop_img_height'] );
12
  $s99_desktop_img_width = esc_attr( $s99_options['s99_desktop_img_width'] );
new/tools/woo/class-ht-ctc-admin-woo.php CHANGED
@@ -51,7 +51,7 @@ class HT_CTC_Admin_WOO {
51
  <textarea name="ht_ctc_chat_options[woo_pre_filled]" id="woo_pre_filled" class="materialize-textarea input-margin" style="min-height: 84px;" placeholder="<?php echo $placeholder ?>"><?php echo $woo_pre_filled ?></textarea>
52
  <label for="woo_pre_filled">Pre-filled message</label>
53
  <p class="description">Pre-filled message for WooCommerce Single Product pages. Leave blank to get default pre-filled message.</p>
54
- <p class="description">Variables: {product}, {price}, {regular_price}, {sku}, {site}, {url}, {title} - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/woocommerce_pre-filled-message/">more info</a> </p>
55
  </div>
56
  </div>
57
 
@@ -60,7 +60,7 @@ class HT_CTC_Admin_WOO {
60
  <div class="input-field col s12">
61
  <input name="ht_ctc_chat_options[woo_call_to_action]" value="<?php echo $woo_call_to_action ?>" id="woo_call_to_action" type="text" class="input-margin">
62
  <label for="woo_call_to_action">Call to Action</label>
63
- <p class="description">Call-to-Action for WooCommerce Single Product pages. Leave blank to get default call-to-action - <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/woocommerce_call-to-action/">more info</a> </p>
64
  </div>
65
  </div>
66
 
51
  <textarea name="ht_ctc_chat_options[woo_pre_filled]" id="woo_pre_filled" class="materialize-textarea input-margin" style="min-height: 84px;" placeholder="<?php echo $placeholder ?>"><?php echo $woo_pre_filled ?></textarea>
52
  <label for="woo_pre_filled">Pre-filled message</label>
53
  <p class="description">Pre-filled message for WooCommerce Single Product pages. Leave blank to get default pre-filled message.</p>
54
+ <p class="description">Variables: {product}, {price}, {regular_price}, {sku}, {site}, {url}, {title} - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/woocommerce_pre-filled-message/">more info</a> </p>
55
  </div>
56
  </div>
57
 
60
  <div class="input-field col s12">
61
  <input name="ht_ctc_chat_options[woo_call_to_action]" value="<?php echo $woo_call_to_action ?>" id="woo_call_to_action" type="text" class="input-margin">
62
  <label for="woo_call_to_action">Call to Action</label>
63
+ <p class="description">Call-to-Action for WooCommerce Single Product pages. Leave blank to get default call-to-action - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/woocommerce_call-to-action/">more info</a> </p>
64
  </div>
65
  </div>
66
 
prev/admin/class-ccw-admin-page.php CHANGED
@@ -91,7 +91,7 @@ class CCW_Admin_Page {
91
  <li class="description"> Show/Hide feature to Show or Hide, the styles</li>
92
  </ol>
93
  <br>
94
- <p class="description"> <a target="_blank" href="https://www.holithemes.com/plugins/click-to-chat/new-interface/">New Interface</a></p>
95
 
96
  </div>
97
  </div>
@@ -131,7 +131,7 @@ class CCW_Admin_Page {
131
  <option value="2" <?php echo esc_attr( $ccw_enable_sc['enable_sc'] ) == 2 ? 'SELECTED' : ''; ?> >Yes</option>
132
  </select>
133
  <label>enable ShortCodes</label>
134
- <p class="description">If Selected - No - then Hides Shortcodes and its syntax - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/enable-disable-styles/">more info</a> </p>
135
  </div>
136
  </div>
137
  <?php
@@ -148,7 +148,7 @@ class CCW_Admin_Page {
148
  <option value="group_chat" <?php echo esc_attr( $ccw_return_type['return_type'] ) == 'group_chat' ? 'SELECTED' : ''; ?> >Group chat - Invite</option>
149
  </select>
150
  <label>Default return type - Chat or Group Chat Invite</label>
151
- <p class="description">Default return type for Floating Style, shortcodes. But for shortcodes can change using shortcode attributes - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/return-type-chat-or-group-chat/">more info</a> </p>
152
  </div>
153
  </div>
154
  <?php
@@ -176,7 +176,7 @@ class CCW_Admin_Page {
176
  <option value="0" <?php echo $style_value == 0 ? 'SELECTED' : ''; ?> >Hide on Desktop Devices</option>
177
  </select>
178
  <label>Select Style for Desktop</label>
179
- <p class="description"> - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/styles/">List of Styles</a> </p>
180
  <p class="description">These styles are customizable - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles' ); ?>">Customize Styles</a> </p>
181
 
182
  </div>
@@ -218,7 +218,7 @@ class CCW_Admin_Page {
218
  <div class="input-field col s12">
219
  <input name="ccw_options[number]" value="<?php echo esc_attr( $ccw_number['number'] ) ?>" id="whatsapp_number" type="text" class="input-margin">
220
  <label for="whatsapp_number">Enter whatsapp number </label>
221
- <p class="description">Enter whatsapp number with country code ( e.g. 916123456789 ) please dont include +, ( here in e.g. 91 is country code 6123456789 is mobile number - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/whatsapp-number/">more info</a> ) </p>
222
  </div>
223
  </div>
224
  <?php
@@ -233,7 +233,7 @@ class CCW_Admin_Page {
233
  <div class="input-field col s12">
234
  <input name="ccw_options[initial]" value="<?php echo esc_attr( $ccw_initial['initial'] ) ?>" id="whatsapp_initial" type="text" class="input-margin">
235
  <label for="whatsapp_initial">Initial Message</label>
236
- <p class="description">Initial message ( pre-filled ), placeholder {{url}} to add webpage url - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/pre-filled-message/">more info</a> </p>
237
  </div>
238
  </div>
239
  <?php
@@ -248,7 +248,7 @@ class CCW_Admin_Page {
248
  <div class="input-field col s12">
249
  <input name="ccw_options[group_id]" value="<?php echo esc_attr( $ccw_group_id['group_id'] ) ?>" id="whatsapp_group_id" type="text" class="input-margin">
250
  <label for="whatsapp_group_id">whatsapp group ID Extenstion </label>
251
- <p class="description">Enter whatsapp Group Id - E.g. 9EHLsEsOeJk6AVtE8AvXiA - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/find-whatsapp-group-id/">more info</a> </p>
252
  </div>
253
  </div>
254
  <?php
@@ -268,7 +268,7 @@ class CCW_Admin_Page {
268
  <option value="4" <?php echo $ccw_position_value == 4 ? 'SELECTED' : ''; ?> >top right</option>
269
  </select>
270
  <label>Fixed position to place</label>
271
- <p class="description">e.g. 10px - please add css units as suffix, e.g. 10px, 10%, 10rem, 10em .. <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/position-to-place/">more info</a> </p>
272
  </div>
273
  </div>
274
 
@@ -329,7 +329,7 @@ class CCW_Admin_Page {
329
  <div class="input-field col s12">
330
  <input name="ccw_options[input_placeholder]" value="<?php echo esc_attr( $ccw_placeholder['input_placeholder'] ) ?>" id="input_placeholder" type="text" class="input-margin">
331
  <label for="input_placeholder">placeholder value</label>
332
- <p class="description"> - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/text-to-display/">more info</a> </p>
333
  </div>
334
  </div>
335
  <?php
@@ -362,9 +362,9 @@ class CCW_Admin_Page {
362
  }
363
  ?>
364
 
365
- <p class="description"> If Google Analytics is installed - creates an Event at there - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/google-analytics/">more info</a> </p>
366
  <p class="description"> Customize Event Values - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles#ga-analytics' ); ?>"><?php _e( 'Customize Styles' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
367
- <p class="description"> Using - <a target="_blank" href="https://www.holithemes.com/google-analytics-for-click-to-chat-for-whatsapp-plugin/">Google Tag Manager</a> </p>
368
  <?php
369
  }
370
 
@@ -394,7 +394,7 @@ class CCW_Admin_Page {
394
  <?php
395
  }
396
  ?>
397
- <p class="description"> If Facebook Analytics is installed - creates an Event at there - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/facebook-analytics/">more info</a> </p>
398
  <p class="description"> Customize Event Values - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles#fb-analytics' ); ?>">Customize Styles</a> </p>
399
  <?php
400
  }
@@ -559,7 +559,7 @@ class CCW_Admin_Page {
559
  <?php
560
  }
561
  ?>
562
- <p class="description">Check to hide - Hide - Styles - based on type of the page <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/show-hide-styles-based-on-type-of-the-page/">more info</a> </p>
563
  <?php
564
  }
565
 
@@ -571,7 +571,7 @@ class CCW_Admin_Page {
571
  <div class="input-field col s12">
572
  <input name="ccw_options[list_hideon_pages]" value="<?php echo esc_attr( $ccw_list_id_tohide['list_hideon_pages'] ) ?>" id="ccw_list_id_tohide" type="text" class="input-margin">
573
  <label for="ccw_list_id_tohide">Id's list to Hide - add ',' after each id </label>
574
- <p class="description"> Add Post, Pages, Media - ID's to hide, Add multiple id's separate with a comma ( , ) - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/show-hide-styles-based-on-id/">more info</a> </p>
575
  </div>
576
  </div>
577
  <?php
@@ -585,7 +585,7 @@ class CCW_Admin_Page {
585
  <div class="input-field col s12">
586
  <input name="ccw_options[list_hideon_cat]" value="<?php echo esc_attr( $ccw_list_cat_tohide['list_hideon_cat'] ) ?>" id="ccw_list_cat_tohide" type="text" class="input-margin">
587
  <label for="ccw_list_cat_tohide">Category name's to Hide - add ',' after each category name </label>
588
- <p class="description">Category name's to hide, Add multiple Categories separate with a comma ( , ) - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/hide-styles-based-on-category/">more info</a> </p>
589
  </div>
590
  </div>
591
  <?php
@@ -606,7 +606,7 @@ class CCW_Admin_Page {
606
  $shortcode_list .= $key . ', ';
607
  }
608
  ?>
609
- <p class="description"> Default values is 'chat', can customize shortcode name - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/change-shortcode-name/">more info</a> </p>
610
  <!-- <p class="description"> please dont add this already existing shortcode names - <?php echo $shortcode_list ?> </p> -->
611
  <p class="description"> please dont change to already existing shortcode name </p>
612
  </div>
@@ -642,7 +642,7 @@ class CCW_Admin_Page {
642
  <?php
643
  }
644
  ?>
645
- <p class="description"> check this only if an issue with some cache plugin - api.whatsapp, web.whatsapp - <a target="_blank" href="https://www.holithemes.com/whatsapp-chat/app-first/">more info</a> </p>
646
  <?php
647
  }
648
 
91
  <li class="description"> Show/Hide feature to Show or Hide, the styles</li>
92
  </ol>
93
  <br>
94
+ <p class="description"> <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/new-interface/">New Interface</a></p>
95
 
96
  </div>
97
  </div>
131
  <option value="2" <?php echo esc_attr( $ccw_enable_sc['enable_sc'] ) == 2 ? 'SELECTED' : ''; ?> >Yes</option>
132
  </select>
133
  <label>enable ShortCodes</label>
134
+ <p class="description">If Selected - No - then Hides Shortcodes and its syntax - <a target="_blank" href="https://holithemes.com/whatsapp-chat/enable-disable-styles/">more info</a> </p>
135
  </div>
136
  </div>
137
  <?php
148
  <option value="group_chat" <?php echo esc_attr( $ccw_return_type['return_type'] ) == 'group_chat' ? 'SELECTED' : ''; ?> >Group chat - Invite</option>
149
  </select>
150
  <label>Default return type - Chat or Group Chat Invite</label>
151
+ <p class="description">Default return type for Floating Style, shortcodes. But for shortcodes can change using shortcode attributes - <a target="_blank" href="https://holithemes.com/whatsapp-chat/return-type-chat-or-group-chat/">more info</a> </p>
152
  </div>
153
  </div>
154
  <?php
176
  <option value="0" <?php echo $style_value == 0 ? 'SELECTED' : ''; ?> >Hide on Desktop Devices</option>
177
  </select>
178
  <label>Select Style for Desktop</label>
179
+ <p class="description"> - <a target="_blank" href="https://holithemes.com/whatsapp-chat/styles/">List of Styles</a> </p>
180
  <p class="description">These styles are customizable - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles' ); ?>">Customize Styles</a> </p>
181
 
182
  </div>
218
  <div class="input-field col s12">
219
  <input name="ccw_options[number]" value="<?php echo esc_attr( $ccw_number['number'] ) ?>" id="whatsapp_number" type="text" class="input-margin">
220
  <label for="whatsapp_number">Enter whatsapp number </label>
221
+ <p class="description">Enter whatsapp number with country code ( e.g. 916123456789 ) please dont include +, ( here in e.g. 91 is country code 6123456789 is mobile number - <a target="_blank" href="https://holithemes.com/whatsapp-chat/whatsapp-number/">more info</a> ) </p>
222
  </div>
223
  </div>
224
  <?php
233
  <div class="input-field col s12">
234
  <input name="ccw_options[initial]" value="<?php echo esc_attr( $ccw_initial['initial'] ) ?>" id="whatsapp_initial" type="text" class="input-margin">
235
  <label for="whatsapp_initial">Initial Message</label>
236
+ <p class="description">Initial message ( pre-filled ), placeholder {{url}} to add webpage url - <a target="_blank" href="https://holithemes.com/whatsapp-chat/pre-filled-message/">more info</a> </p>
237
  </div>
238
  </div>
239
  <?php
248
  <div class="input-field col s12">
249
  <input name="ccw_options[group_id]" value="<?php echo esc_attr( $ccw_group_id['group_id'] ) ?>" id="whatsapp_group_id" type="text" class="input-margin">
250
  <label for="whatsapp_group_id">whatsapp group ID Extenstion </label>
251
+ <p class="description">Enter whatsapp Group Id - E.g. 9EHLsEsOeJk6AVtE8AvXiA - <a target="_blank" href="https://holithemes.com/whatsapp-chat/find-whatsapp-group-id/">more info</a> </p>
252
  </div>
253
  </div>
254
  <?php
268
  <option value="4" <?php echo $ccw_position_value == 4 ? 'SELECTED' : ''; ?> >top right</option>
269
  </select>
270
  <label>Fixed position to place</label>
271
+ <p class="description">e.g. 10px - please add css units as suffix, e.g. 10px, 10%, 10rem, 10em .. <a target="_blank" href="https://holithemes.com/whatsapp-chat/position-to-place/">more info</a> </p>
272
  </div>
273
  </div>
274
 
329
  <div class="input-field col s12">
330
  <input name="ccw_options[input_placeholder]" value="<?php echo esc_attr( $ccw_placeholder['input_placeholder'] ) ?>" id="input_placeholder" type="text" class="input-margin">
331
  <label for="input_placeholder">placeholder value</label>
332
+ <p class="description"> - <a target="_blank" href="https://holithemes.com/whatsapp-chat/text-to-display/">more info</a> </p>
333
  </div>
334
  </div>
335
  <?php
362
  }
363
  ?>
364
 
365
+ <p class="description"> If Google Analytics is installed - creates an Event at there - <a target="_blank" href="https://holithemes.com/whatsapp-chat/google-analytics/">more info</a> </p>
366
  <p class="description"> Customize Event Values - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles#ga-analytics' ); ?>"><?php _e( 'Customize Styles' , 'click-to-chat-for-whatsapp' ) ?></a> </p>
367
+ <p class="description"> Using - <a target="_blank" href="https://holithemes.com/google-analytics-for-click-to-chat-for-whatsapp-plugin/">Google Tag Manager</a> </p>
368
  <?php
369
  }
370
 
394
  <?php
395
  }
396
  ?>
397
+ <p class="description"> If Facebook Analytics is installed - creates an Event at there - <a target="_blank" href="https://holithemes.com/whatsapp-chat/facebook-analytics/">more info</a> </p>
398
  <p class="description"> Customize Event Values - <a target="_blank" href="<?php echo admin_url( 'admin.php?page=ccw-edit-styles#fb-analytics' ); ?>">Customize Styles</a> </p>
399
  <?php
400
  }
559
  <?php
560
  }
561
  ?>
562
+ <p class="description">Check to hide - Hide - Styles - based on type of the page <a target="_blank" href="https://holithemes.com/whatsapp-chat/show-hide-styles-based-on-type-of-the-page/">more info</a> </p>
563
  <?php
564
  }
565
 
571
  <div class="input-field col s12">
572
  <input name="ccw_options[list_hideon_pages]" value="<?php echo esc_attr( $ccw_list_id_tohide['list_hideon_pages'] ) ?>" id="ccw_list_id_tohide" type="text" class="input-margin">
573
  <label for="ccw_list_id_tohide">Id's list to Hide - add ',' after each id </label>
574
+ <p class="description"> Add Post, Pages, Media - ID's to hide, Add multiple id's separate with a comma ( , ) - <a target="_blank" href="https://holithemes.com/whatsapp-chat/show-hide-styles-based-on-id/">more info</a> </p>
575
  </div>
576
  </div>
577
  <?php
585
  <div class="input-field col s12">
586
  <input name="ccw_options[list_hideon_cat]" value="<?php echo esc_attr( $ccw_list_cat_tohide['list_hideon_cat'] ) ?>" id="ccw_list_cat_tohide" type="text" class="input-margin">
587
  <label for="ccw_list_cat_tohide">Category name's to Hide - add ',' after each category name </label>
588
+ <p class="description">Category name's to hide, Add multiple Categories separate with a comma ( , ) - <a target="_blank" href="https://holithemes.com/whatsapp-chat/hide-styles-based-on-category/">more info</a> </p>
589
  </div>
590
  </div>
591
  <?php
606
  $shortcode_list .= $key . ', ';
607
  }
608
  ?>
609
+ <p class="description"> Default values is 'chat', can customize shortcode name - <a target="_blank" href="https://holithemes.com/whatsapp-chat/change-shortcode-name/">more info</a> </p>
610
  <!-- <p class="description"> please dont add this already existing shortcode names - <?php echo $shortcode_list ?> </p> -->
611
  <p class="description"> please dont change to already existing shortcode name </p>
612
  </div>
642
  <?php
643
  }
644
  ?>
645
+ <p class="description"> check this only if an issue with some cache plugin - api.whatsapp, web.whatsapp - <a target="_blank" href="https://holithemes.com/whatsapp-chat/app-first/">more info</a> </p>
646
  <?php
647
  }
648
 
prev/admin/commons/admin-sidebar.php CHANGED
@@ -18,12 +18,12 @@ if ( ! defined( 'ABSPATH' ) ) exit;
18
  <br>
19
  <p>We developed a new Interface, plannnig to release soon. </p>
20
  <br>
21
- <p>Please <a href="https://www.holithemes.com/go/ctc-1-8">Download</a> the beta version and reinstall the plugin</p><br>
22
  <!-- <p>After downloading, please delete the current version and reinstall the latest version.</p><br> -->
23
  <br>
24
  </div>
25
  <div class="card-action">
26
- <a href="https://www.holithemes.com/go/ctc-1-8">Download</a>
27
  <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/">Documentation</a>
28
  </div>
29
  </div>
18
  <br>
19
  <p>We developed a new Interface, plannnig to release soon. </p>
20
  <br>
21
+ <p>Please <a href="https://holithemes.com/go/ctc-1-8">Download</a> the beta version and reinstall the plugin</p><br>
22
  <!-- <p>After downloading, please delete the current version and reinstall the latest version.</p><br> -->
23
  <br>
24
  </div>
25
  <div class="card-action">
26
+ <a href="https://holithemes.com/go/ctc-1-8">Download</a>
27
  <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/">Documentation</a>
28
  </div>
29
  </div>
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Click to Chat ===
2
  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.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
@@ -30,7 +30,7 @@ Add your 'WhatsApp' or 'WhatsApp Business' Number. And let your website visitors
30
 
31
  = 💎 Styles =
32
 
33
- Select Style that matches your Website design.
34
 
35
  > 8 predefined styles + Add your own Image/GIF.
36
 
@@ -62,13 +62,13 @@ Add variables to change values dynamically
62
  [url] -> Web page full URL including parameters
63
  `
64
 
65
- With these variables we can understand from which page the user started WhatsApp chat.
66
 
67
  [Pre-filled Message](https://holithemes.com/plugins/click-to-chat/pre-filled-message/)
68
 
69
  = 🎁 WooCommerce =
70
 
71
- Seperate 'pre-filled message', 'call to action' settings for WooCommerce Single product pages.
72
 
73
  Additional, variables to change values dynamically
74
 
@@ -86,7 +86,7 @@ Additional, variables to change values dynamically
86
 
87
  = 📈 Analytics =
88
 
89
- Creates an Event when the user clicks on WhatsApp Icon/button.
90
 
91
  [Google Analytics](https://holithemes.com/plugins/click-to-chat/google-analytics/)
92
 
@@ -97,10 +97,12 @@ Creates an Event when the user clicks on WhatsApp Icon/button.
97
  1. **Style-1:** Button, appears as the theme button.
98
  1. **Style-2:** Image
99
  1. **Style-3:** Image
 
100
  1. **Style-4:** Chip style - a combination of image and a text message
101
  1. **Style-5:** Image, on hover shows sidebar content-box
102
  1. **Style-6:** Plain text with a link
103
  1. **Style-7:** Icon with customizable padding
 
104
  1. **Style-8:** Button with text, icon
105
  1. **Style-99:** Own Image / GIF / Animated image
106
 
@@ -119,7 +121,7 @@ Easy to setup different values for language
119
 
120
  = 🔯 Performance =
121
 
122
- * Rich in features but frontend of the site content is very light weight. We highly concentrate on performance.
123
 
124
  = 👓 Show/Hide =
125
 
@@ -156,6 +158,19 @@ Let users share your website with their WhatsApp contacts and get more leads.
156
 
157
  [Share](https://holithemes.com/plugins/click-to-chat/share-feature/)
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  == screenshots ==
160
 
161
  1. 8 Styles, 1 Add own image / GIF Style
@@ -205,7 +220,7 @@ number: 6123456789
205
 
206
  = Pre-filled Message =
207
 
208
- Makes user to start the conversation easily.
209
 
210
  Add variables to change values dynamically
211
  `
@@ -235,7 +250,7 @@ E.g.
235
  I like to buy this {product}, {url}
236
 
237
 
238
- With this prefilled text, we can know from which page the user started the conversation, regarding which they contacted us and their details
239
 
240
  = Call to Action =
241
 
@@ -250,9 +265,6 @@ E.g.
250
 
251
  `Chat to buy, only {sku} stock left`
252
 
253
- Call to actions are avialble for these Styles: 1, 4, 5, 6, 8
254
- For styles 2, 3, 7 call to action will display when mouse hovers on the icon/Image.
255
-
256
  = Select Styles =
257
 
258
  Select styles based on Device.
@@ -289,16 +301,16 @@ Plugin supports all CSS units as suffix. (px, %, rem,...)
289
 
290
  = Localization - WPML, Polylang =
291
 
292
- From WPML, Polylang navigatge to 'String Translations' and filter strings 'Click to chat for whatsapp' and change value based on language.
293
 
294
- * User Input (Plugin Settings values): - 'Click to chat for WhatsApp'
295
  * Admin strings (Plugin Settings) - text domain: 'click-to-chat-for-whatsapp'
296
 
297
- > Help plugin by [Translating Setting page strings(admin content), Readme text](https://translate.wordpress.org/projects/wp-plugins/click-to-chat-for-whatsapp/)
298
 
299
  = Shortcodes Attributes =
300
 
301
- Shortcodes by default get values from settings page. Override this values using attributes.
302
 
303
  - number
304
  - call_to_action
@@ -325,11 +337,11 @@ E.g.
325
 
326
  = WhatsApp Group Invite/chat =
327
 
328
- Add [WhatsApp group id](https://www.holithemes.com/whatsapp-chat/find-whatsapp-group-id/) at plugin settings page.
329
 
330
  = WhatsApp Share =
331
 
332
- Enable this featue and let users share your website easily.
333
 
334
  Add variables to change values dynamically
335
  {url} -> Web page URL
@@ -383,6 +395,15 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
383
 
384
  == Changelog ==
385
 
 
 
 
 
 
 
 
 
 
386
  = 3.0.4 =
387
  * Style-1, Style-8 Full width option for Mobile, Desktop
388
  * bug fixes
1
  === Click to Chat ===
2
  Requires at least: 4.6
3
+ Tested up to: 5.6
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
+ Stable tag: 3.1
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
30
 
31
  = 💎 Styles =
32
 
33
+ Select a Style that matches your Website design.
34
 
35
  > 8 predefined styles + Add your own Image/GIF.
36
 
62
  [url] -> Web page full URL including parameters
63
  `
64
 
65
+ With these variables, we can understand from which page the user started WhatsApp chat.
66
 
67
  [Pre-filled Message](https://holithemes.com/plugins/click-to-chat/pre-filled-message/)
68
 
69
  = 🎁 WooCommerce =
70
 
71
+ Separate 'pre-filled message', 'call to action' settings for WooCommerce Single product pages.
72
 
73
  Additional, variables to change values dynamically
74
 
86
 
87
  = 📈 Analytics =
88
 
89
+ Creates an Event when the user clicks on the WhatsApp Icon/button.
90
 
91
  [Google Analytics](https://holithemes.com/plugins/click-to-chat/google-analytics/)
92
 
97
  1. **Style-1:** Button, appears as the theme button.
98
  1. **Style-2:** Image
99
  1. **Style-3:** Image
100
+ 1. **Style-3 Extend:** Image [New]
101
  1. **Style-4:** Chip style - a combination of image and a text message
102
  1. **Style-5:** Image, on hover shows sidebar content-box
103
  1. **Style-6:** Plain text with a link
104
  1. **Style-7:** Icon with customizable padding
105
+ 1. **Style-7 Extend:** Icon with call to action on hover [New]
106
  1. **Style-8:** Button with text, icon
107
  1. **Style-99:** Own Image / GIF / Animated image
108
 
121
 
122
  = 🔯 Performance =
123
 
124
+ * Rich in features but the frontend of the site content is very light weight. We highly concentrate on performance.
125
 
126
  = 👓 Show/Hide =
127
 
158
 
159
  [Share](https://holithemes.com/plugins/click-to-chat/share-feature/)
160
 
161
+ = Help Translate The Plugin =
162
+
163
+ Help by [Translating the plugin](https://translate.wordpress.org/projects/wp-plugins/click-to-chat-for-whatsapp/) to available in more languages
164
+
165
+ == Addons ==
166
+
167
+ = Reverse position for RTL Pages =
168
+
169
+ Reverse position for RTL pages, if left then right, if right then left.
170
+ i.e. if position is set to right: 10px then plugin will display at left: 10px
171
+
172
+ [Reverse position for RTL Pages](https://github.com/holithemes/click-to-chat-addon-rtl)
173
+
174
  == screenshots ==
175
 
176
  1. 8 Styles, 1 Add own image / GIF Style
220
 
221
  = Pre-filled Message =
222
 
223
+ Makes the users start the conversation easily.
224
 
225
  Add variables to change values dynamically
226
  `
250
  I like to buy this {product}, {url}
251
 
252
 
253
+ With this prefilled text, we can know from which page the user started the conversation, regarding which they contacted us, and their details
254
 
255
  = Call to Action =
256
 
265
 
266
  `Chat to buy, only {sku} stock left`
267
 
 
 
 
268
  = Select Styles =
269
 
270
  Select styles based on Device.
301
 
302
  = Localization - WPML, Polylang =
303
 
304
+ From WPML, Polylang Settings -> 'String Translations' and filter strings to 'Click to chat for WhatsApp' and change value based on language.
305
 
306
+ * User Input (Plugin Settings values): - 'Click to chat for WhatsApp'
307
  * Admin strings (Plugin Settings) - text domain: 'click-to-chat-for-whatsapp'
308
 
309
+ > Help plugin by [Translating Setting page, Readme text](https://translate.wordpress.org/projects/wp-plugins/click-to-chat-for-whatsapp/)
310
 
311
  = Shortcodes Attributes =
312
 
313
+ Shortcodes by default get values from the plugin settings page. Override these values using attributes.
314
 
315
  - number
316
  - call_to_action
337
 
338
  = WhatsApp Group Invite/chat =
339
 
340
+ [Enable Group Feature](https://holithemes.com/plugins/click-to-chat/enable-group-feature/) Add [WhatsApp group id](https://holithemes.com/whatsapp-chat/find-whatsapp-group-id/) at plugin settings page. and let user join in WhatsApp Group.
341
 
342
  = WhatsApp Share =
343
 
344
+ [Enable Share feature](https://holithemes.com/plugins/click-to-chat/enable-share-feature/) and let users share your website easily.
345
 
346
  Add variables to change values dynamically
347
  {url} -> Web page URL
395
 
396
  == Changelog ==
397
 
398
+ = 3.1 =
399
+ * Updated: Full Width Style-1, Style-8 for mobile.
400
+ * Add Animation Delay, Animation Iteration
401
+ * New Animations - heartBeat, flip
402
+ * Shortcode style-5 new attributes - s5_img_url, s5_line_2
403
+ * Fix: Group ID Page level settings
404
+ * RTL Compatible for Styles.
405
+ * Updated Admin User Interface
406
+
407
  = 3.0.4 =
408
  * Style-1, Style-8 Full width option for Mobile, Desktop
409
  * bug fixes