WP Social Bookmarking Light - Version 1.5.2

Version Description

  • Added Facebook Like Button.
Download this release

Release Info

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

Code changes from version 1.5.1 to 1.5.2

Files changed (2) hide show
  1. readme.txt +6 -2
  2. wp-social-bookmarking-light.php +14 -4
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, 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.5.1
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
@@ -16,6 +16,7 @@ This is the list of used social sites:
16
 
17
  * Hatena
18
  * Facebook
 
19
  * Twitter
20
  * Livedoor Clip
21
  * BuzzURL
@@ -53,6 +54,9 @@ This is the list of used social sites:
53
 
54
  == Changelog ==
55
 
 
 
 
56
  = 1.5.1 =
57
  * Alter <style> to <style type="text/css">
58
 
1
  === WP Social Bookmarking Light ===
2
  Contributors: utahvich
3
+ Donate link: http://pledgie.com/campaigns/14019
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.5.2
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
16
 
17
  * Hatena
18
  * Facebook
19
+ * Facebook Like Button
20
  * Twitter
21
  * Livedoor Clip
22
  * BuzzURL
54
 
55
  == Changelog ==
56
 
57
+ = 1.5.2 =
58
+ * Added Facebook Like Button.
59
+
60
  = 1.5.1 =
61
  * Alter <style> to <style type="text/css">
62
 
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.5.1
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
@@ -324,6 +324,15 @@ class WpSocialBookmarkingLight
324
  return $this->link( $url, $alt, $icon, 16, 16 );
325
  }
326
 
 
 
 
 
 
 
 
 
 
327
  /**
328
  * @brief reddit
329
  */
@@ -434,11 +443,11 @@ function wp_social_bookmarking_light_wp_head()
434
  ?>
435
  <style type="text/css">
436
  ul.wp_social_bookmarking_light{list-style:none !important;border:0 !important;padding:0;margin:0;}
437
- ul.wp_social_bookmarking_light li{float:left !important;border:0 !important;padding:0 4px 0 0 !important;margin:0 !important;height:17px !important;text-indent:0 !important;}
438
  ul.wp_social_bookmarking_light li:before{content:"" !important;}
439
- ul.wp_social_bookmarking_light img{border:0 !important;padding:0;margin:0;vertical-align:baseline !important;}
440
  .wp_social_bookmarking_light_clear{clear:both !important;}
441
- 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:17px;}
442
  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;}
443
  .wp_social_bookmarking_light_instapaper:focus {outline: none;}
444
  </style>
@@ -680,6 +689,7 @@ jQuery(document).ready(function(){
680
  <tr><td>digg</td><td>Digg</td></tr>
681
  <tr><td>friendfeed</td><td>FriendFeed</td></tr>
682
  <tr><td>facebook</td><td>Facebook Share</td></tr>
 
683
  <tr><td>reddit</td><td>reddit</td></tr>
684
  <tr><td>linkedin</td><td>LinkedIn</td></tr>
685
  <tr><td>evernote</td><td>Evernote</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.5.2
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
324
  return $this->link( $url, $alt, $icon, 16, 16 );
325
  }
326
 
327
+ /**
328
+ * @brief Facebook Like Button
329
+ */
330
+ function facebook_like()
331
+ {
332
+ return $this->link_raw("<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'></script>"
333
+ ."<fb:like href='{$this->encode_url}' layout='button_count' width='90'></fb:like>");
334
+ }
335
+
336
  /**
337
  * @brief reddit
338
  */
443
  ?>
444
  <style type="text/css">
445
  ul.wp_social_bookmarking_light{list-style:none !important;border:0 !important;padding:0;margin:0;}
446
+ 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;}
447
  ul.wp_social_bookmarking_light li:before{content:"" !important;}
448
+ ul.wp_social_bookmarking_light img{border:0 !important;padding:0;margin:0;vertical-align:top !important;}
449
  .wp_social_bookmarking_light_clear{clear:both !important;}
450
+ 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;}
451
  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;}
452
  .wp_social_bookmarking_light_instapaper:focus {outline: none;}
453
  </style>
689
  <tr><td>digg</td><td>Digg</td></tr>
690
  <tr><td>friendfeed</td><td>FriendFeed</td></tr>
691
  <tr><td>facebook</td><td>Facebook Share</td></tr>
692
+ <tr><td>facebook_like</td><td>Facebook Like Button</td></tr>
693
  <tr><td>reddit</td><td>reddit</td></tr>
694
  <tr><td>linkedin</td><td>LinkedIn</td></tr>
695
  <tr><td>evernote</td><td>Evernote</td></tr>