Zendesk Chat - Version 1.3.2

Version Description

  • Refactored css loading to accommodate older PHP versions
  • Included css file
Download this release

Release Info

Developer bencxr
Plugin Icon 128x128 Zendesk Chat
Version 1.3.2
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.2

Files changed (4) hide show
  1. accountconfig.php +0 -21
  2. readme.txt +5 -1
  3. zopim.css +17 -0
  4. zopim.php +8 -2
accountconfig.php CHANGED
@@ -1,24 +1,3 @@
1
- <?php add_action('admin_print_styles', function() { ?>
2
- <style type="text/css">
3
- .zopim_btn_orange {
4
- display: inline-block;
5
- width: 150px;
6
- padding: 10px 0px;
7
- background: #F38313;
8
- color: #fff;
9
- border-radius: 5px;
10
- font-weight: 700;
11
- font-style: normal;
12
- font-size: 14px;
13
- border: none;
14
- text-shadow: 0px -1px 1px rgba(0, 0, 0, 0.2);
15
- text-decoration: none;
16
- text-align: center;
17
- border: 1px solid #E37A13;
18
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
19
- }
20
- </style>
21
- <?php }); ?>
22
  <?php
23
  // Settings page in the admin panel
24
  function zopim_account_config() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
  // Settings page in the admin panel
3
  function zopim_account_config() {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: bencxr
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: 3.8.1
6
- Stable tag: 1.3.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,6 +48,10 @@ 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.3.1 =
52
  * Added admin_print_styles to custom css
53
  * Changed button css name to a non-generic name
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: 3.8.1
6
+ Stable tag: 1.3.2
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.3.2 =
52
+ * Refactored css loading to accommodate older PHP versions
53
+ * Included css file
54
+
55
  = 1.3.1 =
56
  * Added admin_print_styles to custom css
57
  * Changed button css name to a non-generic name
zopim.css ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .zopim_btn_orange {
2
+ display: inline-block;
3
+ width: 150px;
4
+ padding: 10px 0px;
5
+ background: #F38313;
6
+ color: #fff;
7
+ border-radius: 5px;
8
+ font-weight: 700;
9
+ font-style: normal;
10
+ font-size: 14px;
11
+ border: none;
12
+ text-shadow: 0px -1px 1px rgba(0, 0, 0, 0.2);
13
+ text-decoration: none;
14
+ text-align: center;
15
+ border: 1px solid #E37A13;
16
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
17
+ }
zopim.php CHANGED
@@ -5,7 +5,7 @@ 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.3.1
9
  Author URI: http://www.zopim.com/?iref=wp_plugin
10
  */
11
 
@@ -22,14 +22,20 @@ define('ZOPIM_SMALL_LOGO', "http://zopim.com/assets/branding/zopim.co
22
 
23
  require_once dirname( __FILE__ ) . '/accountconfig.php';
24
 
 
 
 
 
 
 
25
  function add_zopim_caps() {
26
  $role = get_role( 'administrator' );
27
  $role->add_cap( 'access_zopim' );
28
  }
29
 
 
30
  add_action( 'admin_init', 'add_zopim_caps');
31
 
32
-
33
  // We need some CSS to position the paragraph
34
  function zopimme() {
35
  global $current_user, $zopimshown;
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.3.2
9
  Author URI: http://www.zopim.com/?iref=wp_plugin
10
  */
11
 
22
 
23
  require_once dirname( __FILE__ ) . '/accountconfig.php';
24
 
25
+
26
+ function load_zopim_style() {
27
+ wp_register_style('zopim_style', plugins_url('zopim.css', __FILE__));
28
+ wp_enqueue_style('zopim_style');
29
+ }
30
+
31
  function add_zopim_caps() {
32
  $role = get_role( 'administrator' );
33
  $role->add_cap( 'access_zopim' );
34
  }
35
 
36
+ add_action('admin_enqueue_scripts', 'load_zopim_style');
37
  add_action( 'admin_init', 'add_zopim_caps');
38
 
 
39
  // We need some CSS to position the paragraph
40
  function zopimme() {
41
  global $current_user, $zopimshown;