Version Description
- New: z-Index settings
- Enchantment: Admin settings.
Download this release
Release Info
Developer | bhvreddy |
Plugin | Click to Chat for WhatsApp Chat |
Version | 3.5.2 |
Comparing to | |
See all releases |
Code changes from version 3.5.1 to 3.5.2
- click-to-chat.php +2 -2
- new/admin/class-ht-ctc-admin-other-settings.php +24 -6
- new/inc/chat/class-ht-ctc-chat.php +4 -1
- readme.txt +6 -2
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.5.
|
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.5.
|
21 |
}
|
22 |
|
23 |
// define HT_CTC_PLUGIN_FILE
|
3 |
Plugin Name: Click to Chat
|
4 |
Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
|
5 |
Description: Lets make your Web page visitors contact you through WhatsApp with a single click/tap
|
6 |
+
Version: 3.5.2
|
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.5.2' );
|
21 |
}
|
22 |
|
23 |
// define HT_CTC_PLUGIN_FILE
|
new/admin/class-ht-ctc-admin-other-settings.php
CHANGED
@@ -427,6 +427,7 @@ class HT_CTC_Admin_Other_Settings {
|
|
427 |
$dbrow = 'ht_ctc_othersettings';
|
428 |
|
429 |
$aria = (isset($options['aria'])) ? 1 : '';
|
|
|
430 |
|
431 |
// start other settings
|
432 |
do_action('ht_ctc_ah_admin_start_os');
|
@@ -434,17 +435,34 @@ class HT_CTC_Admin_Other_Settings {
|
|
434 |
$li_active_gr_sh = ( isset( $options['enable_group'] ) || isset( $options['enable_share'] ) ) ? "class='active'" : '';
|
435 |
?>
|
436 |
|
|
|
|
|
437 |
<ul class="collapsible ht_ctc_other_settings" data-collapsible="accordion" id="ht_ctc_othersettings">
|
438 |
<li class="">
|
439 |
<div class="collapsible-header"><?php _e( 'Other Settings', 'click-to-chat-for-whatsapp' ); ?></div>
|
440 |
<div class="collapsible-body">
|
441 |
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
<
|
446 |
-
</
|
447 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
|
449 |
<?php
|
450 |
// hook
|
427 |
$dbrow = 'ht_ctc_othersettings';
|
428 |
|
429 |
$aria = (isset($options['aria'])) ? 1 : '';
|
430 |
+
$zindex = (isset($options['zindex'])) ? esc_attr($options['zindex']) : '99999999';
|
431 |
|
432 |
// start other settings
|
433 |
do_action('ht_ctc_ah_admin_start_os');
|
435 |
$li_active_gr_sh = ( isset( $options['enable_group'] ) || isset( $options['enable_share'] ) ) ? "class='active'" : '';
|
436 |
?>
|
437 |
|
438 |
+
<p class="description"><?php _e( 'All this below settings are not important to everyone', 'click-to-chat-for-whatsapp' ); ?></p>
|
439 |
+
|
440 |
<ul class="collapsible ht_ctc_other_settings" data-collapsible="accordion" id="ht_ctc_othersettings">
|
441 |
<li class="">
|
442 |
<div class="collapsible-header"><?php _e( 'Other Settings', 'click-to-chat-for-whatsapp' ); ?></div>
|
443 |
<div class="collapsible-body">
|
444 |
|
445 |
+
<!-- z-index -->
|
446 |
+
<div class="row">
|
447 |
+
<div class="col s6">
|
448 |
+
<p><?php _e( 'z-index', 'click-to-chat-for-whatsapp' ); ?></p>
|
449 |
+
</div>
|
450 |
+
<div class="input-field col s6">
|
451 |
+
<input name="<?= $dbrow; ?>[zindex]" value="<?= $zindex ?>" min="0" id="zindex" type="number">
|
452 |
+
<label for="zindex"><?php _e( 'z-index', 'click-to-chat-for-whatsapp' ); ?></label>
|
453 |
+
<p class="description"><?php _e( 'Position of the element along with z-index. stacking the elements', 'click-to-chat-for-whatsapp' ); ?></p>
|
454 |
+
</div>
|
455 |
+
</div>
|
456 |
+
|
457 |
+
<!-- aria -->
|
458 |
+
<div class="row">
|
459 |
+
<p id="aria">
|
460 |
+
<label>
|
461 |
+
<input name="<?php echo $dbrow ?>[aria]" type="checkbox" value="1" <?php checked( $aria, 1 ); ?> id="aria" />
|
462 |
+
<span><?php _e( 'Add aria-hidden=true - hide for Accessibility API (screen readers)', 'click-to-chat-for-whatsapp' ); ?></span>
|
463 |
+
</label>
|
464 |
+
</p>
|
465 |
+
</div>
|
466 |
|
467 |
<?php
|
468 |
// hook
|
new/inc/chat/class-ht-ctc-chat.php
CHANGED
@@ -169,7 +169,10 @@ class HT_CTC_Chat {
|
|
169 |
// schedule
|
170 |
$ht_ctc_chat['schedule'] = 'no';
|
171 |
|
172 |
-
$
|
|
|
|
|
|
|
173 |
|
174 |
// analytics
|
175 |
$ht_ctc_os['is_ga_enable'] = 'yes';
|
169 |
// schedule
|
170 |
$ht_ctc_chat['schedule'] = 'no';
|
171 |
|
172 |
+
$zindex = (isset($othersettings['zindex'])) ? esc_attr($othersettings['zindex']) : '';
|
173 |
+
$zindex = ('' == $zindex) ? '99999999' : $zindex;
|
174 |
+
|
175 |
+
$ht_ctc_chat['css'] = "display: none; cursor: pointer; z-index: $zindex;";
|
176 |
|
177 |
// analytics
|
178 |
$ht_ctc_os['is_ga_enable'] = 'yes';
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Requires at least: 4.6
|
|
3 |
Tested up to: 5.8.1
|
4 |
Requires PHP: 5.6
|
5 |
Contributors: holithemes
|
6 |
-
Stable tag: 3.5.
|
7 |
Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, WhatsApp WooCommerce, whatsapp wordpress, whatsapp floating button, whatsapp icon, holithemes
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -465,8 +465,12 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
|
|
465 |
|
466 |
== Changelog ==
|
467 |
|
|
|
|
|
|
|
|
|
468 |
= 3.5.1 =
|
469 |
-
Fix: Customize styles settings not saving
|
470 |
|
471 |
= 3.5 =
|
472 |
* New: Add Styles at WooCommerce Shop page. (Products Archive)
|
3 |
Tested up to: 5.8.1
|
4 |
Requires PHP: 5.6
|
5 |
Contributors: holithemes
|
6 |
+
Stable tag: 3.5.2
|
7 |
Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, WhatsApp WooCommerce, whatsapp wordpress, whatsapp floating button, whatsapp icon, holithemes
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
465 |
|
466 |
== Changelog ==
|
467 |
|
468 |
+
= 3.5.2 =
|
469 |
+
* New: z-Index settings
|
470 |
+
* Enchantment: Admin settings.
|
471 |
+
|
472 |
= 3.5.1 =
|
473 |
+
* Fix: Customize styles settings not saving
|
474 |
|
475 |
= 3.5 =
|
476 |
* New: Add Styles at WooCommerce Shop page. (Products Archive)
|