Version Description
- fix on hiding review notice
Download this release
Release Info
Developer | livechat |
Plugin | LiveChat – WP live chat plugin for WordPress |
Version | 4.5.7 |
Comparing to | |
See all releases |
Code changes from version 4.5.6 to 4.5.7
- changelog.txt +3 -0
- composer.lock +5 -5
- livechat.php +1 -1
- plugin_files/css/livechat-general.css +1 -0
- plugin_files/templates/notice.html.twig +14 -4
- readme.txt +4 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
3 |
= 4.5.6 =
|
4 |
* checked plugin compatibility with WordPress 6.0
|
5 |
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 4.5.7 =
|
4 |
+
* fix on hiding review notice
|
5 |
+
|
6 |
= 4.5.6 =
|
7 |
* checked plugin compatibility with WordPress 6.0
|
8 |
|
composer.lock
CHANGED
@@ -1735,16 +1735,16 @@
|
|
1735 |
},
|
1736 |
{
|
1737 |
"name": "squizlabs/php_codesniffer",
|
1738 |
-
"version": "3.
|
1739 |
"source": {
|
1740 |
"type": "git",
|
1741 |
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
1742 |
-
"reference": "
|
1743 |
},
|
1744 |
"dist": {
|
1745 |
"type": "zip",
|
1746 |
-
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/
|
1747 |
-
"reference": "
|
1748 |
"shasum": ""
|
1749 |
},
|
1750 |
"require": {
|
@@ -1782,7 +1782,7 @@
|
|
1782 |
"phpcs",
|
1783 |
"standards"
|
1784 |
],
|
1785 |
-
"time": "
|
1786 |
},
|
1787 |
{
|
1788 |
"name": "symfony/polyfill-ctype",
|
1735 |
},
|
1736 |
{
|
1737 |
"name": "squizlabs/php_codesniffer",
|
1738 |
+
"version": "3.7.1",
|
1739 |
"source": {
|
1740 |
"type": "git",
|
1741 |
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
1742 |
+
"reference": "1359e176e9307e906dc3d890bcc9603ff6d90619"
|
1743 |
},
|
1744 |
"dist": {
|
1745 |
"type": "zip",
|
1746 |
+
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619",
|
1747 |
+
"reference": "1359e176e9307e906dc3d890bcc9603ff6d90619",
|
1748 |
"shasum": ""
|
1749 |
},
|
1750 |
"require": {
|
1782 |
"phpcs",
|
1783 |
"standards"
|
1784 |
],
|
1785 |
+
"time": "2022-06-18T07:21:10+00:00"
|
1786 |
},
|
1787 |
{
|
1788 |
"name": "symfony/polyfill-ctype",
|
livechat.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: LiveChat
|
4 |
* Plugin URI: https://www.livechat.com/marketplace/apps/wordpress/
|
5 |
* Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
|
6 |
-
* Version: 4.5.
|
7 |
* Author: LiveChat
|
8 |
* Author URI: https://www.livechat.com
|
9 |
* Text Domain: wp-live-chat-software-for-wordpress
|
3 |
* Plugin Name: LiveChat
|
4 |
* Plugin URI: https://www.livechat.com/marketplace/apps/wordpress/
|
5 |
* Description: Live chat software for live help, online sales and customer support. This plugin allows to quickly install LiveChat on any WordPress website.
|
6 |
+
* Version: 4.5.7
|
7 |
* Author: LiveChat
|
8 |
* Author URI: https://www.livechat.com
|
9 |
* Text Domain: wp-live-chat-software-for-wordpress
|
plugin_files/css/livechat-general.css
CHANGED
@@ -246,6 +246,7 @@ p.lc-meta-text {
|
|
246 |
background: #f1f1f1;
|
247 |
overflow: hidden;
|
248 |
max-height: 150px;
|
|
|
249 |
}
|
250 |
|
251 |
@media screen and (max-width: 561px) {
|
246 |
background: #f1f1f1;
|
247 |
overflow: hidden;
|
248 |
max-height: 150px;
|
249 |
+
visibility: hidden;
|
250 |
}
|
251 |
|
252 |
@media screen and (max-width: 561px) {
|
plugin_files/templates/notice.html.twig
CHANGED
@@ -54,9 +54,18 @@
|
|
54 |
var eventsRegister = new AppBridge.EventsRegister();
|
55 |
|
56 |
eventsRegister.register(AppBridge.NoticeFetchedEvent, function (data) {
|
|
|
57 |
var iframe = document.getElementById(iframeId);
|
58 |
-
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
reviewNoticeCleanup();
|
62 |
});
|
@@ -64,9 +73,10 @@
|
|
64 |
AppBridge.AppBridgeParent.init(PLATFORM, eventsRegister, container, '{{ noticeUrl }}').then(function (bridge) {
|
65 |
container.getElementsByTagName('iframe')[0].id = iframeId;
|
66 |
bridgeInstance = bridge;
|
|
|
67 |
|
68 |
return bridge.call(AppBridge.GetNoticeCommand.fromObject({
|
69 |
-
maxWidth
|
70 |
storeToken: STORE_TOKEN,
|
71 |
userToken: LC_TOKEN,
|
72 |
platform: bridge.platform,
|
@@ -74,7 +84,7 @@
|
|
74 |
moduleVer: MODULE_VER,
|
75 |
options: parseOptions(OPTIONS)
|
76 |
}));
|
77 |
-
})
|
78 |
}, 100);
|
79 |
})();
|
80 |
</script>
|
54 |
var eventsRegister = new AppBridge.EventsRegister();
|
55 |
|
56 |
eventsRegister.register(AppBridge.NoticeFetchedEvent, function (data) {
|
57 |
+
const { maxHeight } = data;
|
58 |
var iframe = document.getElementById(iframeId);
|
59 |
+
|
60 |
+
container.style.height = `${maxHeight}px`;
|
61 |
+
iframe.style.height = `${maxHeight}px`;
|
62 |
+
|
63 |
+
if (maxHeight < 1) {
|
64 |
+
container.style.display = 'none';
|
65 |
+
return;
|
66 |
+
}
|
67 |
+
|
68 |
+
container.style.visibility = 'visible';
|
69 |
|
70 |
reviewNoticeCleanup();
|
71 |
});
|
73 |
AppBridge.AppBridgeParent.init(PLATFORM, eventsRegister, container, '{{ noticeUrl }}').then(function (bridge) {
|
74 |
container.getElementsByTagName('iframe')[0].id = iframeId;
|
75 |
bridgeInstance = bridge;
|
76 |
+
const maxWidth = container.offsetWidth;
|
77 |
|
78 |
return bridge.call(AppBridge.GetNoticeCommand.fromObject({
|
79 |
+
maxWidth,
|
80 |
storeToken: STORE_TOKEN,
|
81 |
userToken: LC_TOKEN,
|
82 |
platform: bridge.platform,
|
84 |
moduleVer: MODULE_VER,
|
85 |
options: parseOptions(OPTIONS)
|
86 |
}));
|
87 |
+
})
|
88 |
}, 100);
|
89 |
})();
|
90 |
</script>
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== LiveChat - WP live chat plugin for WordPress ===
|
2 |
Contributors: LiveChat
|
3 |
Tags: live chat, chat plugin, live chat plugin, wordpress live chat, wordpress chat,
|
4 |
-
Stable tag: 4.5.
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 6.0
|
7 |
Requires at least: 4.4
|
@@ -178,6 +178,9 @@ For more detailed instructions, go to the [live chat plugin page](https://www.li
|
|
178 |
|
179 |
== Changelog ==
|
180 |
|
|
|
|
|
|
|
181 |
= 4.5.6 =
|
182 |
* checked plugin compatibility with WordPress 6.0
|
183 |
|
1 |
=== LiveChat - WP live chat plugin for WordPress ===
|
2 |
Contributors: LiveChat
|
3 |
Tags: live chat, chat plugin, live chat plugin, wordpress live chat, wordpress chat,
|
4 |
+
Stable tag: 4.5.7
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 6.0
|
7 |
Requires at least: 4.4
|
178 |
|
179 |
== Changelog ==
|
180 |
|
181 |
+
= 4.5.7 =
|
182 |
+
* fix on hiding review notice
|
183 |
+
|
184 |
= 4.5.6 =
|
185 |
* checked plugin compatibility with WordPress 6.0
|
186 |
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit059144e2857fdf0f68380b3550dd64d0::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit1ed45a33ea33ed5f9ced27ffda30cb97
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit059144e2857fdf0f68380b3550dd64d0
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit059144e2857fdf0f68380b3550dd64d0', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit059144e2857fdf0f68380b3550dd64d0', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit059144e2857fdf0f68380b3550dd64d0::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'L' =>
|
@@ -130,9 +130,9 @@ class ComposerStaticInit1ed45a33ea33ed5f9ced27ffda30cb97
|
|
130 |
public static function getInitializer(ClassLoader $loader)
|
131 |
{
|
132 |
return \Closure::bind(function () use ($loader) {
|
133 |
-
$loader->prefixLengthsPsr4 =
|
134 |
-
$loader->prefixDirsPsr4 =
|
135 |
-
$loader->classMap =
|
136 |
|
137 |
}, null, ClassLoader::class);
|
138 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit059144e2857fdf0f68380b3550dd64d0
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'L' =>
|
130 |
public static function getInitializer(ClassLoader $loader)
|
131 |
{
|
132 |
return \Closure::bind(function () use ($loader) {
|
133 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit059144e2857fdf0f68380b3550dd64d0::$prefixLengthsPsr4;
|
134 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit059144e2857fdf0f68380b3550dd64d0::$prefixDirsPsr4;
|
135 |
+
$loader->classMap = ComposerStaticInit059144e2857fdf0f68380b3550dd64d0::$classMap;
|
136 |
|
137 |
}, null, ClassLoader::class);
|
138 |
}
|