WP Social Bookmarking Light - Version 1.7.5

Version Description

  • Added: Pocket Button
Download this release

Release Info

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

Code changes from version 1.7.4 to 1.7.5

modules/admin.php CHANGED
@@ -181,7 +181,7 @@ function wsbl_update_services(is_simply)
181
  jQuery("#services_id").val(vals);
182
 
183
  is_simply = is_simply || false;
184
- var services = ['mixi', 'twitter', 'hatena_button', 'facebook', 'gree', 'evernote', 'tumblr', 'atode', 'google_plus_one', 'line'];
185
  for(var i in services){
186
  wsbl_tab_toggle(services[i], is_simply);
187
  }
@@ -281,6 +281,7 @@ function wp_social_bookmarking_light_options_page()
281
  <li id='atode_settings'><a href="#tabs-10"><span><?php _el("atode") ?></span></a></li>
282
  <li id='google_plus_one_settings'><a href="#tabs-11"><span><?php _el("google_plus_one") ?></span></a></li>
283
  <li id='line_settings'><a href="#tabs-12"><span><?php _el("line") ?></span></a></li>
 
284
  </ul>
285
 
286
  <!-- General -->
@@ -766,6 +767,22 @@ function wp_social_bookmarking_light_options_page()
766
  </tr>
767
  </table>
768
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
769
 
770
  </div>
771
  <p class="submit">
@@ -816,6 +833,7 @@ function wp_social_bookmarking_light_options_page()
816
  <tr><td>gree</td><td>GREE Social Feedback</td></tr>
817
  <tr><td>atode</td><td>atode (toread)</td></tr>
818
  <tr><td>line</td><td>LINE Button</td></tr>
 
819
  </table>
820
  </div>
821
 
181
  jQuery("#services_id").val(vals);
182
 
183
  is_simply = is_simply || false;
184
+ var services = ['mixi', 'twitter', 'hatena_button', 'facebook', 'gree', 'evernote', 'tumblr', 'atode', 'google_plus_one', 'line', 'pocket'];
185
  for(var i in services){
186
  wsbl_tab_toggle(services[i], is_simply);
187
  }
281
  <li id='atode_settings'><a href="#tabs-10"><span><?php _el("atode") ?></span></a></li>
282
  <li id='google_plus_one_settings'><a href="#tabs-11"><span><?php _el("google_plus_one") ?></span></a></li>
283
  <li id='line_settings'><a href="#tabs-12"><span><?php _el("line") ?></span></a></li>
284
+ <li id='pocket_settings'><a href="#tabs-13"><span><?php _el("pocket") ?></span></a></li>
285
  </ul>
286
 
287
  <!-- General -->
767
  </tr>
768
  </table>
769
  </div>
770
+
771
+ <!-- pocket -->
772
+ <div id="tabs-13">
773
+ <table class='form-table'>
774
+ <tr>
775
+ <th scope="row">Button type:</th>
776
+ <td>
777
+ <select name='pocket_button_type'>
778
+ <option value='none' <?php if( $options['pocket']['button_type'] == 'none' ) echo 'selected'; ?>>none</option>
779
+ <option value='horizontal' <?php if( $options['pocket']['button_type'] == 'horizontal' ) echo 'selected'; ?>>horizontal</option>
780
+ <option value='vertical' <?php if( $options['pocket']['button_type'] == 'vertical' ) echo 'selected'; ?>>vertical</option>
781
+ </select>
782
+ </td>
783
+ </tr>
784
+ </table>
785
+ </div>
786
 
787
  </div>
788
  <p class="submit">
833
  <tr><td>gree</td><td>GREE Social Feedback</td></tr>
834
  <tr><td>atode</td><td>atode (toread)</td></tr>
835
  <tr><td>line</td><td>LINE Button</td></tr>
836
+ <tr><td>pocket</td><td>Pocket Button</td></tr>
837
  </table>
838
  </div>
839
 
modules/options.php CHANGED
@@ -82,7 +82,8 @@ EOT;
82
  'lang' => 'en-US',
83
  'annotation' => 'none',
84
  'inline_size' => '250'),
85
- 'line' => array('button_type' => 'line88x20'),
 
86
  );
87
  }
88
 
@@ -144,7 +145,8 @@ function wp_social_bookmarking_light_save_options($data)
144
  'lang' => $data['google_plus_one_lang'],
145
  'annotation' => $data['google_plus_one_annotation'],
146
  'inline_size' => $data['google_plus_one_inline_size']),
147
- 'line' => array('button_type' => $data['line_button_type']),
 
148
  );
149
  update_option( 'wp_social_bookmarking_light_options', $options );
150
  return $options;
82
  'lang' => 'en-US',
83
  'annotation' => 'none',
84
  'inline_size' => '250'),
85
+ 'line' => array('button_type' => 'line88x20'),
86
+ 'pocket' => array('button_type' => 'none'),
87
  );
88
  }
89
 
145
  'lang' => $data['google_plus_one_lang'],
146
  'annotation' => $data['google_plus_one_annotation'],
147
  'inline_size' => $data['google_plus_one_inline_size']),
148
+ 'line' => array('button_type' => $data['line_button_type']),
149
+ 'pocket' => array('button_type' => $data['pocket_button_type']),
150
  );
151
  update_option( 'wp_social_bookmarking_light_options', $options );
152
  return $options;
modules/services.php CHANGED
@@ -569,7 +569,16 @@ class WpSocialBookmarkingLight
569
  }
570
  return $this->link("http://line.naver.jp/R/msg/text/?{$this->title}%0D%0A{$this->url}", "LINEで送る", $icon, $width, $height);
571
  }
572
-
 
 
 
 
 
 
 
 
 
573
  }
574
 
575
  /**
569
  }
570
  return $this->link("http://line.naver.jp/R/msg/text/?{$this->title}%0D%0A{$this->url}", "LINEで送る", $icon, $width, $height);
571
  }
572
+
573
+ /**
574
+ * @brief Pocket
575
+ */
576
+ function pocket()
577
+ {
578
+ $options = wp_social_bookmarking_light_options();
579
+ return $this->link_raw('<a href="https://getpocket.com/save" class="pocket-btn" data-lang="en" data-save-url="' . $this->url . '" data-pocket-count="' . $options['pocket']['button_type'] . '" data-pocket-align="left" >Pocket</a><script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script>');
580
+ }
581
+
582
  }
583
 
584
  /**
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, 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
5
  Requires at least: 2.9.0
6
  Tested up to: 3.5
7
- Stable tag: 1.7.4
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
@@ -44,6 +44,7 @@ This is the list of used social sites:
44
  * GREE Social Feedback
45
  * atode (toread)
46
  * LINE
 
47
 
48
  == Installation ==
49
 
@@ -59,6 +60,9 @@ This is the list of used social sites:
59
 
60
  == Changelog ==
61
 
 
 
 
62
  = 1.7.4 =
63
  * Fixed: Google +1
64
  * Added: both option
1
  === WP Social Bookmarking Light ===
2
  Contributors: utahvich
3
  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.5
7
+ Stable tag: 1.7.5
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
44
  * GREE Social Feedback
45
  * atode (toread)
46
  * LINE
47
+ * Pocket
48
 
49
  == Installation ==
50
 
60
 
61
  == Changelog ==
62
 
63
+ = 1.7.5 =
64
+ * Added: Pocket Button
65
+
66
  = 1.7.4 =
67
  * Fixed: Google +1
68
  * Added: both 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.7.4
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.5
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)