WP Social Bookmarking Light - Version 1.9.0

Version Description

  • Fixed: mixi button. #41
  • Fixed: replaced WP_PLUGIN_URL with plugins_url #42
Download this release

Release Info

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

Code changes from version 1.8.8 to 1.9.0

modules/admin.php CHANGED
@@ -34,7 +34,7 @@ function wp_social_bookmarking_light_admin_print_scripts()
34
  */
35
  function wp_social_bookmarking_light_admin_print_styles()
36
  {
37
- wp_enqueue_style('jquery-ui-tabs', WP_SOCIAL_BOOKMARKING_LIGHT_URL."/libs/jquery/css/pepper-grinder/jquery-ui-1.8.6.custom.css");
38
  }
39
 
40
  /**
@@ -204,13 +204,13 @@ function wsbl_update_sortable()
204
  wsbl_update_services();
205
  });
206
  });
207
- img.attr('src', '<?php echo WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/close_button.png"?>');
208
  img.hover(
209
  function(){
210
- jQuery(this).attr('src', '<?php echo WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/close_button2.png"?>');
211
  },
212
  function(){
213
- jQuery(this).attr('src', '<?php echo WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/close_button.png"?>');
214
  }
215
  );
216
  });
@@ -344,7 +344,7 @@ function wp_social_bookmarking_light_options_page()
344
  }
345
  ?>
346
  </ul>
347
- <div class="wsbl_point_left"><img src='<?php echo WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/point_left.png"?>'></div>
348
  <ul id="wsbl_draggable">
349
  <?php
350
  foreach($class_methods as $method){
@@ -377,30 +377,28 @@ function wp_social_bookmarking_light_options_page()
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>
@@ -857,7 +855,7 @@ function wp_social_bookmarking_light_options_page()
857
  <tr>
858
  <th scope="row">Button type:</th>
859
  <td>
860
- <select name='line_button_type' onchange='jQuery("#line_img").attr("src", "<?php echo WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL ?>/"+this.form.line_button_type.value+".png")'>
861
  <?php
862
  $button_types = array('line20x20', 'line88x20');
863
  foreach($button_types as $button_type){
@@ -865,7 +863,7 @@ function wp_social_bookmarking_light_options_page()
865
  }
866
  ?>
867
  </select>
868
- <img id='line_img' style="vertical-align:middle" src='<?php echo WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/".$options['line']['button_type'] ?>.png'>
869
  </td>
870
  </tr>
871
  <tr>
34
  */
35
  function wp_social_bookmarking_light_admin_print_styles()
36
  {
37
+ wp_enqueue_style('jquery-ui-tabs', wp_social_bookmarking_light_url("libs/jquery/css/pepper-grinder/jquery-ui-1.8.6.custom.css"));
38
  }
39
 
40
  /**
204
  wsbl_update_services();
205
  });
206
  });
207
+ img.attr('src', '<?php echo wp_social_bookmarking_light_images_url("close_button.png")?>');
208
  img.hover(
209
  function(){
210
+ jQuery(this).attr('src', '<?php echo wp_social_bookmarking_light_images_url("close_button2.png")?>');
211
  },
212
  function(){
213
+ jQuery(this).attr('src', '<?php echo wp_social_bookmarking_light_images_url("close_button.png")?>');
214
  }
215
  );
216
  });
344
  }
345
  ?>
346
  </ul>
347
+ <div class="wsbl_point_left"><img src='<?php echo wp_social_bookmarking_light_images_url("point_left.png")?>'></div>
348
  <ul id="wsbl_draggable">
349
  <?php
350
  foreach($class_methods as $method){
377
  <!-- Donate -->
378
  <div id="tabs-1_3">
379
  <table class='form-table'>
380
+ <tr>
381
+ <th></th>
382
+ <td>If you want to support this project, please make a donation.</td>
383
+ </tr>
384
  <tr>
385
  <th scope="row">Amazon:</th>
386
  <td>
387
  <p><b>To: labs.ninxit@gmail.com</b></p>
388
  <p>
389
+ <a href="https://www.amazon.co.jp/gp/product/B005FOVUS2/" target="_blank">ギフト券 - Eメールタイプ</a>
390
  </p>
391
  <p>
392
+ <a href="http://www.amazon.co.jp/registry/wishlist/234SVHP1HFGPR" target=_blank>Wishlist - 欲しいものリスト</a>
393
  </p>
394
  </td>
395
  </tr>
 
 
 
 
 
 
396
  <tr>
397
  <th scope="row">Bitcoin:</th>
398
  <td>
399
  <p>Please Donate To Bitcoin Address:</p>
400
+ <p><b>16H1Q6ZaYC7jX7tBLK2Z3EV9HmQEk5QnBo</b></p>
401
+ <img src="https://cloud.githubusercontent.com/assets/97572/16043856/b8e50f52-327c-11e6-8c0c-bc1f3603d9e0.png">
402
  </td>
403
  </tr>
404
  </table>
855
  <tr>
856
  <th scope="row">Button type:</th>
857
  <td>
858
+ <select name='line_button_type' onchange='jQuery("#line_img").attr("src", "<?php echo wp_social_bookmarking_light_images_url() ?>/"+this.form.line_button_type.value+".png")'>
859
  <?php
860
  $button_types = array('line20x20', 'line88x20');
861
  foreach($button_types as $button_type){
863
  }
864
  ?>
865
  </select>
866
+ <img id='line_img' style="vertical-align:middle" src='<?php echo wp_social_bookmarking_light_images_url($options['line']['button_type']) ?>.png'>
867
  </td>
868
  </tr>
869
  <tr>
modules/services.php CHANGED
@@ -67,7 +67,7 @@ class WpSocialBookmarkingLight
67
  {
68
  $url = "//b.hatena.ne.jp/add?mode=confirm&url={$this->encode_url}&title={$this->encode_title}";
69
  $alt = __( "Bookmark this on Hatena Bookmark", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
70
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/hatena.gif";
71
  return $this->link( $url, $alt, $icon, 16, 12 );
72
  }
73
  function hatena_users()
@@ -130,7 +130,7 @@ class WpSocialBookmarkingLight
130
  {
131
  $url = "http://clip.livedoor.com/redirect?link={$this->encode_url}&title={$this->encode_blogname}%20-%20{$this->encode_title}&ie=utf-8";
132
  $alt = __( "Bookmark this on Livedoor Clip", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
133
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/livedoor.gif";
134
  return $this->link( $url, $alt, $icon, 16, 16 );
135
  }
136
  function livedoor_users()
@@ -148,7 +148,7 @@ class WpSocialBookmarkingLight
148
  {
149
  $url = "http://bookmarks.yahoo.co.jp/bookmarklet/showpopup?t={$this->encode_title}&u={$this->encode_url}&ei=UTF-8";
150
  $alt = __( "Bookmark this on Yahoo Bookmark", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
151
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/yahoo.gif";
152
  return $this->link( $url, $alt, $icon, 16, 16 );
153
  }
154
  function yahoo_users()
@@ -163,7 +163,7 @@ class WpSocialBookmarkingLight
163
  {
164
  $url = "http://buzz.yahoo.com/buzz?targetUrl={$this->encode_url}&headline={$this->encode_title}";
165
  $alt = __( "Buzz This", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
166
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/yahoo_buzz.png";
167
  return $this->link( $url, $alt, $icon, 16, 16 );
168
  }
169
 
@@ -174,7 +174,7 @@ class WpSocialBookmarkingLight
174
  {
175
  $url = "http://clip.nifty.com/create?url={$this->encode_url}&title={$this->encode_title}";
176
  $alt = __( "Bookmark this on @nifty clip", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
177
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/nifty.gif";
178
  return $this->link( $url, $alt, $icon, 16, 16 );
179
  }
180
  function nifty_users()
@@ -216,7 +216,7 @@ class WpSocialBookmarkingLight
216
  {
217
  $url = "http://bookmark.fc2.com/user/post?url={$this->encode_url}&title={$this->encode_title}";
218
  $alt = __( "Bookmark this on FC2 Bookmark", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
219
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/fc2.gif";
220
  return $this->link( $url, $alt, $icon, 16, 16 );
221
  }
222
  function fc2_users()
@@ -234,7 +234,7 @@ class WpSocialBookmarkingLight
234
  {
235
  $url = "http://newsing.jp/nbutton?url={$this->encode_url}&title={$this->encode_title}";
236
  $alt = __( "Newsing it!", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
237
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/newsing.gif";
238
  return $this->link( $url, $alt, $icon, 16, 16 );
239
  }
240
 
@@ -245,7 +245,7 @@ class WpSocialBookmarkingLight
245
  {
246
  $url = "http://www.choix.jp/bloglink/{$this->url}";
247
  $alt = __( "Choix it!", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
248
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/choix.gif";
249
  return $this->link( $url, $alt, $icon, 16, 16 );
250
  }
251
 
@@ -256,7 +256,7 @@ class WpSocialBookmarkingLight
256
  {
257
  $url = "http://www.google.com/bookmarks/mark?op=add&bkmk={$this->encode_url}&title={$this->encode_title}";
258
  $alt = __( "Bookmark this on Google Bookmarks", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
259
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/google.png";
260
  return $this->link( $url, $alt, $icon, 16, 16 );
261
  }
262
 
@@ -267,7 +267,7 @@ class WpSocialBookmarkingLight
267
  {
268
  $url = "http://www.google.com/buzz/post?url={$this->encode_url}&message={$this->encode_title}";
269
  $alt = __( "Post to Google Buzz", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
270
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/google-buzz.png";
271
  return $this->link( $url, $alt, $icon, 16, 16 );
272
  }
273
 
@@ -291,7 +291,7 @@ class WpSocialBookmarkingLight
291
  {
292
  $url = "http://delicious.com/save?url={$this->encode_url}&title={$this->encode_title}";
293
  $alt = __( "Bookmark this on Delicious", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
294
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/delicious.png";
295
  return $this->link( $url, $alt, $icon, 16, 16 );
296
  }
297
 
@@ -302,7 +302,7 @@ class WpSocialBookmarkingLight
302
  {
303
  $url = "http://digg.com/submit?url={$this->encode_url}&title={$this->encode_title}";
304
  $alt = __( "Bookmark this on Digg", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
305
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/digg.png";
306
  return $this->link( $url, $alt, $icon, 16, 16 );
307
  }
308
 
@@ -313,7 +313,7 @@ class WpSocialBookmarkingLight
313
  {
314
  $url = "http://friendfeed.com/?url={$this->encode_url}&title={$this->encode_title}";
315
  $alt = __( "Share on FriendFeed", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
316
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/friendfeed.png";
317
  return $this->link( $url, $alt, $icon, 16, 16 );
318
  }
319
 
@@ -324,7 +324,7 @@ class WpSocialBookmarkingLight
324
  {
325
  $url = "http://www.facebook.com/share.php?u={$this->encode_url}&t={$this->encode_title}";
326
  $alt = __( "Share on Facebook", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
327
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/facebook.png";
328
  return $this->link( $url, $alt, $icon, 16, 16 );
329
  }
330
 
@@ -448,7 +448,7 @@ class WpSocialBookmarkingLight
448
  {
449
  $url = "http://www.reddit.com/submit?url={$this->encode_url}&title={$this->encode_title}";
450
  $alt = __( "Share on reddit", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
451
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/reddit.png";
452
  return $this->link( $url, $alt, $icon, 16, 16 );
453
  }
454
 
@@ -459,7 +459,7 @@ class WpSocialBookmarkingLight
459
  {
460
  $url = "http://www.linkedin.com/shareArticle?mini=true&url={$this->encode_url}&title={$this->encode_title}";
461
  $alt = __( "Share on LinkedIn", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
462
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/linkedin.png";
463
  return $this->link( $url, $alt, $icon, 16, 16 );
464
  }
465
 
@@ -494,7 +494,7 @@ class WpSocialBookmarkingLight
494
  {
495
  $url = "http://www.stumbleupon.com/submit?url={$this->encode_url}&title={$this->encode_title}";
496
  $alt = __( "Share on StumbleUpon", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
497
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/stumbleupon.png";
498
  return $this->link( $url, $alt, $icon, 16, 16 );
499
  }
500
 
@@ -511,7 +511,7 @@ class WpSocialBookmarkingLight
511
  ." data-url='{$this->url}'"
512
  ." data-button='{$data_button}'"
513
  ." data-key='{$data_key}'>Check</a>"
514
- .'<script type="text/javascript" src="http://static.mixi.jp/js/share.js"></script>' );
515
  }
516
 
517
  /**
@@ -581,12 +581,12 @@ class WpSocialBookmarkingLight
581
  {
582
  $options = wp_social_bookmarking_light_options();
583
  if($options['line']['button_type'] == "line88x20"){
584
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/line88x20.png";
585
  $width = 88;
586
  $height = 20;
587
  }
588
  else{
589
- $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/line20x20.png";
590
  $width = 20;
591
  $height = 20;
592
  }
67
  {
68
  $url = "//b.hatena.ne.jp/add?mode=confirm&url={$this->encode_url}&title={$this->encode_title}";
69
  $alt = __( "Bookmark this on Hatena Bookmark", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
70
+ $icon = wp_social_bookmarking_light_images_url("hatena.gif");
71
  return $this->link( $url, $alt, $icon, 16, 12 );
72
  }
73
  function hatena_users()
130
  {
131
  $url = "http://clip.livedoor.com/redirect?link={$this->encode_url}&title={$this->encode_blogname}%20-%20{$this->encode_title}&ie=utf-8";
132
  $alt = __( "Bookmark this on Livedoor Clip", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
133
+ $icon = wp_social_bookmarking_light_images_url("livedoor.gif");
134
  return $this->link( $url, $alt, $icon, 16, 16 );
135
  }
136
  function livedoor_users()
148
  {
149
  $url = "http://bookmarks.yahoo.co.jp/bookmarklet/showpopup?t={$this->encode_title}&u={$this->encode_url}&ei=UTF-8";
150
  $alt = __( "Bookmark this on Yahoo Bookmark", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
151
+ $icon = wp_social_bookmarking_light_images_url("yahoo.gif");
152
  return $this->link( $url, $alt, $icon, 16, 16 );
153
  }
154
  function yahoo_users()
163
  {
164
  $url = "http://buzz.yahoo.com/buzz?targetUrl={$this->encode_url}&headline={$this->encode_title}";
165
  $alt = __( "Buzz This", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
166
+ $icon = wp_social_bookmarking_light_images_url("yahoo_buzz.png");
167
  return $this->link( $url, $alt, $icon, 16, 16 );
168
  }
169
 
174
  {
175
  $url = "http://clip.nifty.com/create?url={$this->encode_url}&title={$this->encode_title}";
176
  $alt = __( "Bookmark this on @nifty clip", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
177
+ $icon = wp_social_bookmarking_light_images_url("nifty.gif");
178
  return $this->link( $url, $alt, $icon, 16, 16 );
179
  }
180
  function nifty_users()
216
  {
217
  $url = "http://bookmark.fc2.com/user/post?url={$this->encode_url}&title={$this->encode_title}";
218
  $alt = __( "Bookmark this on FC2 Bookmark", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
219
+ $icon = wp_social_bookmarking_light_images_url("fc2.gif");
220
  return $this->link( $url, $alt, $icon, 16, 16 );
221
  }
222
  function fc2_users()
234
  {
235
  $url = "http://newsing.jp/nbutton?url={$this->encode_url}&title={$this->encode_title}";
236
  $alt = __( "Newsing it!", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
237
+ $icon = wp_social_bookmarking_light_images_url("newsing.gif");
238
  return $this->link( $url, $alt, $icon, 16, 16 );
239
  }
240
 
245
  {
246
  $url = "http://www.choix.jp/bloglink/{$this->url}";
247
  $alt = __( "Choix it!", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
248
+ $icon = wp_social_bookmarking_light_images_url("choix.gif");
249
  return $this->link( $url, $alt, $icon, 16, 16 );
250
  }
251
 
256
  {
257
  $url = "http://www.google.com/bookmarks/mark?op=add&bkmk={$this->encode_url}&title={$this->encode_title}";
258
  $alt = __( "Bookmark this on Google Bookmarks", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
259
+ $icon = wp_social_bookmarking_light_images_url("google.png");
260
  return $this->link( $url, $alt, $icon, 16, 16 );
261
  }
262
 
267
  {
268
  $url = "http://www.google.com/buzz/post?url={$this->encode_url}&message={$this->encode_title}";
269
  $alt = __( "Post to Google Buzz", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
270
+ $icon = wp_social_bookmarking_light_images_url("google-buzz.png");
271
  return $this->link( $url, $alt, $icon, 16, 16 );
272
  }
273
 
291
  {
292
  $url = "http://delicious.com/save?url={$this->encode_url}&title={$this->encode_title}";
293
  $alt = __( "Bookmark this on Delicious", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
294
+ $icon = wp_social_bookmarking_light_images_url("delicious.png");
295
  return $this->link( $url, $alt, $icon, 16, 16 );
296
  }
297
 
302
  {
303
  $url = "http://digg.com/submit?url={$this->encode_url}&title={$this->encode_title}";
304
  $alt = __( "Bookmark this on Digg", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
305
+ $icon = wp_social_bookmarking_light_images_url("digg.png");
306
  return $this->link( $url, $alt, $icon, 16, 16 );
307
  }
308
 
313
  {
314
  $url = "http://friendfeed.com/?url={$this->encode_url}&title={$this->encode_title}";
315
  $alt = __( "Share on FriendFeed", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
316
+ $icon = wp_social_bookmarking_light_images_url("friendfeed.png");
317
  return $this->link( $url, $alt, $icon, 16, 16 );
318
  }
319
 
324
  {
325
  $url = "http://www.facebook.com/share.php?u={$this->encode_url}&t={$this->encode_title}";
326
  $alt = __( "Share on Facebook", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
327
+ $icon = wp_social_bookmarking_light_images_url("facebook.png");
328
  return $this->link( $url, $alt, $icon, 16, 16 );
329
  }
330
 
448
  {
449
  $url = "http://www.reddit.com/submit?url={$this->encode_url}&title={$this->encode_title}";
450
  $alt = __( "Share on reddit", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
451
+ $icon = wp_social_bookmarking_light_images_url("reddit.png");
452
  return $this->link( $url, $alt, $icon, 16, 16 );
453
  }
454
 
459
  {
460
  $url = "http://www.linkedin.com/shareArticle?mini=true&url={$this->encode_url}&title={$this->encode_title}";
461
  $alt = __( "Share on LinkedIn", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
462
+ $icon = wp_social_bookmarking_light_images_url("linkedin.png");
463
  return $this->link( $url, $alt, $icon, 16, 16 );
464
  }
465
 
494
  {
495
  $url = "http://www.stumbleupon.com/submit?url={$this->encode_url}&title={$this->encode_title}";
496
  $alt = __( "Share on StumbleUpon", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
497
+ $icon = wp_social_bookmarking_light_images_url("stumbleupon.png");
498
  return $this->link( $url, $alt, $icon, 16, 16 );
499
  }
500
 
511
  ." data-url='{$this->url}'"
512
  ." data-button='{$data_button}'"
513
  ." data-key='{$data_key}'>Check</a>"
514
+ .'<script type="text/javascript" src="//static.mixi.jp/js/share.js"></script>' );
515
  }
516
 
517
  /**
581
  {
582
  $options = wp_social_bookmarking_light_options();
583
  if($options['line']['button_type'] == "line88x20"){
584
+ $icon = wp_social_bookmarking_light_images_url("line88x20.png");
585
  $width = 88;
586
  $height = 20;
587
  }
588
  else{
589
+ $icon = wp_social_bookmarking_light_images_url("line20x20.png");
590
  $width = 20;
591
  $height = 20;
592
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.8
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.8 =
65
  * Fixed: WP_SOCIAL_BOOKMARKING_LIGHT_DIR for docker based PaaS. [#38](https://github.com/utahta/WP-Social-Bookmarking-Light/pull/38)
66
 
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.9.0
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
61
 
62
  == Changelog ==
63
 
64
+ = 1.9.0 =
65
+ * Fixed: mixi button. [#41](https://github.com/utahta/WP-Social-Bookmarking-Light/pull/41)
66
+ * Fixed: replaced WP_PLUGIN_URL with plugins_url [#42](https://github.com/utahta/WP-Social-Bookmarking-Light/pull/42)
67
+
68
  = 1.8.8 =
69
  * Fixed: WP_SOCIAL_BOOKMARKING_LIGHT_DIR for docker based PaaS. [#38](https://github.com/utahta/WP-Social-Bookmarking-Light/pull/38)
70
 
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.8
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
@@ -26,17 +26,53 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
  // settings
29
- define( "WP_SOCIAL_BOOKMARKING_LIGHT_DIR", dirname( __FILE__ ) );
30
- define( "WP_SOCIAL_BOOKMARKING_LIGHT_URL", WP_PLUGIN_URL."/wp-social-bookmarking-light" );
31
- define( "WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL", WP_SOCIAL_BOOKMARKING_LIGHT_URL."/images" );
32
- define( "WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN", "wp-social-bookmarking-light" );
33
 
34
- // _e() local domain
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  function _el($val){
36
  _e($val, WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN);
37
  }
 
 
 
 
 
 
38
  function __l($val){
39
- __($val, WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN);
40
  }
41
 
42
  // load modules
@@ -49,7 +85,9 @@ require_once WP_SOCIAL_BOOKMARKING_LIGHT_DIR.'/modules/content.php';
49
  load_plugin_textdomain( WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN, false,
50
  "wp-social-bookmarking-light/po" );
51
 
52
- // initialize
 
 
53
  function wp_social_bookmarking_light_init()
54
  {
55
  add_action('wp_head', 'wp_social_bookmarking_light_wp_head');
@@ -59,4 +97,3 @@ function wp_social_bookmarking_light_init()
59
  }
60
  add_action( 'init', 'wp_social_bookmarking_light_init' );
61
 
62
- ?>
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.9.0
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)
26
  */
27
 
28
  // settings
29
+ define("WP_SOCIAL_BOOKMARKING_LIGHT_DIR", dirname(__FILE__));
30
+ define("WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN", "wp-social-bookmarking-light");
 
 
31
 
32
+ /**
33
+ * returns plugin url
34
+ *
35
+ * @param $path
36
+ * @return string
37
+ */
38
+ function wp_social_bookmarking_light_url($path = "")
39
+ {
40
+ if ($path && is_string($path)) {
41
+ $path = "/".ltrim($path, "/");
42
+ }
43
+ return plugins_url("wp-social-bookmarking-light".$path);
44
+ }
45
+
46
+ /**
47
+ * returns plugin images url
48
+ *
49
+ * @param $path
50
+ * @return string
51
+ */
52
+ function wp_social_bookmarking_light_images_url($path = "")
53
+ {
54
+ if ($path && is_string($path)) {
55
+ $path = "/".ltrim($path, "/");
56
+ }
57
+ return wp_social_bookmarking_light_url("images".$path);
58
+ }
59
+
60
+ /**
61
+ * _e() local domain
62
+ *
63
+ * @param $val
64
+ */
65
  function _el($val){
66
  _e($val, WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN);
67
  }
68
+
69
+ /**
70
+ * __() local domain
71
+ *
72
+ * @param $val
73
+ */
74
  function __l($val){
75
+ return __($val, WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN);
76
  }
77
 
78
  // load modules
85
  load_plugin_textdomain( WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN, false,
86
  "wp-social-bookmarking-light/po" );
87
 
88
+ /**
89
+ * initialize
90
+ */
91
  function wp_social_bookmarking_light_init()
92
  {
93
  add_action('wp_head', 'wp_social_bookmarking_light_wp_head');
97
  }
98
  add_action( 'init', 'wp_social_bookmarking_light_init' );
99