Version Description
- Added: mixi Like Button.
- Improved: Some options.
Download this release
Release Info
Developer | utahvich |
Plugin | WP Social Bookmarking Light |
Version | 1.6.9 |
Comparing to | |
See all releases |
Code changes from version 1.6.8 to 1.6.9
- modules/admin.php +47 -18
- modules/content.php +2 -1
- modules/options.php +6 -2
- modules/services.php +17 -1
- po/wp-social-bookmarking-light-ja.mo +0 -0
- po/wp-social-bookmarking-light-ja.po +9 -0
- readme.txt +6 -1
- wp-social-bookmarking-light.php +1 -1
modules/admin.php
CHANGED
@@ -122,31 +122,32 @@ function wsbl_get_service_codes()
|
|
122 |
}
|
123 |
|
124 |
/**
|
125 |
-
*
|
126 |
*/
|
127 |
-
function
|
128 |
{
|
129 |
-
|
130 |
-
|
131 |
-
if(jQuery.inArray(service_id, facebook_id) >= 0){
|
132 |
-
for(var i in facebook_id){
|
133 |
-
if(jQuery.inArray(facebook_id[i], services) >= 0){
|
134 |
-
return true;
|
135 |
-
}
|
136 |
-
}
|
137 |
}
|
138 |
-
|
|
|
|
|
|
|
139 |
}
|
140 |
|
141 |
/**
|
142 |
-
*
|
143 |
*/
|
144 |
-
function
|
145 |
{
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
|
|
148 |
}
|
149 |
-
return
|
150 |
}
|
151 |
|
152 |
/**
|
@@ -155,7 +156,7 @@ function wsbl_get_tab_id(service_id)
|
|
155 |
function wsbl_tab_toggle(service_id, is_simply)
|
156 |
{
|
157 |
var has_option = wsbl_has_option(service_id);
|
158 |
-
var tab_id =
|
159 |
|
160 |
var tab_id_settings = "#" + tab_id + "_settings";
|
161 |
if(is_simply){
|
@@ -180,7 +181,7 @@ function wsbl_update_services(is_simply)
|
|
180 |
jQuery("#services_id").val(vals);
|
181 |
|
182 |
is_simply = is_simply || false;
|
183 |
-
var services = ['mixi', 'twitter', 'hatena_button', '
|
184 |
for(var i in services){
|
185 |
wsbl_tab_toggle(services[i], is_simply);
|
186 |
}
|
@@ -332,6 +333,15 @@ function wp_social_bookmarking_light_options_page()
|
|
332 |
</select>
|
333 |
</td>
|
334 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
<tr>
|
336 |
<th scope="row"><?php _el('Services') ?>: <br/> <span style="font-size:10px">(drag-and-drop)</span></th>
|
337 |
<td>
|
@@ -374,6 +384,8 @@ function wp_social_bookmarking_light_options_page()
|
|
374 |
|
375 |
<!-- mixi -->
|
376 |
<div id="tabs-2">
|
|
|
|
|
377 |
<table class='form-table'>
|
378 |
<tr>
|
379 |
<th scope="row">Check Key:</th>
|
@@ -381,6 +393,12 @@ function wp_social_bookmarking_light_options_page()
|
|
381 |
<input type="text" name='mixi_check_key' value="<?php echo $options['mixi']["check_key"] ?>" size=50 />
|
382 |
</td>
|
383 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
384 |
<tr>
|
385 |
<th scope="row">Check Robots:</th>
|
386 |
<td>
|
@@ -399,6 +417,16 @@ function wp_social_bookmarking_light_options_page()
|
|
399 |
</td>
|
400 |
</tr>
|
401 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
</div>
|
403 |
|
404 |
<!-- Twitter -->
|
@@ -781,6 +809,7 @@ function wp_social_bookmarking_light_options_page()
|
|
781 |
<tr><td>instapaper</td><td>Instapaper</td></tr>
|
782 |
<tr><td>stumbleupon</td><td>StumbleUpon</td></tr>
|
783 |
<tr><td>mixi</td><td>mixi Check (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>
|
|
|
784 |
<tr><td>gree</td><td>GREE Social Feedback</td></tr>
|
785 |
<tr><td>atode</td><td>atode (toread)</td></tr>
|
786 |
</table>
|
122 |
}
|
123 |
|
124 |
/**
|
125 |
+
* get tab id.
|
126 |
*/
|
127 |
+
function wsbl_get_tab_ids(service_id)
|
128 |
{
|
129 |
+
if(service_id == 'facebook'){
|
130 |
+
return ['facebook', 'facebook_like', 'facebook_send'];
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
+
if(service_id == 'mixi'){
|
133 |
+
return ['mixi', 'mixi_like'];
|
134 |
+
}
|
135 |
+
return [service_id];
|
136 |
}
|
137 |
|
138 |
/**
|
139 |
+
* has option
|
140 |
*/
|
141 |
+
function wsbl_has_option(service_id)
|
142 |
{
|
143 |
+
var services = wsbl_get_service_codes();
|
144 |
+
var ids = wsbl_get_tab_ids(service_id);
|
145 |
+
for(var i in ids){
|
146 |
+
if(jQuery.inArray(ids[i], services) >= 0){
|
147 |
+
return true;
|
148 |
+
}
|
149 |
}
|
150 |
+
return false;
|
151 |
}
|
152 |
|
153 |
/**
|
156 |
function wsbl_tab_toggle(service_id, is_simply)
|
157 |
{
|
158 |
var has_option = wsbl_has_option(service_id);
|
159 |
+
var tab_id = service_id;
|
160 |
|
161 |
var tab_id_settings = "#" + tab_id + "_settings";
|
162 |
if(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'];
|
185 |
for(var i in services){
|
186 |
wsbl_tab_toggle(services[i], is_simply);
|
187 |
}
|
333 |
</select>
|
334 |
</td>
|
335 |
</tr>
|
336 |
+
<tr>
|
337 |
+
<th scope="row"><?php _el('Float') ?>:</th>
|
338 |
+
<td>
|
339 |
+
<select name='style_float'>
|
340 |
+
<option value='left' <?php if( $options['style']['float'] == 'left' ) echo 'selected'; ?>><?php _el('float_left') ?></option>
|
341 |
+
<option value='right' <?php if( $options['style']['float'] == 'right' ) echo 'selected'; ?>><?php _el('float_right') ?></option>
|
342 |
+
</select>
|
343 |
+
</td>
|
344 |
+
</tr>
|
345 |
<tr>
|
346 |
<th scope="row"><?php _el('Services') ?>: <br/> <span style="font-size:10px">(drag-and-drop)</span></th>
|
347 |
<td>
|
384 |
|
385 |
<!-- mixi -->
|
386 |
<div id="tabs-2">
|
387 |
+
<!-- General -->
|
388 |
+
<strong>General</strong>
|
389 |
<table class='form-table'>
|
390 |
<tr>
|
391 |
<th scope="row">Check Key:</th>
|
393 |
<input type="text" name='mixi_check_key' value="<?php echo $options['mixi']["check_key"] ?>" size=50 />
|
394 |
</td>
|
395 |
</tr>
|
396 |
+
</table>
|
397 |
+
<br/>
|
398 |
+
|
399 |
+
<!-- mixi Check -->
|
400 |
+
<strong>mixi Check</strong>
|
401 |
+
<table class='form-table'>
|
402 |
<tr>
|
403 |
<th scope="row">Check Robots:</th>
|
404 |
<td>
|
417 |
</td>
|
418 |
</tr>
|
419 |
</table>
|
420 |
+
<br/>
|
421 |
+
|
422 |
+
<!-- mixi Like -->
|
423 |
+
<strong>mixi Like</strong>
|
424 |
+
<table class='form-table'>
|
425 |
+
<th scope="row">Width:</th>
|
426 |
+
<td>
|
427 |
+
<input type="text" name='mixi_like_width' value="<?php echo $options['mixi_like']["width"] ?>"/>
|
428 |
+
</td>
|
429 |
+
</table>
|
430 |
</div>
|
431 |
|
432 |
<!-- Twitter -->
|
809 |
<tr><td>instapaper</td><td>Instapaper</td></tr>
|
810 |
<tr><td>stumbleupon</td><td>StumbleUpon</td></tr>
|
811 |
<tr><td>mixi</td><td>mixi Check (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>
|
812 |
+
<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>
|
813 |
<tr><td>gree</td><td>GREE Social Feedback</td></tr>
|
814 |
<tr><td>atode</td><td>atode (toread)</td></tr>
|
815 |
</table>
|
modules/content.php
CHANGED
@@ -101,10 +101,11 @@ function wp_social_bookmarking_light_wp_head()
|
|
101 |
// css
|
102 |
$padding_top = $options['style']['padding_top'];
|
103 |
$padding_bottom = $options['style']['padding_bottom'];
|
|
|
104 |
?>
|
105 |
<style type="text/css">
|
106 |
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;}
|
107 |
-
div.wp_social_bookmarking_light div{float
|
108 |
div.wp_social_bookmarking_light img{border:0 !important;padding:0;margin:0;vertical-align:top !important;}
|
109 |
.wp_social_bookmarking_light_clear{clear:both !important;}
|
110 |
</style>
|
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>
|
modules/options.php
CHANGED
@@ -27,10 +27,12 @@ function wp_social_bookmarking_light_default_options()
|
|
27 |
"single_page" => true,
|
28 |
"is_page" => true,
|
29 |
'style' => array('padding_top' => '0',
|
30 |
-
'padding_bottom' => '0'
|
|
|
31 |
"mixi" => array('check_key' => '',
|
32 |
'check_robots' => 'noimage',
|
33 |
'button' => 'button-3'),
|
|
|
34 |
"twitter" => array('via' => "",
|
35 |
'lang' => "en",
|
36 |
'count' => 'horizontal',
|
@@ -91,10 +93,12 @@ function wp_social_bookmarking_light_save_options($data)
|
|
91 |
"single_page" => $data["single_page"] == 'true',
|
92 |
"is_page" => $data["is_page"] == 'true',
|
93 |
'style' => array('padding_top' => $data["style_padding_top"],
|
94 |
-
'padding_bottom' => $data["style_padding_bottom"]
|
|
|
95 |
"mixi" => array('check_key' => $data["mixi_check_key"],
|
96 |
'check_robots' => $data["mixi_check_robots"],
|
97 |
'button' => $data['mixi_button']),
|
|
|
98 |
"twitter" => array('via' => $data['twitter_via'],
|
99 |
'lang' => $data['twitter_lang'],
|
100 |
'count' => $data['twitter_count'],
|
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',
|
93 |
"single_page" => $data["single_page"] == 'true',
|
94 |
"is_page" => $data["is_page"] == 'true',
|
95 |
'style' => array('padding_top' => $data["style_padding_top"],
|
96 |
+
'padding_bottom' => $data["style_padding_bottom"],
|
97 |
+
'float' => $data["style_float"]),
|
98 |
"mixi" => array('check_key' => $data["mixi_check_key"],
|
99 |
'check_robots' => $data["mixi_check_robots"],
|
100 |
'button' => $data['mixi_button']),
|
101 |
+
'mixi_like' => array('width' => $data["mixi_like_width"],),
|
102 |
"twitter" => array('via' => $data['twitter_via'],
|
103 |
'lang' => $data['twitter_lang'],
|
104 |
'count' => $data['twitter_count'],
|
modules/services.php
CHANGED
@@ -309,7 +309,7 @@ class WpSocialBookmarkingLight
|
|
309 |
return $this->link( $url, $alt, $icon, 16, 16 );
|
310 |
}
|
311 |
/**
|
312 |
-
* @brief Google
|
313 |
*/
|
314 |
function google_plus_one()
|
315 |
{
|
@@ -493,6 +493,22 @@ class WpSocialBookmarkingLight
|
|
493 |
.'<script type="text/javascript" src="http://static.mixi.jp/js/share.js"></script>' );
|
494 |
}
|
495 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
496 |
/**
|
497 |
* @brief GREE Social Feedback
|
498 |
*/
|
309 |
return $this->link( $url, $alt, $icon, 16, 16 );
|
310 |
}
|
311 |
/**
|
312 |
+
* @brief Google +1
|
313 |
*/
|
314 |
function google_plus_one()
|
315 |
{
|
493 |
.'<script type="text/javascript" src="http://static.mixi.jp/js/share.js"></script>' );
|
494 |
}
|
495 |
|
496 |
+
/**
|
497 |
+
* @brief mixi Like
|
498 |
+
*/
|
499 |
+
function mixi_like()
|
500 |
+
{
|
501 |
+
$options = wp_social_bookmarking_light_options();
|
502 |
+
$data_key = $options['mixi']['check_key'];
|
503 |
+
$width = $options['mixi_like']['width'];
|
504 |
+
|
505 |
+
return $this->link_raw('<iframe src="http://plugins.mixi.jp/favorite.pl?href='.$this->encode_url.'&service_key='.$data_key.'&show_faces=false" '
|
506 |
+
.'scrolling="no" '
|
507 |
+
.'frameborder="0" '
|
508 |
+
.'allowTransparency="true" '
|
509 |
+
.'style="border:0; overflow:hidden; width:'.$width.'px; height:20px;"></iframe>');
|
510 |
+
}
|
511 |
+
|
512 |
/**
|
513 |
* @brief GREE Social Feedback
|
514 |
*/
|
po/wp-social-bookmarking-light-ja.mo
CHANGED
Binary file
|
po/wp-social-bookmarking-light-ja.po
CHANGED
@@ -197,3 +197,12 @@ msgstr "説明"
|
|
197 |
msgid "Padding"
|
198 |
msgstr "上下の間隔"
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
msgid "Padding"
|
198 |
msgstr "上下の間隔"
|
199 |
|
200 |
+
msgid "Float"
|
201 |
+
msgstr "整列"
|
202 |
+
|
203 |
+
msgid "float_left"
|
204 |
+
msgstr "左揃え"
|
205 |
+
|
206 |
+
msgid "float_right"
|
207 |
+
msgstr "右揃え"
|
208 |
+
|
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
|
5 |
Requires at least: 2.9.0
|
6 |
Tested up to: 3.1.2
|
7 |
-
Stable tag: 1.6.
|
8 |
|
9 |
This plugin inserts social share links at the top or bottom of each post.
|
10 |
|
@@ -40,6 +40,7 @@ This is the list of used social sites:
|
|
40 |
* Instapaper
|
41 |
* StumbleUpon
|
42 |
* mixi Check
|
|
|
43 |
* GREE Social Feedback
|
44 |
* atode (toread)
|
45 |
|
@@ -57,6 +58,10 @@ This is the list of used social sites:
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
|
|
60 |
= 1.6.8 =
|
61 |
* Added: Google +1 Button
|
62 |
|
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.1.2
|
7 |
+
Stable tag: 1.6.9
|
8 |
|
9 |
This plugin inserts social share links at the top or bottom of each post.
|
10 |
|
40 |
* Instapaper
|
41 |
* StumbleUpon
|
42 |
* mixi Check
|
43 |
+
* mixi Like
|
44 |
* GREE Social Feedback
|
45 |
* atode (toread)
|
46 |
|
58 |
|
59 |
== Changelog ==
|
60 |
|
61 |
+
= 1.6.9 =
|
62 |
+
* Added: mixi Like Button.
|
63 |
+
* Improved: Some options.
|
64 |
+
|
65 |
= 1.6.8 =
|
66 |
* Added: Google +1 Button
|
67 |
|
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.6.
|
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.6.9
|
9 |
*/
|
10 |
/*
|
11 |
Copyright 2010 utahta (email : labs.ninxit@gmail.com)
|