Skip to content

Commit 7020375

Browse files
Merge pull request #33 from alvinjohnsonso/fix/pattern-matching-tooltip-display
- Fixed pattern matching display tooltip - Updated supported version
2 parents 6d159b1 + acf5c38 commit 7020375

File tree

7 files changed

+34
-8
lines changed

7 files changed

+34
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Wordpress plugin for tawk.to",
44
"type": "project",
55
"license": "GPL-3.0",
6-
"version": "0.7.1",
6+
"version": "0.7.2",
77
"require": {
88
"tawk/url-utils": "2.0.1"
99
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tawk-wordpress",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "tawk.to wordpress plugin",
55
"main": "index.js",
66
"directories": {

tawkto/assets/css/tawk.admin.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ a.tawk-link:hover {
264264
top: 5px;
265265
}
266266

267+
.tooltip.reverse .tooltiptext {
268+
top: unset;
269+
bottom: 5px;
270+
}
271+
267272
.tooltip .tooltiptext::before {
268273
content: "";
269274
display: block;
@@ -278,6 +283,13 @@ a.tawk-link:hover {
278283
left: 5px;
279284
}
280285

286+
.tooltip.reverse .tooltiptext::before {
287+
top: unset;
288+
border-bottom: unset;
289+
bottom: -5px;
290+
border-top: 5px solid #545454;
291+
}
292+
281293
.tooltip:hover .tooltiptext {
282294
visibility: visible;
283295
}

tawkto/assets/js/tawk.admin.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ jQuery(
6262
if ( jQuery( '#exclude-url' ).prop( 'checked' ) ) {
6363
jQuery( '#exlucded-urls-container' ).fadeIn();
6464
}
65+
66+
jQuery( '.tooltip' ).on( 'mouseenter', function() {
67+
var tooltipTextHeight = jQuery( this ).find( '.tooltiptext' ).height();
68+
if ( jQuery( '#url-exclusion' ).height() > tooltipTextHeight ) {
69+
jQuery( this ).removeClass( 'reverse' );
70+
return;
71+
}
72+
73+
jQuery( this ).addClass( 'reverse' );
74+
});
6575
}
6676
);
6777

tawkto/readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Contributors: tawkto
33
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
44
Requires at least: 2.7
55
Requires PHP: 5.6
6-
Tested up to: 5.9
7-
Stable tag: 0.7.1
6+
Tested up to: 6.0
7+
Stable tag: 0.7.2
88

99
(OFFICIAL tawk.to plugin) Instantly chat with visitors on your website with the free tawk.to chat widget.
1010
Website: [http://tawk.to](http://tawk.to)
@@ -69,6 +69,10 @@ Note: You will need a free tawk.to account: [Create one for free here!](https://
6969

7070
== Changelog ==
7171

72+
= 0.7.2 =
73+
* Fixed pattern matching tooltip display.
74+
* Supported version bump 6.0.
75+
7276
= 0.7.1 =
7377
* Fixed compatibility issue on PHP versions >= 5.6.
7478

tawkto/tawkto.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Plugin Name: Tawk.to Live Chat
77
* Plugin URI: https://www.tawk.to
88
* Description: Embeds Tawk.to live chat widget to your site
9-
* Version: 0.7.1
9+
* Version: 0.7.2
1010
* Author: Tawkto
1111
* Text Domain: tawk-to-live-chat
1212
**/
@@ -162,7 +162,7 @@ public function tawk_admin_notice() {
162162
if ( true === $settings_updated ) {
163163
?>
164164
<div class="notice notice-warning is-dismissible">
165-
<p><?php esc_html_e( 'You might need to clear cache if your using a cache plugin to see your updates', 'tawk-to-live-chat' ); ?></p>
165+
<p><?php esc_html_e( 'You might need to clear cache if you are using a cache plugin to see your updates', 'tawk-to-live-chat' ); ?></p>
166166
</div>
167167
<?php
168168
}

tawkto/templates/widget.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
?>
1010

11-
<!--Start of Tawk.to Script (0.7.1)-->
11+
<!--Start of Tawk.to Script (0.7.2)-->
1212
<script id="tawk-script" type="text/javascript">
1313
var Tawk_API = Tawk_API || {};
1414
<?php if ( isset( $customer_details ) && $enable_visitor_recognition ) : ?>
@@ -24,4 +24,4 @@
2424
s0.parentNode.insertBefore( s1, s0 );
2525
})();
2626
</script>
27-
<!--End of Tawk.to Script (0.7.1)-->
27+
<!--End of Tawk.to Script (0.7.2)-->

0 commit comments

Comments
 (0)