Zendesk Chat - Version 1.4.14

Version Description

  • Support chat phase 3 and phase 4 accounts
Download this release

Release Info

Developer zendesk_official
Plugin Icon 128x128 Zendesk Chat
Version 1.4.14
Comparing to
See all releases

Code changes from version 1.4.13 to 1.4.14

includes/class-admin.php CHANGED
@@ -77,9 +77,18 @@ class Zopim_Admin
77
  $login->do_login();
78
  }
79
 
80
- if ( get_option( Zopim_Options::ZOPIM_OPTION_CODE ) != '' && get_option( Zopim_Options::ZOPIM_OPTION_CODE ) != 'zopim' ) {
81
- $accountDetails = $this->zopim_get_account_details( get_option( Zopim_Options::ZOPIM_OPTION_SALT ) );
 
 
 
 
 
 
 
82
 
 
 
83
  if ( !isset( $accountDetails ) || isset( $accountDetails->error ) ) {
84
  $authError = '
85
  <div class="metabox-holder">
@@ -141,4 +150,28 @@ class Zopim_Admin
141
 
142
  return json_decode( $this->zopim_post_request( ZOPIM_GETACCOUNTDETAILS_URL, $salty ) );
143
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  }
77
  $login->do_login();
78
  }
79
 
80
+ $subdomain = get_option( Zopim_Options::ZENDESK_OPTION_SUBDOMAIN );
81
+
82
+ if ($subdomain) {
83
+ if ( isset( $_POST[ 'widget-options' ] ) ) {
84
+ $linkedView->update_widget_options();
85
+ }
86
+ $linkedView->display_linked_view_using_subdomain( $subdomain );
87
+ return;
88
+ }
89
 
90
+ if ( get_option( Zopim_Options::ZOPIM_OPTION_CODE ) != '' && get_option( Zopim_Options::ZOPIM_OPTION_CODE ) != 'zopim') {
91
+ $accountDetails = $this->zopim_get_account_details( get_option( Zopim_Options::ZOPIM_OPTION_SALT ) );
92
  if ( !isset( $accountDetails ) || isset( $accountDetails->error ) ) {
93
  $authError = '
94
  <div class="metabox-holder">
150
 
151
  return json_decode( $this->zopim_post_request( ZOPIM_GETACCOUNTDETAILS_URL, $salty ) );
152
  }
153
+
154
+ /**
155
+ * Authenticates with a zendesk subdomain
156
+ *
157
+ * @return array|mixed
158
+ */
159
+ public function zendesk_authenticate( $logindata )
160
+ {
161
+ $url = 'https://' . $logindata['subdomain'] . '.zendesk.com/chat/api/integration.json';
162
+ $credentials = base64_encode($logindata['email'] . ':' . $logindata['password']); // use basic auth
163
+
164
+ $response = wp_remote_get($url, array(
165
+ 'headers' => array(
166
+ 'authorization' => 'Basic ' . $credentials,
167
+ ),
168
+ ));
169
+
170
+ if ( is_wp_error( $response ) ) {
171
+ $error = array( 'wp_error' => $response->get_error_message() );
172
+ return json_encode( $error );
173
+ }
174
+
175
+ return $response;
176
+ }
177
  }
includes/class-linked-view.php CHANGED
@@ -48,6 +48,7 @@ class Zopim_Linked_View extends Zopim_Base_View
48
  } else {
49
  update_option( Zopim_Options::ZOPIM_OPTION_SALT, '' );
50
  update_option( Zopim_Options::ZOPIM_OPTION_CODE, 'zopim' );
 
51
  }
52
  }
53
 
@@ -64,6 +65,17 @@ class Zopim_Linked_View extends Zopim_Base_View
64
  $accountDetails->package_id .= $this->get_message( 'plan' );
65
  }
66
 
67
- Zopim_Template::load_template( 'linked-view', array_merge( array( 'messages' => $this->_messages ), (array)$accountDetails ) );
 
 
 
 
 
 
 
 
 
 
 
68
  }
69
  }
48
  } else {
49
  update_option( Zopim_Options::ZOPIM_OPTION_SALT, '' );
50
  update_option( Zopim_Options::ZOPIM_OPTION_CODE, 'zopim' );
51
+ update_option( Zopim_Options::ZENDESK_OPTION_SUBDOMAIN, '');
52
  }
53
  }
54
 
65
  $accountDetails->package_id .= $this->get_message( 'plan' );
66
  }
67
 
68
+ Zopim_Template::load_template( 'linked-view', array_merge( array( 'messages' => $this->_messages, 'dashboardLink' => ZOPIM_DASHBOARD_LINK ), (array)$accountDetails ) );
69
+ }
70
+
71
+ /**
72
+ * Renders the Zendesk Chat form with the dashboard link pointing to the subdomain
73
+ *
74
+ * @param string subdomain of the account
75
+ */
76
+ public function display_linked_view_using_subdomain( $subdomain )
77
+ {
78
+ $url = 'https://' . $subdomain . '.zendesk.com';
79
+ Zopim_Template::load_template( 'linked-view', array( 'messages' => $this->_messages, 'dashboardLink' => $url, 'package_id' => '' ) );
80
  }
81
  }
includes/class-login.php CHANGED
@@ -5,17 +5,18 @@ class Zopim_Login extends Zopim_Base_View {
5
  $this->_messages = array(
6
  'login-fail' => __( 'Could not log in to Zendesk Chat. Please check your login details.', 'zopim-live-chat' ),
7
  'wp-login-error' => __( 'Could not log in to Zendesk Chat. We were unable to contact Zendesk Chat servers. Please check with your server administrator to ensure that <a href="http://www.php.net/manual/en/book.curl.php">PHP Curl</a> is installed and permissions are set correctly',
8
- 'zopim-live-chat' ),
9
  'setup-your-account' => __( 'Set up your Zendesk Chat Account', 'zopim-live-chat' ),
10
  'congratulations' => __( 'Congratulations on successfully installing the Zendesk Chat WordPress plugin!',
11
- 'zopim-live-chat' ),
12
  'link-up-title' => __( 'Link up with your Zendesk Chat account', 'zopim-live-chat' ),
13
  'username' => __( 'Zendesk Chat Username (E-mail)', 'zopim-live-chat' ),
14
  'password' => __( 'Zendesk Chat Password', 'zopim-live-chat' ),
15
  'widget-display-notice' => __( 'The Zendesk Chat widget will display on your blog after your account is linked up.',
16
- 'zopim-live-chat' ),
17
  'link-up-button' => __( 'Link Up', 'zopim-live-chat' ),
18
  'sign-up-link' => __( 'Sign up now', 'zopim-live-chat' ),
 
19
  );
20
  }
21
 
@@ -30,14 +31,29 @@ class Zopim_Login extends Zopim_Base_View {
30
  if ( $_POST[ Zopim_Options::ZOPIM_OPTION_USERNAME ] != '' && $_POST['zopimPassword'] != '' ) {
31
 
32
  $logindata = array(
33
- 'email' => $_POST[ Zopim_Options::ZOPIM_OPTION_USERNAME ],
34
- 'password' => $_POST['zopimPassword']
 
35
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  $loginresult = json_decode( $admin->zopim_post_request( ZOPIM_LOGIN_URL, $logindata ) );
37
 
38
  if ( isset( $loginresult->error ) ) {
39
  $notices->add_notice( 'login_form', $this->get_message( 'login-fail' ), 'error' );
40
-
41
  update_option( Zopim_Options::ZOPIM_OPTION_SALT, 'wronglogin' );
42
  } else if ( isset( $loginresult->salt ) ) {
43
  update_option( Zopim_Options::ZOPIM_OPTION_USERNAME, $_POST[ Zopim_Options::ZOPIM_OPTION_USERNAME ] );
@@ -63,10 +79,11 @@ class Zopim_Login extends Zopim_Base_View {
63
  }
64
  }
65
  }
66
-
67
  /**
68
- *
69
- */
 
 
70
  public function display_login_form() {
71
  $notices = Zopim_Notices::get_instance();
72
  Zopim_Template::load_template( 'login-form', array( 'notices' => $notices, 'messages' => $this->_messages ) );
5
  $this->_messages = array(
6
  'login-fail' => __( 'Could not log in to Zendesk Chat. Please check your login details.', 'zopim-live-chat' ),
7
  'wp-login-error' => __( 'Could not log in to Zendesk Chat. We were unable to contact Zendesk Chat servers. Please check with your server administrator to ensure that <a href="http://www.php.net/manual/en/book.curl.php">PHP Curl</a> is installed and permissions are set correctly',
8
+ 'zopim-live-chat' ),
9
  'setup-your-account' => __( 'Set up your Zendesk Chat Account', 'zopim-live-chat' ),
10
  'congratulations' => __( 'Congratulations on successfully installing the Zendesk Chat WordPress plugin!',
11
+ 'zopim-live-chat' ),
12
  'link-up-title' => __( 'Link up with your Zendesk Chat account', 'zopim-live-chat' ),
13
  'username' => __( 'Zendesk Chat Username (E-mail)', 'zopim-live-chat' ),
14
  'password' => __( 'Zendesk Chat Password', 'zopim-live-chat' ),
15
  'widget-display-notice' => __( 'The Zendesk Chat widget will display on your blog after your account is linked up.',
16
+ 'zopim-live-chat' ),
17
  'link-up-button' => __( 'Link Up', 'zopim-live-chat' ),
18
  'sign-up-link' => __( 'Sign up now', 'zopim-live-chat' ),
19
+ 'subdomain' => __( 'Subdomain (For Zendesk Chat accounts with a subdomain)' ),
20
  );
21
  }
22
 
31
  if ( $_POST[ Zopim_Options::ZOPIM_OPTION_USERNAME ] != '' && $_POST['zopimPassword'] != '' ) {
32
 
33
  $logindata = array(
34
+ 'email' => htmlspecialchars($_POST[ Zopim_Options::ZOPIM_OPTION_USERNAME ]),
35
+ 'password' => htmlspecialchars($_POST['zopimPassword']),
36
+ 'subdomain' => htmlspecialchars($_POST[ Zopim_Options::ZENDESK_OPTION_SUBDOMAIN ]),
37
  );
38
+
39
+ if ($logindata['subdomain'] != '') { // User has subdomain so we'll try it authenticating it with zendesk chat api
40
+ $loginresult = $admin->zendesk_authenticate($logindata);
41
+
42
+ if ( $loginresult['response']['code'] >= 400 ) { //handle 4xx and 5xx errors
43
+ $notices->add_notice( 'login_form', $this->get_message( 'login-fail' ), 'error' );
44
+ update_option( Zopim_Options::ZOPIM_OPTION_SALT, 'wronglogin' );
45
+ return;
46
+ }
47
+ update_option( Zopim_Options::ZOPIM_OPTION_USERNAME, $logindata['email'] );
48
+ update_option( Zopim_Options::ZENDESK_OPTION_SUBDOMAIN, $logindata['subdomain'] );
49
+ update_option( Zopim_Options::ZOPIM_OPTION_SALT, 'loginsuccess' );
50
+
51
+ return;
52
+ }
53
  $loginresult = json_decode( $admin->zopim_post_request( ZOPIM_LOGIN_URL, $logindata ) );
54
 
55
  if ( isset( $loginresult->error ) ) {
56
  $notices->add_notice( 'login_form', $this->get_message( 'login-fail' ), 'error' );
 
57
  update_option( Zopim_Options::ZOPIM_OPTION_SALT, 'wronglogin' );
58
  } else if ( isset( $loginresult->salt ) ) {
59
  update_option( Zopim_Options::ZOPIM_OPTION_USERNAME, $_POST[ Zopim_Options::ZOPIM_OPTION_USERNAME ] );
79
  }
80
  }
81
  }
 
82
  /**
83
+ * Renders the login form
84
+ *
85
+ * @return void
86
+ */
87
  public function display_login_form() {
88
  $notices = Zopim_Notices::get_instance();
89
  Zopim_Template::load_template( 'login-form', array( 'notices' => $notices, 'messages' => $this->_messages ) );
includes/class-options.php CHANGED
@@ -6,6 +6,7 @@ class Zopim_Options
6
  const ZOPIM_OPTION_USERNAME = 'zopimUsername';
7
  const ZOPIM_OPTION_CODE = 'zopimCode';
8
  const ZOPIM_OPTION_WIDGET = 'zopimWidgetOptions';
 
9
 
10
  /**
11
  * Returns the addional widget options set on the plugin dashboard.
6
  const ZOPIM_OPTION_USERNAME = 'zopimUsername';
7
  const ZOPIM_OPTION_CODE = 'zopimCode';
8
  const ZOPIM_OPTION_WIDGET = 'zopimWidgetOptions';
9
+ const ZENDESK_OPTION_SUBDOMAIN = 'zendeskSubdomain';
10
 
11
  /**
12
  * Returns the addional widget options set on the plugin dashboard.
includes/class-widget.php CHANGED
@@ -5,6 +5,13 @@ class Zopim_Widget
5
  // We need some CSS to position the paragraph
6
  public static function zopimme()
7
  {
 
 
 
 
 
 
 
8
  $current_user = wp_get_current_user();
9
 
10
  $code = get_option( Zopim_Options::ZOPIM_OPTION_CODE );
@@ -14,26 +21,40 @@ class Zopim_Widget
14
  }
15
 
16
  echo "<!--Embed from Zendesk Chat Chat Wordpress Plugin v" . VERSION_NUMBER . "-->
17
- <!--Start of Zopim Live Chat Script-->
18
- <script type=\"text/javascript\">
19
- window.\$zopim||(function(d,s){var z=\$zopim=function(c){z._.push(c)},$=z.s=
20
- d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
21
- _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');
22
- $.src='//v2.zopim.com/?" . $code . "';z.t=+new Date;$.
23
- type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
24
- </script>";
25
-
26
- echo '<script>';
27
- if ( isset( $current_user ) ):
28
- $firstname = $current_user->display_name;
29
- $useremail = $current_user->user_email;
30
- if ( $firstname != "" && $useremail != "" ):
31
- echo "\$zopim(function(){\$zopim.livechat.set({name: '$firstname', email: '$useremail'}); });";
 
32
  endif;
33
- endif;
34
 
35
- echo Zopim_Options::get_widget_options();
36
- echo '</script>';
37
- echo "<!--End of Zendesk Chat Script-->";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }
39
- }
5
  // We need some CSS to position the paragraph
6
  public static function zopimme()
7
  {
8
+ $subdomain = get_option( Zopim_Options::ZENDESK_OPTION_SUBDOMAIN );
9
+
10
+ if ($subdomain) {
11
+ echo Zopim_Widget::get_widget_code_using_subdomain($subdomain);
12
+ return;
13
+ }
14
+
15
  $current_user = wp_get_current_user();
16
 
17
  $code = get_option( Zopim_Options::ZOPIM_OPTION_CODE );
21
  }
22
 
23
  echo "<!--Embed from Zendesk Chat Chat Wordpress Plugin v" . VERSION_NUMBER . "-->
24
+ <!--Start of Zopim Live Chat Script-->
25
+ <script type=\"text/javascript\">
26
+ window.\$zopim||(function(d,s){var z=\$zopim=function(c){z._.push(c)},$=z.s=
27
+ d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
28
+ _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');
29
+ $.src='//v2.zopim.com/?" . $code . "';z.t=+new Date;$.
30
+ type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
31
+ </script>";
32
+
33
+ echo '<script>';
34
+ if ( isset( $current_user ) ):
35
+ $firstname = $current_user->display_name;
36
+ $useremail = $current_user->user_email;
37
+ if ( $firstname != "" && $useremail != "" ):
38
+ echo "\$zopim(function(){\$zopim.livechat.set({name: '$firstname', email: '$useremail'}); });";
39
+ endif;
40
  endif;
 
41
 
42
+ echo Zopim_Options::get_widget_options();
43
+ echo '</script>';
44
+ echo "<!--End of Zendesk Chat Script-->";
45
+ }
46
+
47
+ public static function get_widget_code_using_subdomain( $subdomain )
48
+ {
49
+ $url = "https://ekr.zdassets.com/snippets/web_widget/" . $subdomain .".zendesk.com?dynamic_snippet=true";
50
+ $response = wp_remote_get($url, array());
51
+
52
+
53
+ if ( is_wp_error( $response ) ) {
54
+ $error = array( 'wp_error' => $response->get_error_message() );
55
+ return json_encode( $error );
56
+ }
57
+
58
+ return $response['body'];
59
+ }
60
  }
 
includes/views/linked-view.php CHANGED
@@ -14,11 +14,13 @@
14
  <?php echo $messages[ 'current-account-label' ] ?> &rarr;
15
  <b><?php echo get_option( Zopim_Options::ZOPIM_OPTION_USERNAME ); ?></b>
16
 
17
- <div class="zopim-package-title"><?php echo ucwords( $package_id ); ?></div>
 
 
18
 
19
  <br><br><?php echo $messages[ 'dashboard-access-label' ]; ?>
20
  <br><br>
21
- <a class="no-underline" href="<?php echo ZOPIM_DASHBOARD_LINK ?>"
22
  target="_blank"
23
  data-popup="true">
24
  <div class="zopim_btn_orange"><?php echo $messages[ 'launch-dashboard' ]; ?></div>
@@ -42,4 +44,3 @@
42
  </form>
43
 
44
  </div>
45
-
14
  <?php echo $messages[ 'current-account-label' ] ?> &rarr;
15
  <b><?php echo get_option( Zopim_Options::ZOPIM_OPTION_USERNAME ); ?></b>
16
 
17
+ <?php if ( $package_id != '' ) { ?>
18
+ <div class="zopim-package-title"><?php echo ucwords( $package_id ); ?></div>
19
+ <?php }?>
20
 
21
  <br><br><?php echo $messages[ 'dashboard-access-label' ]; ?>
22
  <br><br>
23
+ <a class="no-underline" href="<?php echo $dashboardLink ?>"
24
  target="_blank"
25
  data-popup="true">
26
  <div class="zopim_btn_orange"><?php echo $messages[ 'launch-dashboard' ]; ?></div>
44
  </form>
45
 
46
  </div>
 
includes/views/login-form.php CHANGED
@@ -31,7 +31,10 @@ $notices->do_notices( 'before_login' );
31
  <th scope="row"><?php echo $messages[ 'password' ]; ?></th>
32
  <td><input type="password" name="zopimPassword" value=""/></td>
33
  </tr>
34
-
 
 
 
35
  </table>
36
  <br/>
37
  <?php echo $messages[ 'widget-display-notice' ]; ?>
@@ -39,10 +42,10 @@ $notices->do_notices( 'before_login' );
39
 
40
  <p class="submit">
41
  <input id="linkup" type="submit" onclick="animateButton()" class="button-primary"
42
- value="<?php echo $messages[ 'link-up-button' ] ?>"/>
43
  &nbsp;<?php _e( 'Don\'t have a Zendesk Chat account?', 'zopim-live-chat' ); ?> <a
44
- href="<?php echo ZOPIM_SIGNUP_REDIRECT_URL; ?>" target="_blank"
45
- data-popup="true"><?php echo $messages[ 'sign-up-link' ]; ?></a>.
46
  </p>
47
 
48
  </form>
31
  <th scope="row"><?php echo $messages[ 'password' ]; ?></th>
32
  <td><input type="password" name="zopimPassword" value=""/></td>
33
  </tr>
34
+ <tr valign="top">
35
+ <th scope="row"><?php echo $messages[ 'subdomain' ]?></th>
36
+ <td><input type="text" name="<?php echo Zopim_Options::ZENDESK_OPTION_SUBDOMAIN ?>"/></td>
37
+ </tr>
38
  </table>
39
  <br/>
40
  <?php echo $messages[ 'widget-display-notice' ]; ?>
42
 
43
  <p class="submit">
44
  <input id="linkup" type="submit" onclick="animateButton()" class="button-primary"
45
+ value="<?php echo $messages[ 'link-up-button' ] ?>"/>
46
  &nbsp;<?php _e( 'Don\'t have a Zendesk Chat account?', 'zopim-live-chat' ); ?> <a
47
+ href="<?php echo ZOPIM_SIGNUP_REDIRECT_URL; ?>" target="_blank"
48
+ data-popup="true"><?php echo $messages[ 'sign-up-link' ]; ?></a>.
49
  </p>
50
 
51
  </form>
languages/zopim.pot CHANGED
@@ -104,6 +104,10 @@ msgstr ""
104
  msgid "Sign up now"
105
  msgstr ""
106
 
 
 
 
 
107
  #: includes/views/login-form.php:43
108
  msgid "Don't have a Zendesk Chat account?"
109
  msgstr ""
104
  msgid "Sign up now"
105
  msgstr ""
106
 
107
+ #: includes/class-login.php:19
108
+ msgid "Subdomain (For Zendesk Chat accounts with a subdomain)"
109
+ msgstr ""
110
+
111
  #: includes/views/login-form.php:43
112
  msgid "Don't have a Zendesk Chat account?"
113
  msgstr ""
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: zendesk_official
3
  Tags: chat, chat online, contact plugin, contact us, customer support, free chat, chat software, IM chat, live chat, live chat inc, live chat services, live chat software, live chatting, live help, live support, live web chat, livechat, live help, live support, olark, online chat, online support, php live chat, snapengage, support software, website chat, wordpress chat, wordpress live chat, wordpress live chat plugin, Zopim, zendesk, Zopim live chat, banckle, clickdesk, click desk
4
  Requires at least: 3.1
5
  Tested up to: 4.7
6
- Stable tag: 1.4.13
7
 
8
  Zendesk Chat (previously Zopim) lets you monitor and chat with visitors surfing your store in real-time. Impress them personally and ease them into their purchase.
9
 
@@ -49,6 +49,9 @@ What are you waiting for? Download Zendesk Chat plugin now and <a href="https://
49
 
50
  == Changelog ==
51
 
 
 
 
52
  = 1.4.13 =
53
  * Updated copy to reflect chat phase 4 limitations
54
 
@@ -298,9 +301,9 @@ You can easily do so by upgrading to a better plan. To find out more about the p
298
 
299
  Dont worry!! We are happy to assist! Just come on down to our site at https://www.zendesk.com/chat or leave an email for us at chat@zendesk.com and we will help you with installation.
300
 
301
- = Wordpress Integration for Chat standalone isn't working! =
302
 
303
- The Wordpress integration for Chat standalone will not work with Chat Phase 4, released on 24 October. However, it will continue to work for Legacy Zendesk Chat and Chat Phase 3 standalone users, and users can continue to embed the widget code into their Wordpress website. The Wordpress integration for Chat standalone will be made available for Chat Phase 4 users in near future.
304
 
305
  == Usage ==
306
 
3
  Tags: chat, chat online, contact plugin, contact us, customer support, free chat, chat software, IM chat, live chat, live chat inc, live chat services, live chat software, live chatting, live help, live support, live web chat, livechat, live help, live support, olark, online chat, online support, php live chat, snapengage, support software, website chat, wordpress chat, wordpress live chat, wordpress live chat plugin, Zopim, zendesk, Zopim live chat, banckle, clickdesk, click desk
4
  Requires at least: 3.1
5
  Tested up to: 4.7
6
+ Stable tag: 1.4.14
7
 
8
  Zendesk Chat (previously Zopim) lets you monitor and chat with visitors surfing your store in real-time. Impress them personally and ease them into their purchase.
9
 
49
 
50
  == Changelog ==
51
 
52
+ = 1.4.14 =
53
+ * Support chat phase 3 and phase 4 accounts
54
+
55
  = 1.4.13 =
56
  * Updated copy to reflect chat phase 4 limitations
57
 
301
 
302
  Dont worry!! We are happy to assist! Just come on down to our site at https://www.zendesk.com/chat or leave an email for us at chat@zendesk.com and we will help you with installation.
303
 
304
+ = Wordpress Integration for Chat accounts =
305
 
306
+ The integration supports chat phase 4, 3 and 1 accounts. If you have a zendesk subdomain, please provide your subdomain as you are either chat phase 3 or 4 customer. If you don’t have a subdomain, leave the subdomain field as blank as you are chat phase 1 customer.
307
 
308
  == Usage ==
309
 
zopim.php CHANGED
@@ -4,22 +4,19 @@
4
  Plugin Name: Zendesk Chat Widget
5
  Plugin URI: http://www.zendesk.com/chat?iref=wp_plugin
6
  Description: Zendesk Chat is an award winning chat solution that helps website owners to engage their visitors and convert customers into fans!
7
- Author: Zendesk
8
- Version: 1.4.13
9
  Author URI: http://www.zendesk.com/chat?iref=wp_plugin
10
  Text Domain: zopim
11
  Domain path: /language
12
  */
13
 
14
- define( 'VERSION_NUMBER', "1.4.13" );
15
  define( 'ZOPIM_BASE_URL', "https://www.zopim.com/" );
16
  define( 'ZOPIM_ACCOUNT_URL', "https://account.zopim.com/" );
17
  define( 'ZOPIM_SIGNUP_REDIRECT_URL', ZOPIM_ACCOUNT_URL . "?aref=MjUxMjY4:1TeORR:9SP1e-iPTuAVXROJA6UU5seC8x4&visit_id=6ffe00ec3cfc11e2b5ab22000a1db8fa&utm_source=account%2Bsetup%2Bpage&utm_medium=link&utm_campaign=wp%2Bsignup2#signup" );
18
  define( 'ZOPIM_GETACCOUNTDETAILS_URL', ZOPIM_BASE_URL . "plugins/getAccountDetails" );
19
- define( 'ZOPIM_SETDISPLAYNAME_URL', ZOPIM_BASE_URL . "plugins/setDisplayName" );
20
- define( 'ZOPIM_SETEDITOR_URL', ZOPIM_BASE_URL . "plugins/setEditor" );
21
  define( 'ZOPIM_LOGIN_URL', ZOPIM_BASE_URL . "plugins/login" );
22
- define( 'ZOPIM_SIGNUP_URL', ZOPIM_BASE_URL . "plugins/createTrialAccount" );
23
  define( 'ZOPIM_DASHBOARD_LINK', "https://dashboard.zopim.com/?utm_source=wp&utm_medium=link&utm_campaign=wp%2Bdashboard" );
24
  define( 'ZOPIM_SMALL_LOGO', "https://dashboard.zopim.com/assets/branding/zopim.com/chatman/online.png" );
25
  define( 'ZOPIM_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
4
  Plugin Name: Zendesk Chat Widget
5
  Plugin URI: http://www.zendesk.com/chat?iref=wp_plugin
6
  Description: Zendesk Chat is an award winning chat solution that helps website owners to engage their visitors and convert customers into fans!
7
+ Author: Zendesk
8
+ Version: 1.4.14
9
  Author URI: http://www.zendesk.com/chat?iref=wp_plugin
10
  Text Domain: zopim
11
  Domain path: /language
12
  */
13
 
14
+ define( 'VERSION_NUMBER', "1.4.14" );
15
  define( 'ZOPIM_BASE_URL', "https://www.zopim.com/" );
16
  define( 'ZOPIM_ACCOUNT_URL', "https://account.zopim.com/" );
17
  define( 'ZOPIM_SIGNUP_REDIRECT_URL', ZOPIM_ACCOUNT_URL . "?aref=MjUxMjY4:1TeORR:9SP1e-iPTuAVXROJA6UU5seC8x4&visit_id=6ffe00ec3cfc11e2b5ab22000a1db8fa&utm_source=account%2Bsetup%2Bpage&utm_medium=link&utm_campaign=wp%2Bsignup2#signup" );
18
  define( 'ZOPIM_GETACCOUNTDETAILS_URL', ZOPIM_BASE_URL . "plugins/getAccountDetails" );
 
 
19
  define( 'ZOPIM_LOGIN_URL', ZOPIM_BASE_URL . "plugins/login" );
 
20
  define( 'ZOPIM_DASHBOARD_LINK', "https://dashboard.zopim.com/?utm_source=wp&utm_medium=link&utm_campaign=wp%2Bdashboard" );
21
  define( 'ZOPIM_SMALL_LOGO', "https://dashboard.zopim.com/assets/branding/zopim.com/chatman/online.png" );
22
  define( 'ZOPIM_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );