Version Description
- WP Engine is fully supported now
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.1.6 |
Comparing to | |
See all releases |
Code changes from version 2.1.5 to 2.1.6
- admin/class-admin-base.php +33 -29
- assets/js/cht-front-script.js +4 -1
- cht-icons.php +2 -2
- readme.txt +4 -1
admin/class-admin-base.php
CHANGED
@@ -444,36 +444,40 @@ class CHT_Admin_Base
|
|
444 |
|
445 |
public function cht_clear_all_caches()
|
446 |
{
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
w3tc_flush_all
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
$supercachedir
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
WpeCommon
|
462 |
-
|
463 |
-
|
464 |
-
WpeCommon
|
465 |
-
|
466 |
-
|
467 |
-
WpeCommon
|
468 |
-
|
469 |
-
|
470 |
-
$wp_fastest_cache
|
471 |
-
|
472 |
-
rocket_clean_domain
|
473 |
-
|
474 |
-
|
475 |
-
run_rocket_sitemap_preload
|
|
|
|
|
476 |
}
|
|
|
|
|
477 |
}
|
478 |
}
|
479 |
|
444 |
|
445 |
public function cht_clear_all_caches()
|
446 |
{
|
447 |
+
try {
|
448 |
+
global $wp_fastest_cache;
|
449 |
+
// if W3 Total Cache is being used, clear the cache
|
450 |
+
if (function_exists('w3tc_flush_all')) {
|
451 |
+
w3tc_flush_all();
|
452 |
+
/* if WP Super Cache is being used, clear the cache */
|
453 |
+
} else if (function_exists('wp_cache_clean_cache')) {
|
454 |
+
global $file_prefix, $supercachedir;
|
455 |
+
if (empty($supercachedir) && function_exists('get_supercache_dir')) {
|
456 |
+
$supercachedir = get_supercache_dir();
|
457 |
+
}
|
458 |
+
wp_cache_clean_cache($file_prefix);
|
459 |
+
} else if (class_exists('WpeCommon')) {
|
460 |
+
//be extra careful, just in case 3rd party changes things on us
|
461 |
+
if (method_exists('WpeCommon', 'purge_memcached')) {
|
462 |
+
//WpeCommon::purge_memcached();
|
463 |
+
}
|
464 |
+
if (method_exists('WpeCommon', 'clear_maxcdn_cache')) {
|
465 |
+
//WpeCommon::clear_maxcdn_cache();
|
466 |
+
}
|
467 |
+
if (method_exists('WpeCommon', 'purge_varnish_cache')) {
|
468 |
+
//WpeCommon::purge_varnish_cache();
|
469 |
+
}
|
470 |
+
} else if (method_exists('WpFastestCache', 'deleteCache') && !empty($wp_fastest_cache)) {
|
471 |
+
$wp_fastest_cache->deleteCache();
|
472 |
+
} else if (function_exists('rocket_clean_domain')) {
|
473 |
+
rocket_clean_domain();
|
474 |
+
// Preload cache.
|
475 |
+
if (function_exists('run_rocket_sitemap_preload')) {
|
476 |
+
run_rocket_sitemap_preload();
|
477 |
+
}
|
478 |
}
|
479 |
+
} catch (Exception $e) {
|
480 |
+
return 1;
|
481 |
}
|
482 |
}
|
483 |
|
assets/js/cht-front-script.js
CHANGED
@@ -60,6 +60,9 @@
|
|
60 |
if (Object.keys(h).length >= 1 && (g = '<div class="chaty-widget ' + n + " " + a + ' " style="display:block; ' + s + '" dir="ltr">', g += '<div class="chaty-widget-is" id="transition_disabled">'), g += o(e), h = e.object_settings.social, Object.keys(h).length >= 1) {
|
61 |
g += "</div>", g += '<div class="i-trigger">';
|
62 |
var C = i("display_cta");
|
|
|
|
|
|
|
63 |
if ("" != d && "none" != C)var p = "true"; else p = "no-tooltip";
|
64 |
g += '<div class="chaty-widget-i i-trigger-open ' + p + ' ">', g += function (t) {
|
65 |
switch (t.object_settings.widget_type) {
|
@@ -74,7 +77,7 @@
|
|
74 |
default:
|
75 |
return '<svg version="1.1" id="ch" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.7 54 54" style="enable-background:new -496 507.7 54 54;" xml:space="preserve">\n<style type="text/css">.st1 {fill: #FFFFFF;}.st0{fill: #808080;}</style>\n<g><circle cx="-469" cy="534.7" r="27" fill="' + t.object_settings.color + '"/></g>\n<path class="st1" d="M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z"/>\n<path class="st0" d="M-477.7,530.5h11.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-11.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,530.8-478.2,530.5-477.7,530.5z"/>\n<path class="st0" d="M-477.7,533.5h7.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-7.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,533.9-478.2,533.5-477.7,533.5z"/>\n</svg>'
|
76 |
}
|
77 |
-
}(e), C = i("display_cta"), "" != d && "none" != C && (g += ' <div class="chaty-widget-i-title true"> ', g += d, g += "</div>"), g += "</div>", g += '<div class="chaty-widget-i i-trigger-close" data-title="Hide" style="background-color:' + e.object_settings.color + '">', g += '<svg viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">', g += '<ellipse cx="26" cy="26" rx="26" ry="26" fill="' + e.object_settings.color + '"/>', g += '<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="white"/>', g += '<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="white"/>', g += "</svg>", g += '<div class="chaty-widget-i-title">', g += "Hide", g += "</div>", g += "</div>", g += " </div>", 0 === n.length && (g += '<div class="get" style="position: absolute;width: 100%;text-align: center;display: block!important; opacity: 1 !important;visibility: visible !important;"> <a href="https://premio.io/downloads/chaty/?utm_source=wpplugin" target="_blank" style=" font-size: 11px !important; top: -5px !important; position: relative !important; color: #222 !important; width:60px !important; font-family: Lato, Helvetica, Arial, sans-serif; display: block !important; opacity: 1 !important; visibility: visible !important; " class="chaty-get-btn">Get Chaty</a></div>'), g += "</div>"
|
78 |
|
79 |
} else {
|
80 |
var w = "";
|
60 |
if (Object.keys(h).length >= 1 && (g = '<div class="chaty-widget ' + n + " " + a + ' " style="display:block; ' + s + '" dir="ltr">', g += '<div class="chaty-widget-is" id="transition_disabled">'), g += o(e), h = e.object_settings.social, Object.keys(h).length >= 1) {
|
61 |
g += "</div>", g += '<div class="i-trigger">';
|
62 |
var C = i("display_cta");
|
63 |
+
var CU = current_url = window.location.origin;
|
64 |
+
CU = CU.replace("https://","");
|
65 |
+
CU = CU.replace("http://","");
|
66 |
if ("" != d && "none" != C)var p = "true"; else p = "no-tooltip";
|
67 |
g += '<div class="chaty-widget-i i-trigger-open ' + p + ' ">', g += function (t) {
|
68 |
switch (t.object_settings.widget_type) {
|
77 |
default:
|
78 |
return '<svg version="1.1" id="ch" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.7 54 54" style="enable-background:new -496 507.7 54 54;" xml:space="preserve">\n<style type="text/css">.st1 {fill: #FFFFFF;}.st0{fill: #808080;}</style>\n<g><circle cx="-469" cy="534.7" r="27" fill="' + t.object_settings.color + '"/></g>\n<path class="st1" d="M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z"/>\n<path class="st0" d="M-477.7,530.5h11.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-11.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,530.8-478.2,530.5-477.7,530.5z"/>\n<path class="st0" d="M-477.7,533.5h7.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-7.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,533.9-478.2,533.5-477.7,533.5z"/>\n</svg>'
|
79 |
}
|
80 |
+
}(e), C = i("display_cta"), "" != d && "none" != C && (g += ' <div class="chaty-widget-i-title true"> ', g += d, g += "</div>"), g += "</div>", g += '<div class="chaty-widget-i i-trigger-close" data-title="Hide" style="background-color:' + e.object_settings.color + '">', g += '<svg viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">', g += '<ellipse cx="26" cy="26" rx="26" ry="26" fill="' + e.object_settings.color + '"/>', g += '<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)" fill="white"/>', g += '<rect width="27.1433" height="3.89857" rx="1.94928" transform="translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)" fill="white"/>', g += "</svg>", g += '<div class="chaty-widget-i-title">', g += "Hide", g += "</div>", g += "</div>", g += " </div>", 0 === n.length && (g += '<div class="get" style="position: absolute;width: 100%;text-align: center;display: block!important; opacity: 1 !important;visibility: visible !important;"> <a href="https://premio.io/downloads/chaty/?utm_source=wpplugin&domain='+CU+'" target="_blank" style=" font-size: 11px !important; top: -5px !important; position: relative !important; color: #222 !important; width:60px !important; font-family: Lato, Helvetica, Arial, sans-serif; display: block !important; opacity: 1 !important; visibility: visible !important; " class="chaty-get-btn">Get Chaty</a></div>'), g += "</div>"
|
81 |
|
82 |
} else {
|
83 |
var w = "";
|
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.1.
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
@@ -23,7 +23,7 @@ define('CHT_INC', CHT_DIR . '/includes');
|
|
23 |
define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
|
24 |
define('CHT_PLUGIN_URL', plugins_url() . "/chaty/");
|
25 |
define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
|
26 |
-
define('CHT_VERSION', "2.1.
|
27 |
|
28 |
if (!function_exists('wp_doing_ajax')) {
|
29 |
function wp_doing_ajax()
|
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.1.6
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
23 |
define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
|
24 |
define('CHT_PLUGIN_URL', plugins_url() . "/chaty/");
|
25 |
define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
|
26 |
+
define('CHT_VERSION', "2.1.6");
|
27 |
|
28 |
if (!function_exists('wp_doing_ajax')) {
|
29 |
function wp_doing_ajax()
|
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.1.
|
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.
|
@@ -173,6 +173,9 @@ Yes! You can even decide what chat buttons will show up on each device (desktop/
|
|
173 |
|
174 |
== Changelog ==
|
175 |
|
|
|
|
|
|
|
176 |
= 2.1.5 =
|
177 |
* WP Fastest Cache pro version bug fix
|
178 |
|
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.1.6
|
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.
|
173 |
|
174 |
== Changelog ==
|
175 |
|
176 |
+
= 2.1.6 =
|
177 |
+
* WP Engine is fully supported now
|
178 |
+
|
179 |
= 2.1.5 =
|
180 |
* WP Fastest Cache pro version bug fix
|
181 |
|