Version Description
- Fixes, up to work with WordPress 4.7.5
Download this release
Release Info
Developer | JivoChat |
Plugin | JivoChat Live Chat [Official] |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- jivosite-ru_RU.po +1 -1
- jivosite.css +40 -40
- jivosite.php +271 -271
- readme.txt +31 -34
- templates/error.php +11 -11
- templates/page.php +65 -65
- templates/script.php +3 -3
jivosite-ru_RU.po
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: JivoChat v1.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2014-09-04 09:54+0400\n"
|
6 |
"PO-Revision-Date: 2014-09-26 05:49:22+0000\n"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: JivoChat v1.2\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2014-09-04 09:54+0400\n"
|
6 |
"PO-Revision-Date: 2014-09-26 05:49:22+0000\n"
|
jivosite.css
CHANGED
@@ -1,41 +1,41 @@
|
|
1 |
-
p.gray{
|
2 |
-
color: #808080;
|
3 |
-
}
|
4 |
-
|
5 |
-
div.gray_form {
|
6 |
-
background-color: #ebebeb;
|
7 |
-
padding: 20px;
|
8 |
-
max-width: 1000px;
|
9 |
-
}
|
10 |
-
div.gray_form p{
|
11 |
-
color: #666666;
|
12 |
-
max-width:500px;
|
13 |
-
}
|
14 |
-
td.gray div{
|
15 |
-
max-width: 400px;
|
16 |
-
color: #666666;
|
17 |
-
float: left;
|
18 |
-
}
|
19 |
-
|
20 |
-
td.input {
|
21 |
-
max-width: 27em;
|
22 |
-
}
|
23 |
-
|
24 |
-
div.success {
|
25 |
-
background: url("img/success.png") no-repeat scroll left center transparent;
|
26 |
-
font-size: 110%;
|
27 |
-
font-weight: bold;
|
28 |
-
margin-left: 10px;
|
29 |
-
max-width: 500px;
|
30 |
-
padding: 20px 20px 20px 80px;
|
31 |
-
margin-bottom: 15px;
|
32 |
-
}
|
33 |
-
p.small {
|
34 |
-
font-size: 70%;
|
35 |
-
}
|
36 |
-
input.regular-text{
|
37 |
-
width: 18em;
|
38 |
-
}
|
39 |
-
.form-table td {
|
40 |
-
vertical-align: top;
|
41 |
}
|
1 |
+
p.gray{
|
2 |
+
color: #808080;
|
3 |
+
}
|
4 |
+
|
5 |
+
div.gray_form {
|
6 |
+
background-color: #ebebeb;
|
7 |
+
padding: 20px;
|
8 |
+
max-width: 1000px;
|
9 |
+
}
|
10 |
+
div.gray_form p{
|
11 |
+
color: #666666;
|
12 |
+
max-width:500px;
|
13 |
+
}
|
14 |
+
td.gray div{
|
15 |
+
max-width: 400px;
|
16 |
+
color: #666666;
|
17 |
+
float: left;
|
18 |
+
}
|
19 |
+
|
20 |
+
td.input {
|
21 |
+
max-width: 27em;
|
22 |
+
}
|
23 |
+
|
24 |
+
div.success {
|
25 |
+
background: url("img/success.png") no-repeat scroll left center transparent;
|
26 |
+
font-size: 110%;
|
27 |
+
font-weight: bold;
|
28 |
+
margin-left: 10px;
|
29 |
+
max-width: 500px;
|
30 |
+
padding: 20px 20px 20px 80px;
|
31 |
+
margin-bottom: 15px;
|
32 |
+
}
|
33 |
+
p.small {
|
34 |
+
font-size: 70%;
|
35 |
+
}
|
36 |
+
input.regular-text{
|
37 |
+
width: 18em;
|
38 |
+
}
|
39 |
+
.form-table td {
|
40 |
+
vertical-align: top;
|
41 |
}
|
jivosite.php
CHANGED
@@ -1,272 +1,272 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Plugin Name: JivoChat
|
4 |
-
* Author: JivoChat
|
5 |
-
* Author URI: www.jivochat.com
|
6 |
-
* Plugin URI: http://jivochat.com/
|
7 |
-
* Description: With JivoChat you can chat with visitors on your website to increase conversion and sales
|
8 |
-
* Version: 1.
|
9 |
-
*
|
10 |
-
* Text Domain: jivosite
|
11 |
-
* Domain Path: /
|
12 |
-
*/
|
13 |
-
|
14 |
-
|
15 |
-
if (!defined('ABSPATH')) die("go away!");
|
16 |
-
|
17 |
-
load_plugin_textdomain('jivosite', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)));
|
18 |
-
$lang = get_bloginfo("language");
|
19 |
-
if ($lang=="ru_RU") {
|
20 |
-
$jivo_addr = 'http://www.jivosite.ru';
|
21 |
-
} else {
|
22 |
-
$jivo_addr = 'https://www.jivochat.com';
|
23 |
-
}
|
24 |
-
|
25 |
-
define ("JIVO_LANG", substr($lang,0,2));
|
26 |
-
|
27 |
-
define("JIVOSITE_URL","https://admin.jivosite.com");
|
28 |
-
define("JIVOSITE_WIDGET_URL","code.jivosite.com");
|
29 |
-
define("JIVO_URL",$jivo_addr);
|
30 |
-
define("JIVO_INTEGRATION_URL",JIVOSITE_URL."/integration");
|
31 |
-
define("JIVO_PLUGIN_URL",plugin_dir_url(__FILE__));
|
32 |
-
define("JIVO_IMG_URL",plugin_dir_url(__FILE__)."/img/");
|
33 |
-
// //register hooks for plugin
|
34 |
-
register_activation_hook(__FILE__, 'jivositeInstall');
|
35 |
-
register_deactivation_hook(__FILE__, 'jivositeDelete');
|
36 |
-
|
37 |
-
//add plugin to options menu
|
38 |
-
function catalog_admin_menu(){
|
39 |
-
load_plugin_textdomain('jivosite', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)));
|
40 |
-
add_menu_page(__('JivoChat','jivosite'), __('JivoChat','jivosite'), 8, basename(__FILE__), 'jivositePreferences',JIVO_IMG_URL."icon.png");
|
41 |
-
}
|
42 |
-
add_action('admin_menu', 'catalog_admin_menu');
|
43 |
-
|
44 |
-
function jivosite_options_validate($args){
|
45 |
-
return $args;
|
46 |
-
}
|
47 |
-
|
48 |
-
/*
|
49 |
-
* Register the settings
|
50 |
-
*/
|
51 |
-
add_action('admin_init', 'jivosite_register_settings');
|
52 |
-
function jivosite_register_settings(){
|
53 |
-
register_setting('jivosite_token', 'jivosite_token', 'jivosite_options_validate');
|
54 |
-
register_setting('jivosite_widget_id', 'jivosite_widget_id', 'jivosite_options_validate');
|
55 |
-
}
|
56 |
-
|
57 |
-
|
58 |
-
add_action('wp_footer', 'jivositeAppend', 100000);
|
59 |
-
|
60 |
-
function jivositeInstall(){
|
61 |
-
return jivosite::getInstance()->install();
|
62 |
-
}
|
63 |
-
|
64 |
-
function jivositeDelete(){
|
65 |
-
return jivosite::getInstance()->delete();
|
66 |
-
}
|
67 |
-
|
68 |
-
function jivositeAppend(){
|
69 |
-
echo jivosite::getInstance()->append(
|
70 |
-
jivosite::getInstance()->getId()
|
71 |
-
);
|
72 |
-
}
|
73 |
-
|
74 |
-
function jivositePreferences(){
|
75 |
-
if(isset($_POST["widget_id"]))
|
76 |
-
jivosite::getInstance()->save();
|
77 |
-
|
78 |
-
load_plugin_textdomain('jivosite', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)));
|
79 |
-
|
80 |
-
wp_register_style('jivosite_style', plugins_url('jivosite.css', __FILE__));
|
81 |
-
wp_enqueue_style('jivosite_style');
|
82 |
-
|
83 |
-
echo jivosite::getInstance()->render();
|
84 |
-
}
|
85 |
-
|
86 |
-
class jivosite {
|
87 |
-
|
88 |
-
protected static $instance, $db, $table, $lang;
|
89 |
-
|
90 |
-
private function __construct(){
|
91 |
-
$this->token = get_option( 'jivosite_token');
|
92 |
-
$this->widget_id = get_option( 'jivosite_widget_id');
|
93 |
-
}
|
94 |
-
private function __clone() {}
|
95 |
-
private function __wakeup() {}
|
96 |
-
|
97 |
-
private $widget_id = '';
|
98 |
-
private $token = '';
|
99 |
-
|
100 |
-
public static function getInstance() {
|
101 |
-
|
102 |
-
if ( is_null(self::$instance) ) {
|
103 |
-
self::$instance = new jivosite();
|
104 |
-
}
|
105 |
-
self::$lang = "en";
|
106 |
-
if(isset($_GET["lang"])){
|
107 |
-
switch ($_GET["lang"]) {
|
108 |
-
case 'ru': self::$lang = "ru"; break;
|
109 |
-
default: self::$lang = "en"; break;
|
110 |
-
}
|
111 |
-
}
|
112 |
-
return self::$instance;
|
113 |
-
}
|
114 |
-
|
115 |
-
public function setID($id){
|
116 |
-
$this->widget_id = $id;
|
117 |
-
}
|
118 |
-
|
119 |
-
public function setToken($token){
|
120 |
-
$this->token = $token;
|
121 |
-
}
|
122 |
-
|
123 |
-
/**
|
124 |
-
* Install
|
125 |
-
*/
|
126 |
-
public function install() {
|
127 |
-
|
128 |
-
if (!$this->widget_id) {
|
129 |
-
$default_widget_id ='';
|
130 |
-
if (file_exists(realpath(dirname(__FILE__))."/id") ){
|
131 |
-
$default_widget_id = file_get_contents(realpath(dirname(__FILE__))."/id");
|
132 |
-
}
|
133 |
-
}
|
134 |
-
$this->widget_id = $default_widget_id;
|
135 |
-
$this->save();
|
136 |
-
}
|
137 |
-
|
138 |
-
public function catchPost(){
|
139 |
-
if(isset($_GET['mode'])&&$_GET['mode']=='reset'){
|
140 |
-
$this->widget_id = '';
|
141 |
-
$this->token = '';
|
142 |
-
$this->save();
|
143 |
-
}
|
144 |
-
if(isset($_POST['widget_id'])){
|
145 |
-
$this->widget_id = $_POST['widget_id'];
|
146 |
-
$this->save();
|
147 |
-
}elseif(isset($_POST['email'])&&isset($_POST['userPassword'])){
|
148 |
-
// получаем данные для запроса
|
149 |
-
$query = $_POST;
|
150 |
-
$query['siteUrl'] = get_site_url();
|
151 |
-
$query['partnerId'] = "wordpress";
|
152 |
-
$authToken = md5(time().get_site_url());
|
153 |
-
$query['authToken'] = $authToken;
|
154 |
-
if(!$query['agent_id']){
|
155 |
-
$query['agent_id'] = 0;
|
156 |
-
}
|
157 |
-
$query['lang'] = JIVO_LANG;
|
158 |
-
$content = http_build_query($query);
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
// отправляем запрос
|
172 |
-
try{
|
173 |
-
$path = JIVO_INTEGRATION_URL."/install";
|
174 |
-
if(!extension_loaded('openssl')){
|
175 |
-
$path = str_replace('https:','http:',$path);
|
176 |
-
}
|
177 |
-
if($useCurl){
|
178 |
-
if ( $curl = curl_init() ) {
|
179 |
-
curl_setopt($curl, CURLOPT_URL, $path);
|
180 |
-
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
|
181 |
-
curl_setopt($curl, CURLOPT_POST, true);
|
182 |
-
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
|
183 |
-
$responce = curl_exec($curl);
|
184 |
-
curl_close($curl);
|
185 |
-
}
|
186 |
-
} else {
|
187 |
-
$responce = file_get_contents(
|
188 |
-
$path,
|
189 |
-
false,
|
190 |
-
stream_context_create(
|
191 |
-
array(
|
192 |
-
'http' => array(
|
193 |
-
'method' => 'POST',
|
194 |
-
'header' => 'Content-Type: application/x-www-form-urlencoded',
|
195 |
-
'content' => $content
|
196 |
-
)
|
197 |
-
)
|
198 |
-
)
|
199 |
-
);
|
200 |
-
}
|
201 |
-
if ($responce) {
|
202 |
-
if(strstr($responce,'Error')){
|
203 |
-
return array("error"=>$responce);
|
204 |
-
} else {
|
205 |
-
$this->widget_id = $responce;
|
206 |
-
$this->token = $authToken;
|
207 |
-
$this->save();
|
208 |
-
return true;
|
209 |
-
}
|
210 |
-
}
|
211 |
-
} catch (Exception $e) {
|
212 |
-
_e("Connection error",'jivosite');
|
213 |
-
}
|
214 |
-
}
|
215 |
-
|
216 |
-
}
|
217 |
-
|
218 |
-
/**
|
219 |
-
* delete plugin
|
220 |
-
*/
|
221 |
-
public function delete(){
|
222 |
-
|
223 |
-
}
|
224 |
-
|
225 |
-
|
226 |
-
public function getId(){
|
227 |
-
return $this->widget_id;
|
228 |
-
}
|
229 |
-
|
230 |
-
/**
|
231 |
-
* render admin page
|
232 |
-
*/
|
233 |
-
public function render(){
|
234 |
-
$result = $this->catchPost();
|
235 |
-
$error = '';
|
236 |
-
$widget_id = $this->widget_id;
|
237 |
-
if (is_array($result)&&isset($result['error'])) {
|
238 |
-
$error = $result['error'];
|
239 |
-
}
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
}
|
259 |
-
|
260 |
-
public function append($widget_id = false){
|
261 |
-
if($widget_id)
|
262 |
-
require_once "templates/script.php";
|
263 |
-
}
|
264 |
-
|
265 |
-
public function save(){
|
266 |
-
do_settings_sections( __FILE__ );
|
267 |
-
|
268 |
-
update_option('jivosite_widget_id',$this->widget_id);
|
269 |
-
update_option('jivosite_token',$this->token);
|
270 |
-
}
|
271 |
-
|
272 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Plugin Name: JivoChat
|
4 |
+
* Author: JivoChat
|
5 |
+
* Author URI: www.jivochat.com
|
6 |
+
* Plugin URI: http://jivochat.com/
|
7 |
+
* Description: With JivoChat you can chat with visitors on your website to increase conversion and sales
|
8 |
+
* Version: 1.2
|
9 |
+
*
|
10 |
+
* Text Domain: jivosite
|
11 |
+
* Domain Path: /
|
12 |
+
*/
|
13 |
+
|
14 |
+
|
15 |
+
if (!defined('ABSPATH')) die("go away!");
|
16 |
+
|
17 |
+
load_plugin_textdomain('jivosite', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)));
|
18 |
+
$lang = get_bloginfo("language");
|
19 |
+
if ($lang=="ru_RU") {
|
20 |
+
$jivo_addr = 'http://www.jivosite.ru';
|
21 |
+
} else {
|
22 |
+
$jivo_addr = 'https://www.jivochat.com';
|
23 |
+
}
|
24 |
+
|
25 |
+
define ("JIVO_LANG", substr($lang,0,2));
|
26 |
+
|
27 |
+
define("JIVOSITE_URL","https://admin.jivosite.com");
|
28 |
+
define("JIVOSITE_WIDGET_URL","code.jivosite.com");
|
29 |
+
define("JIVO_URL",$jivo_addr);
|
30 |
+
define("JIVO_INTEGRATION_URL",JIVOSITE_URL."/integration");
|
31 |
+
define("JIVO_PLUGIN_URL",plugin_dir_url(__FILE__));
|
32 |
+
define("JIVO_IMG_URL",plugin_dir_url(__FILE__)."/img/");
|
33 |
+
// //register hooks for plugin
|
34 |
+
register_activation_hook(__FILE__, 'jivositeInstall');
|
35 |
+
register_deactivation_hook(__FILE__, 'jivositeDelete');
|
36 |
+
|
37 |
+
//add plugin to options menu
|
38 |
+
function catalog_admin_menu(){
|
39 |
+
load_plugin_textdomain('jivosite', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)));
|
40 |
+
add_menu_page(__('JivoChat','jivosite'), __('JivoChat','jivosite'), 8, basename(__FILE__), 'jivositePreferences',JIVO_IMG_URL."icon.png");
|
41 |
+
}
|
42 |
+
add_action('admin_menu', 'catalog_admin_menu');
|
43 |
+
|
44 |
+
function jivosite_options_validate($args){
|
45 |
+
return $args;
|
46 |
+
}
|
47 |
+
|
48 |
+
/*
|
49 |
+
* Register the settings
|
50 |
+
*/
|
51 |
+
add_action('admin_init', 'jivosite_register_settings');
|
52 |
+
function jivosite_register_settings(){
|
53 |
+
register_setting('jivosite_token', 'jivosite_token', 'jivosite_options_validate');
|
54 |
+
register_setting('jivosite_widget_id', 'jivosite_widget_id', 'jivosite_options_validate');
|
55 |
+
}
|
56 |
+
|
57 |
+
|
58 |
+
add_action('wp_footer', 'jivositeAppend', 100000);
|
59 |
+
|
60 |
+
function jivositeInstall(){
|
61 |
+
return jivosite::getInstance()->install();
|
62 |
+
}
|
63 |
+
|
64 |
+
function jivositeDelete(){
|
65 |
+
return jivosite::getInstance()->delete();
|
66 |
+
}
|
67 |
+
|
68 |
+
function jivositeAppend(){
|
69 |
+
echo jivosite::getInstance()->append(
|
70 |
+
jivosite::getInstance()->getId()
|
71 |
+
);
|
72 |
+
}
|
73 |
+
|
74 |
+
function jivositePreferences(){
|
75 |
+
if(isset($_POST["widget_id"]))
|
76 |
+
jivosite::getInstance()->save();
|
77 |
+
|
78 |
+
load_plugin_textdomain('jivosite', false, PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)));
|
79 |
+
|
80 |
+
wp_register_style('jivosite_style', plugins_url('jivosite.css', __FILE__));
|
81 |
+
wp_enqueue_style('jivosite_style');
|
82 |
+
|
83 |
+
echo jivosite::getInstance()->render();
|
84 |
+
}
|
85 |
+
|
86 |
+
class jivosite {
|
87 |
+
|
88 |
+
protected static $instance, $db, $table, $lang;
|
89 |
+
|
90 |
+
private function __construct(){
|
91 |
+
$this->token = get_option( 'jivosite_token');
|
92 |
+
$this->widget_id = get_option( 'jivosite_widget_id');
|
93 |
+
}
|
94 |
+
private function __clone() {}
|
95 |
+
private function __wakeup() {}
|
96 |
+
|
97 |
+
private $widget_id = '';
|
98 |
+
private $token = '';
|
99 |
+
|
100 |
+
public static function getInstance() {
|
101 |
+
|
102 |
+
if ( is_null(self::$instance) ) {
|
103 |
+
self::$instance = new jivosite();
|
104 |
+
}
|
105 |
+
self::$lang = "en";
|
106 |
+
if(isset($_GET["lang"])){
|
107 |
+
switch ($_GET["lang"]) {
|
108 |
+
case 'ru': self::$lang = "ru"; break;
|
109 |
+
default: self::$lang = "en"; break;
|
110 |
+
}
|
111 |
+
}
|
112 |
+
return self::$instance;
|
113 |
+
}
|
114 |
+
|
115 |
+
public function setID($id){
|
116 |
+
$this->widget_id = $id;
|
117 |
+
}
|
118 |
+
|
119 |
+
public function setToken($token){
|
120 |
+
$this->token = $token;
|
121 |
+
}
|
122 |
+
|
123 |
+
/**
|
124 |
+
* Install
|
125 |
+
*/
|
126 |
+
public function install() {
|
127 |
+
|
128 |
+
if (!$this->widget_id) {
|
129 |
+
$default_widget_id ='';
|
130 |
+
if (file_exists(realpath(dirname(__FILE__))."/id") ){
|
131 |
+
$default_widget_id = file_get_contents(realpath(dirname(__FILE__))."/id");
|
132 |
+
}
|
133 |
+
}
|
134 |
+
$this->widget_id = $default_widget_id;
|
135 |
+
$this->save();
|
136 |
+
}
|
137 |
+
|
138 |
+
public function catchPost(){
|
139 |
+
if(isset($_GET['mode'])&&$_GET['mode']=='reset'){
|
140 |
+
$this->widget_id = '';
|
141 |
+
$this->token = '';
|
142 |
+
$this->save();
|
143 |
+
}
|
144 |
+
if(isset($_POST['widget_id'])){
|
145 |
+
$this->widget_id = $_POST['widget_id'];
|
146 |
+
$this->save();
|
147 |
+
}elseif(isset($_POST['email'])&&isset($_POST['userPassword'])){
|
148 |
+
// получаем данные для запроса
|
149 |
+
$query = $_POST;
|
150 |
+
$query['siteUrl'] = get_site_url();
|
151 |
+
$query['partnerId'] = "wordpress";
|
152 |
+
$authToken = md5(time().get_site_url());
|
153 |
+
$query['authToken'] = $authToken;
|
154 |
+
if(!$query['agent_id']){
|
155 |
+
$query['agent_id'] = 0;
|
156 |
+
}
|
157 |
+
$query['lang'] = JIVO_LANG;
|
158 |
+
$content = http_build_query($query);
|
159 |
+
|
160 |
+
if(ini_get('allow_url_fopen')){
|
161 |
+
$useCurl = false;
|
162 |
+
}elseif(!extension_loaded('curl')) {
|
163 |
+
if (!dl('curl.so')) {
|
164 |
+
$useCurl = false;
|
165 |
+
} else {
|
166 |
+
$useCurl = true;
|
167 |
+
}
|
168 |
+
} else {
|
169 |
+
$useCurl = true;
|
170 |
+
}
|
171 |
+
// отправляем запрос
|
172 |
+
try{
|
173 |
+
$path = JIVO_INTEGRATION_URL."/install";
|
174 |
+
if(!extension_loaded('openssl')){
|
175 |
+
$path = str_replace('https:','http:',$path);
|
176 |
+
}
|
177 |
+
if($useCurl){
|
178 |
+
if ( $curl = curl_init() ) {
|
179 |
+
curl_setopt($curl, CURLOPT_URL, $path);
|
180 |
+
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
|
181 |
+
curl_setopt($curl, CURLOPT_POST, true);
|
182 |
+
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
|
183 |
+
$responce = curl_exec($curl);
|
184 |
+
curl_close($curl);
|
185 |
+
}
|
186 |
+
} else {
|
187 |
+
$responce = file_get_contents(
|
188 |
+
$path,
|
189 |
+
false,
|
190 |
+
stream_context_create(
|
191 |
+
array(
|
192 |
+
'http' => array(
|
193 |
+
'method' => 'POST',
|
194 |
+
'header' => 'Content-Type: application/x-www-form-urlencoded',
|
195 |
+
'content' => $content
|
196 |
+
)
|
197 |
+
)
|
198 |
+
)
|
199 |
+
);
|
200 |
+
}
|
201 |
+
if ($responce) {
|
202 |
+
if(strstr($responce,'Error')){
|
203 |
+
return array("error"=>$responce);
|
204 |
+
} else {
|
205 |
+
$this->widget_id = $responce;
|
206 |
+
$this->token = $authToken;
|
207 |
+
$this->save();
|
208 |
+
return true;
|
209 |
+
}
|
210 |
+
}
|
211 |
+
} catch (Exception $e) {
|
212 |
+
_e("Connection error",'jivosite');
|
213 |
+
}
|
214 |
+
}
|
215 |
+
|
216 |
+
}
|
217 |
+
|
218 |
+
/**
|
219 |
+
* delete plugin
|
220 |
+
*/
|
221 |
+
public function delete(){
|
222 |
+
|
223 |
+
}
|
224 |
+
|
225 |
+
|
226 |
+
public function getId(){
|
227 |
+
return $this->widget_id;
|
228 |
+
}
|
229 |
+
|
230 |
+
/**
|
231 |
+
* render admin page
|
232 |
+
*/
|
233 |
+
public function render(){
|
234 |
+
$result = $this->catchPost();
|
235 |
+
$error = '';
|
236 |
+
$widget_id = $this->widget_id;
|
237 |
+
if (is_array($result)&&isset($result['error'])) {
|
238 |
+
$error = $result['error'];
|
239 |
+
}
|
240 |
+
|
241 |
+
if (ini_get('allow_url_fopen')) {
|
242 |
+
$requirementsOk = true;
|
243 |
+
} elseif(!extension_loaded('curl')) {
|
244 |
+
if (!dl('curl.so')) {
|
245 |
+
$requirementsOk = false;
|
246 |
+
} else {
|
247 |
+
$requirementsOk = true;
|
248 |
+
}
|
249 |
+
} else {
|
250 |
+
$requirementsOk = true;
|
251 |
+
}
|
252 |
+
|
253 |
+
if ($requirementsOk) {
|
254 |
+
require_once "templates/page.php";
|
255 |
+
}else{
|
256 |
+
require_once "templates/error.php";
|
257 |
+
}
|
258 |
+
}
|
259 |
+
|
260 |
+
public function append($widget_id = false){
|
261 |
+
if($widget_id)
|
262 |
+
require_once "templates/script.php";
|
263 |
+
}
|
264 |
+
|
265 |
+
public function save(){
|
266 |
+
do_settings_sections( __FILE__ );
|
267 |
+
|
268 |
+
update_option('jivosite_widget_id',$this->widget_id);
|
269 |
+
update_option('jivosite_token',$this->token);
|
270 |
+
}
|
271 |
+
|
272 |
}
|
readme.txt
CHANGED
@@ -3,48 +3,45 @@ Contributors: JivoChat
|
|
3 |
Donate link: http://jivochat.com/
|
4 |
Tags: jivochat, jivo, chat, livechat, chat for website, chat online, chat software, click desk, clickdesk, contact plugin, contact us, customer support, free chat, IM Chat, live chat, live chat services, live chat software, live chatting, live help, live support, live web chat, livechat, online chat, online support, php live chat, snapengage, support software, wordpress chat, wordpress live chat, wordpress live chat plugin, живосайт, живой сайт, дживосайт, jivosite, zendesk, zopim, zopim live chat, zendesk chat, tawk, tawkto, tawk.to, chatra, чатра, pure chat, pureсhat, smartsupp, smart supp, happyfox, happy fox, siteheart, site heart, chatnox, liveagent, live agent, slack, subiz, casengo, chatpirate, tagove, wp live chat support, wise chat, wisechat, wise, chatbro, chat bro, iflychat, tidio, flyzoo, yith, livetex, webisonline, redhelper, red helper, mylivechat, my live chat, live chat inc, livechatinc, olark, userlike, user like, zoho, zoho chat, livezilla, intercom, chatrify, onicon, callbackhunter, callback, callback widget, venyoo, comagic, talk-me, talkme, NetroxSC, boldchat, velaro, bitrix24, bitrix
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Perfectly designed for you to chat with your visitors in real time on your Website, Facebook, Viber or Telegram and increase your online sales. 100% FREE!
|
12 |
|
13 |
-
==
|
14 |
|
15 |
-
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
<iframe width="560" height="315" src="https://www.youtube.com/embed/YUzy6tr0Mak" frameborder="0" allowfullscreen></iframe>
|
20 |
|
|
|
21 |
|
22 |
-
= Kick-Ass Features =
|
23 |
|
24 |
-
|
25 |
-
* **Be available all the time:** You can take chats anywhere, anytime using the desktop app for Mac/Windows, Mobile app for iOS and Android or using the Browser Chat Application.
|
26 |
-
* **Increase your Sales:** Our proactive invitation feature makes it much more easy to increase the number of chats and also the number of sales. The chat widget will pop up and say whatever you wanna say. Just a tip: Offering a little discount works flawlessly.
|
27 |
-
|
28 |
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
-
= Ok, so... Why JivoChat instead of any other Live Chat tool out there? =
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
*
|
35 |
-
* **
|
36 |
-
*
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
*
|
42 |
-
*
|
43 |
-
|
44 |
-
|
45 |
|
46 |
-
Questions? Just reach out to us through our live chat at [www.JivoChat.com](https://www.jivochat.com) or send an email to [support@jivochat.com](mailto:support@jivochat.com). Once you've found your answers, download the JivoChat plugin today and start turning your website traffic into cash. Your free account will be created upon installation!
|
47 |
-
|
48 |
|
49 |
== Installation ==
|
50 |
|
@@ -70,16 +67,16 @@ You can choose to install the desktop app, or you can install our JivoChat app o
|
|
70 |
|
71 |
== Screenshots ==
|
72 |
|
73 |
-
1. The
|
74 |
-
2.
|
75 |
-
3. Quick Phrases Helper
|
76 |
-
4. Real-time Visitor Monitor
|
77 |
-
5. Mobile Agent App
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
81 |
= 1.1 =
|
82 |
* Agent app url changed
|
83 |
|
84 |
= 1.0 =
|
85 |
-
* Welcome our very first version of the plugin!
|
3 |
Donate link: http://jivochat.com/
|
4 |
Tags: jivochat, jivo, chat, livechat, chat for website, chat online, chat software, click desk, clickdesk, contact plugin, contact us, customer support, free chat, IM Chat, live chat, live chat services, live chat software, live chatting, live help, live support, live web chat, livechat, online chat, online support, php live chat, snapengage, support software, wordpress chat, wordpress live chat, wordpress live chat plugin, живосайт, живой сайт, дживосайт, jivosite, zendesk, zopim, zopim live chat, zendesk chat, tawk, tawkto, tawk.to, chatra, чатра, pure chat, pureсhat, smartsupp, smart supp, happyfox, happy fox, siteheart, site heart, chatnox, liveagent, live agent, slack, subiz, casengo, chatpirate, tagove, wp live chat support, wise chat, wisechat, wise, chatbro, chat bro, iflychat, tidio, flyzoo, yith, livetex, webisonline, redhelper, red helper, mylivechat, my live chat, live chat inc, livechatinc, olark, userlike, user like, zoho, zoho chat, livezilla, intercom, chatrify, onicon, callbackhunter, callback, callback widget, venyoo, comagic, talk-me, talkme, NetroxSC, boldchat, velaro, bitrix24, bitrix
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 4.9.2
|
7 |
+
Stable tag: 1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Perfectly designed for you to chat with your visitors in real time on your Website, Facebook, Viber or Telegram and increase your online sales. 100% FREE!
|
12 |
|
13 |
+
== Live Chat for your eCommerce ==
|
14 |
|
15 |
+
Jivo is much more than just a regular Live Chat, it's the most powerful communication application for online business owners. It is beautiful, easy to use and powerful. With its responsive design, it works perfectly for desktop, tablet and smartphone. You won't lose any sales opportunity ever again, stop wasting your website traffic, turn your website visitors into paying customers now!
|
16 |
|
17 |
+
More than **180k** websites around the world help over **2 million** customers per month with our chat app. We care about our users, and we offer **24/7 support** on our website [JivoChat.com](https://www.jivochat.com). We are confident about increasing your sales, try us for 14 days and see it yourself!
|
|
|
|
|
18 |
|
19 |
+
<iframe width="640" height="360" src="https://www.youtube.com/embed/YUzy6tr0Mak" frameborder="0" gesture="media" allowfullscreen></iframe>
|
20 |
|
|
|
21 |
|
22 |
+
= WHY JIVOCHAT? =
|
|
|
|
|
|
|
23 |
|
24 |
+
* Install our live chat app and start using it in a minute. Easy to use and effective - just click, install, talk and sell more!
|
25 |
+
* Double your website's sales by talking to your visitors in real time, anytime, anywhere via our Android, iOS, Mac or Windows apps.
|
26 |
+
* See everyone who is visiting your website, get their detailed visitor info and proactively contact them on Live Chat
|
27 |
+
* Connect your Facebook Page, Viber and Telegram accounts, and receive all the incoming messages from these channels into your Jivo app.
|
28 |
+
* Offer calls to your clients - with Jivo’s Callback feature, your clients can directly call you from the live chat widget on your website.
|
29 |
|
|
|
30 |
|
31 |
+
= KICK-ASS FEATURES! =
|
32 |
+
|
33 |
+
* **Visitor Monitoring & Triggers:** Track your visitors in real time and proactively initiate chat with them upon conditions you’ve set.
|
34 |
+
* **Instant calls feature for visitors:** Make your visitors can request call from you via our widget and you will be in a call with them less than 27 seconds!
|
35 |
+
* **Connect your Facebook Page, Viber and Telegram accounts:** Offer 360 degrees support to your customers, be reachable from popular chat apps.
|
36 |
+
* **Automatic Translator:** Forget the language barriers, Jivo will translate chat in both directions instantly and fluently.
|
37 |
+
* **Quick Phrases & Canned Responses:** Create pre-written messages and send them by using hotkeys, get suggestions due to messages you’ve sent before
|
38 |
+
* **Pointer:** Highlight specific items on your website for your visitors
|
39 |
+
* **Typing Insight:** See the messages that visitors type in real-time before they hit send
|
40 |
+
* **CRM Integrations, API, Webhooks and Mobile SDK:** Connect each tool to our system and build an amazing support system
|
41 |
+
* **Not Slowing Down Your Site:** Don’t worry about your loading time, Jivo scripts are loaded asynchronously
|
42 |
+
|
43 |
+
For a full list of features, please visit [JivoChat.com](https://www.jivochat.com)
|
44 |
|
|
|
|
|
45 |
|
46 |
== Installation ==
|
47 |
|
67 |
|
68 |
== Screenshots ==
|
69 |
|
70 |
+
1. The chat window is fully customizable
|
71 |
+
2. You can use the desktop, mobile or browser-based agent application
|
|
|
|
|
|
|
72 |
|
73 |
== Changelog ==
|
74 |
|
75 |
+
= 1.2 =
|
76 |
+
* Fixes, up to work with WordPress 4.7.5
|
77 |
+
|
78 |
= 1.1 =
|
79 |
* Agent app url changed
|
80 |
|
81 |
= 1.0 =
|
82 |
+
* Welcome our very first version of the plugin!
|
templates/error.php
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
-
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" type="text/javascript"></script>
|
2 |
-
<div class="wrap">
|
3 |
-
<h1>
|
4 |
-
<a href="http://www.jivosite.com" target="_blank">
|
5 |
-
<img src="<?php echo JIVO_PLUGIN_URL; ?>img/<?php _e('logo.png','jivosite');?>" />
|
6 |
-
</a>
|
7 |
-
</h1>
|
8 |
-
<b><?php echo $error; ?></b>
|
9 |
-
<div class="gray_form">
|
10 |
-
<?php _e('Unfortunately, your server configuration does not allow the plugin to connect to JivoChat servers to create account. Please, go to <a target="_blank" href="https://admin.jivosite.com/autoreg?lang=en">https://admin.jivosite.com/autoreg?lang=en</a> and sign up. During the signup process you will be offered to download another Wordpress module that does not require to communicate over the network','jivosite'); ?>
|
11 |
-
</div>
|
12 |
</div>
|
1 |
+
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" type="text/javascript"></script>
|
2 |
+
<div class="wrap">
|
3 |
+
<h1>
|
4 |
+
<a href="http://www.jivosite.com" target="_blank">
|
5 |
+
<img src="<?php echo JIVO_PLUGIN_URL; ?>img/<?php _e('logo.png','jivosite');?>" />
|
6 |
+
</a>
|
7 |
+
</h1>
|
8 |
+
<b style="color:red;"><?php echo $error; ?></b>
|
9 |
+
<div class="gray_form">
|
10 |
+
<?php _e('Unfortunately, your server configuration does not allow the plugin to connect to JivoChat servers to create account. Please, go to <a target="_blank" href="https://admin.jivosite.com/autoreg?lang=en">https://admin.jivosite.com/autoreg?lang=en</a> and sign up. During the signup process you will be offered to download another Wordpress module that does not require to communicate over the network','jivosite'); ?>
|
11 |
+
</div>
|
12 |
</div>
|
templates/page.php
CHANGED
@@ -1,66 +1,66 @@
|
|
1 |
-
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" type="text/javascript"></script>
|
2 |
-
<div class="wrap">
|
3 |
-
<h1>
|
4 |
-
<a href="http://www.jivosite.com" target="_blank">
|
5 |
-
<img src="<?php echo JIVO_PLUGIN_URL; ?>img/<?php _e('logo.png','jivosite');?>" />
|
6 |
-
</a>
|
7 |
-
</h1>
|
8 |
-
<b><?php echo $error; ?></b>
|
9 |
-
<?php if(!$this->widget_id){ ?>
|
10 |
-
<p style="margin-bottom: 0px;"><?php _e('To install JivoChat, please create a new account, or use your existing one','jivosite'); ?></p>
|
11 |
-
<p class="gray" style="margin-top: 0px;"><?php echo str_replace('%JIVO_URL%',JIVO_URL,__('If you need help, please chat with us on <a href="%JIVO_URL%">jivochat.com</a> or use <a href="%JIVO_URL%/support">our forum</a>','jivosite')); ?></p>
|
12 |
-
|
13 |
-
<div class="gray_form">
|
14 |
-
<form method="POST">
|
15 |
-
<table class="form-table">
|
16 |
-
<tbody>
|
17 |
-
<tr>
|
18 |
-
<th scope="row">
|
19 |
-
<label for="email"><?php _e('Your Email (login name)','jivosite'); ?></label>
|
20 |
-
</th>
|
21 |
-
<td class="input">
|
22 |
-
<input id="email" class="regular-text" type="text" value="" name="email">
|
23 |
-
</td>
|
24 |
-
<td class="gray"><div><?php _e('Please specify the email you will use to login to the agent’s app and admin panel. If you already have a JivoChat account, please enter the email address you use for it here.','jivosite'); ?></div></td>
|
25 |
-
</tr>
|
26 |
-
<tr>
|
27 |
-
<th scope="row">
|
28 |
-
<label for="userPassword"><?php _e('JivoChat Password','jivosite'); ?></label>
|
29 |
-
</th>
|
30 |
-
<td class="input">
|
31 |
-
<input id="userPassword" class="regular-text" type="password" value="" name="userPassword">
|
32 |
-
</td>
|
33 |
-
<td class="gray"><div><?php _e('Please create a new JivoChat account password. If you already have an account, please enter the password for it here.','jivosite'); ?></div></td>
|
34 |
-
</tr>
|
35 |
-
<tr>
|
36 |
-
<th scope="row">
|
37 |
-
<label for="userDisplayName"><?php _e('Agent Name','jivosite'); ?></label>
|
38 |
-
</th>
|
39 |
-
<td class="input">
|
40 |
-
<input id="userDisplayName" class="regular-text" type="text" value="" name="userDisplayName">
|
41 |
-
</td>
|
42 |
-
<td class="gray"><div><?php _e('The agent name that will be displayed to website visitors in the JivoChat chat window.','jivosite'); ?></div></td>
|
43 |
-
</tr>
|
44 |
-
<tr>
|
45 |
-
<td colspan="3"><input class="button button-primary" type="submit" value="<?php _e('Install JivoChat Now','jivosite'); ?>"></td>
|
46 |
-
</tr>
|
47 |
-
</tbody>
|
48 |
-
</table>
|
49 |
-
</form>
|
50 |
-
</div>
|
51 |
-
<?php }else{
|
52 |
-
?>
|
53 |
-
<div class="success">
|
54 |
-
<?php _e('Congratulations! You have successfully installed JivoChat on your website. Now you need to install the agent’s app on your computer and customize the chat window in the admin panel.','jivosite'); ?>
|
55 |
-
</div>
|
56 |
-
<div class="gray_form">
|
57 |
-
<h3>1. <?php _e('Install Agent’s App','jivosite'); ?></h3>
|
58 |
-
<a class="button button-primary" href="http://<?php _e('www.jivochat.com','jivosite'); ?>/apps" target="_blank"><?php _e('Install Agent’s App','jivosite'); ?></a>
|
59 |
-
<h3>2. <?php _e('Customize Settings and add Agents in the Admin Panel','jivosite'); ?></h3>
|
60 |
-
<p><?php _e('After you have installed the agent’s app, please login to the admin panel to add more agents’ accounts, customize the chat window settings and set up proactive invitations to get the most from your new live chat!','jivosite'); ?></p>
|
61 |
-
<a class="button button-primary" href='<?php if($this->token){ echo JIVO_INTEGRATION_URL.'/login?token='.$this->token.(JIVO_LANG!='ru'?"&lang=".JIVO_LANG:''); }else{echo JIVOSITE_URL;} ?>' target="_blank"><?php _e('Go to JivoChat Admin Panel','jivosite'); ?></a>
|
62 |
-
<p><a href="?<?php echo http_build_query($_GET) ?>&mode=reset"><?php _e('Reset account info','jivosite'); ?></a></p>
|
63 |
-
</div>
|
64 |
-
<p class="gray"><?php echo str_replace('%JIVO_URL%',JIVO_URL,__('If you need help, please chat with us on <a href="%JIVO_URL%">jivochat.com</a> or use <a href="%JIVO_URL%/support">our forum</a>','jivosite')); ?></p>
|
65 |
-
<?php } ?>
|
66 |
</div>
|
1 |
+
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" type="text/javascript"></script>
|
2 |
+
<div class="wrap">
|
3 |
+
<h1>
|
4 |
+
<a href="http://www.jivosite.com" target="_blank">
|
5 |
+
<img src="<?php echo JIVO_PLUGIN_URL; ?>img/<?php _e('logo.png','jivosite');?>" />
|
6 |
+
</a>
|
7 |
+
</h1>
|
8 |
+
<b style="color:red;"><?php echo $error; ?></b>
|
9 |
+
<?php if(!$this->widget_id){ ?>
|
10 |
+
<p style="margin-bottom: 0px;"><?php _e('To install JivoChat, please create a new account, or use your existing one','jivosite'); ?></p>
|
11 |
+
<p class="gray" style="margin-top: 0px;"><?php echo str_replace('%JIVO_URL%',JIVO_URL,__('If you need help, please chat with us on <a href="%JIVO_URL%">jivochat.com</a> or use <a href="%JIVO_URL%/support">our forum</a>','jivosite')); ?></p>
|
12 |
+
|
13 |
+
<div class="gray_form">
|
14 |
+
<form method="POST">
|
15 |
+
<table class="form-table">
|
16 |
+
<tbody>
|
17 |
+
<tr>
|
18 |
+
<th scope="row">
|
19 |
+
<label for="email"><?php _e('Your Email (login name)','jivosite'); ?></label>
|
20 |
+
</th>
|
21 |
+
<td class="input">
|
22 |
+
<input id="email" class="regular-text" type="text" value="" name="email" required>
|
23 |
+
</td>
|
24 |
+
<td class="gray"><div><?php _e('Please specify the email you will use to login to the agent’s app and admin panel. If you already have a JivoChat account, please enter the email address you use for it here.','jivosite'); ?></div></td>
|
25 |
+
</tr>
|
26 |
+
<tr>
|
27 |
+
<th scope="row">
|
28 |
+
<label for="userPassword"><?php _e('JivoChat Password','jivosite'); ?></label>
|
29 |
+
</th>
|
30 |
+
<td class="input">
|
31 |
+
<input id="userPassword" class="regular-text" type="password" value="" name="userPassword" required>
|
32 |
+
</td>
|
33 |
+
<td class="gray"><div><?php _e('Please create a new JivoChat account password. If you already have an account, please enter the password for it here.','jivosite'); ?></div></td>
|
34 |
+
</tr>
|
35 |
+
<tr>
|
36 |
+
<th scope="row">
|
37 |
+
<label for="userDisplayName"><?php _e('Agent Name','jivosite'); ?></label>
|
38 |
+
</th>
|
39 |
+
<td class="input">
|
40 |
+
<input id="userDisplayName" class="regular-text" type="text" value="" name="userDisplayName" required>
|
41 |
+
</td>
|
42 |
+
<td class="gray"><div><?php _e('The agent name that will be displayed to website visitors in the JivoChat chat window.','jivosite'); ?></div></td>
|
43 |
+
</tr>
|
44 |
+
<tr>
|
45 |
+
<td colspan="3"><input class="button button-primary" type="submit" value="<?php _e('Install JivoChat Now','jivosite'); ?>"></td>
|
46 |
+
</tr>
|
47 |
+
</tbody>
|
48 |
+
</table>
|
49 |
+
</form>
|
50 |
+
</div>
|
51 |
+
<?php }else{
|
52 |
+
?>
|
53 |
+
<div class="success">
|
54 |
+
<?php _e('Congratulations! You have successfully installed JivoChat on your website. Now you need to install the agent’s app on your computer and customize the chat window in the admin panel.','jivosite'); ?>
|
55 |
+
</div>
|
56 |
+
<div class="gray_form">
|
57 |
+
<h3>1. <?php _e('Install Agent’s App','jivosite'); ?></h3>
|
58 |
+
<a class="button button-primary" href="http://<?php _e('www.jivochat.com','jivosite'); ?>/apps" target="_blank"><?php _e('Install Agent’s App','jivosite'); ?></a>
|
59 |
+
<h3>2. <?php _e('Customize Settings and add Agents in the Admin Panel','jivosite'); ?></h3>
|
60 |
+
<p><?php _e('After you have installed the agent’s app, please login to the admin panel to add more agents’ accounts, customize the chat window settings and set up proactive invitations to get the most from your new live chat!','jivosite'); ?></p>
|
61 |
+
<a class="button button-primary" href='<?php if($this->token){ echo JIVO_INTEGRATION_URL.'/login?token='.$this->token.(JIVO_LANG!='ru'?"&lang=".JIVO_LANG:''); }else{echo JIVOSITE_URL;} ?>' target="_blank"><?php _e('Go to JivoChat Admin Panel','jivosite'); ?></a>
|
62 |
+
<p><a href="?<?php echo http_build_query($_GET) ?>&mode=reset"><?php _e('Reset account info','jivosite'); ?></a></p>
|
63 |
+
</div>
|
64 |
+
<p class="gray"><?php echo str_replace('%JIVO_URL%',JIVO_URL,__('If you need help, please chat with us on <a href="%JIVO_URL%">jivochat.com</a> or use <a href="%JIVO_URL%/support">our forum</a>','jivosite')); ?></p>
|
65 |
+
<?php } ?>
|
66 |
</div>
|
templates/script.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<script type='text/javascript'>
|
2 |
-
(function(){ var widget_id = '<?php echo $widget_id; ?>';
|
3 |
-
var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//<?php echo JIVOSITE_WIDGET_URL; ?>/script/widget/'+widget_id+'?plugin=wp'; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);})();
|
4 |
</script>
|
1 |
+
<script type='text/javascript'>
|
2 |
+
(function(){ var widget_id = '<?php echo $widget_id; ?>';
|
3 |
+
var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//<?php echo JIVOSITE_WIDGET_URL; ?>/script/widget/'+widget_id+'?plugin=wp'; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);})();
|
4 |
</script>
|