Version Description
- code cleanup
Download this release
Release Info
Developer | livechat |
Plugin | LiveChat – WP live chat plugin for WordPress |
Version | 4.1.5 |
Comparing to | |
See all releases |
Code changes from version 4.1.4 to 4.1.5
- changelog.txt +7 -1
- livechat.php +1 -1
- plugin_files/css/livechat-general.css +1 -107
- plugin_files/js/livechat.js +0 -36
- 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,11 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 4.1.3 =
|
4 |
* bug fixes
|
5 |
|
@@ -194,4 +200,4 @@
|
|
194 |
* Added live chat notification messages
|
195 |
|
196 |
= 1.0.0 =
|
197 |
-
* First live chat plugin version
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 4.1.5 =
|
4 |
+
* code cleanup
|
5 |
+
|
6 |
+
= 4.1.4 =
|
7 |
+
* update of dependencies
|
8 |
+
|
9 |
= 4.1.3 =
|
10 |
* bug fixes
|
11 |
|
200 |
* Added live chat notification messages
|
201 |
|
202 |
= 1.0.0 =
|
203 |
+
* First live chat plugin version
|
livechat.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.livechatinc.com/addons/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 |
Author: LiveChat
|
7 |
Author URI: https://www.livechatinc.com
|
8 |
-
Version: 4.1.
|
9 |
Text Domain: wp-live-chat-software-for-wordpress
|
10 |
Domain Path: /languages
|
11 |
*/
|
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 |
Author: LiveChat
|
7 |
Author URI: https://www.livechatinc.com
|
8 |
+
Version: 4.1.5
|
9 |
Text Domain: wp-live-chat-software-for-wordpress
|
10 |
Domain Path: /languages
|
11 |
*/
|
plugin_files/css/livechat-general.css
CHANGED
@@ -126,7 +126,7 @@ iframe#login-with-livechat
|
|
126 |
margin: 25px auto 30px;
|
127 |
}
|
128 |
|
129 |
-
#logout {
|
130 |
text-decoration: underline;
|
131 |
cursor: pointer;
|
132 |
color: inherit;
|
@@ -157,112 +157,6 @@ p.lc-settings-option-label {
|
|
157 |
}
|
158 |
}
|
159 |
|
160 |
-
/* Switchers */
|
161 |
-
|
162 |
-
.settings {
|
163 |
-
width: 100%;
|
164 |
-
margin: 40px auto 20px auto;
|
165 |
-
}
|
166 |
-
.settings div {
|
167 |
-
margin: 5px 0;
|
168 |
-
}
|
169 |
-
.settings .title{
|
170 |
-
width: 220px;
|
171 |
-
margin: 0 10px 10px 0;
|
172 |
-
display: inline-block;
|
173 |
-
font-size: 16px;
|
174 |
-
cursor: pointer;
|
175 |
-
text-align: left;
|
176 |
-
}
|
177 |
-
|
178 |
-
.settings .title span{
|
179 |
-
vertical-align: middle;
|
180 |
-
}
|
181 |
-
.onoffswitch {
|
182 |
-
text-align: left;
|
183 |
-
position: relative;
|
184 |
-
width: 72px;
|
185 |
-
-webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
|
186 |
-
display: inline-block;
|
187 |
-
height: 26px;
|
188 |
-
vertical-align: middle;
|
189 |
-
}
|
190 |
-
.onoffswitch-checkbox {
|
191 |
-
display: none!important;
|
192 |
-
}
|
193 |
-
.onoffswitch-label {
|
194 |
-
display: block; overflow: hidden; cursor: pointer;
|
195 |
-
border: 1px solid #bbb;
|
196 |
-
-webkit-border-radius: 4px;
|
197 |
-
-moz-border-radius: 4px;
|
198 |
-
border-radius: 4px;
|
199 |
-
}
|
200 |
-
.onoffswitch-inner {
|
201 |
-
display: block; width: 200%; margin-left: -100%;
|
202 |
-
-moz-transition: margin 0.15s ease-in 0s; -webkit-transition: margin 0.15s ease-in 0s;
|
203 |
-
-o-transition: margin 0.15s ease-in 0s; transition: margin 0.15s ease-in 0s;
|
204 |
-
}
|
205 |
-
.onoffswitch-inner:before, .onoffswitch-inner:after {
|
206 |
-
display: block; float: left; width: 50%; height: 24px; padding: 0; line-height: 24px;
|
207 |
-
font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif;
|
208 |
-
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
|
209 |
-
-webkit-border-radius: 3px;
|
210 |
-
-moz-border-radius: 3px;
|
211 |
-
border-radius: 3px;
|
212 |
-
font-weight: 100;
|
213 |
-
}
|
214 |
-
.onoffswitch-inner:before {
|
215 |
-
content: "ON";
|
216 |
-
padding-left: 8px;
|
217 |
-
background: #6699cc;
|
218 |
-
background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #6699cc), color-stop(1, #88bbee));
|
219 |
-
background: -ms-linear-gradient(bottom, #6699cc, #88bbee);
|
220 |
-
background: -moz-linear-gradient(center bottom, #6699cc 0%, #88bbee 100%);
|
221 |
-
background: -o-linear-gradient(#88bbee, #6699cc);
|
222 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#88bbee', endColorstr='#6699cc', GradientType=0);
|
223 |
-
-webkit-box-shadow: inset 0 0 5px #6699cc;
|
224 |
-
-moz-box-shadow: inset 0 0 5px #6699cc;
|
225 |
-
box-shadow: inset 0 0 5px #6699cc;
|
226 |
-
text-shadow: rgb(85, 136, 187) -1px -1px 0;
|
227 |
-
}
|
228 |
-
.onoffswitch-inner:after {
|
229 |
-
content: "OFF";
|
230 |
-
padding-right: 5px;
|
231 |
-
background: #dddddd;
|
232 |
-
background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #dddddd), color-stop(1, #ffffff));
|
233 |
-
background: -ms-linear-gradient(bottom, #dddddd, #ffffff);
|
234 |
-
background: -moz-linear-gradient(center bottom, #dddddd 0%, #ffffff 100%);
|
235 |
-
background: -o-linear-gradient(#ffffff, #dddddd);
|
236 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dddddd', GradientType=0);
|
237 |
-
-webkit-box-shadow: inset 0 0 5px #dddddd;
|
238 |
-
-moz-box-shadow: inset 0 0 5px #dddddd;
|
239 |
-
box-shadow: inset 0 0 5px #dddddd;
|
240 |
-
color: rgb(153, 153, 153);
|
241 |
-
text-align: right;
|
242 |
-
}
|
243 |
-
.onoffswitch-switch {
|
244 |
-
display: block; width: 33px; margin: 0;
|
245 |
-
background: #cccccc;
|
246 |
-
background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #cccccc), color-stop(1, #f3f3f3));
|
247 |
-
background: -ms-linear-gradient(bottom, #cccccc, #f3f3f3);
|
248 |
-
background: -moz-linear-gradient(center bottom, #cccccc 0%, #f3f3f3 100%);
|
249 |
-
background: -o-linear-gradient(#f3f3f3, #cccccc);
|
250 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3f3f3', endColorstr='#cccccc', GradientType=0);
|
251 |
-
border: 1px solid rgb(187, 187, 187);
|
252 |
-
position: absolute; top: 0; bottom: 0; right: 37px;
|
253 |
-
-moz-transition: all 0.15s ease-in 0s; -webkit-transition: all 0.15s ease-in 0s;
|
254 |
-
-o-transition: all 0.15s ease-in 0s; transition: all 0.15s ease-in 0s;
|
255 |
-
-webkit-border-radius: 4px;
|
256 |
-
-moz-border-radius: 4px;
|
257 |
-
border-radius: 4px;
|
258 |
-
}
|
259 |
-
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
|
260 |
-
margin-left: 0;
|
261 |
-
}
|
262 |
-
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
|
263 |
-
right: 0;
|
264 |
-
}
|
265 |
-
|
266 |
/* Design System and other basic styles */
|
267 |
|
268 |
.lc-design-system-typography * {
|
126 |
margin: 25px auto 30px;
|
127 |
}
|
128 |
|
129 |
+
#lc-logout {
|
130 |
text-decoration: underline;
|
131 |
cursor: pointer;
|
132 |
color: inherit;
|
157 |
}
|
158 |
}
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
/* Design System and other basic styles */
|
161 |
|
162 |
.lc-design-system-typography * {
|
plugin_files/js/livechat.js
CHANGED
@@ -10,7 +10,6 @@
|
|
10 |
this.signInWithLiveChat();
|
11 |
this.bindDisconnect();
|
12 |
this.hideInstalledNotification();
|
13 |
-
this.settingsForm();
|
14 |
this.connectNoticeButtonHandler();
|
15 |
this.deactivationModalOpenHandler();
|
16 |
this.deactivationModalCloseHandler();
|
@@ -140,41 +139,6 @@
|
|
140 |
3000
|
141 |
);
|
142 |
},
|
143 |
-
setSettings: function(settings) {
|
144 |
-
$.ajax(
|
145 |
-
{
|
146 |
-
url: '?page=livechat_settings' + lcDetails.nonce,
|
147 |
-
type: 'POST',
|
148 |
-
data: settings,
|
149 |
-
dataType: 'json',
|
150 |
-
cache: false,
|
151 |
-
async: false,
|
152 |
-
error: function () {
|
153 |
-
alert( 'Something went wrong. Please try again or contact our support team.' );
|
154 |
-
}
|
155 |
-
}
|
156 |
-
);
|
157 |
-
},
|
158 |
-
settingsForm: function() {
|
159 |
-
$( '.settings .title' ).click(
|
160 |
-
function() {
|
161 |
-
$( this ).next( '.onoffswitch' ).children( 'label' ).click();
|
162 |
-
}
|
163 |
-
);
|
164 |
-
$( '.onoffswitch-checkbox' ).change(
|
165 |
-
function() {
|
166 |
-
var settings = {};
|
167 |
-
$( '.onoffswitch-checkbox' ).each(
|
168 |
-
function(){
|
169 |
-
var paramName = $( this ).attr( 'id' );
|
170 |
-
settings[paramName] = $( this ).is( ':checked' ) ? 1 : 0;
|
171 |
-
}
|
172 |
-
);
|
173 |
-
|
174 |
-
LiveChat.setSettings( settings );
|
175 |
-
}
|
176 |
-
);
|
177 |
-
},
|
178 |
connectNoticeButtonHandler: function () {
|
179 |
$( '#lc-connect-notice-button' ).click(
|
180 |
function () {
|
10 |
this.signInWithLiveChat();
|
11 |
this.bindDisconnect();
|
12 |
this.hideInstalledNotification();
|
|
|
13 |
this.connectNoticeButtonHandler();
|
14 |
this.deactivationModalOpenHandler();
|
15 |
this.deactivationModalCloseHandler();
|
139 |
3000
|
140 |
);
|
141 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
connectNoticeButtonHandler: function () {
|
143 |
$( '#lc-connect-notice-button' ).click(
|
144 |
function () {
|
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, live support, wordpress chat, chat
|
4 |
-
Stable tag: 4.1.
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 5.4
|
7 |
Requires at least: 4.0
|
@@ -382,6 +382,9 @@ For more detailed instructions, go to the [live chat plugin page](https://www.li
|
|
382 |
|
383 |
== Changelog ==
|
384 |
|
|
|
|
|
|
|
385 |
= 4.1.4 =
|
386 |
* update of dependencies
|
387 |
|
1 |
=== LiveChat - WP live chat plugin for WordPress ===
|
2 |
Contributors: LiveChat
|
3 |
Tags: live chat, chat plugin, live chat plugin, wordpress live chat, live support, wordpress chat, chat
|
4 |
+
Stable tag: 4.1.5
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 5.4
|
7 |
Requires at least: 4.0
|
382 |
|
383 |
== Changelog ==
|
384 |
|
385 |
+
= 4.1.5 =
|
386 |
+
* code cleanup
|
387 |
+
|
388 |
= 4.1.4 =
|
389 |
* update of dependencies
|
390 |
|
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 ComposerAutoloaderInit32403c13c3640f0aab6bad6f48f9d18f::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 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitb7fcc005e521a4ab8f70836f991957ec
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit32403c13c3640f0aab6bad6f48f9d18f
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit32403c13c3640f0aab6bad6f48f9d18f', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit32403c13c3640f0aab6bad6f48f9d18f', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit32403c13c3640f0aab6bad6f48f9d18f::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
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' =>
|
@@ -72,9 +72,9 @@ class ComposerStaticInitb7fcc005e521a4ab8f70836f991957ec
|
|
72 |
public static function getInitializer(ClassLoader $loader)
|
73 |
{
|
74 |
return \Closure::bind(function () use ($loader) {
|
75 |
-
$loader->prefixLengthsPsr4 =
|
76 |
-
$loader->prefixDirsPsr4 =
|
77 |
-
$loader->classMap =
|
78 |
|
79 |
}, null, ClassLoader::class);
|
80 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit32403c13c3640f0aab6bad6f48f9d18f
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'L' =>
|
72 |
public static function getInitializer(ClassLoader $loader)
|
73 |
{
|
74 |
return \Closure::bind(function () use ($loader) {
|
75 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit32403c13c3640f0aab6bad6f48f9d18f::$prefixLengthsPsr4;
|
76 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit32403c13c3640f0aab6bad6f48f9d18f::$prefixDirsPsr4;
|
77 |
+
$loader->classMap = ComposerStaticInit32403c13c3640f0aab6bad6f48f9d18f::$classMap;
|
78 |
|
79 |
}, null, ClassLoader::class);
|
80 |
}
|