WP Social Bookmarking Light - Version 1.3.0

Version Description

  • Added Yahoo!Buzz, reddit, LinkedIn and TwitterButton.
Download this release

Release Info

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

Code changes from version 1.2.0 to 1.3.0

images/linkedin.png ADDED
Binary file
images/reddit.png ADDED
Binary file
images/yahoo_buzz.png ADDED
Binary file
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WP Social Bookmarking Light ===
2
  Contributors: utahvich
3
  Donate link: http://www.ninxit.com/blog/
4
- Tags: links, social, bookmarks, bookmarking, Hatena, Livedoor Clip, BuzzURL, @nifty clip, Twitter, Tumblr, FC2 Bookmark, newsing, Choix, Yahoo!JAPAN Bookmark, Google Bookmark, Delicious, Digg, FriendFeed, Google Buzz, Facebook
5
  Requires at least: 2.9.0
6
  Tested up to: 2.9.2
7
- Stable tag: 1.2.0
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
@@ -25,11 +25,14 @@ This is the list of used social sites:
25
  * newsing
26
  * Choix
27
  * Yahoo!JAPAN Bookmark
 
28
  * Google Bookmark
29
  * Google Buzz
30
  * Delicious
31
  * Digg
32
  * FriendFeed
 
 
33
 
34
  == Installation ==
35
 
@@ -45,6 +48,9 @@ This is the list of used social sites:
45
 
46
  == Changelog ==
47
 
 
 
 
48
  = 1.2.0 =
49
 
50
  * Added "Is Page" option.
1
  === WP Social Bookmarking Light ===
2
  Contributors: utahvich
3
  Donate link: http://www.ninxit.com/blog/
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
5
  Requires at least: 2.9.0
6
  Tested up to: 2.9.2
7
+ Stable tag: 1.3.0
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
25
  * newsing
26
  * Choix
27
  * Yahoo!JAPAN Bookmark
28
+ * Yahoo!Buzz
29
  * Google Bookmark
30
  * Google Buzz
31
  * Delicious
32
  * Digg
33
  * FriendFeed
34
+ * reddit
35
+ * LinkedIn
36
 
37
  == Installation ==
38
 
48
 
49
  == Changelog ==
50
 
51
+ = 1.3.0 =
52
+ * Added Yahoo!Buzz, reddit, LinkedIn and TwitterButton.
53
+
54
  = 1.2.0 =
55
 
56
  * Added "Is Page" option.
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.2.0
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
@@ -117,6 +117,15 @@ class WpSocialBookmarkingLight
117
  ."</script>"
118
  ."<script type='text/javascript' src='http://tweetmeme.com/i/scripts/button.js'></script>" );
119
  }
 
 
 
 
 
 
 
 
 
120
 
121
  /**
122
  * @brief Livedoor Clip
@@ -151,6 +160,17 @@ class WpSocialBookmarkingLight
151
  return $this->link_raw( "<script src='http://num.bookmarks.yahoo.co.jp/numimage.js?disptype=small'></script>" );
152
  }
153
 
 
 
 
 
 
 
 
 
 
 
 
154
  /**
155
  * @brief BuzzURL
156
  */
@@ -298,12 +318,34 @@ class WpSocialBookmarkingLight
298
  */
299
  function facebook()
300
  {
301
- $url = "http://www.facebook.com/share.php?u={$this->encode_url}";
302
  $alt = __( "Share on Facebook", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
303
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/facebook.png";
304
  return $this->link( $url, $alt, $icon, 16, 16 );
305
  }
306
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
307
  }
308
 
309
  function wp_social_bookmarking_light_default_options()
@@ -490,10 +532,12 @@ function wp_social_bookmarking_light_options_page()
490
  <tr><td>twib</td><td>Twib - Twitter</td></tr>
491
  <tr><td>twib_users</td><td>Twib Users - Twitter</td></tr>
492
  <tr><td>tweetmeme</td><td>TweetMeme - Twitter</td></tr>
 
493
  <tr><td>livedoor</td><td>Livedoor Clip</td></tr>
494
  <tr><td>livedoor_users</td><td>Livedoor Clip Users</td></tr>
495
  <tr><td>yahoo</td><td>Yahoo!JAPAN Bookmark</td></tr>
496
  <tr><td>yahoo_users</td><td>Yahoo!JAPAN Bookmark Users</td></tr>
 
497
  <tr><td>buzzurl</td><td>BuzzURL</td></tr>
498
  <tr><td>buzzurl_users</td><td>BuzzURL Users</td></tr>
499
  <tr><td>nifty</td><td>@nifty Clip</td></tr>
@@ -509,6 +553,8 @@ function wp_social_bookmarking_light_options_page()
509
  <tr><td>digg</td><td>Digg</td></tr>
510
  <tr><td>friendfeed</td><td>FriendFeed</td></tr>
511
  <tr><td>facebook</td><td>Facebook Share</td></tr>
 
 
512
  </table>
513
  </div>
514
  <?php
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.3.0
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
117
  ."</script>"
118
  ."<script type='text/javascript' src='http://tweetmeme.com/i/scripts/button.js'></script>" );
119
  }
120
+
121
+ /**
122
+ * @brief twitter
123
+ */
124
+ function twitter()
125
+ {
126
+ return $this->link_raw( '<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a>'
127
+ .'<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>' );
128
+ }
129
 
130
  /**
131
  * @brief Livedoor Clip
160
  return $this->link_raw( "<script src='http://num.bookmarks.yahoo.co.jp/numimage.js?disptype=small'></script>" );
161
  }
162
 
163
+ /**
164
+ * @brief Yahoo Buzz
165
+ */
166
+ function yahoo_buzz()
167
+ {
168
+ $url = "http://buzz.yahoo.com/buzz?targetUrl={$this->encode_url}&headline={$this->encode_title}";
169
+ $alt = __( "Buzz This", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
170
+ $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/yahoo_buzz.png";
171
+ return $this->link( $url, $alt, $icon, 16, 16 );
172
+ }
173
+
174
  /**
175
  * @brief BuzzURL
176
  */
318
  */
319
  function facebook()
320
  {
321
+ $url = "http://www.facebook.com/share.php?u={$this->encode_url}&t={$this->encode_title}";
322
  $alt = __( "Share on Facebook", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
323
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/facebook.png";
324
  return $this->link( $url, $alt, $icon, 16, 16 );
325
  }
326
 
327
+ /**
328
+ * @brief reddit
329
+ */
330
+ function reddit()
331
+ {
332
+ $url = "http://www.reddit.com/submit?url={$this->encode_url}&title={$this->encode_title}";
333
+ $alt = __( "Share on reddit", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
334
+ $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/reddit.png";
335
+ return $this->link( $url, $alt, $icon, 16, 16 );
336
+ }
337
+
338
+ /**
339
+ * @brief LinkedIn
340
+ */
341
+ function linkedin()
342
+ {
343
+ $url = "http://www.linkedin.com/shareArticle?mini=true&url={$this->encode_url}&title={$this->encode_title}";
344
+ $alt = __( "Share on LinkedIn", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
345
+ $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/linkedin.png";
346
+ return $this->link( $url, $alt, $icon, 16, 16 );
347
+ }
348
+
349
  }
350
 
351
  function wp_social_bookmarking_light_default_options()
532
  <tr><td>twib</td><td>Twib - Twitter</td></tr>
533
  <tr><td>twib_users</td><td>Twib Users - Twitter</td></tr>
534
  <tr><td>tweetmeme</td><td>TweetMeme - Twitter</td></tr>
535
+ <tr><td>twitter</td><td>Tweet Button - Twitter</td></tr>
536
  <tr><td>livedoor</td><td>Livedoor Clip</td></tr>
537
  <tr><td>livedoor_users</td><td>Livedoor Clip Users</td></tr>
538
  <tr><td>yahoo</td><td>Yahoo!JAPAN Bookmark</td></tr>
539
  <tr><td>yahoo_users</td><td>Yahoo!JAPAN Bookmark Users</td></tr>
540
+ <tr><td>yahoo_buzz</td><td>Yahoo!Buzz</td></tr>
541
  <tr><td>buzzurl</td><td>BuzzURL</td></tr>
542
  <tr><td>buzzurl_users</td><td>BuzzURL Users</td></tr>
543
  <tr><td>nifty</td><td>@nifty Clip</td></tr>
553
  <tr><td>digg</td><td>Digg</td></tr>
554
  <tr><td>friendfeed</td><td>FriendFeed</td></tr>
555
  <tr><td>facebook</td><td>Facebook Share</td></tr>
556
+ <tr><td>reddit</td><td>reddit</td></tr>
557
+ <tr><td>linkedin</td><td>LinkedIn</td></tr>
558
  </table>
559
  </div>
560
  <?php