WP Social Bookmarking Light - Version 1.7.3

Version Description

  • Added: LINE Button
  • Improved: Custom CSS
  • Bug fixed: Facebook Like Button (iframe)
  • Removed: Grow! Button
Download this release

Release Info

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

Code changes from version 1.7.2 to 1.7.3

images/line20x20.png ADDED
Binary file
images/line88x20.png ADDED
Binary file
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', 'grow'];
185
  for(var i in services){
186
  wsbl_tab_toggle(services[i], is_simply);
187
  }
@@ -270,6 +270,7 @@ function wp_social_bookmarking_light_options_page()
270
  <div id="tabs">
271
  <ul>
272
  <li><a href="#tabs-1"><span><?php _e("General Settings") ?></span></a></li>
 
273
  <li id='mixi_settings'><a href="#tabs-2"><span><?php _el("mixi") ?></span></a></li>
274
  <li id='twitter_settings'><a href="#tabs-3"><span><?php _el("twitter") ?></span></a></li>
275
  <li id='hatena_button_settings'><a href="#tabs-4"><span><?php _el("hatena_button") ?></span></a></li>
@@ -279,8 +280,8 @@ function wp_social_bookmarking_light_options_page()
279
  <li id='tumblr_settings'><a href="#tabs-9"><span><?php _el("tumblr") ?></span></a></li>
280
  <li id='atode_settings'><a href="#tabs-10"><span><?php _el("atode") ?></span></a></li>
281
  <li id='google_plus_one_settings'><a href="#tabs-11"><span><?php _el("google_plus_one") ?></span></a></li>
282
- <li id='grow_settings'><a href="#tabs-12"><span><?php _el("grow") ?></span></a></li>
283
- </ul>
284
 
285
  <!-- General -->
286
  <div id="tabs-1">
@@ -313,36 +314,6 @@ function wp_social_bookmarking_light_options_page()
313
  </select>
314
  </td>
315
  </tr>
316
- <tr>
317
- <th scope="row"><?php _el('Padding') ?>:</th>
318
- <td>
319
- Top:
320
- <select name='style_padding_top'>
321
- <?php
322
- for($i = 0; $i < 50; $i++){
323
- ?><option value='<?php echo $i ?>' <?php if( $options['style']['padding_top'] == $i ) echo 'selected'; ?>><?php echo $i?>px</option><?php
324
- }
325
- ?>
326
- </select>
327
- Bottom:
328
- <select name='style_padding_bottom'>
329
- <?php
330
- for($i = 0; $i < 50; $i++){
331
- ?><option value='<?php echo $i ?>' <?php if( $options['style']['padding_bottom'] == $i ) echo 'selected'; ?>><?php echo $i?>px</option><?php
332
- }
333
- ?>
334
- </select>
335
- </td>
336
- </tr>
337
- <tr>
338
- <th scope="row"><?php _el('Float') ?>:</th>
339
- <td>
340
- <select name='style_float'>
341
- <option value='left' <?php if( $options['style']['float'] == 'left' ) echo 'selected'; ?>><?php _el('float_left') ?></option>
342
- <option value='right' <?php if( $options['style']['float'] == 'right' ) echo 'selected'; ?>><?php _el('float_right') ?></option>
343
- </select>
344
- </td>
345
- </tr>
346
  <tr>
347
  <th scope="row"><?php _el('Services') ?>: <br/> <span style="font-size:10px">(drag-and-drop)</span></th>
348
  <td>
@@ -383,6 +354,18 @@ function wp_social_bookmarking_light_options_page()
383
  </table>
384
  </div>
385
 
 
 
 
 
 
 
 
 
 
 
 
 
386
  <!-- mixi -->
387
  <div id="tabs-2">
388
  <!-- General -->
@@ -423,10 +406,12 @@ function wp_social_bookmarking_light_options_page()
423
  <!-- mixi Like -->
424
  <strong>mixi Like</strong>
425
  <table class='form-table'>
 
426
  <th scope="row">Width:</th>
427
  <td>
428
  <input type="text" name='mixi_like_width' value="<?php echo $options['mixi_like']["width"] ?>"/>
429
  </td>
 
430
  </table>
431
  </div>
432
 
@@ -460,18 +445,6 @@ function wp_social_bookmarking_light_options_page()
460
  </select>
461
  </td>
462
  </tr>
463
- <tr>
464
- <th scope="row">Width:</th>
465
- <td>
466
- <input type="text" name='twitter_width' value="<?php echo $options['twitter']['width'] ?>" size=20 />
467
- </td>
468
- </tr>
469
- <tr>
470
- <th scope="row">Height:</th>
471
- <td>
472
- <input type="text" name='twitter_height' value="<?php echo $options['twitter']['height'] ?>" size=20 />
473
- </td>
474
- </tr>
475
  </table>
476
  </div>
477
 
@@ -764,24 +737,26 @@ function wp_social_bookmarking_light_options_page()
764
  </tr>
765
  </table>
766
  </div>
767
-
768
- <!-- grow! button -->
769
- <div id="tabs-12">
770
  <table class='form-table'>
771
- <tr>
772
- <th scope="row">apikey</th>
773
- <td> <input type="text" name='grow_apikey' value="<?php echo $options['grow']["apikey"] ?>" size=50 /></td>
774
- </tr>
775
- <tr>
776
- <th scope="row">Button type</th>
777
- <td>
778
- <input id="square" type="radio" name="grow_button_type" value="square" <?php if('square' == $options['grow']["button_type"]):?> checked="checked" <?php endif; ?>><label for="square">Square</label>
779
- <br/>
780
- <input id="rectangle" type="radio" name="grow_button_type" value="rectangle" <?php if('rectangle' == $options['grow']["button_type"]):?> checked="checked" <?php endif; ?>><label for="rectangle">Rectangle</label>
781
- </td>
782
- </tr>
 
 
783
  </table>
784
- </div>
785
 
786
  </div>
787
  <p class="submit">
@@ -831,7 +806,7 @@ function wp_social_bookmarking_light_options_page()
831
  <tr><td>mixi_like</td><td>mixi Like (require <a href="http://developer.mixi.co.jp/connect/mixi_plugin/mixi_check/mixicheck" onclick="window.open('http://developer.mixi.co.jp/connect/mixi_plugin/mixi_check/mixicheck'); return false;" >mixi check key</a>)</td></tr>
832
  <tr><td>gree</td><td>GREE Social Feedback</td></tr>
833
  <tr><td>atode</td><td>atode (toread)</td></tr>
834
- <tr><td>grow!</td><td>grow! button (require <a href="http://growbutton.com/setting#!get_button" onclick="window.open('http://growbutton.com/setting#!get_button'); return false;" >apikey</a>)</td></tr>
835
  </table>
836
  </div>
837
 
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
  }
270
  <div id="tabs">
271
  <ul>
272
  <li><a href="#tabs-1"><span><?php _e("General Settings") ?></span></a></li>
273
+ <li><a href="#tabs-1_2"><span><?php _e("Styles") ?></span></a></li>
274
  <li id='mixi_settings'><a href="#tabs-2"><span><?php _el("mixi") ?></span></a></li>
275
  <li id='twitter_settings'><a href="#tabs-3"><span><?php _el("twitter") ?></span></a></li>
276
  <li id='hatena_button_settings'><a href="#tabs-4"><span><?php _el("hatena_button") ?></span></a></li>
280
  <li id='tumblr_settings'><a href="#tabs-9"><span><?php _el("tumblr") ?></span></a></li>
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 -->
287
  <div id="tabs-1">
314
  </select>
315
  </td>
316
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  <tr>
318
  <th scope="row"><?php _el('Services') ?>: <br/> <span style="font-size:10px">(drag-and-drop)</span></th>
319
  <td>
354
  </table>
355
  </div>
356
 
357
+ <!-- Styles -->
358
+ <div id="tabs-1_2">
359
+ <table class='form-table'>
360
+ <tr>
361
+ <th scope="row">Custom CSS:</th>
362
+ <td>
363
+ <textarea name="styles" rows="20" cols="80"><?php echo $options['styles'] ?></textarea>
364
+ </td>
365
+ </tr>
366
+ </table>
367
+ </div>
368
+
369
  <!-- mixi -->
370
  <div id="tabs-2">
371
  <!-- General -->
406
  <!-- mixi Like -->
407
  <strong>mixi Like</strong>
408
  <table class='form-table'>
409
+ <tr>
410
  <th scope="row">Width:</th>
411
  <td>
412
  <input type="text" name='mixi_like_width' value="<?php echo $options['mixi_like']["width"] ?>"/>
413
  </td>
414
+ </tr>
415
  </table>
416
  </div>
417
 
445
  </select>
446
  </td>
447
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
448
  </table>
449
  </div>
450
 
737
  </tr>
738
  </table>
739
  </div>
740
+
741
+ <!-- line -->
742
+ <div id="tabs-12">
743
  <table class='form-table'>
744
+ <tr>
745
+ <th scope="row">Button type:</th>
746
+ <td>
747
+ <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")'>
748
+ <?php
749
+ $button_types = array('line20x20', 'line88x20');
750
+ foreach($button_types as $button_type){
751
+ ?><option value='<?php echo $button_type ?>' <?php if( $options['line']['button_type'] == $button_type ) echo 'selected'; ?>><?php echo $button_type?></option><?php
752
+ }
753
+ ?>
754
+ </select>
755
+ <img id='line_img' style="vertical-align:middle" src='<?php echo WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/".$options['line']['button_type'] ?>.png'>
756
+ </td>
757
+ </tr>
758
  </table>
759
+ </div>
760
 
761
  </div>
762
  <p class="submit">
806
  <tr><td>mixi_like</td><td>mixi Like (require <a href="http://developer.mixi.co.jp/connect/mixi_plugin/mixi_check/mixicheck" onclick="window.open('http://developer.mixi.co.jp/connect/mixi_plugin/mixi_check/mixicheck'); return false;" >mixi check key</a>)</td></tr>
807
  <tr><td>gree</td><td>GREE Social Feedback</td></tr>
808
  <tr><td>atode</td><td>atode (toread)</td></tr>
809
+ <tr><td>line</td><td>LINE Button</td></tr>
810
  </table>
811
  </div>
812
 
modules/content.php CHANGED
@@ -33,7 +33,7 @@ function wp_social_bookmarking_light_output( $services, $link, $title )
33
  $service = trim($service);
34
  if($service != ''){
35
  if(in_array($service, $class_methods)){
36
- $out .= '<div>'.call_user_func( array( $wp, $service ) ).'</div>'; // A WpSocialBookmarkingLight method is called.
37
  }
38
  else{
39
  $out .= "<div>[`$service` not found]</div>";
@@ -99,15 +99,9 @@ function wp_social_bookmarking_light_wp_head()
99
  }
100
 
101
  // css
102
- $padding_top = $options['style']['padding_top'];
103
- $padding_bottom = $options['style']['padding_bottom'];
104
- $float = $options['style']['float'];
105
  ?>
106
  <style type="text/css">
107
- div.wp_social_bookmarking_light{border:0 !important;padding:<?php echo $padding_top ?>px 0 <?php echo $padding_bottom ?>px 0 !important;margin:0 !important;}
108
- div.wp_social_bookmarking_light div{float:<?php echo $float ?> !important;border:0 !important;padding:0 4px 0px 0 !important;margin:0 !important;height:21px !important;text-indent:0 !important;}
109
- div.wp_social_bookmarking_light img{border:0 !important;padding:0;margin:0;vertical-align:top !important;}
110
- .wp_social_bookmarking_light_clear{clear:both !important;}
111
  </style>
112
  <!-- END: WP Social Bookmarking Light -->
113
  <?php
@@ -162,13 +156,6 @@ function wp_social_bookmarking_light_wp_footer()
162
  if(in_array('evernote', $services)){
163
  echo '<script type="text/javascript" src="http://static.evernote.com/noteit.js"></script>'."\n";
164
  }
165
-
166
- if(in_array('grow', $services)){
167
- $apikey = $options['grow']['apikey'];
168
- if($apikey && !is_preview()){
169
- echo '<script type="text/javascript" src="http://growbutton.com/javascripts/button.js?apikey=' . $apikey . '&shape=' . $options['grow']['button_type'] .'&insert=false"></script>';
170
- }
171
- }
172
  ?>
173
  <!-- END: WP Social Bookmarking Light -->
174
  <?php
33
  $service = trim($service);
34
  if($service != ''){
35
  if(in_array($service, $class_methods)){
36
+ $out .= '<div class="wsbl_'.$service.'">'.call_user_func( array( $wp, $service ) ).'</div>'; // WpSocialBookmarkingLight method
37
  }
38
  else{
39
  $out .= "<div>[`$service` not found]</div>";
99
  }
100
 
101
  // css
 
 
 
102
  ?>
103
  <style type="text/css">
104
+ <?php echo $options['styles'] ?>
 
 
 
105
  </style>
106
  <!-- END: WP Social Bookmarking Light -->
107
  <?php
156
  if(in_array('evernote', $services)){
157
  echo '<script type="text/javascript" src="http://static.evernote.com/noteit.js"></script>'."\n";
158
  }
 
 
 
 
 
 
 
159
  ?>
160
  <!-- END: WP Social Bookmarking Light -->
161
  <?php
modules/options.php CHANGED
@@ -16,28 +16,51 @@ You should have received a copy of the GNU General Public License
16
  along with this program; if not, write to the Free Software
17
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
  */
19
-
20
  /**
21
  * default option
22
  */
23
  function wp_social_bookmarking_light_default_options()
24
  {
25
- return array( "services" => "hatena, hatena_users, facebook, google_buzz, yahoo, livedoor, friendfeed, tweetmeme, grow",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  "position" => "top",
27
  "single_page" => true,
28
  "is_page" => true,
29
- 'style' => array('padding_top' => '0',
30
- 'padding_bottom' => '0',
31
- 'float' => 'left'),
32
  "mixi" => array('check_key' => '',
33
  'check_robots' => 'noimage',
34
  'button' => 'button-3'),
35
  'mixi_like' => array('width' => '65'),
36
  "twitter" => array('via' => "",
37
  'lang' => "en",
38
- 'count' => 'horizontal',
39
- 'width' => '130',
40
- 'height' => '20'),
41
  "hatena_button" => array('layout' => 'standard'),
42
  'facebook' => array('locale' => 'en_US'),
43
  'facebook_like' => array('version' => 'xfbml',
@@ -58,8 +81,7 @@ function wp_social_bookmarking_light_default_options()
58
  'google_plus_one' => array('button_size' => 'medium',
59
  'lang' => 'en-US',
60
  'count' => true),
61
- 'grow' => array('button_type' => 'square' ,
62
- 'apikey' => ''),
63
  );
64
  }
65
 
@@ -91,21 +113,17 @@ function wp_social_bookmarking_light_options()
91
  function wp_social_bookmarking_light_save_options($data)
92
  {
93
  $options = array("services" => $data["services"],
 
94
  "position" => $data["position"],
95
  "single_page" => $data["single_page"] == 'true',
96
  "is_page" => $data["is_page"] == 'true',
97
- 'style' => array('padding_top' => $data["style_padding_top"],
98
- 'padding_bottom' => $data["style_padding_bottom"],
99
- 'float' => $data["style_float"]),
100
  "mixi" => array('check_key' => $data["mixi_check_key"],
101
  'check_robots' => $data["mixi_check_robots"],
102
  'button' => $data['mixi_button']),
103
  'mixi_like' => array('width' => $data["mixi_like_width"],),
104
  "twitter" => array('via' => $data['twitter_via'],
105
  'lang' => $data['twitter_lang'],
106
- 'count' => $data['twitter_count'],
107
- 'width' => $data['twitter_width'],
108
- 'height' => $data['twitter_height']),
109
  'hatena_button' => array('layout' => $data['hatena_button_layout']),
110
  'facebook' => array('locale' => trim($data['facebook_locale'])),
111
  'facebook_like' => array('version' => $data['facebook_like_version'],
@@ -124,8 +142,7 @@ function wp_social_bookmarking_light_save_options($data)
124
  'google_plus_one' => array('button_size' => $data['google_plus_one_button_size'],
125
  'lang' => $data['google_plus_one_lang'],
126
  'count' => $data['google_plus_one_count'] == 'true'),
127
- 'grow' => array('button_type' => $data['grow_button_type'] ,
128
- 'apikey' => $data['grow_apikey']),
129
  );
130
  update_option( 'wp_social_bookmarking_light_options', $options );
131
  return $options;
16
  along with this program; if not, write to the Free Software
17
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
  */
 
19
  /**
20
  * default option
21
  */
22
  function wp_social_bookmarking_light_default_options()
23
  {
24
+ $styles = <<<EOT
25
+ .wp_social_bookmarking_light{
26
+ border: 0 !important;
27
+ padding: 0 !important;
28
+ margin: 0 !important;
29
+ }
30
+ .wp_social_bookmarking_light div{
31
+ float: left !important;
32
+ border: 0 !important;
33
+ padding: 0 !important;
34
+ margin: 0 5px 0px 0 !important;
35
+ height: 23px !important;
36
+ text-indent: 0 !important;
37
+ }
38
+ .wp_social_bookmarking_light img{
39
+ border: 0 !important;
40
+ padding: 0;
41
+ margin: 0;
42
+ vertical-align: top !important;
43
+ }
44
+ .wp_social_bookmarking_light_clear{
45
+ clear: both !important;
46
+ }
47
+ .wsbl_twitter{
48
+ width: 100px;
49
+ }
50
+ EOT;
51
+
52
+ return array( "services" => "hatena_button, facebook_like, twitter",
53
+ "styles" => $styles,
54
  "position" => "top",
55
  "single_page" => true,
56
  "is_page" => true,
 
 
 
57
  "mixi" => array('check_key' => '',
58
  'check_robots' => 'noimage',
59
  'button' => 'button-3'),
60
  'mixi_like' => array('width' => '65'),
61
  "twitter" => array('via' => "",
62
  'lang' => "en",
63
+ 'count' => 'horizontal'),
 
 
64
  "hatena_button" => array('layout' => 'standard'),
65
  'facebook' => array('locale' => 'en_US'),
66
  'facebook_like' => array('version' => 'xfbml',
81
  'google_plus_one' => array('button_size' => 'medium',
82
  'lang' => 'en-US',
83
  'count' => true),
84
+ 'line' => array('button_type' => 'line88x20'),
 
85
  );
86
  }
87
 
113
  function wp_social_bookmarking_light_save_options($data)
114
  {
115
  $options = array("services" => $data["services"],
116
+ "styles" => $data["styles"],
117
  "position" => $data["position"],
118
  "single_page" => $data["single_page"] == 'true',
119
  "is_page" => $data["is_page"] == 'true',
 
 
 
120
  "mixi" => array('check_key' => $data["mixi_check_key"],
121
  'check_robots' => $data["mixi_check_robots"],
122
  'button' => $data['mixi_button']),
123
  'mixi_like' => array('width' => $data["mixi_like_width"],),
124
  "twitter" => array('via' => $data['twitter_via'],
125
  'lang' => $data['twitter_lang'],
126
+ 'count' => $data['twitter_count']),
 
 
127
  'hatena_button' => array('layout' => $data['hatena_button_layout']),
128
  'facebook' => array('locale' => trim($data['facebook_locale'])),
129
  'facebook_like' => array('version' => $data['facebook_like_version'],
142
  'google_plus_one' => array('button_size' => $data['google_plus_one_button_size'],
143
  'lang' => $data['google_plus_one_lang'],
144
  'count' => $data['google_plus_one_count'] == 'true'),
145
+ 'line' => array('button_type' => $data['line_button_type']),
 
146
  );
147
  update_option( 'wp_social_bookmarking_light_options', $options );
148
  return $options;
modules/services.php CHANGED
@@ -129,8 +129,6 @@ class WpSocialBookmarkingLight
129
  {
130
  $options = wp_social_bookmarking_light_options();
131
  $twitter = $options['twitter'];
132
- $width = $twitter['width'] != '' ? $twitter['width'] : '120';
133
- $height = $twitter['height'] != '' ? $twitter['height'] : '20';
134
  return $this->link_raw('<iframe allowtransparency="true" frameborder="0" scrolling="no"'
135
  .' src="http://platform.twitter.com/widgets/tweet_button.html'
136
  .'?url='.$this->encode_url
@@ -138,8 +136,7 @@ class WpSocialBookmarkingLight
138
  .($twitter['via'] != '' ? '&amp;via='.$twitter['via'] : '')
139
  .'&amp;lang='.$twitter['lang']
140
  .'&amp;count='.$twitter['count']
141
- .'"'
142
- .' style="width:'.$width.'px; height:'.$twitter['height'].'px;">'
143
  .'</iframe>');
144
  }
145
 
@@ -387,7 +384,7 @@ class WpSocialBookmarkingLight
387
  .'&amp;action='.$action
388
  .'&amp;colorscheme='.$colorscheme
389
  .($font == '' ? '' : '&amp;font='.$font)
390
- .($locale == '' ? '' : '$amp;locale='.$locale)
391
  .'&amp;height=21"'
392
  .' scrolling="no" frameborder="0"'
393
  .' style="border:none; overflow:hidden; width:'.$width.'px; height:21px;"'
@@ -552,24 +549,26 @@ class WpSocialBookmarkingLight
552
  }
553
  return '';
554
  }
555
-
556
- /**
557
- * @brief grow!
558
- */
559
- function grow()
560
- {
561
- $site_name = $this->blogname;
562
- $link = $this->url;
563
- $title = $this->title;
564
- $button_type = $options['grow']['button_type'];
565
-
566
- return '<span class="growbutton">' .
567
- '<span style="display: none;" itemscope itemref="' . $button_type . '" itemtype="http://growbutton.com/ns#button">'.
568
- '<span itemprop="url">' . $link . '</span>'.
569
- '<span itemprop="title">' . $title . '</span>'.
570
- '<span itemprop="site_name">'. $site_name . '</span>'.
571
- '</span>';
572
- }
 
 
573
  }
574
 
575
  /**
129
  {
130
  $options = wp_social_bookmarking_light_options();
131
  $twitter = $options['twitter'];
 
 
132
  return $this->link_raw('<iframe allowtransparency="true" frameborder="0" scrolling="no"'
133
  .' src="http://platform.twitter.com/widgets/tweet_button.html'
134
  .'?url='.$this->encode_url
136
  .($twitter['via'] != '' ? '&amp;via='.$twitter['via'] : '')
137
  .'&amp;lang='.$twitter['lang']
138
  .'&amp;count='.$twitter['count']
139
+ .'" style="width:130px; height:20px;">'
 
140
  .'</iframe>');
141
  }
142
 
384
  .'&amp;action='.$action
385
  .'&amp;colorscheme='.$colorscheme
386
  .($font == '' ? '' : '&amp;font='.$font)
387
+ .($locale == '' ? '' : '&amp;locale='.$locale)
388
  .'&amp;height=21"'
389
  .' scrolling="no" frameborder="0"'
390
  .' style="border:none; overflow:hidden; width:'.$width.'px; height:21px;"'
549
  }
550
  return '';
551
  }
552
+
553
+ /**
554
+ * @brief LINE
555
+ */
556
+ function line()
557
+ {
558
+ $options = wp_social_bookmarking_light_options();
559
+ if($options['line']['button_type'] == "line88x20"){
560
+ $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/line88x20.png";
561
+ $width = 88;
562
+ $height = 20;
563
+ }
564
+ else{
565
+ $icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/line20x20.png";
566
+ $width = 20;
567
+ $height = 20;
568
+ }
569
+ return $this->link("http://line.naver.jp/R/msg/text/?{$this->title}%0D%0A{$this->url}", "LINEで送る", $icon, $width, $height);
570
+ }
571
+
572
  }
573
 
574
  /**
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, grow!
5
  Requires at least: 2.9.0
6
- Tested up to: 3.1.2
7
- Stable tag: 1.7.2
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
@@ -43,7 +43,7 @@ This is the list of used social sites:
43
  * mixi Like
44
  * GREE Social Feedback
45
  * atode (toread)
46
- * Grow!
47
 
48
  == Installation ==
49
 
@@ -59,6 +59,12 @@ This is the list of used social sites:
59
 
60
  == Changelog ==
61
 
 
 
 
 
 
 
62
  = 1.7.2 =
63
  * Bug fixed: Grow! Button.
64
 
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.3
8
 
9
  This plugin inserts social share links at the top or bottom of each post.
10
 
43
  * mixi Like
44
  * GREE Social Feedback
45
  * atode (toread)
46
+ * LINE
47
 
48
  == Installation ==
49
 
59
 
60
  == Changelog ==
61
 
62
+ = 1.7.3 =
63
+ * Added: LINE Button
64
+ * Improved: Custom CSS
65
+ * Bug fixed: Facebook Like Button (iframe)
66
+ * Removed: Grow! Button
67
+
68
  = 1.7.2 =
69
  * Bug fixed: Grow! Button.
70
 
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.2
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.3
9
  */
10
  /*
11
  Copyright 2010 utahta (email : labs.ninxit@gmail.com)