Version Description
- Added function for widget selection iframe to auto resize.
- Provided platform identifier to widget selection iframe.
Download this release
Release Info
Developer | alvinsotawk |
Plugin | Tawk.To Live Chat |
Version | 0.5.4 |
Comparing to | |
See all releases |
Code changes from version 0.5.3 to 0.5.4
- readme.txt +5 -1
- tawkto.php +3 -2
- templates/settings.php +21 -4
- templates/widget.php +2 -2
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: tawkto
|
|
3 |
Tags: tawk,tawk.to,tawkto,chat,free chat,livechat,chat widget,plugin,chat for web,chat online,chat software,free live chat,IM Chat,,live chat,live support,live web chat,online chat,online support,snapengage,wordpress chat,wordpress live chat
|
4 |
Requires at least: 2.7
|
5 |
Tested up to: 5.7
|
6 |
-
Stable tag: 0.5.
|
7 |
|
8 |
(OFFICIAL tawk.to plugin) Instantly chat with visitors on your website with the free tawk.to chat widget.
|
9 |
Website: [http://tawk.to](http://tawk.to)
|
@@ -55,6 +55,10 @@ Note: You will need a free tawk.to account : [Create one for free here!](https:/
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
|
|
58 |
= 0.5.3 =
|
59 |
* Fixed issues for checking enabled_visitor_recognition on embed script pre render.
|
60 |
|
3 |
Tags: tawk,tawk.to,tawkto,chat,free chat,livechat,chat widget,plugin,chat for web,chat online,chat software,free live chat,IM Chat,,live chat,live support,live web chat,online chat,online support,snapengage,wordpress chat,wordpress live chat
|
4 |
Requires at least: 2.7
|
5 |
Tested up to: 5.7
|
6 |
+
Stable tag: 0.5.4
|
7 |
|
8 |
(OFFICIAL tawk.to plugin) Instantly chat with visitors on your website with the free tawk.to chat widget.
|
9 |
Website: [http://tawk.to](http://tawk.to)
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= 0.5.4 =
|
59 |
+
* Added function for widget selection iframe to auto resize.
|
60 |
+
* Provided platform identifier to widget selection iframe.
|
61 |
+
|
62 |
= 0.5.3 =
|
63 |
* Fixed issues for checking enabled_visitor_recognition on embed script pre render.
|
64 |
|
tawkto.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Tawk.to Live Chat
|
4 |
Plugin URI: https://www.tawk.to
|
5 |
Description: Embeds Tawk.to live chat widget to your site
|
6 |
-
Version: 0.5.
|
7 |
Author: Tawkto
|
8 |
Text Domain: tawk-to-live-chat
|
9 |
*/
|
@@ -165,7 +165,8 @@ if(!class_exists('TawkTo_Settings')){
|
|
165 |
$iframe_url = $base_url.'/generic/widgets'
|
166 |
.'?currentWidgetId='.$widget_id
|
167 |
.'¤tPageId='.$page_id
|
168 |
-
.'&transparentBackground=1'
|
|
|
169 |
|
170 |
|
171 |
include(sprintf("%s/templates/settings.php", dirname(__FILE__)));
|
3 |
Plugin Name: Tawk.to Live Chat
|
4 |
Plugin URI: https://www.tawk.to
|
5 |
Description: Embeds Tawk.to live chat widget to your site
|
6 |
+
Version: 0.5.4
|
7 |
Author: Tawkto
|
8 |
Text Domain: tawk-to-live-chat
|
9 |
*/
|
165 |
$iframe_url = $base_url.'/generic/widgets'
|
166 |
.'?currentWidgetId='.$widget_id
|
167 |
.'¤tPageId='.$page_id
|
168 |
+
.'&transparentBackground=1'
|
169 |
+
.'&pltf=wordpress';
|
170 |
|
171 |
|
172 |
include(sprintf("%s/templates/settings.php", dirname(__FILE__)));
|
templates/settings.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* @package Tawk.to Widget for Wordpress
|
5 |
* @author Tawk.to
|
6 |
-
* @copyright (C) 2014-
|
7 |
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
**/
|
9 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -74,6 +74,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
74 |
if(e.data.action === 'removeWidget') {
|
75 |
removeWidget(e);
|
76 |
}
|
|
|
|
|
|
|
|
|
77 |
}
|
78 |
});
|
79 |
|
@@ -101,6 +105,19 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
101 |
}
|
102 |
});
|
103 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
</script>
|
105 |
<?php
|
106 |
}else{
|
@@ -135,9 +152,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
135 |
);
|
136 |
}
|
137 |
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
?>
|
142 |
<div id="visibility" class="tawktabcontent">
|
143 |
<div id="tawkvisibilitysettings">
|
3 |
/**
|
4 |
* @package Tawk.to Widget for Wordpress
|
5 |
* @author Tawk.to
|
6 |
+
* @copyright (C) 2014- Tawk.to
|
7 |
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
**/
|
9 |
if ( ! defined( 'ABSPATH' ) ) {
|
74 |
if(e.data.action === 'removeWidget') {
|
75 |
removeWidget(e);
|
76 |
}
|
77 |
+
|
78 |
+
if(e.data.action === 'reloadHeight') {
|
79 |
+
reloadIframeHeight(e.data.height);
|
80 |
+
}
|
81 |
}
|
82 |
});
|
83 |
|
105 |
}
|
106 |
});
|
107 |
}
|
108 |
+
|
109 |
+
function reloadIframeHeight(height) {
|
110 |
+
if (!height) {
|
111 |
+
return;
|
112 |
+
}
|
113 |
+
|
114 |
+
var iframe = jQuery('#tawkIframe');
|
115 |
+
if (height === iframe.height()) {
|
116 |
+
return;
|
117 |
+
}
|
118 |
+
|
119 |
+
iframe.height(height);
|
120 |
+
}
|
121 |
</script>
|
122 |
<?php
|
123 |
}else{
|
152 |
);
|
153 |
}
|
154 |
|
155 |
+
if (!isset($visibility['enable_visitor_recognition'])) {
|
156 |
+
$visibility['enable_visitor_recognition'] = 1; // default value
|
157 |
+
}
|
158 |
?>
|
159 |
<div id="visibility" class="tawktabcontent">
|
160 |
<div id="tawkvisibilitysettings">
|
templates/widget.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<!--Start of Tawk.to Script (0.5.
|
2 |
<script type="text/javascript">
|
3 |
var Tawk_API=Tawk_API||{};
|
4 |
<?php
|
@@ -16,4 +16,4 @@ s1.setAttribute('crossorigin','*');
|
|
16 |
s0.parentNode.insertBefore(s1,s0);
|
17 |
})();
|
18 |
</script>
|
19 |
-
<!--End of Tawk.to Script (0.5.
|
1 |
+
<!--Start of Tawk.to Script (0.5.4)-->
|
2 |
<script type="text/javascript">
|
3 |
var Tawk_API=Tawk_API||{};
|
4 |
<?php
|
16 |
s0.parentNode.insertBefore(s1,s0);
|
17 |
})();
|
18 |
</script>
|
19 |
+
<!--End of Tawk.to Script (0.5.4)-->
|