Version Description
Single chat button call-to-action bug
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.4.2 |
Comparing to | |
See all releases |
Code changes from version 2.4.1 to 2.4.2
- assets/css/animation.css +5 -4
- assets/js/cht-front-script.js +10 -4
- cht-icons.php +2 -2
- readme.txt +4 -1
- views/widget.php +1 -0
assets/css/animation.css
CHANGED
@@ -626,9 +626,7 @@ body .one_widget .i-trigger-open .chaty-widget-i-title.face_title {
|
|
626 |
bottom: 0 !important;
|
627 |
top: auto !important;
|
628 |
}
|
629 |
-
|
630 |
-
margin-left: -60px;
|
631 |
-
}
|
632 |
.chaty-widget.hide-tooltip-arrow .chaty-widget-i:before {
|
633 |
display: none !important;
|
634 |
}
|
@@ -638,4 +636,7 @@ body .no-tooltip .chaty-widget-i-title.true {
|
|
638 |
.chaty-widget.hide-cta-arrow .chaty-widget-i:after, .chaty-widget.hide-cta-arrow .chaty-widget-i:before {
|
639 |
content: "";
|
640 |
display: none;
|
641 |
-
}
|
|
|
|
|
|
626 |
bottom: 0 !important;
|
627 |
top: auto !important;
|
628 |
}
|
629 |
+
|
|
|
|
|
630 |
.chaty-widget.hide-tooltip-arrow .chaty-widget-i:before {
|
631 |
display: none !important;
|
632 |
}
|
636 |
.chaty-widget.hide-cta-arrow .chaty-widget-i:after, .chaty-widget.hide-cta-arrow .chaty-widget-i:before {
|
637 |
content: "";
|
638 |
display: none;
|
639 |
+
}
|
640 |
+
.chaty-widget-i.hide-chaty-arrow:before {
|
641 |
+
display: none;
|
642 |
+
}
|
assets/js/cht-front-script.js
CHANGED
@@ -133,12 +133,10 @@
|
|
133 |
default:
|
134 |
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>'
|
135 |
}
|
136 |
-
}(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 rel="noopener" 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;
|
137 |
|
138 |
} else {
|
139 |
var w = "";
|
140 |
-
//"" == d && (w = "hidetooltip"), g = '<div class="chaty-widget one_widget ' + n + " " + a + ' " style="display:block; ' + s + '" dir="ltr">', g += '<div class="chaty-widget-is no-tooltip">', g += "</div>", g += '<div class="i-trigger">', g += '<div class="chaty-widget-i no-tooltip i-trigger-open ' + w + '">', g += o(e), "" != d && (g += ' <div class="chaty-widget-i-title one_go"> ', g += d, g += "</div>"), g += "</div>", 0 === n.length && (g += '<div class="get" style="opacity:1; position: absolute; width: 100%; text-align:center"> <a href="https://premio.io/downloads/chaty/?utm_source=wpplugin" target="_blank" style="font-family: Lato, Helvetica, Arial, sans-serif;; font-size: 11px; top: -5px; position: relative; color: #8c8585;">Get Chaty</a></div>'), g += " </div>", g += "</div>";
|
141 |
-
//console.log(g);
|
142 |
|
143 |
}
|
144 |
t("body").append(g)
|
@@ -260,7 +258,7 @@
|
|
260 |
jQuery(".chaty-widget-is").css("top", "auto");
|
261 |
jQuery(".chaty-widget-is").css("z-index", "10001");
|
262 |
jQuery(".chaty-widget-i.i-trigger-close, .i-trigger.chaty-widget-i").hide();
|
263 |
-
jQuery(".chaty-widget .get a").css("top", "-10px");
|
264 |
jQuery(".chaty-widget").addClass("one_widget");
|
265 |
jQuery(".chaty-widget-i:first .chaty-widget-i-title:last p").text(e.object_settings.cta);
|
266 |
|
@@ -377,6 +375,12 @@
|
|
377 |
jQuery(".chaty-widget").addClass("hide-cta-arrow");
|
378 |
}
|
379 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
}(), t(document).ready(function () {
|
381 |
(1 !== Object.keys(e.object_settings.social).length || !e.object_settings.social.snapchat && !e.object_settings.social.wechat || e.object_settings.cta || (t(".chaty-widget-i-title").detach(), t(".chaty-widget-i").addClass("bofore_del")), t(".chaty-widget-i-title").hasClass("one_go")) && (t(".chaty-widget-i-title p").text(t(".chaty-widget-i-title.one_go").html()), "none" == i("display_cta") && (t(".chaty-widget-i-title").hasClass("face_title") ? (t(".facebook_two_mess").detach(), t(".chaty-widget-i").addClass("bofore_del")) : (t(".chaty-widget-i-title").detach(), t(".chaty-widget-i").addClass("bofore_del"))));
|
382 |
window.matchMedia("only screen and (max-width: 760px)").matches && t(".i-trigger-open").addClass("active_clos");
|
@@ -386,6 +390,8 @@
|
|
386 |
}
|
387 |
});
|
388 |
});
|
|
|
|
|
389 |
});
|
390 |
function set_cta_status() {
|
391 |
var n = new Date;
|
133 |
default:
|
134 |
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>'
|
135 |
}
|
136 |
+
}(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; top:100%; margin-top:5px;"> <a rel="noopener" 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; 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>"
|
137 |
|
138 |
} else {
|
139 |
var w = "";
|
|
|
|
|
140 |
|
141 |
}
|
142 |
t("body").append(g)
|
258 |
jQuery(".chaty-widget-is").css("top", "auto");
|
259 |
jQuery(".chaty-widget-is").css("z-index", "10001");
|
260 |
jQuery(".chaty-widget-i.i-trigger-close, .i-trigger.chaty-widget-i").hide();
|
261 |
+
// jQuery(".chaty-widget .get a").css("top", "-10px");
|
262 |
jQuery(".chaty-widget").addClass("one_widget");
|
263 |
jQuery(".chaty-widget-i:first .chaty-widget-i-title:last p").text(e.object_settings.cta);
|
264 |
|
375 |
jQuery(".chaty-widget").addClass("hide-cta-arrow");
|
376 |
}
|
377 |
}
|
378 |
+
jQuery(".chaty-widget-i-title").each(function(){
|
379 |
+
if(jQuery(this).text() == "") {
|
380 |
+
jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow");
|
381 |
+
jQuery(this).remove();
|
382 |
+
}
|
383 |
+
});
|
384 |
}(), t(document).ready(function () {
|
385 |
(1 !== Object.keys(e.object_settings.social).length || !e.object_settings.social.snapchat && !e.object_settings.social.wechat || e.object_settings.cta || (t(".chaty-widget-i-title").detach(), t(".chaty-widget-i").addClass("bofore_del")), t(".chaty-widget-i-title").hasClass("one_go")) && (t(".chaty-widget-i-title p").text(t(".chaty-widget-i-title.one_go").html()), "none" == i("display_cta") && (t(".chaty-widget-i-title").hasClass("face_title") ? (t(".facebook_two_mess").detach(), t(".chaty-widget-i").addClass("bofore_del")) : (t(".chaty-widget-i-title").detach(), t(".chaty-widget-i").addClass("bofore_del"))));
|
386 |
window.matchMedia("only screen and (max-width: 760px)").matches && t(".i-trigger-open").addClass("active_clos");
|
390 |
}
|
391 |
});
|
392 |
});
|
393 |
+
|
394 |
+
|
395 |
});
|
396 |
function set_cta_status() {
|
397 |
var n = new Date;
|
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.4.
|
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', plugin_dir_url(__FILE__));
|
25 |
define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
|
26 |
-
define('CHT_VERSION', "2.4.
|
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.4.2
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
23 |
define('CHT_PRO_URL', admin_url("admin.php?page=chaty-app-upgrade"));
|
24 |
define('CHT_PLUGIN_URL', plugin_dir_url(__FILE__));
|
25 |
define('CHT_PLUGIN_BASE', plugin_basename(CHT_FILE));
|
26 |
+
define('CHT_VERSION', "2.4.2");
|
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, messenger, whatsapp button, chat icon, messenger chat icon, contact button, click to call
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 5.3
|
6 |
-
Stable tag: 2.4.
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
Let your visitors contact you via Facebook Messenger, Whatsapp, Telegram, Viber, Email, Phone call, SMS and more with customizable chat & call buttons
|
@@ -194,6 +194,9 @@ Yes! You can even decide what chat buttons will show up on each device (desktop/
|
|
194 |
|
195 |
== Changelog ==
|
196 |
|
|
|
|
|
|
|
197 |
= 2.4.1 =
|
198 |
Fixed call to action bug
|
199 |
|
3 |
Tags: whatsapp, facebook messenger, click to chat, chat, chat button, call now button, messenger, whatsapp button, chat icon, messenger chat icon, contact button, click to call
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 5.3
|
6 |
+
Stable tag: 2.4.2
|
7 |
Plugin URI: https://premio.io/downloads/chaty/
|
8 |
|
9 |
Let your visitors contact you via Facebook Messenger, Whatsapp, Telegram, Viber, Email, Phone call, SMS and more with customizable chat & call buttons
|
194 |
|
195 |
== Changelog ==
|
196 |
|
197 |
+
= 2.4.2 =
|
198 |
+
Single chat button call-to-action bug
|
199 |
+
|
200 |
= 2.4.1 =
|
201 |
Fixed call to action bug
|
202 |
|
views/widget.php
CHANGED
@@ -93,6 +93,7 @@ if($len > 0 && $len < 3) {
|
|
93 |
.chaty-in-desktop .chaty-main-widget.is-in-desktop { display: block; }
|
94 |
.chaty-in-mobile .chaty-main-widget.is-in-mobile { display: block; }
|
95 |
.chaty-widget.hide-widget { display: none !important; }
|
|
|
96 |
<?php if(!empty($font_family)) { ?>
|
97 |
.chaty-widget { font-family: <?php echo esc_attr($font_family) ?>; }
|
98 |
<?php } ?>
|
93 |
.chaty-in-desktop .chaty-main-widget.is-in-desktop { display: block; }
|
94 |
.chaty-in-mobile .chaty-main-widget.is-in-mobile { display: block; }
|
95 |
.chaty-widget.hide-widget { display: none !important; }
|
96 |
+
.chaty-widget, .chaty-widget .get, .chaty-widget .get a { width: <?php echo esc_attr($cht_widget_size+8); ?>px }
|
97 |
<?php if(!empty($font_family)) { ?>
|
98 |
.chaty-widget { font-family: <?php echo esc_attr($font_family) ?>; }
|
99 |
<?php } ?>
|