WP Social Bookmarking Light - Version 1.4.0

Version Description

  • Added Evernote, Instapaper and StumbleUpon
Download this release

Release Info

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

Code changes from version 1.3.0 to 1.4.0

images/evernote.png ADDED
Binary file
images/stumbleupon.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, 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
 
@@ -33,6 +33,9 @@ This is the list of used social sites:
33
  * FriendFeed
34
  * reddit
35
  * LinkedIn
 
 
 
36
 
37
  == Installation ==
38
 
@@ -48,6 +51,9 @@ This is the list of used social sites:
48
 
49
  == Changelog ==
50
 
 
 
 
51
  = 1.3.0 =
52
  * Added Yahoo!Buzz, reddit, LinkedIn and TwitterButton.
53
 
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
5
  Requires at least: 2.9.0
6
  Tested up to: 2.9.2
7
+ Stable tag: 1.4.0
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
33
  * FriendFeed
34
  * reddit
35
  * LinkedIn
36
+ * Evernote
37
+ * Instapaper
38
+ * StumbleUpon
39
 
40
  == Installation ==
41
 
51
 
52
  == Changelog ==
53
 
54
+ = 1.4.0 =
55
+ * Added Evernote, Instapaper and StumbleUpon
56
+
57
  = 1.3.0 =
58
  * Added Yahoo!Buzz, reddit, LinkedIn and TwitterButton.
59
 
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.3.0
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
@@ -346,6 +346,36 @@ class WpSocialBookmarkingLight
346
  return $this->link( $url, $alt, $icon, 16, 16 );
347
  }
348
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
349
  }
350
 
351
  function wp_social_bookmarking_light_default_options()
@@ -369,7 +399,10 @@ ul.wp_social_bookmarking_light{list-style:none !important;border:0 !important;pa
369
  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;}
370
  ul.wp_social_bookmarking_light li:before{content:"" !important;}
371
  ul.wp_social_bookmarking_light img{border:0 !important;padding:0;margin:0;}
372
- wp_social_bookmarking_light_clear{clear:both !important;}
 
 
 
373
  </style>
374
  <?php
375
  }
@@ -555,6 +588,9 @@ function wp_social_bookmarking_light_options_page()
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
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.4.0
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
346
  return $this->link( $url, $alt, $icon, 16, 16 );
347
  }
348
 
349
+ /**
350
+ * @brief Evernote
351
+ */
352
+ function evernote()
353
+ {
354
+ $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/evernote.png";
355
+ $href = "javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();";
356
+ return $this->link_raw( '<a href="'.$href.'" title="Clip to Evernote" <img src="'.$icon.'"></a>' );
357
+ }
358
+
359
+ /**
360
+ * @brief Instapaper
361
+ */
362
+ function instapaper()
363
+ {
364
+ $href = "javascript:function iprl5(){var d=document,z=d.createElement(&#039;scr&#039;+&#039;ipt&#039;),b=d.body,l=d.location;try{if(!b)throw(0);d.title=&#039;(Saving...) &#039;+d.title;z.setAttribute(&#039;src&#039;,l.protocol+&#039;//www.instapaper.com/j/GKo8MDzHWjRx?u=&#039;+encodeURIComponent(l.href)+&#039;&amp;t=&#039;+(new Date().getTime()));b.appendChild(z);}catch(e){alert(&#039;Please wait until the page has loaded.&#039;);}}iprl5();void(0)";
365
+ return $this->link_raw( '<a href="'.$href.'" class="wp_social_bookmarking_light_instapaper" title="Read Later">Read Later</a>' );
366
+ }
367
+
368
+ /**
369
+ * @brief StumbleUpon
370
+ */
371
+ function stumbleupon()
372
+ {
373
+ $url = "http://www.stumbleupon.com/submit?url={$this->encode_url}&title={$this->encode_title}";
374
+ $alt = __( "Share on StumbleUpon", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
375
+ $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/stumbleupon.png";
376
+ return $this->link( $url, $alt, $icon, 16, 16 );
377
+ }
378
+
379
  }
380
 
381
  function wp_social_bookmarking_light_default_options()
399
  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;}
400
  ul.wp_social_bookmarking_light li:before{content:"" !important;}
401
  ul.wp_social_bookmarking_light img{border:0 !important;padding:0;margin:0;}
402
+ .wp_social_bookmarking_light_clear{clear:both !important;}
403
+ 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;}
404
+ 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;}
405
+ .wp_social_bookmarking_light_instapaper:focus {outline: none;}
406
  </style>
407
  <?php
408
  }
588
  <tr><td>facebook</td><td>Facebook Share</td></tr>
589
  <tr><td>reddit</td><td>reddit</td></tr>
590
  <tr><td>linkedin</td><td>LinkedIn</td></tr>
591
+ <tr><td>evernote</td><td>Evernote</td></tr>
592
+ <tr><td>instapaper</td><td>Instapaper</td></tr>
593
+ <tr><td>stumbleupon</td><td>StumbleUpon</td></tr>
594
  </table>
595
  </div>
596
  <?php