Version Description
Hello! We've recently acquired this plugin and included tons of new features.
Download this release
Release Info
Developer | quadlayers |
Plugin | WhatsApp Chat WP |
Version | 4.6.4 |
Comparing to | |
See all releases |
Code changes from version 4.6.3 to 4.6.4
assets/frontend/js/qlwapp.js
CHANGED
@@ -274,6 +274,7 @@
|
|
274 |
|
275 |
$reply.data('phone', phone);//.data('message', message);
|
276 |
$avatar.attr('src', avatar);
|
|
|
277 |
$number.html(phone);
|
278 |
$name.html(name);
|
279 |
$label.html(meta);
|
274 |
|
275 |
$reply.data('phone', phone);//.data('message', message);
|
276 |
$avatar.attr('src', avatar);
|
277 |
+
$avatar.attr('alt', name);
|
278 |
$number.html(phone);
|
279 |
$name.html(name);
|
280 |
$label.html(meta);
|
assets/frontend/js/qlwapp.min.js
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
|
|
1 |
+
|
2 |
+
(function(d,c,a,g){var e={};function b(i,h){this.$qlwapp=d(i);this.init(this)}b.prototype={timeDateToString:function(i){var h=""+i.getMinutes();if(h.length===1){h="0"+h}return i.getHours()+":"+h},timeStringToInt:function(i,h){return parseInt(i+h)},init:function(i){var h=this.$qlwapp;h.on("qlwapp.init",function(j){i.mobiledevice=(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))});h.on("qlwapp.time",function(p){var j=d(p.target),r=j.data("timefrom")||false,s=j.data("timeto")||false,o=parseInt(j.data("timezone"))||0;if(!s||!r||(r===s)){return true}var v=new Date(),l=v.getTimezoneOffset(),q=-l-o;var u=new Date(),k=new Date();var t,m;t=i.timeStringToInt(r[0],r[1]);m=i.timeStringToInt(r[3],r[4]);k.setHours(t);k.setMinutes(m+q);t=i.timeStringToInt(s[0],s[1]);m=i.timeStringToInt(s[3],s[4]);u.setHours(t);u.setMinutes(m+q);if(!(v.getTime()>=k.getTime()&&v.getTime()<=u.getTime())){j.addClass("qlwapp-readonly")}if(!o){return true}j.find(".from").text(i.timeDateToString(k));j.find(".to").text(i.timeDateToString(u))});h.on("qlwapp.pro",function(j){h.find(".qlwapp-toggle").trigger("qlwapp.time");h.find(".qlwapp-account").each(function(l,k){d(k).trigger("qlwapp.time")})});h.on("qlwapp.resize",function(j){if(d(this).hasClass("qlwapp-show")){d(this).trigger("qlwapp.toggle")}});h.on("qlwapp.init",function(j){if(!i.mobiledevice){h.addClass("desktop").removeClass("mobile")}else{h.addClass("mobile").removeClass("desktop")}h.addClass("qlwapp-js-ready")});h.on("qlwapp.init",function(j){if(h.hasClass("qlwapp-premium")){h.trigger("qlwapp.pro")}});h.addClass("qlwapp-js-ready").trigger("qlwapp.init");h.on("qlwapp.height",function(o){var p=d(o.delegateTarget),n=p.find(".qlwapp-body"),m=n.find(".qlwapp-carousel");var l=p.find(".qlwapp-header"),k=p.find(".qlwapp-footer"),j=(d(c).innerHeight()-l.outerHeight()-k.outerHeight());if(!i.mobiledevice){j=(d(c).innerHeight()*0.7-l.outerHeight()-k.outerHeight())}m.css({"max-height":j+"px"})});h.on("qlwapp.toggle",function(k){var l=d(k.delegateTarget),j=l.find(".qlwapp-box");l.addClass("qlwapp-transition");j.removeClass("response texting");setTimeout(function(){l.toggleClass("qlwapp-show").trigger("qlwapp.height")},10);setTimeout(function(){l.toggleClass("qlwapp-transition")},300)});h.on("click","[data-action=box], [data-action=close]",function(j){j.preventDefault();d(j.delegateTarget).trigger("qlwapp.toggle")});h.on("click","[data-action=open]",function(n){var k="https://api.whatsapp.com/send";if(!i.mobiledevice){k="https://web.whatsapp.com/send"}var m=d(this),l=m.data("message")||"",j=m.data("phone")||"";d(this).attr("href",k+"?phone="+j+"&text="+l)});h.on("click","[data-action=previous]",function(k){k.preventDefault();var l=d(k.delegateTarget),j=l.find(".qlwapp-box");j.addClass("closing");setTimeout(function(){j.removeClass("response").removeClass("closing");j.removeClass("texting")},300)});h.on("click","[data-action=chat]",function(w){w.preventDefault();var n=d(this),t=d(w.delegateTarget),u=t.find(".qlwapp-box"),v=n.find(".qlwapp-avatar img").attr("src"),A=n.find(".qlwapp-name").text(),q=n.find(".qlwapp-label").text(),p=n.find(".qlwapp-time").text(),r=n.data("message"),o=n.data("phone");u.addClass("response").addClass("opening");t.trigger("qlwapp.height");setTimeout(function(){u.removeClass("opening")},300);var k=u.find(".qlwapp-reply"),x=u.find(".qlwapp-header"),j=x.find(".qlwapp-avatar img"),m=x.find(".qlwapp-number"),l=x.find(".qlwapp-name"),z=x.find(".qlwapp-label"),y=u.find(".qlwapp-message");var s=p?p+" - "+q:q;k.data("phone",o);j.attr("src",v);j.attr("alt",A);m.html(o);l.html(A);z.html(s);y.html(r)});h.on("click","textarea",function(j){h.off("qlwapp.resize")});h.on("keypress","textarea",function(j){if(j.keyCode==13){h.find(".qlwapp-reply").trigger("click");setTimeout(function(){c.location=h.find(".qlwapp-reply").attr("href")},100)}});h.on("keyup","[data-action=response]",function(m){m.preventDefault();var p=d(this).find("textarea"),o=d(this).find("pre"),j=d(this).find(".qlwapp-reply"),n=d(m.delegateTarget),l=n.find(".qlwapp-box"),k=l.find(".qlwapp-buttons");o.html(p.val());setTimeout(function(){l.addClass("texting").css({"padding-bottom":o.outerHeight()});k.addClass("active");var q=p.val();j.data("message",q);if(q==""){l.removeClass("texting");k.removeClass("active")}},300)})}};d.fn.qlwapp=function(i){var h=arguments;if(i===g||typeof i==="object"){return this.each(function(){if(!d.data(this,"plugin_qlwapp")){d.data(this,"plugin_qlwapp",new b(this,i))}})}else{if(typeof i==="string"&&i[0]!=="_"&&i!=="init"){var j;this.each(function(){var k=d.data(this,"plugin_qlwapp");if(k instanceof b&&typeof k[i]==="function"){j=k[i].apply(k,Array.prototype.slice.call(h,1))}if(i==="destroy"){d.data(this,"plugin_qlwapp",null)}});return j!==g?j:this}}};function f(){d("div#qlwapp").qlwapp()}f();d(c).on("load",function(){f()});d(c).on("click",function(h){if(!d(h.target).closest("#qlwapp.qlwapp-show").length){d("div#qlwapp.qlwapp-show").trigger("qlwapp.toggle")}});d(c).on("resize",function(h){d("div#qlwapp").trigger("qlwapp.resize");d("div#qlwapp").trigger("qlwapp.init")})})(jQuery,window,document);
|
changelog.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
= 4.6.3 =
|
2 |
* Fix. links update
|
3 |
|
1 |
+
= 4.6.4 =
|
2 |
+
* Fix. missing alt images
|
3 |
+
|
4 |
= 4.6.3 =
|
5 |
* Fix. links update
|
6 |
|
includes/view/backend/pages/contacts.php
CHANGED
@@ -39,7 +39,7 @@
|
|
39 |
</div>
|
40 |
</td>
|
41 |
<td>
|
42 |
-
<img class="qlwapp-avatar" src="<?php echo esc_url($contact['avatar']); ?>" alt="" width="50" height="50" /> </td>
|
43 |
<td><?php echo qlwapp_format_phone($contact['phone']); ?></td>
|
44 |
<td><?php echo esc_html($contact['firstname'] . ', ' . $contact['lastname']); ?> </td>
|
45 |
<td><?php echo esc_html($contact['label']); ?></td>
|
39 |
</div>
|
40 |
</td>
|
41 |
<td>
|
42 |
+
<img class="qlwapp-avatar" src="<?php echo esc_url($contact['avatar']); ?>" alt="<?php echo esc_html($contact['firstname'] . ', ' . $contact['lastname']); ?>" width="50" height="50" /> </td>
|
43 |
<td><?php echo qlwapp_format_phone($contact['phone']); ?></td>
|
44 |
<td><?php echo esc_html($contact['firstname'] . ', ' . $contact['lastname']); ?> </td>
|
45 |
<td><?php echo esc_html($contact['label']); ?></td>
|
includes/view/backend/pages/premium.php
CHANGED
@@ -31,14 +31,14 @@
|
|
31 |
</div>
|
32 |
</div>
|
33 |
<div class="column">
|
34 |
-
<img src="<?php echo plugins_url('/assets/backend/img/box1.png', QLWAPP_PLUGIN_FILE); ?>">
|
35 |
</div>
|
36 |
</div>
|
37 |
<br/>
|
38 |
<br/>
|
39 |
<div class="has-2-columns is-wider-right" style="max-width: 100%">
|
40 |
<div class="column">
|
41 |
-
<img src="<?php echo plugins_url('/assets/backend/img/box2.png', QLWAPP_PLUGIN_FILE); ?>">
|
42 |
</div>
|
43 |
<div class="column">
|
44 |
<br/>
|
31 |
</div>
|
32 |
</div>
|
33 |
<div class="column">
|
34 |
+
<img alt="<?php esc_html_e('Premium', 'wp-whatsapp-chat'); ?>" src="<?php echo plugins_url('/assets/backend/img/box1.png', QLWAPP_PLUGIN_FILE); ?>">
|
35 |
</div>
|
36 |
</div>
|
37 |
<br/>
|
38 |
<br/>
|
39 |
<div class="has-2-columns is-wider-right" style="max-width: 100%">
|
40 |
<div class="column">
|
41 |
+
<img alt="<?php esc_html_e('Chatbox interface', 'wp-whatsapp-chat'); ?>" src="<?php echo plugins_url('/assets/backend/img/box2.png', QLWAPP_PLUGIN_FILE); ?>">
|
42 |
</div>
|
43 |
<div class="column">
|
44 |
<br/>
|
includes/view/backend/pages/welcome.php
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
</div>
|
32 |
</div>
|
33 |
<div class="column">
|
34 |
-
<img src="<?php echo plugins_url('/assets/backend/img/box1.png', QLWAPP_PLUGIN_FILE); ?>">
|
35 |
</div>
|
36 |
</div>
|
37 |
</div>
|
31 |
</div>
|
32 |
</div>
|
33 |
<div class="column">
|
34 |
+
<img alt="<?php echo QLWAPP_PLUGIN_NAME; ?>" src="<?php echo plugins_url('/assets/backend/img/box1.png', QLWAPP_PLUGIN_FILE); ?>">
|
35 |
</div>
|
36 |
</div>
|
37 |
</div>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://quadlayers.com/portfolio/whatsapp-chat/
|
|
4 |
Tags: whatsapp, whatsapp chat, whatsapp business, whatsapp support, click to chat, whatsapp group, directly message whatsapp, floating whatsapp, whatsapp message, help desk
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.4.0
|
7 |
-
Stable tag: 4.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Tags: whatsapp, whatsapp chat, whatsapp business, whatsapp support, click to chat, whatsapp group, directly message whatsapp, floating whatsapp, whatsapp message, help desk
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.4.0
|
7 |
+
Stable tag: 4.6.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
wp-whatsapp-chat.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: WhatsApp Chat
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/whatsapp-chat/
|
6 |
* Description: WhatsApp Chat allows your visitors to contact you or your team through WhatsApp chat with a single click.
|
7 |
-
* Version: 4.6.
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPL-2.0+
|
@@ -17,7 +17,7 @@ if (!defined('ABSPATH')) {
|
|
17 |
}
|
18 |
|
19 |
define('QLWAPP_PLUGIN_NAME', 'WhatsApp Chat');
|
20 |
-
define('QLWAPP_PLUGIN_VERSION', '4.6.
|
21 |
define('QLWAPP_PLUGIN_FILE', __FILE__);
|
22 |
define('QLWAPP_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR);
|
23 |
define('QLWAPP_PREFIX', 'qlwapp');
|
4 |
* Plugin Name: WhatsApp Chat
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/whatsapp-chat/
|
6 |
* Description: WhatsApp Chat allows your visitors to contact you or your team through WhatsApp chat with a single click.
|
7 |
+
* Version: 4.6.4
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPL-2.0+
|
17 |
}
|
18 |
|
19 |
define('QLWAPP_PLUGIN_NAME', 'WhatsApp Chat');
|
20 |
+
define('QLWAPP_PLUGIN_VERSION', '4.6.4');
|
21 |
define('QLWAPP_PLUGIN_FILE', __FILE__);
|
22 |
define('QLWAPP_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR);
|
23 |
define('QLWAPP_PREFIX', 'qlwapp');
|