WP Social Bookmarking Light - Version 1.7.8

Version Description

  • Updated: Facebook js sdk version 2.0
Download this release

Release Info

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

Code changes from version 1.7.7 to 1.7.8

modules/content.php CHANGED
@@ -99,7 +99,7 @@ function wp_social_bookmarking_light_wp_head()
99
  var js, fjs = d.getElementsByTagName(s)[0];
100
  if (d.getElementById(id)) return;
101
  js = d.createElement(s); js.id = id;
102
- js.src = "//connect.facebook.net/<?php echo $locale ?>/all.js#xfbml=1";
103
  fjs.parentNode.insertBefore(js, fjs);
104
  }(document, 'script', 'facebook-jssdk'));</script>
105
  <?php
@@ -134,7 +134,7 @@ function wp_social_bookmarking_light_the_content( $content )
134
 
135
  $out = wp_social_bookmarking_light_output( $options['services'], get_permalink(), get_the_title() );
136
  if( $out == '' ){
137
- return $content;
138
  }
139
  if( $options['position'] == 'top' ){
140
  return "{$out}{$content}";
@@ -143,7 +143,7 @@ function wp_social_bookmarking_light_the_content( $content )
143
  return "{$content}{$out}";
144
  }
145
  else if( $options['position'] == 'both'){
146
- return "{$out}{$content}{$out}";
147
  }
148
  return $content;
149
  }
@@ -167,21 +167,21 @@ function wp_social_bookmarking_light_wp_footer()
167
  if(in_array('evernote', $services)){
168
  echo '<script type="text/javascript" src="http://static.evernote.com/noteit.js"></script>'."\n";
169
  }
170
- // Google +1
171
- if(in_array('google_plus_one', $services)){
172
- $lang = $options['google_plus_one']['lang'];
173
- ?>
174
- <script type="text/javascript">
175
- window.___gcfg = {lang: '<?php echo $lang ?>'};
176
-
177
- (function() {
178
- var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
179
- po.src = 'https://apis.google.com/js/plusone.js';
180
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
181
- })();
182
- </script>
183
- <?php
184
- }
185
 
186
  ?>
187
  <!-- END: WP Social Bookmarking Light -->
99
  var js, fjs = d.getElementsByTagName(s)[0];
100
  if (d.getElementById(id)) return;
101
  js = d.createElement(s); js.id = id;
102
+ js.src = "//connect.facebook.net/<?php echo $locale ?>/sdk.js#xfbml=1&version=v2.0";
103
  fjs.parentNode.insertBefore(js, fjs);
104
  }(document, 'script', 'facebook-jssdk'));</script>
105
  <?php
134
 
135
  $out = wp_social_bookmarking_light_output( $options['services'], get_permalink(), get_the_title() );
136
  if( $out == '' ){
137
+ return $content;
138
  }
139
  if( $options['position'] == 'top' ){
140
  return "{$out}{$content}";
143
  return "{$content}{$out}";
144
  }
145
  else if( $options['position'] == 'both'){
146
+ return "{$out}{$content}{$out}";
147
  }
148
  return $content;
149
  }
167
  if(in_array('evernote', $services)){
168
  echo '<script type="text/javascript" src="http://static.evernote.com/noteit.js"></script>'."\n";
169
  }
170
+ // Google +1
171
+ if(in_array('google_plus_one', $services)){
172
+ $lang = $options['google_plus_one']['lang'];
173
+ ?>
174
+ <script type="text/javascript">
175
+ window.___gcfg = {lang: '<?php echo $lang ?>'};
176
+
177
+ (function() {
178
+ var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
179
+ po.src = 'https://apis.google.com/js/plusone.js';
180
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
181
+ })();
182
+ </script>
183
+ <?php
184
+ }
185
 
186
  ?>
187
  <!-- END: WP Social Bookmarking Light -->
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
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, atode, toread, line, pocket
5
  Requires at least: 2.9.0
6
  Tested up to: 3.8
7
- Stable tag: 1.7.7
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
@@ -61,6 +61,9 @@ This is the list of used social sites:
61
 
62
  == Changelog ==
63
 
 
 
 
64
  = 1.7.7 =
65
  * Fixed: https security warning in IE. (Hatena, Facebook and Twitter Button)
66
  * Improved: Hatena Button layout
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, atode, toread, line, pocket
5
  Requires at least: 2.9.0
6
  Tested up to: 3.8
7
+ Stable tag: 1.7.8
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
61
 
62
  == Changelog ==
63
 
64
+ = 1.7.8 =
65
+ * Updated: Facebook js sdk version 2.0
66
+
67
  = 1.7.7 =
68
  * Fixed: https security warning in IE. (Hatena, Facebook and Twitter Button)
69
  * Improved: Hatena Button layout
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.7.7
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
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.7.8
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)