Skip to content

Commit

Permalink
Merge pull request #33 from alvinjohnsonso/fix/pattern-matching-toolt…
Browse files Browse the repository at this point in the history
…ip-display

- Fixed pattern matching display tooltip
- Updated supported version
  • Loading branch information
alvinjohnsonso authored May 25, 2022
2 parents 6d159b1 + acf5c38 commit 7020375
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Wordpress plugin for tawk.to",
"type": "project",
"license": "GPL-3.0",
"version": "0.7.1",
"version": "0.7.2",
"require": {
"tawk/url-utils": "2.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tawk-wordpress",
"version": "0.7.1",
"version": "0.7.2",
"description": "tawk.to wordpress plugin",
"main": "index.js",
"directories": {
Expand Down
12 changes: 12 additions & 0 deletions tawkto/assets/css/tawk.admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ a.tawk-link:hover {
top: 5px;
}

.tooltip.reverse .tooltiptext {
top: unset;
bottom: 5px;
}

.tooltip .tooltiptext::before {
content: "";
display: block;
Expand All @@ -278,6 +283,13 @@ a.tawk-link:hover {
left: 5px;
}

.tooltip.reverse .tooltiptext::before {
top: unset;
border-bottom: unset;
bottom: -5px;
border-top: 5px solid #545454;
}

.tooltip:hover .tooltiptext {
visibility: visible;
}
Expand Down
10 changes: 10 additions & 0 deletions tawkto/assets/js/tawk.admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ jQuery(
if ( jQuery( '#exclude-url' ).prop( 'checked' ) ) {
jQuery( '#exlucded-urls-container' ).fadeIn();
}

jQuery( '.tooltip' ).on( 'mouseenter', function() {
var tooltipTextHeight = jQuery( this ).find( '.tooltiptext' ).height();
if ( jQuery( '#url-exclusion' ).height() > tooltipTextHeight ) {
jQuery( this ).removeClass( 'reverse' );
return;
}

jQuery( this ).addClass( 'reverse' );
});
}
);

Expand Down
8 changes: 6 additions & 2 deletions tawkto/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: tawkto
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
Requires at least: 2.7
Requires PHP: 5.6
Tested up to: 5.9
Stable tag: 0.7.1
Tested up to: 6.0
Stable tag: 0.7.2

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

== Changelog ==

= 0.7.2 =
* Fixed pattern matching tooltip display.
* Supported version bump 6.0.

= 0.7.1 =
* Fixed compatibility issue on PHP versions >= 5.6.

Expand Down
4 changes: 2 additions & 2 deletions tawkto/tawkto.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Plugin Name: Tawk.to Live Chat
* Plugin URI: https://www.tawk.to
* Description: Embeds Tawk.to live chat widget to your site
* Version: 0.7.1
* Version: 0.7.2
* Author: Tawkto
* Text Domain: tawk-to-live-chat
**/
Expand Down Expand Up @@ -162,7 +162,7 @@ public function tawk_admin_notice() {
if ( true === $settings_updated ) {
?>
<div class="notice notice-warning is-dismissible">
<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>
<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>
</div>
<?php
}
Expand Down
4 changes: 2 additions & 2 deletions tawkto/templates/widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

?>

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

0 comments on commit 7020375

Please sign in to comment.