WP Social Bookmarking Light - Version 1.6.3

Version Description

  • Bug fixed: The style was broken on some themes.
Download this release

Release Info

Developer utahvich
Plugin Icon wp plugin WP Social Bookmarking Light
Version 1.6.3
Comparing to
See all releases

Code changes from version 1.6.2 to 1.6.3

po/wp-social-bookmarking-light-ja.mo CHANGED
Binary file
po/wp-social-bookmarking-light-ja.po CHANGED
@@ -2,134 +2,195 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: wp-social-bookmarking-light\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-06-05 22:34+0900\n"
6
- "PO-Revision-Date: 2010-06-05 22:44+0900\n"
7
- "Last-Translator: utah <labs.ninxit@gmail.com>\n"
8
- "Language-Team: utahvich <labs.ninxit@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-KeywordsList: __;_e\n"
13
- "X-Poedit-Basepath: /Users/utah/work/repos/\n"
14
  "X-Poedit-Language: Japanese\n"
15
  "X-Poedit-Country: JAPAN\n"
16
- "X-Poedit-SearchPath-0: wp-social-bookmarking-light\n"
17
 
18
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:79
 
19
  msgid "Bookmark this on Hatena Bookmark"
20
  msgstr "このエントリーをはてなブックマークに追加"
21
 
22
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:86
23
  #, php-format
24
  msgid "Hatena Bookmark - %s"
25
  msgstr "はてなブックマーク - %s"
26
 
27
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:97
28
  msgid "Post to Twitter"
29
  msgstr ""
30
 
31
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:104
32
  #, php-format
33
  msgid "Tweets - %s"
34
  msgstr ""
35
 
36
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:127
37
  msgid "Bookmark this on Livedoor Clip"
38
  msgstr ""
39
 
40
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:134
41
  #, php-format
42
  msgid "Livedoor Clip - %s"
43
  msgstr ""
44
 
45
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:145
46
  msgid "Bookmark this on Yahoo Bookmark"
47
  msgstr ""
48
 
49
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:160
 
 
 
 
50
  msgid "Bookmark this on BuzzURL"
51
  msgstr ""
52
 
53
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:167
54
  #, php-format
55
  msgid "BuzzURL - %s"
56
  msgstr ""
57
 
58
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:178
59
  msgid "Bookmark this on @nifty clip"
60
  msgstr ""
61
 
62
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:185
63
  #, php-format
64
  msgid "@nifty clip - %s"
65
  msgstr ""
66
 
67
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:196
68
  msgid "Share on Tumblr"
69
  msgstr ""
70
 
71
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:207
72
  msgid "Bookmark this on FC2 Bookmark"
73
  msgstr ""
74
 
75
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:214
76
  #, php-format
77
  msgid "FC2 Bookmark - %s"
78
  msgstr ""
79
 
80
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:225
81
  msgid "Newsing it!"
82
  msgstr ""
83
 
84
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:236
85
  msgid "Choix it!"
86
  msgstr ""
87
 
88
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:247
89
  msgid "Bookmark this on Google Bookmarks"
90
  msgstr ""
91
 
92
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:258
93
  msgid "Post to Google Buzz"
94
  msgstr ""
95
 
96
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:269
97
  msgid "Bookmark this on Delicious"
98
  msgstr ""
99
 
100
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:280
101
  msgid "Bookmark this on Digg"
102
  msgstr ""
103
 
104
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:291
105
  msgid "Share on FriendFeed"
106
  msgstr ""
107
 
108
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:302
109
  msgid "Share on Facebook"
110
  msgstr ""
111
 
112
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:389
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  msgid "Options saved."
114
  msgstr ""
115
 
116
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:394
117
  msgid "Reset options."
118
  msgstr ""
119
 
120
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:451
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  msgid "Save Changes"
122
  msgstr ""
123
 
124
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:452
125
  msgid "Reset"
126
  msgstr ""
127
 
128
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:457
129
  msgid "Service Code"
130
- msgstr ""
131
 
132
- #: wp-social-bookmarking-light/wp-social-bookmarking-light.php:457
133
  msgid "Explain"
134
- msgstr ""
135
 
2
  msgstr ""
3
  "Project-Id-Version: wp-social-bookmarking-light\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-12-23 17:23+0900\n"
6
+ "PO-Revision-Date: 2010-12-23 17:51+0900\n"
7
+ "Last-Translator: utahta <labs.ninxit@gmail.com>\n"
8
+ "Language-Team: utahta <labs.ninxit@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: \\\\172.16.61.128\\utahta\\repos\\\n"
14
  "X-Poedit-Language: Japanese\n"
15
  "X-Poedit-Country: JAPAN\n"
16
+ "X-Poedit-SearchPath-0: wp-social-bookmarking-light\\trunk\n"
17
 
18
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:80
19
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:96
20
  msgid "Bookmark this on Hatena Bookmark"
21
  msgstr "このエントリーをはてなブックマークに追加"
22
 
23
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:87
24
  #, php-format
25
  msgid "Hatena Bookmark - %s"
26
  msgstr "はてなブックマーク - %s"
27
 
28
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:113
29
  msgid "Post to Twitter"
30
  msgstr ""
31
 
32
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:120
33
  #, php-format
34
  msgid "Tweets - %s"
35
  msgstr ""
36
 
37
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:162
38
  msgid "Bookmark this on Livedoor Clip"
39
  msgstr ""
40
 
41
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:169
42
  #, php-format
43
  msgid "Livedoor Clip - %s"
44
  msgstr ""
45
 
46
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:180
47
  msgid "Bookmark this on Yahoo Bookmark"
48
  msgstr ""
49
 
50
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:195
51
+ msgid "Buzz This"
52
+ msgstr ""
53
+
54
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:206
55
  msgid "Bookmark this on BuzzURL"
56
  msgstr ""
57
 
58
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:213
59
  #, php-format
60
  msgid "BuzzURL - %s"
61
  msgstr ""
62
 
63
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:224
64
  msgid "Bookmark this on @nifty clip"
65
  msgstr ""
66
 
67
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:231
68
  #, php-format
69
  msgid "@nifty clip - %s"
70
  msgstr ""
71
 
72
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:242
73
  msgid "Share on Tumblr"
74
  msgstr ""
75
 
76
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:253
77
  msgid "Bookmark this on FC2 Bookmark"
78
  msgstr ""
79
 
80
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:260
81
  #, php-format
82
  msgid "FC2 Bookmark - %s"
83
  msgstr ""
84
 
85
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:271
86
  msgid "Newsing it!"
87
  msgstr ""
88
 
89
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:282
90
  msgid "Choix it!"
91
  msgstr ""
92
 
93
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:293
94
  msgid "Bookmark this on Google Bookmarks"
95
  msgstr ""
96
 
97
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:304
98
  msgid "Post to Google Buzz"
99
  msgstr ""
100
 
101
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:315
102
  msgid "Bookmark this on Delicious"
103
  msgstr ""
104
 
105
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:326
106
  msgid "Bookmark this on Digg"
107
  msgstr ""
108
 
109
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:337
110
  msgid "Share on FriendFeed"
111
  msgstr ""
112
 
113
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:348
114
  msgid "Share on Facebook"
115
  msgstr ""
116
 
117
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:380
118
+ msgid "Share on reddit"
119
+ msgstr ""
120
+
121
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:391
122
+ msgid "Share on LinkedIn"
123
+ msgstr ""
124
+
125
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:422
126
+ msgid "Share on StumbleUpon"
127
+ msgstr ""
128
+
129
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:449
130
+ msgid "Share on GREE"
131
+ msgstr ""
132
+
133
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:757
134
  msgid "Options saved."
135
  msgstr ""
136
 
137
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:762
138
  msgid "Reset options."
139
  msgstr ""
140
 
141
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:775
142
+ msgid "General Settings"
143
+ msgstr ""
144
+
145
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:776
146
+ msgid "mixi"
147
+ msgstr ""
148
+
149
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:777
150
+ msgid "twitter"
151
+ msgstr ""
152
+
153
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:778
154
+ msgid "hatena_button"
155
+ msgstr ""
156
+
157
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:779
158
+ msgid "facebook_like"
159
+ msgstr ""
160
+
161
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:780
162
+ msgid "Donate"
163
+ msgstr "寄付"
164
+
165
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:785
166
+ msgid "Position"
167
+ msgstr "位置"
168
+
169
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:795
170
+ msgid "Singular"
171
+ msgstr "個別記事のみ"
172
+
173
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:804
174
+ msgid "Page"
175
+ msgstr "ページ"
176
+
177
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:813
178
+ msgid "Services"
179
+ msgstr "サービス"
180
+
181
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:938
182
  msgid "Save Changes"
183
  msgstr ""
184
 
185
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:939
186
  msgid "Reset"
187
  msgstr ""
188
 
189
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:944
190
  msgid "Service Code"
191
+ msgstr "サービス一覧"
192
 
193
+ #: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:944
194
  msgid "Explain"
195
+ msgstr "説明"
196
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://pledgie.com/campaigns/14051
4
  Tags: links, social, bookmarks, bookmarking, Hatena, Livedoor Clip, BuzzURL, @nifty clip, Twitter, Tumblr, FC2 Bookmark, newsing, Choix, Yahoo!JAPAN Bookmark, Yahoo!Buzz, Google Bookmark, Delicious, Digg, FriendFeed, Google Buzz, Facebook, reddit, LinkedIn, Evernote, Instapaper, StumbleUpon, mixi, gree
5
  Requires at least: 2.9.0
6
  Tested up to: 3.0.1
7
- Stable tag: 1.6.2
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
@@ -54,8 +54,11 @@ This is the list of used social sites:
54
 
55
  == Changelog ==
56
 
 
 
 
57
  = 1.6.2 =
58
- * Bug fixed: Parser error on PHP4. Thanks to milligramme and rik_wuts.
59
 
60
  = 1.6.1 =
61
  * Added: Service code check function.
@@ -63,7 +66,7 @@ This is the list of used social sites:
63
  = 1.6.0 =
64
  * Added: Hatena Bookmark Button.
65
  * Updated: admin setting page.
66
- * Bug fixed: Twitter button did not work on the top page. Thanks to [yuya-takeyama](https://gist.github.com/675159)++
67
  * Bug fixed: Mixi button did not work on the top page.
68
 
69
  = 1.5.2 =
4
  Tags: links, social, bookmarks, bookmarking, Hatena, Livedoor Clip, BuzzURL, @nifty clip, Twitter, Tumblr, FC2 Bookmark, newsing, Choix, Yahoo!JAPAN Bookmark, Yahoo!Buzz, Google Bookmark, Delicious, Digg, FriendFeed, Google Buzz, Facebook, reddit, LinkedIn, Evernote, Instapaper, StumbleUpon, mixi, gree
5
  Requires at least: 2.9.0
6
  Tested up to: 3.0.1
7
+ Stable tag: 1.6.3
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
54
 
55
  == Changelog ==
56
 
57
+ = 1.6.3 =
58
+ * Bug fixed: The style was broken on some themes.
59
+
60
  = 1.6.2 =
61
+ * Bug fixed: Parser error on PHP4. milligramme++ and rik_wuts++.
62
 
63
  = 1.6.1 =
64
  * Added: Service code check function.
66
  = 1.6.0 =
67
  * Added: Hatena Bookmark Button.
68
  * Updated: admin setting page.
69
+ * Bug fixed: Twitter button did not work on the top page. [yuya-takeyama](https://gist.github.com/675159)++
70
  * Bug fixed: Mixi button did not work on the top page.
71
 
72
  = 1.5.2 =
wp-social-bookmarking-light.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ninxit.com/blog/2010/06/13/wp-social-bookmarking-light/
5
  Description: This plugin inserts social share links at the top or bottom of each post.
6
  Author: utahta
7
  Author URI: http://www.ninxit.com/blog/
8
- Version: 1.6.2
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
@@ -61,14 +61,14 @@ class WpSocialBookmarkingLight
61
  }
62
 
63
  function link_raw( $url ){
64
- return "<li>".$url."</li>";
65
  }
66
  function link( $url, $alt, $icon, $width, $height ){
67
  $width = $width ? "width='$width'" : "";
68
  $height = $height ? "height='$height'" : "";
69
- return $this->link_raw( "<a href='{$url}' title='{$alt}' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank>"
70
- ."<img src='{$icon}' alt='{$alt}' title='{$alt}' $width $height class='wp_social_bookmarking_light_img' />"
71
- ."</a>" );
72
  }
73
 
74
  /**
@@ -530,10 +530,9 @@ function wp_social_bookmarking_light_wp_head()
530
 
531
  ?>
532
  <style type="text/css">
533
- ul.wp_social_bookmarking_light{list-style:none !important;border:0 !important;padding:0;margin:0;}
534
- ul.wp_social_bookmarking_light li{float:left !important;border:0 !important;padding:0 4px 0 0 !important;margin:0 !important;height:20px !important;text-indent:0 !important;}
535
- #ul.wp_social_bookmarking_light li:before{content:"" !important;}
536
- ul.wp_social_bookmarking_light img{border:0 !important;padding:0;margin:0;vertical-align:top !important;}
537
  .wp_social_bookmarking_light_clear{clear:both !important;}
538
  a.wp_social_bookmarking_light_instapaper {display: inline-block;font-family: 'Lucida Grande', Verdana, sans-serif;font-weight: bold;font-size: 11px;-webkit-border-radius: 8px;-moz-border-radius: 8px;color: #fff;background-color: #626262;border: 1px solid #626262;padding: 0px 3px 0px;text-shadow: #3b3b3b 1px 1px 0px;min-width: 62px;text-align: center;vertical-align:top;line-height:20px;}
539
  a.wp_social_bookmarking_light_instapaper, a.wp_social_bookmarking_light_instapaper:hover, a.wp_social_bookmarking_light_instapaper:active, a.wp_social_bookmarking_light_instapaper:visited {color: #fff; text-decoration: none; outline: none;}
@@ -544,17 +543,24 @@ a.wp_social_bookmarking_light_instapaper, a.wp_social_bookmarking_light_instapap
544
 
545
  function wp_social_bookmarking_light_output( $services )
546
  {
547
- $wp = new WpSocialBookmarkingLight( get_permalink(), get_the_title(), get_bloginfo('name') );
548
-
549
  $out = '';
550
  foreach( explode(",", $services) as $service ){
551
  $service = trim($service);
552
- $out .= call_user_func( array( $wp, $service ) ); // call WpSocialBookmarkingLight method
 
 
 
 
 
 
 
553
  }
554
  if( $out == '' ){
555
  return $out;
556
  }
557
- return "<ul class='wp_social_bookmarking_light'>{$out}</ul><br class='wp_social_bookmarking_light_clear' />";
558
  }
559
 
560
  function wp_social_bookmarking_light_output_e( $services=null )
@@ -771,12 +777,12 @@ function wp_social_bookmarking_light_options_page()
771
  <li id='twitter_settings'><a href="#tabs-3"><span><?php _e("twitter") ?></span></a></li>
772
  <li id='hatena_button_settings'><a href="#tabs-4"><span><?php _e("hatena_button") ?></span></a></li>
773
  <li id='facebook_like_settings'><a href="#tabs-5"><span><?php _e("facebook_like") ?></span></a></li>
774
- <li><a href="#tabs-10"><span><?php _e("Donation") ?></span></a></li>
775
  </ul>
776
  <div id="tabs-1">
777
  <table class='form-table'>
778
  <tr>
779
- <th scope="row">Position:</th>
780
  <td>
781
  <select name='position'>
782
  <option value='top' <?php if( $options['position'] == 'top' ) echo 'selected'; ?>>Top</option>
@@ -786,7 +792,7 @@ function wp_social_bookmarking_light_options_page()
786
  </td>
787
  </tr>
788
  <tr>
789
- <th scope="row">Is Singular:</th>
790
  <td>
791
  <select name='single_page'>
792
  <option value='true' <?php if( $options['single_page'] == true ) echo 'selected'; ?>>Enabled</option>
@@ -795,7 +801,7 @@ function wp_social_bookmarking_light_options_page()
795
  </td>
796
  </tr>
797
  <tr>
798
- <th scope="row">Is Page:</th>
799
  <td>
800
  <select name='is_page'>
801
  <option value='true' <?php if( $options['is_page'] == true ) echo 'selected'; ?>>Enabled</option>
@@ -804,7 +810,7 @@ function wp_social_bookmarking_light_options_page()
804
  </td>
805
  </tr>
806
  <tr>
807
- <th scope="row">Services: <br/> <span style="font-size:10px">(comma-separated)</span></th>
808
  <td>
809
  <input type="text" id='services_id' name='services' value="<?php echo $options['services'] ?>"size=120 style="font-size:12px !important" />
810
  <div id='unknown_services_id' style='color:red'></div>
@@ -923,7 +929,8 @@ function wp_social_bookmarking_light_options_page()
923
  </div>
924
 
925
  <div id="tabs-10">
926
- <p>A donation would help development of WP Social Bookmarking Light.</p>
 
927
  <a href='http://www.pledgie.com/campaigns/14051' target=_blank><img alt='Click here to lend your support to: WP Social Bookmarking Light and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/14051.png?skin_name=chrome' border='0' /></a>
928
  </div>
929
  </div>
@@ -934,7 +941,7 @@ function wp_social_bookmarking_light_options_page()
934
  </form>
935
 
936
  <table class='wp_social_bookmarking_light_options'>
937
- <tr><th><?php _e("Service Code") ?></th><th><?php _e("Explain") ?></th></tr>
938
  <tr><td>hatena</td><td>Hatena Bookmark</td></tr>
939
  <tr><td>hatena_users</td><td>Hatena Bookmark Users</td></tr>
940
  <tr><td>hatena_button</td><td>Hatena Bookmark Button</td></tr>
5
  Description: This plugin inserts social share links at the top or bottom of each post.
6
  Author: utahta
7
  Author URI: http://www.ninxit.com/blog/
8
+ Version: 1.6.3
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
61
  }
62
 
63
  function link_raw( $url ){
64
+ return $url;
65
  }
66
  function link( $url, $alt, $icon, $width, $height ){
67
  $width = $width ? "width='$width'" : "";
68
  $height = $height ? "height='$height'" : "";
69
+ return "<a href='{$url}' title='{$alt}' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank>"
70
+ ."<img src='{$icon}' alt='{$alt}' title='{$alt}' $width $height class='wp_social_bookmarking_light_img' />"
71
+ ."</a>";
72
  }
73
 
74
  /**
530
 
531
  ?>
532
  <style type="text/css">
533
+ div.wp_social_bookmarking_light{border:0 !important;padding:0 !important;margin:0 !important;}
534
+ div.wp_social_bookmarking_light div{float:left !important;border:0 !important;padding:0 4px 0 0 !important;margin:0 !important;height:20px !important;text-indent:0 !important;}
535
+ div.wp_social_bookmarking_light img{border:0 !important;padding:0;margin:0;vertical-align:top !important;}
 
536
  .wp_social_bookmarking_light_clear{clear:both !important;}
537
  a.wp_social_bookmarking_light_instapaper {display: inline-block;font-family: 'Lucida Grande', Verdana, sans-serif;font-weight: bold;font-size: 11px;-webkit-border-radius: 8px;-moz-border-radius: 8px;color: #fff;background-color: #626262;border: 1px solid #626262;padding: 0px 3px 0px;text-shadow: #3b3b3b 1px 1px 0px;min-width: 62px;text-align: center;vertical-align:top;line-height:20px;}
538
  a.wp_social_bookmarking_light_instapaper, a.wp_social_bookmarking_light_instapaper:hover, a.wp_social_bookmarking_light_instapaper:active, a.wp_social_bookmarking_light_instapaper:visited {color: #fff; text-decoration: none; outline: none;}
543
 
544
  function wp_social_bookmarking_light_output( $services )
545
  {
546
+ $wp = new WpSocialBookmarkingLight( get_permalink(), get_the_title(), get_bloginfo('name') );
547
+ $class_methods = wp_social_bookmarking_light_get_class_methods();
548
  $out = '';
549
  foreach( explode(",", $services) as $service ){
550
  $service = trim($service);
551
+ if($service != ''){
552
+ if(in_array($service, $class_methods)){
553
+ $out .= '<div>'.call_user_func( array( $wp, $service ) ).'</div>'; // A WpSocialBookmarkingLight method is called.
554
+ }
555
+ else{
556
+ $out .= "<div>[`$service` not found]</div>";
557
+ }
558
+ }
559
  }
560
  if( $out == '' ){
561
  return $out;
562
  }
563
+ return "<div class='wp_social_bookmarking_light'>{$out}</div><br class='wp_social_bookmarking_light_clear' />";
564
  }
565
 
566
  function wp_social_bookmarking_light_output_e( $services=null )
777
  <li id='twitter_settings'><a href="#tabs-3"><span><?php _e("twitter") ?></span></a></li>
778
  <li id='hatena_button_settings'><a href="#tabs-4"><span><?php _e("hatena_button") ?></span></a></li>
779
  <li id='facebook_like_settings'><a href="#tabs-5"><span><?php _e("facebook_like") ?></span></a></li>
780
+ <li><a href="#tabs-10"><span><?php _e("Donate", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN) ?></span></a></li>
781
  </ul>
782
  <div id="tabs-1">
783
  <table class='form-table'>
784
  <tr>
785
+ <th scope="row"><?php _e('Position', WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN) ?>:</th>
786
  <td>
787
  <select name='position'>
788
  <option value='top' <?php if( $options['position'] == 'top' ) echo 'selected'; ?>>Top</option>
792
  </td>
793
  </tr>
794
  <tr>
795
+ <th scope="row"><?php _e('Singular', WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN) ?>:</th>
796
  <td>
797
  <select name='single_page'>
798
  <option value='true' <?php if( $options['single_page'] == true ) echo 'selected'; ?>>Enabled</option>
801
  </td>
802
  </tr>
803
  <tr>
804
+ <th scope="row"><?php _e('Page', WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN) ?>:</th>
805
  <td>
806
  <select name='is_page'>
807
  <option value='true' <?php if( $options['is_page'] == true ) echo 'selected'; ?>>Enabled</option>
810
  </td>
811
  </tr>
812
  <tr>
813
+ <th scope="row"><?php _e('Services', WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN) ?>: <br/> <span style="font-size:10px">(comma-separated)</span></th>
814
  <td>
815
  <input type="text" id='services_id' name='services' value="<?php echo $options['services'] ?>"size=120 style="font-size:12px !important" />
816
  <div id='unknown_services_id' style='color:red'></div>
929
  </div>
930
 
931
  <div id="tabs-10">
932
+ <p>Your donation will help the development of "WP Social Bookmarking Light".</p>
933
+ <p>If you find it useful for you, feel free to lend your support.</p>
934
  <a href='http://www.pledgie.com/campaigns/14051' target=_blank><img alt='Click here to lend your support to: WP Social Bookmarking Light and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/14051.png?skin_name=chrome' border='0' /></a>
935
  </div>
936
  </div>
941
  </form>
942
 
943
  <table class='wp_social_bookmarking_light_options'>
944
+ <tr><th><?php _e("Service Code", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN) ?></th><th><?php _e("Explain", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN) ?></th></tr>
945
  <tr><td>hatena</td><td>Hatena Bookmark</td></tr>
946
  <tr><td>hatena_users</td><td>Hatena Bookmark Users</td></tr>
947
  <tr><td>hatena_button</td><td>Hatena Bookmark Button</td></tr>