Zendesk Chat - Version 1.4.1

Version Description

  • Update the text domain for translate.wordpress.com compatibility
Download this release

Release Info

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

Code changes from version 1.4.0 to 1.4.1

includes/class-admin.php CHANGED
@@ -36,7 +36,7 @@ class Zopim_Admin
36
  public function zopim_create_menu()
37
  {
38
  //create new top-level menu
39
- add_menu_page( __( 'Account Configuration', 'zopim' ), __( 'Zopim Chat', 'zopim' ), 'access_zopim', 'zopim_account_config', array( &$this, 'zopim_account_config' ), ZOPIM_SMALL_LOGO );
40
  }
41
 
42
 
@@ -84,9 +84,9 @@ class Zopim_Admin
84
  $authError = '
85
  <div class="metabox-holder">
86
  <div class="postbox">
87
- <h3 class="hndle"><span>' . __( 'Account no longer linked!', 'zopim' ) . '</span></h3>
88
  <div class="zopim-auth-error-message">' .
89
- __( 'We could not verify your Zopim account. Please check your password and try again.', 'zopim' )
90
  . '</div>
91
  </div>
92
  </div>';
@@ -116,7 +116,10 @@ class Zopim_Admin
116
  */
117
  public function zopim_post_request( $url, $_data )
118
  {
119
- $args = array( 'body' => $_data );
 
 
 
120
  $response = wp_remote_post( $url, $args );
121
  if ( is_wp_error( $response ) ) {
122
  $error = array( 'wp_error' => $response->get_error_message() );
36
  public function zopim_create_menu()
37
  {
38
  //create new top-level menu
39
+ add_menu_page( __( 'Account Configuration', 'zopim-live-chat' ), __( 'Zopim Chat', 'zopim-live-chat' ), 'access_zopim', 'zopim_account_config', array( &$this, 'zopim_account_config' ), ZOPIM_SMALL_LOGO );
40
  }
41
 
42
 
84
  $authError = '
85
  <div class="metabox-holder">
86
  <div class="postbox">
87
+ <h3 class="hndle"><span>' . __( 'Account no longer linked!', 'zopim-live-chat' ) . '</span></h3>
88
  <div class="zopim-auth-error-message">' .
89
+ __( 'We could not verify your Zopim account. Please check your password and try again.', 'zopim-live-chat' )
90
  . '</div>
91
  </div>
92
  </div>';
116
  */
117
  public function zopim_post_request( $url, $_data )
118
  {
119
+ $args = array(
120
+ 'body' => $_data,
121
+ 'user-agent' => ZOPIM_USER_AGENT,
122
+ );
123
  $response = wp_remote_post( $url, $args );
124
  if ( is_wp_error( $response ) ) {
125
  $error = array( 'wp_error' => $response->get_error_message() );
includes/class-linked-view.php CHANGED
@@ -5,16 +5,16 @@ class Zopim_Linked_View extends Zopim_Base_View
5
  protected function set_messages()
6
  {
7
  $this->_messages = array(
8
- 'options-updated' => __( 'Widget options updated.', 'zopim' ),
9
- 'trial' => __( 'Trial Plan with 14 Days Full-features', 'zopim' ),
10
- 'plan' => __( ' Plan', 'zopim' ),
11
- 'deactivate' => __( 'Deactivate', 'zopim' ),
12
- 'current-account-label' => __( 'Currently Activated Account', 'zopim' ),
13
- 'dashboard-access-label' => __( 'To start using Zopim chat, launch our dashboard for access to all features, including widget customization!', 'zopim' ),
14
- 'launch-dashboard' => __( 'Launch Dashboard', 'zopim' ),
15
- 'open-tab-label' => __( 'This will open up a new browser tab', 'zopim' ),
16
- 'textarea-label' => __( 'Optional code for customization with Zopim API:', 'zopim' ),
17
- 'page-header' => __( 'Set up your Zopim Account', 'zopim' ),
18
  );
19
  }
20
 
5
  protected function set_messages()
6
  {
7
  $this->_messages = array(
8
+ 'options-updated' => __( 'Widget options updated.', 'zopim-live-chat' ),
9
+ 'trial' => __( 'Trial Plan with 14 Days Full-features', 'zopim-live-chat' ),
10
+ 'plan' => __( ' Plan', 'zopim-live-chat' ),
11
+ 'deactivate' => __( 'Deactivate', 'zopim-live-chat' ),
12
+ 'current-account-label' => __( 'Currently Activated Account', 'zopim-live-chat' ),
13
+ 'dashboard-access-label' => __( 'To start using Zopim chat, launch our dashboard for access to all features, including widget customization!', 'zopim-live-chat' ),
14
+ 'launch-dashboard' => __( 'Launch Dashboard', 'zopim-live-chat' ),
15
+ 'open-tab-label' => __( 'This will open up a new browser tab', 'zopim-live-chat' ),
16
+ 'textarea-label' => __( 'Optional code for customization with Zopim API:', 'zopim-live-chat' ),
17
+ 'page-header' => __( 'Set up your Zopim Account', 'zopim-live-chat' ),
18
  );
19
  }
20
 
includes/class-login.php CHANGED
@@ -3,19 +3,19 @@
3
  class Zopim_Login extends Zopim_Base_View {
4
  protected function set_messages() {
5
  $this->_messages = array(
6
- 'login-fail' => __( 'Could not log in to Zopim. Please check your login details.', 'zopim' ),
7
  'wp-login-error' => __( 'Could not log in to Zopim. We were unable to contact Zopim 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' ),
9
- 'setup-your-account' => __( 'Set up your Zopim Account', 'zopim' ),
10
  'congratulations' => __( 'Congratulations on successfully installing the Zopim WordPress plugin!',
11
- 'zopim' ),
12
- 'link-up-title' => __( 'Link up with your Zopim account', 'zopim' ),
13
- 'username' => __( 'Zopim Username (E-mail)', 'zopim' ),
14
- 'password' => __( 'Zopim Password', 'zopim' ),
15
  'widget-display-notice' => __( 'The Zopim chat widget will display on your blog after your account is linked up.',
16
- 'zopim' ),
17
- 'link-up-button' => __( 'Link Up', 'zopim' ),
18
- 'sign-up-link' => __( 'Sign up now', 'zopim' ),
19
  );
20
  }
21
 
3
  class Zopim_Login extends Zopim_Base_View {
4
  protected function set_messages() {
5
  $this->_messages = array(
6
+ 'login-fail' => __( 'Could not log in to Zopim. Please check your login details.', 'zopim-live-chat' ),
7
  'wp-login-error' => __( 'Could not log in to Zopim. We were unable to contact Zopim 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 Zopim Account', 'zopim-live-chat' ),
10
  'congratulations' => __( 'Congratulations on successfully installing the Zopim WordPress plugin!',
11
+ 'zopim-live-chat' ),
12
+ 'link-up-title' => __( 'Link up with your Zopim account', 'zopim-live-chat' ),
13
+ 'username' => __( 'Zopim Username (E-mail)', 'zopim-live-chat' ),
14
+ 'password' => __( 'Zopim Password', 'zopim-live-chat' ),
15
  'widget-display-notice' => __( 'The Zopim 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
 
includes/views/login-form.php CHANGED
@@ -40,7 +40,7 @@ $notices->do_notices( 'before_login' );
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 Zopim account?', 'zopim' ); ?> <a
44
  href="<?php echo ZOPIM_SIGNUP_REDIRECT_URL; ?>" target="_blank"
45
  data-popup="true"><?php echo $messages[ 'sign-up-link' ]; ?></a>.
46
  </p>
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 Zopim 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>
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.1.1
6
- Stable tag: 1.4.0
7
 
8
  Zopim lets you monitor and chat with visitors surfing your store in real-time. Impress them personally and ease them into their purchase.
9
 
@@ -48,6 +48,9 @@ What are you waiting for? Download Zopim Live Chat plugin now and <a href="https
48
  * Arabic | Bulgarian | Chinese | Croatian | Czech | Danish | Dutch; Flemish | Estonian | Faroese | Finnish | French | Georgian | German | Greek | Hebrew | Hungarian | Icelandic | Indonesian | Italian | Japanese | Korean | Kurdish | Latvian | Lithuanian | Macedonian | Malay | Norwegian Bokmal | Persian | Polish | Portuguese | Romanian | Russian | Serbian | Slovak | Slovenian | Spanish; Castilian | Swedish | Thai | Turkish | Ukranian | Urdu | Vietnamese
49
 
50
  == Changelog ==
 
 
 
51
  = 1.4.0 =
52
  * Security patch
53
 
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.1.1
6
+ Stable tag: 1.4.1
7
 
8
  Zopim lets you monitor and chat with visitors surfing your store in real-time. Impress them personally and ease them into their purchase.
9
 
48
  * Arabic | Bulgarian | Chinese | Croatian | Czech | Danish | Dutch; Flemish | Estonian | Faroese | Finnish | French | Georgian | German | Greek | Hebrew | Hungarian | Icelandic | Indonesian | Italian | Japanese | Korean | Kurdish | Latvian | Lithuanian | Macedonian | Malay | Norwegian Bokmal | Persian | Polish | Portuguese | Romanian | Russian | Serbian | Slovak | Slovenian | Spanish; Castilian | Swedish | Thai | Turkish | Ukranian | Urdu | Vietnamese
49
 
50
  == Changelog ==
51
+ = 1.4.1 =
52
+ * Update the text domain for translate.wordpress.com compatibility
53
+
54
  = 1.4.0 =
55
  * Security patch
56
 
zopim.php CHANGED
@@ -5,13 +5,13 @@ Plugin Name: Zopim Widget
5
  Plugin URI: http://www.zopim.com/?iref=wp_plugin
6
  Description: Zopim is an award winning chat solution that helps website owners to engage their visitors and convert customers into fans!
7
  Author: Zopim
8
- Version: 1.4.0
9
  Author URI: http://www.zopim.com/?iref=wp_plugin
10
  Text Domain: zopim
11
  Domain path: /language
12
  */
13
 
14
- define( 'VERSION_NUMBER', "1.4.0" );
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" );
@@ -23,6 +23,7 @@ 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__ ) );
 
26
 
27
  require_once( 'includes/compatibility.php' );
28
 
@@ -87,7 +88,7 @@ class Zopim
87
  public function load_textdomain()
88
  {
89
  // Load plugin text domain
90
- load_plugin_textdomain( 'zopim', FALSE, basename( dirname( __FILE__ ) ) . '/languages' );
91
  }
92
 
93
  }
5
  Plugin URI: http://www.zopim.com/?iref=wp_plugin
6
  Description: Zopim is an award winning chat solution that helps website owners to engage their visitors and convert customers into fans!
7
  Author: Zopim
8
+ Version: 1.4.1
9
  Author URI: http://www.zopim.com/?iref=wp_plugin
10
  Text Domain: zopim
11
  Domain path: /language
12
  */
13
 
14
+ define( 'VERSION_NUMBER', "1.4.1" );
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" );
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__ ) );
26
+ define( 'ZOPIM_USER_AGENT', 'Zopim Wordpress Plugin' );
27
 
28
  require_once( 'includes/compatibility.php' );
29
 
88
  public function load_textdomain()
89
  {
90
  // Load plugin text domain
91
+ load_plugin_textdomain( 'zopim-live-chat', FALSE, basename( dirname( __FILE__ ) ) . '/languages' );
92
  }
93
 
94
  }