Version Description
- UI improvments and WhatsApp API change fix
Download this release
Release Info
Developer | galdub |
Plugin | Floating Chat Widget: Contact Chat Icons, Telegram Chat, Line, WeChat, Email, SMS, Call Button – Chaty |
Version | 2.0.7 |
Comparing to | |
See all releases |
Code changes from version 2.0.6 to 2.0.7
- admin/class-social-icons.php +1 -1
- assets/css/cht-style.css +3 -1
- cht-icons.php +1 -1
- frontend/class-frontend.php +8 -4
- readme.txt +4 -1
- views/parts/section1.php +5 -0
- views/parts/section3.php +2 -1
admin/class-social-icons.php
CHANGED
@@ -45,7 +45,7 @@ class CHT_Social_Icons
|
|
45 |
{
|
46 |
return array(
|
47 |
array(
|
48 |
-
'example' => '
|
49 |
'placeholder' => __('Phone number', CHT_OPT),
|
50 |
'slug' => 'Whatsapp',
|
51 |
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#49E670"/>
|
45 |
{
|
46 |
return array(
|
47 |
array(
|
48 |
+
'example' => '1507854875',
|
49 |
'placeholder' => __('Phone number', CHT_OPT),
|
50 |
'slug' => 'Whatsapp',
|
51 |
'svg' => '<circle class="color-element" cx="19.4395" cy="19.4395" r="19.4395" fill="#49E670"/>
|
assets/css/cht-style.css
CHANGED
@@ -2119,7 +2119,9 @@ a.pro-plugin-url {
|
|
2119 |
-moz-border-radius: 5px;
|
2120 |
padding: 10px;
|
2121 |
height: 70px;
|
2122 |
-
border: 1px solid #ddd
|
|
|
|
|
2123 |
}
|
2124 |
|
2125 |
.license-key {
|
2119 |
-moz-border-radius: 5px;
|
2120 |
padding: 10px;
|
2121 |
height: 70px;
|
2122 |
+
border: 1px solid #ddd;
|
2123 |
+
width: 100%;
|
2124 |
+
max-width: 364px;
|
2125 |
}
|
2126 |
|
2127 |
.license-key {
|
cht-icons.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Description: Chat with your website visitors via their favorite channels. Show a chat icon on the bottom of your site and communicate with your customers.
|
6 |
Author: Premio
|
7 |
Author URI: https://premio.io/downloads/chaty/
|
8 |
-
Version: 2.0.
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
5 |
Description: Chat with your website visitors via their favorite channels. Show a chat icon on the bottom of your site and communicate with your customers.
|
6 |
Author: Premio
|
7 |
Author URI: https://premio.io/downloads/chaty/
|
8 |
+
Version: 2.0.7
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
frontend/class-frontend.php
CHANGED
@@ -279,14 +279,18 @@ class CHT_Frontend extends CHT_Admin_Base
|
|
279 |
if($social['slug'] == "Viber") {
|
280 |
$val = $value['value'];
|
281 |
$fc = substr($val, 0, 1);
|
282 |
-
if($fc == "+") {
|
283 |
-
$length = -1*(strlen($val)-1);
|
284 |
$val = substr($val, $length);
|
285 |
}
|
286 |
-
if(!wp_is_mobile()) {
|
287 |
-
$val = "+"
|
288 |
}
|
289 |
$arr[mb_strtolower($social['slug'])] = $val;
|
|
|
|
|
|
|
|
|
290 |
} else {
|
291 |
$arr[mb_strtolower($social['slug'])] = $value['value'];
|
292 |
}
|
279 |
if($social['slug'] == "Viber") {
|
280 |
$val = $value['value'];
|
281 |
$fc = substr($val, 0, 1);
|
282 |
+
if ($fc == "+") {
|
283 |
+
$length = -1 * (strlen($val) - 1);
|
284 |
$val = substr($val, $length);
|
285 |
}
|
286 |
+
if (!wp_is_mobile()) {
|
287 |
+
$val = "+" . $val;
|
288 |
}
|
289 |
$arr[mb_strtolower($social['slug'])] = $val;
|
290 |
+
} else if($social['slug'] == "Whatsapp") {
|
291 |
+
$val = $value['value'];
|
292 |
+
$val = str_replace("+","", $val);
|
293 |
+
$arr[mb_strtolower($social['slug'])] = $val;
|
294 |
} else {
|
295 |
$arr[mb_strtolower($social['slug'])] = $value['value'];
|
296 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: galdub, tomeraharon, premio
|
|
3 |
Tags: whatsapp, facebook messenger, click to chat, chat, chat button, call now button
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 5.2
|
6 |
-
Stable tag: 2.0.
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
FREE customizable live chat and call buttons. Let your visitors contact you via Facebook Messenger, Whatsapp, Telegram, Viber, Email, SMS and more.
|
@@ -132,6 +132,9 @@ Just follow our <a href="https://premio.io/wordpress-premio-pro-version-installa
|
|
132 |
|
133 |
== Changelog ==
|
134 |
|
|
|
|
|
|
|
135 |
= 2.0.6 =
|
136 |
* Security update
|
137 |
|
3 |
Tags: whatsapp, facebook messenger, click to chat, chat, chat button, call now button
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 5.2
|
6 |
+
Stable tag: 2.0.7
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
FREE customizable live chat and call buttons. Let your visitors contact you via Facebook Messenger, Whatsapp, Telegram, Viber, Email, SMS and more.
|
132 |
|
133 |
== Changelog ==
|
134 |
|
135 |
+
= 2.0.7 =
|
136 |
+
* UI improvments and WhatsApp API change fix
|
137 |
+
|
138 |
= 2.0.6 =
|
139 |
* Security update
|
140 |
|
views/parts/section1.php
CHANGED
@@ -256,6 +256,11 @@
|
|
256 |
}
|
257 |
$value['title'] = $social['title'];
|
258 |
$status = 0;
|
|
|
|
|
|
|
|
|
|
|
259 |
?>
|
260 |
<li data-id="<?php echo $social['slug'] ?>" id="chaty-social-<?php echo $social['slug'] ?>">
|
261 |
<div class="channels-selected__item <?php echo ($status)?"img-active":"" ?> <?php echo ($this->is_pro()) ? 'pro' : 'free'; ?> 1 available">
|
256 |
}
|
257 |
$value['title'] = $social['title'];
|
258 |
$status = 0;
|
259 |
+
if($social['slug'] == "Whatsapp"){
|
260 |
+
$val = $value['value'];
|
261 |
+
$val = str_replace("+","", $val);
|
262 |
+
$value['value'] = $val;
|
263 |
+
}
|
264 |
?>
|
265 |
<li data-id="<?php echo $social['slug'] ?>" id="chaty-social-<?php echo $social['slug'] ?>">
|
266 |
<div class="channels-selected__item <?php echo ($status)?"img-active":"" ?> <?php echo ($this->is_pro()) ? 'pro' : 'free'; ?> 1 available">
|
views/parts/section3.php
CHANGED
@@ -9,7 +9,8 @@
|
|
9 |
<div>
|
10 |
<label class="switch">
|
11 |
<span class="switch__label"><?php _e('Off', CHT_OPT);?></span>
|
12 |
-
|
|
|
13 |
<span class="switch__styled"></span>
|
14 |
<span class="switch__label"><?php _e('On', CHT_OPT);?></span>
|
15 |
</label>
|
9 |
<div>
|
10 |
<label class="switch">
|
11 |
<span class="switch__label"><?php _e('Off', CHT_OPT);?></span>
|
12 |
+
<?php $cht_active = get_option('cht_active'); ?>
|
13 |
+
<input data-gramm_editor="false" type="checkbox" name="cht_active" value="1" <?php echo (!empty($cht_active)) ? 'checked' : ''; ?>>
|
14 |
<span class="switch__styled"></span>
|
15 |
<span class="switch__label"><?php _e('On', CHT_OPT);?></span>
|
16 |
</label>
|