WP Social Bookmarking Light - Version 1.8.1

Version Description

  • Updated: Google +1 Button
  • Added: Donate
Download this release

Release Info

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

Code changes from version 1.8.0 to 1.8.1

images/bitcoin_donate.jpg ADDED
Binary file
modules/admin.php CHANGED
@@ -272,6 +272,7 @@ function wp_social_bookmarking_light_options_page()
272
  <ul>
273
  <li><a href="#tabs-1"><span><?php _e("General Settings") ?></span></a></li>
274
  <li><a href="#tabs-1_2"><span><?php _e("Styles") ?></span></a></li>
 
275
  <li id='mixi_settings'><a href="#tabs-2"><span><?php _el("Mixi") ?></span></a></li>
276
  <li id='twitter_settings'><a href="#tabs-3"><span><?php _el("Twitter") ?></span></a></li>
277
  <li id='hatena_button_settings'><a href="#tabs-4"><span><?php _el("Hatena") ?></span></a></li>
@@ -372,7 +373,39 @@ function wp_social_bookmarking_light_options_page()
372
  </tr>
373
  </table>
374
  </div>
375
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
376
  <!-- mixi -->
377
  <div id="tabs-2">
378
  <!-- General -->
@@ -723,79 +756,81 @@ function wp_social_bookmarking_light_options_page()
723
  <th scope="row">Button size:</th>
724
  <td>
725
  <select name='google_plus_one_button_size'>
726
- <option value='small' <?php if( $options['google_plus_one']['button_size'] == 'small' ) echo 'selected'; ?>>small</option>
727
- <option value='medium' <?php if( $options['google_plus_one']['button_size'] == 'medium' ) echo 'selected'; ?>>medium</option>
 
 
728
  </select>
729
  </td>
730
  </tr>
731
  <tr>
732
  <th scope="row">Language:</th>
733
  <td>
734
- <select name='google_plus_one_lang'>
735
- <?php
736
- $langs = array(
737
- "ar" => "Arabic",
738
- "ar" => "Arabic",
739
- "bg" => "Bulgarian",
740
- "ca" => "Catalan",
741
- "zh-CN" => "Chinese (Simplified)",
742
- "zh-TW" => "Chinese (Traditional)",
743
- "hr" => "Croatian",
744
- "cs" => "Czech",
745
- "da" => "Danish",
746
- "nl" => "Dutch",
747
- "en-US" => "English (US)",
748
- "en-GB" => "English (UK)",
749
- "et" => "Estonian",
750
- "fil" => "Filipino",
751
- "fi" => "Finnish",
752
- "fr" => "French",
753
- "de" => "German",
754
- "el" => "Greek",
755
- "iw" => "Hebrew",
756
- "hi" => "Hindi",
757
- "hu" => "Hungarian",
758
- "id" => "Indonesian",
759
- "it" => "Italian",
760
- "ja" => "Japanese",
761
- "ko" => "Korean",
762
- "lv" => "Latvian",
763
- "lt" => "Lithuanian",
764
- "ms" => "Malay",
765
- "no" => "Norwegian",
766
- "fa" => "Persian",
767
- "pl" => "Polish",
768
- "pt-BR" => "Portuguese (Brazil)",
769
- "pt-PT" => "Portuguese (Portugal)",
770
- "ro" => "Romanian",
771
- "ru" => "Russian",
772
- "sr" => "Serbian",
773
- "sv" => "Swedish",
774
- "sk" => "Slovak",
775
- "sl" => "Slovenian",
776
- "es" => "Spanish",
777
- "es-419" => "Spanish (Latin America)",
778
- "th" => "Thai",
779
- "tr" => "Turkish",
780
- "uk" => "Ukrainian",
781
- "vi" => "Vietnamese",
782
- );
783
- foreach($langs as $key => $val){
784
- $selected = $options['google_plus_one']['lang'] == $key ? "selected" : "";
785
- echo "<option $selected value='$key'>$val</option>\n";
786
- }
787
- ?>
788
- </select>
789
  </td>
790
  </tr>
791
  <tr>
792
  <th scope="row">Annotation:</th>
793
  <td>
794
- <select name='google_plus_one_annotation'>
795
- <option value='none' <?php if( $options['google_plus_one']['annotation'] == "none" ) echo 'selected'; ?>>none</option>
796
- <option value='bubble' <?php if( $options['google_plus_one']['annotation'] == "bubble" ) echo 'selected'; ?>>bubble</option>
797
- <option value='inline' <?php if( $options['google_plus_one']['annotation'] == "inline" ) echo 'selected'; ?>>inline</option>
798
- </select>
799
  </td>
800
  </tr>
801
  <tr>
@@ -804,7 +839,6 @@ function wp_social_bookmarking_light_options_page()
804
  <input type="text" name='google_plus_one_inline_size' value="<?php echo $options['google_plus_one']["inline_size"] ?>" />
805
  </td>
806
  </tr>
807
-
808
  </table>
809
  </div>
810
 
272
  <ul>
273
  <li><a href="#tabs-1"><span><?php _e("General Settings") ?></span></a></li>
274
  <li><a href="#tabs-1_2"><span><?php _e("Styles") ?></span></a></li>
275
+ <li><a href="#tabs-1_3"><span><?php _e("Donate") ?></span></a></li>
276
  <li id='mixi_settings'><a href="#tabs-2"><span><?php _el("Mixi") ?></span></a></li>
277
  <li id='twitter_settings'><a href="#tabs-3"><span><?php _el("Twitter") ?></span></a></li>
278
  <li id='hatena_button_settings'><a href="#tabs-4"><span><?php _el("Hatena") ?></span></a></li>
373
  </tr>
374
  </table>
375
  </div>
376
+
377
+ <!-- Donate -->
378
+ <div id="tabs-1_3">
379
+ <table class='form-table'>
380
+ <tr>
381
+ <th scope="row">Amazon:</th>
382
+ <td>
383
+ <p><b>To: labs.ninxit@gmail.com</b></p>
384
+ <p>
385
+ <a href="https://www.amazon.com/gp/product/B004LLIKVU/" target="_blank">Gift Cards - E-mail Delivery</a>
386
+ </p>
387
+ <p>
388
+ <a href="https://www.amazon.co.jp/gp/product/B005FOVUS2/" target="_blank">ギフト券 - Eメールタイプ</a>
389
+ </p>
390
+ </td>
391
+ </tr>
392
+ <tr>
393
+ <th scope="row"></th>
394
+ <td>
395
+ <a href="http://www.amazon.co.jp/registry/wishlist/234SVHP1HFGPR" target=_blank>Wishlist - 欲しいものリスト</a>
396
+ </td>
397
+ </tr>
398
+ <tr>
399
+ <th scope="row">Bitcoin:</th>
400
+ <td>
401
+ <p>Please Donate To Bitcoin Address:</p>
402
+ <p><b>1MLuaV3tnoDBq6ND1TvQeBfqdZ1oVmpQgc</b></p>
403
+ <img src="<?php echo WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL ?>/bitcoin_donate.jpg">
404
+ </td>
405
+ </tr>
406
+ </table>
407
+ </div>
408
+
409
  <!-- mixi -->
410
  <div id="tabs-2">
411
  <!-- General -->
756
  <th scope="row">Button size:</th>
757
  <td>
758
  <select name='google_plus_one_button_size'>
759
+ <option value='small' <?php if( $options['google_plus_one']['button_size'] == 'small' ) echo 'selected'; ?>>small</option>
760
+ <option value='medium' <?php if( $options['google_plus_one']['button_size'] == 'medium' ) echo 'selected'; ?>>medium</option>
761
+ <option value='standard' <?php if( $options['google_plus_one']['button_size'] == 'standard' ) echo 'selected'; ?>>standard</option>
762
+ <option value='tall' <?php if( $options['google_plus_one']['button_size'] == 'tall' ) echo 'selected'; ?>>tall</option>
763
  </select>
764
  </td>
765
  </tr>
766
  <tr>
767
  <th scope="row">Language:</th>
768
  <td>
769
+ <select name='google_plus_one_lang'>
770
+ <?php
771
+ $langs = array(
772
+ "ar" => "Arabic",
773
+ "ar" => "Arabic",
774
+ "bg" => "Bulgarian",
775
+ "ca" => "Catalan",
776
+ "zh-CN" => "Chinese (Simplified)",
777
+ "zh-TW" => "Chinese (Traditional)",
778
+ "hr" => "Croatian",
779
+ "cs" => "Czech",
780
+ "da" => "Danish",
781
+ "nl" => "Dutch",
782
+ "en-US" => "English (US)",
783
+ "en-GB" => "English (UK)",
784
+ "et" => "Estonian",
785
+ "fil" => "Filipino",
786
+ "fi" => "Finnish",
787
+ "fr" => "French",
788
+ "de" => "German",
789
+ "el" => "Greek",
790
+ "iw" => "Hebrew",
791
+ "hi" => "Hindi",
792
+ "hu" => "Hungarian",
793
+ "id" => "Indonesian",
794
+ "it" => "Italian",
795
+ "ja" => "Japanese",
796
+ "ko" => "Korean",
797
+ "lv" => "Latvian",
798
+ "lt" => "Lithuanian",
799
+ "ms" => "Malay",
800
+ "no" => "Norwegian",
801
+ "fa" => "Persian",
802
+ "pl" => "Polish",
803
+ "pt-BR" => "Portuguese (Brazil)",
804
+ "pt-PT" => "Portuguese (Portugal)",
805
+ "ro" => "Romanian",
806
+ "ru" => "Russian",
807
+ "sr" => "Serbian",
808
+ "sv" => "Swedish",
809
+ "sk" => "Slovak",
810
+ "sl" => "Slovenian",
811
+ "es" => "Spanish",
812
+ "es-419" => "Spanish (Latin America)",
813
+ "th" => "Thai",
814
+ "tr" => "Turkish",
815
+ "uk" => "Ukrainian",
816
+ "vi" => "Vietnamese",
817
+ );
818
+ foreach($langs as $key => $val){
819
+ $selected = $options['google_plus_one']['lang'] == $key ? "selected" : "";
820
+ echo "<option $selected value='$key'>$val</option>\n";
821
+ }
822
+ ?>
823
+ </select>
824
  </td>
825
  </tr>
826
  <tr>
827
  <th scope="row">Annotation:</th>
828
  <td>
829
+ <select name='google_plus_one_annotation'>
830
+ <option value='none' <?php if( $options['google_plus_one']['annotation'] == "none" ) echo 'selected'; ?>>none</option>
831
+ <option value='bubble' <?php if( $options['google_plus_one']['annotation'] == "bubble" ) echo 'selected'; ?>>bubble</option>
832
+ <option value='inline' <?php if( $options['google_plus_one']['annotation'] == "inline" ) echo 'selected'; ?>>inline</option>
833
+ </select>
834
  </td>
835
  </tr>
836
  <tr>
839
  <input type="text" name='google_plus_one_inline_size' value="<?php echo $options['google_plus_one']["inline_size"] ?>" />
840
  </td>
841
  </tr>
 
842
  </table>
843
  </div>
844
 
modules/content.php CHANGED
@@ -166,7 +166,7 @@ function wp_social_bookmarking_light_wp_footer()
166
  */
167
  // twitter
168
  if (in_array('twitter', $services)) {
169
- echo "<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>";
170
  }
171
  // evernote
172
  if (in_array('evernote', $services)) {
@@ -175,17 +175,7 @@ function wp_social_bookmarking_light_wp_footer()
175
  // Google +1
176
  if (in_array('google_plus_one', $services)) {
177
  $lang = $options['google_plus_one']['lang'];
178
- ?>
179
- <script type="text/javascript">
180
- window.___gcfg = {lang: '<?php echo $lang ?>'};
181
-
182
- (function() {
183
- var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
184
- po.src = 'https://apis.google.com/js/plusone.js';
185
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
186
- })();
187
- </script>
188
- <?php
189
  }
190
  // pinterest
191
  if (in_array('pinterest', $services)) {
166
  */
167
  // twitter
168
  if (in_array('twitter', $services)) {
169
+ echo "<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>\n";
170
  }
171
  // evernote
172
  if (in_array('evernote', $services)) {
175
  // Google +1
176
  if (in_array('google_plus_one', $services)) {
177
  $lang = $options['google_plus_one']['lang'];
178
+ echo '<script src="https://apis.google.com/js/platform.js" async defer>{lang: "'.$lang.'"}</script>'."\n";
 
 
 
 
 
 
 
 
 
 
179
  }
180
  // pinterest
181
  if (in_array('pinterest', $services)) {
modules/services.php CHANGED
@@ -270,6 +270,7 @@ class WpSocialBookmarkingLight
270
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/google-buzz.png";
271
  return $this->link( $url, $alt, $icon, 16, 16 );
272
  }
 
273
  /**
274
  * @brief Google +1
275
  */
270
  $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/google-buzz.png";
271
  return $this->link( $url, $alt, $icon, 16, 16 );
272
  }
273
+
274
  /**
275
  * @brief Google +1
276
  */
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WP Social Bookmarking Light ===
2
  Contributors: utahvich
3
- Donate link:
4
  Tags: links, social, bookmarks, bookmarking, Hatena, Livedoor Clip, @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, Pinterest
5
  Requires at least: 2.9.0
6
  Tested up to: 4.3
7
- Stable tag: 1.8.0
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
@@ -61,6 +61,10 @@ This is the list of used social sites:
61
 
62
  == Changelog ==
63
 
 
 
 
 
64
  = 1.8.0 =
65
  * Added: Pinterest
66
  * Fixed: Twitter Button
1
  === WP Social Bookmarking Light ===
2
  Contributors: utahvich
3
+ Donate link: https://github.com/utahta/WP-Social-Bookmarking-Light/wiki/Donate
4
  Tags: links, social, bookmarks, bookmarking, Hatena, Livedoor Clip, @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, Pinterest
5
  Requires at least: 2.9.0
6
  Tested up to: 4.3
7
+ Stable tag: 1.8.1
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
61
 
62
  == Changelog ==
63
 
64
+ = 1.8.1 =
65
+ * Updated: Google +1 Button
66
+ * Added: Donate
67
+
68
  = 1.8.0 =
69
  * Added: Pinterest
70
  * Fixed: Twitter Button
wp-social-bookmarking-light.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://github.com/utahta/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: https://github.com/utahta/WP-Social-Bookmarking-Light
8
- Version: 1.8.0
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: https://github.com/utahta/WP-Social-Bookmarking-Light
8
+ Version: 1.8.1
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)