Version Description
- Added: Pinterest
- Fixed: Twitter Button
- Removed: twib, tweetmeme, buzzurl
Download this release
Release Info
Developer | utahvich |
Plugin | WP Social Bookmarking Light |
Version | 1.8.0 |
Comparing to | |
See all releases |
Code changes from version 1.7.10 to 1.8.0
- modules/admin.php +119 -34
- modules/content.php +42 -14
- modules/options.php +137 -74
- modules/services.php +76 -59
- readme.txt +8 -3
- wp-social-bookmarking-light.php +1 -1
modules/admin.php
CHANGED
@@ -182,7 +182,7 @@ function wsbl_update_services(is_simply)
|
|
182 |
|
183 |
is_simply = is_simply || false;
|
184 |
var services = ['mixi', 'twitter', 'hatena_button', 'facebook_general', 'facebook_like', 'facebook_share', 'facebook_send',
|
185 |
-
'gree', 'evernote', 'tumblr', 'atode', 'google_plus_one', 'line', 'pocket'];
|
186 |
for(var i in services){
|
187 |
wsbl_tab_toggle(services[i], is_simply);
|
188 |
}
|
@@ -286,6 +286,7 @@ function wp_social_bookmarking_light_options_page()
|
|
286 |
<li id='google_plus_one_settings'><a href="#tabs-11"><span><?php _el("Google Plus One") ?></span></a></li>
|
287 |
<li id='line_settings'><a href="#tabs-12"><span><?php _el("LINE") ?></span></a></li>
|
288 |
<li id='pocket_settings'><a href="#tabs-13"><span><?php _el("Pocket") ?></span></a></li>
|
|
|
289 |
</ul>
|
290 |
|
291 |
<!-- General -->
|
@@ -424,33 +425,69 @@ function wp_social_bookmarking_light_options_page()
|
|
424 |
<!-- Twitter -->
|
425 |
<div id="tabs-3">
|
426 |
<table class='form-table'>
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
<
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
</table>
|
455 |
</div>
|
456 |
|
@@ -815,7 +852,59 @@ function wp_social_bookmarking_light_options_page()
|
|
815 |
</tr>
|
816 |
</table>
|
817 |
</div>
|
818 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
819 |
</div>
|
820 |
<p class="submit">
|
821 |
<input class="button-primary" type="submit" name='save' value='<?php _e('Save Changes') ?>' />
|
@@ -828,17 +917,12 @@ function wp_social_bookmarking_light_options_page()
|
|
828 |
<tr><td>hatena</td><td>Hatena Bookmark</td></tr>
|
829 |
<tr><td>hatena_users</td><td>Hatena Bookmark Users</td></tr>
|
830 |
<tr><td>hatena_button</td><td>Hatena Bookmark Button</td></tr>
|
831 |
-
<tr><td>twib</td><td>Twib - Twitter</td></tr>
|
832 |
-
<tr><td>twib_users</td><td>Twib Users - Twitter</td></tr>
|
833 |
-
<tr><td>tweetmeme</td><td>TweetMeme - Twitter</td></tr>
|
834 |
<tr><td>twitter</td><td>Tweet Button - Twitter</td></tr>
|
835 |
<tr><td>livedoor</td><td>Livedoor Clip</td></tr>
|
836 |
<tr><td>livedoor_users</td><td>Livedoor Clip Users</td></tr>
|
837 |
<tr><td>yahoo</td><td>Yahoo!JAPAN Bookmark</td></tr>
|
838 |
<tr><td>yahoo_users</td><td>Yahoo!JAPAN Bookmark Users</td></tr>
|
839 |
<tr><td>yahoo_buzz</td><td>Yahoo!Buzz</td></tr>
|
840 |
-
<tr><td>buzzurl</td><td>BuzzURL</td></tr>
|
841 |
-
<tr><td>buzzurl_users</td><td>BuzzURL Users</td></tr>
|
842 |
<tr><td>nifty</td><td>@nifty Clip</td></tr>
|
843 |
<tr><td>nifty_users</td><td>@nifty Clip Users</td></tr>
|
844 |
<tr><td>tumblr</td><td>Tumblr</td></tr>
|
@@ -867,6 +951,7 @@ function wp_social_bookmarking_light_options_page()
|
|
867 |
<tr><td>atode</td><td>atode (toread)</td></tr>
|
868 |
<tr><td>line</td><td>LINE Button</td></tr>
|
869 |
<tr><td>pocket</td><td>Pocket Button</td></tr>
|
|
|
870 |
</table>
|
871 |
</div>
|
872 |
|
182 |
|
183 |
is_simply = is_simply || false;
|
184 |
var services = ['mixi', 'twitter', 'hatena_button', 'facebook_general', 'facebook_like', 'facebook_share', 'facebook_send',
|
185 |
+
'gree', 'evernote', 'tumblr', 'atode', 'google_plus_one', 'line', 'pocket', 'pinterest'];
|
186 |
for(var i in services){
|
187 |
wsbl_tab_toggle(services[i], is_simply);
|
188 |
}
|
286 |
<li id='google_plus_one_settings'><a href="#tabs-11"><span><?php _el("Google Plus One") ?></span></a></li>
|
287 |
<li id='line_settings'><a href="#tabs-12"><span><?php _el("LINE") ?></span></a></li>
|
288 |
<li id='pocket_settings'><a href="#tabs-13"><span><?php _el("Pocket") ?></span></a></li>
|
289 |
+
<li id='pinterest_settings'><a href="#tabs-16"><span><?php _el("Pinterest") ?></span></a></li>
|
290 |
</ul>
|
291 |
|
292 |
<!-- General -->
|
425 |
<!-- Twitter -->
|
426 |
<div id="tabs-3">
|
427 |
<table class='form-table'>
|
428 |
+
<tr>
|
429 |
+
<th scope="row">Via: <br> <span style="font-size:10px">(your twitter account)</span></th>
|
430 |
+
<td>
|
431 |
+
<input type="text" name='twitter_via' value="<?php echo $options['twitter']['via'] ?>" size=50 />
|
432 |
+
</td>
|
433 |
+
</tr>
|
434 |
+
<tr>
|
435 |
+
<th scope="row">Related: <br> <span style="font-size:10px">(related twitter account)</span></th>
|
436 |
+
<td>
|
437 |
+
<input type="text" name='twitter_related' value="<?php echo $options['twitter']['related'] ?>" size=50 />
|
438 |
+
</td>
|
439 |
+
</tr>
|
440 |
+
<tr>
|
441 |
+
<th scope="row">Hashtags: <br> <span style="font-size:10px"></span></th>
|
442 |
+
<td>
|
443 |
+
<input type="text" name='twitter_hashtags' value="<?php echo $options['twitter']['hashtags'] ?>" size=50 />
|
444 |
+
</td>
|
445 |
+
</tr>
|
446 |
+
<tr>
|
447 |
+
<th scope="row">Language:</th>
|
448 |
+
<td>
|
449 |
+
<select name='twitter_lang'>
|
450 |
+
<option value="" <?php if( $options['twitter']['lang'] == '' ) echo 'selected'; ?>>---</option>
|
451 |
+
<option value="fr" <?php if( $options['twitter']['lang'] == 'fr' ) echo 'selected'; ?>>French - français</option>
|
452 |
+
<option value="en" <?php if( $options['twitter']['lang'] == 'en' ) echo 'selected'; ?>>English</option>
|
453 |
+
<option value="ar" <?php if( $options['twitter']['lang'] == 'ar' ) echo 'selected'; ?>>Arabic - العربية</option>
|
454 |
+
<option value="ja" <?php if( $options['twitter']['lang'] == 'ja' ) echo 'selected'; ?>>Japanese - 日本語</option>
|
455 |
+
<option value="es" <?php if( $options['twitter']['lang'] == 'es' ) echo 'selected'; ?>>Spanish - Español</option>
|
456 |
+
<option value="de" <?php if( $options['twitter']['lang'] == 'de' ) echo 'selected'; ?>>German - Deutsch</option>
|
457 |
+
<option value="it" <?php if( $options['twitter']['lang'] == 'it' ) echo 'selected'; ?>>Italian - Italiano</option>
|
458 |
+
<option value="id" <?php if( $options['twitter']['lang'] == 'id' ) echo 'selected'; ?>>Indonesian - Bahasa Indonesia</option>
|
459 |
+
<option value="pt" <?php if( $options['twitter']['lang'] == 'pt' ) echo 'selected'; ?>>Portuguese - Português</option>
|
460 |
+
<option value="ko" <?php if( $options['twitter']['lang'] == 'ko' ) echo 'selected'; ?>>Korean - 한국어</option>
|
461 |
+
<option value="tr" <?php if( $options['twitter']['lang'] == 'tr' ) echo 'selected'; ?>>Turkish - Türkçe</option>
|
462 |
+
<option value="ru" <?php if( $options['twitter']['lang'] == 'ru' ) echo 'selected'; ?>>Russian - Русский</option>
|
463 |
+
<option value="nl" <?php if( $options['twitter']['lang'] == 'nl' ) echo 'selected'; ?>>Dutch - Nederlands</option>
|
464 |
+
<option value="fil" <?php if( $options['twitter']['lang'] == 'fil' ) echo 'selected'; ?>>Filipino - Filipino</option>
|
465 |
+
<option value="msa" <?php if( $options['twitter']['lang'] == 'msa' ) echo 'selected'; ?>>Malay - Bahasa Melayu</option>
|
466 |
+
<option value="zh-tw" <?php if( $options['twitter']['lang'] == 'zh-tw' ) echo 'selected'; ?>>Traditional Chinese - 繁體中文</option>
|
467 |
+
<option value="zh-cn" <?php if( $options['twitter']['lang'] == 'zh-cn' ) echo 'selected'; ?>>Simplified Chinese - 简体中文</option>
|
468 |
+
<option value="hi" <?php if( $options['twitter']['lang'] == 'hi' ) echo 'selected'; ?>>Hindi - हिन्दी</option>
|
469 |
+
<option value="no" <?php if( $options['twitter']['lang'] == 'no' ) echo 'selected'; ?>>Norwegian - Norsk</option>
|
470 |
+
<option value="sv" <?php if( $options['twitter']['lang'] == 'sv' ) echo 'selected'; ?>>Swedish - Svenska</option>
|
471 |
+
<option value="fi" <?php if( $options['twitter']['lang'] == 'fi' ) echo 'selected'; ?>>Finnish - Suomi</option>
|
472 |
+
<option value="da" <?php if( $options['twitter']['lang'] == 'da' ) echo 'selected'; ?>>Danish - Dansk</option>
|
473 |
+
<option value="pl" <?php if( $options['twitter']['lang'] == 'pl' ) echo 'selected'; ?>>Polish - Polski</option>
|
474 |
+
<option value="hu" <?php if( $options['twitter']['lang'] == 'hu' ) echo 'selected'; ?>>Hungarian - Magyar</option>
|
475 |
+
<option value="fa" <?php if( $options['twitter']['lang'] == 'fa' ) echo 'selected'; ?>>Farsi - فارسی</option>
|
476 |
+
<option value="he" <?php if( $options['twitter']['lang'] == 'he' ) echo 'selected'; ?>>Hebrew - עִבְרִית</option>
|
477 |
+
<option value="ur" <?php if( $options['twitter']['lang'] == 'ur' ) echo 'selected'; ?>>Urdu - اردو</option>
|
478 |
+
<option value="th" <?php if( $options['twitter']['lang'] == 'th' ) echo 'selected'; ?>>Thai - ภาษาไทย</option>
|
479 |
+
</select>
|
480 |
+
</td>
|
481 |
+
</tr>
|
482 |
+
<tr>
|
483 |
+
<th scope="row">Size:</th>
|
484 |
+
<td>
|
485 |
+
<select name='twitter_size'>
|
486 |
+
<option value='' <?php if( $options['twitter']['size'] === '' ) echo 'selected'; ?>>normal</option>
|
487 |
+
<option value='large' <?php if( $options['twitter']['size'] === 'large' ) echo 'selected'; ?>>large</option>
|
488 |
+
</select>
|
489 |
+
</td>
|
490 |
+
</tr>
|
491 |
</table>
|
492 |
</div>
|
493 |
|
852 |
</tr>
|
853 |
</table>
|
854 |
</div>
|
855 |
+
|
856 |
+
<!-- Pinterest -->
|
857 |
+
<div id="tabs-16">
|
858 |
+
<table class='form-table'>
|
859 |
+
<tr>
|
860 |
+
<th scope="row">Type: <br> <span style="font-size:10px"></span></th>
|
861 |
+
<td>
|
862 |
+
<select name='pinterest_type'>
|
863 |
+
<option value='all' <?php if( $options['pinterest']['type'] === 'all' ) echo 'selected'; ?>>All</option>
|
864 |
+
<option value='hover' <?php if( $options['pinterest']['type'] === 'hover' ) echo 'selected'; ?>>Hover</option>
|
865 |
+
</select>
|
866 |
+
</td>
|
867 |
+
</tr>
|
868 |
+
<tr>
|
869 |
+
<th scope="row">Shape: <br> <span style="font-size:10px"></span></th>
|
870 |
+
<td>
|
871 |
+
<select name='pinterest_shape'>
|
872 |
+
<option value='rect' <?php if( $options['pinterest']['shape'] === 'rect' ) echo 'selected'; ?>>Rectangle</option>
|
873 |
+
<option value='round' <?php if( $options['pinterest']['shape'] === 'round' ) echo 'selected'; ?>>Round</option>
|
874 |
+
</select>
|
875 |
+
</td>
|
876 |
+
</tr>
|
877 |
+
<tr>
|
878 |
+
<th scope="row">Size: <br> <span style="font-size:10px"></span></th>
|
879 |
+
<td>
|
880 |
+
<select name='pinterest_size'>
|
881 |
+
<option value='large' <?php if( $options['pinterest']['size'] === 'large' ) echo 'selected'; ?>>Large</option>
|
882 |
+
<option value='small' <?php if( $options['pinterest']['size'] === 'small' ) echo 'selected'; ?>>Small</option>
|
883 |
+
</select>
|
884 |
+
</td>
|
885 |
+
</tr>
|
886 |
+
<tr>
|
887 |
+
<th scope="row">Color: <br> <span style="font-size:10px"></span></th>
|
888 |
+
<td>
|
889 |
+
<select name='pinterest_color'>
|
890 |
+
<option value='red' <?php if( $options['pinterest']['color'] === 'red' ) echo 'selected'; ?>>Red</option>
|
891 |
+
<option value='gray' <?php if( $options['pinterest']['color'] === 'gray' ) echo 'selected'; ?>>Gray</option>
|
892 |
+
<option value='white' <?php if( $options['pinterest']['color'] === 'white' ) echo 'selected'; ?>>White</option>
|
893 |
+
</select>
|
894 |
+
</td>
|
895 |
+
</tr>
|
896 |
+
<tr>
|
897 |
+
<th scope="row">Language:</th>
|
898 |
+
<td>
|
899 |
+
<select name='pinterest_lang'>
|
900 |
+
<option value="en" <?php if( $options['pinterest']['lang'] == 'en' ) echo 'selected'; ?>>English</option>
|
901 |
+
<option value="ja" <?php if( $options['pinterest']['lang'] == 'ja' ) echo 'selected'; ?>>Japanese - 日本語</option>
|
902 |
+
</select>
|
903 |
+
</td>
|
904 |
+
</tr>
|
905 |
+
</table>
|
906 |
+
</div>
|
907 |
+
|
908 |
</div>
|
909 |
<p class="submit">
|
910 |
<input class="button-primary" type="submit" name='save' value='<?php _e('Save Changes') ?>' />
|
917 |
<tr><td>hatena</td><td>Hatena Bookmark</td></tr>
|
918 |
<tr><td>hatena_users</td><td>Hatena Bookmark Users</td></tr>
|
919 |
<tr><td>hatena_button</td><td>Hatena Bookmark Button</td></tr>
|
|
|
|
|
|
|
920 |
<tr><td>twitter</td><td>Tweet Button - Twitter</td></tr>
|
921 |
<tr><td>livedoor</td><td>Livedoor Clip</td></tr>
|
922 |
<tr><td>livedoor_users</td><td>Livedoor Clip Users</td></tr>
|
923 |
<tr><td>yahoo</td><td>Yahoo!JAPAN Bookmark</td></tr>
|
924 |
<tr><td>yahoo_users</td><td>Yahoo!JAPAN Bookmark Users</td></tr>
|
925 |
<tr><td>yahoo_buzz</td><td>Yahoo!Buzz</td></tr>
|
|
|
|
|
926 |
<tr><td>nifty</td><td>@nifty Clip</td></tr>
|
927 |
<tr><td>nifty_users</td><td>@nifty Clip Users</td></tr>
|
928 |
<tr><td>tumblr</td><td>Tumblr</td></tr>
|
951 |
<tr><td>atode</td><td>atode (toread)</td></tr>
|
952 |
<tr><td>line</td><td>LINE Button</td></tr>
|
953 |
<tr><td>pocket</td><td>Pocket Button</td></tr>
|
954 |
+
<tr><td>pinterest</td><td>Pinterest Button</td></tr>
|
955 |
</table>
|
956 |
</div>
|
957 |
|
modules/content.php
CHANGED
@@ -19,10 +19,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
19 |
|
20 |
/**
|
21 |
* html format
|
22 |
-
*
|
23 |
* @param string $services
|
24 |
* @param string $link
|
25 |
* @param string $title
|
|
|
26 |
*/
|
27 |
function wp_social_bookmarking_light_output( $services, $link, $title )
|
28 |
{
|
@@ -48,7 +49,7 @@ function wp_social_bookmarking_light_output( $services, $link, $title )
|
|
48 |
|
49 |
/**
|
50 |
* echo html format
|
51 |
-
*
|
52 |
* @param string $services
|
53 |
* @param string $link
|
54 |
* @param string $title
|
@@ -73,22 +74,22 @@ function wp_social_bookmarking_light_wp_head()
|
|
73 |
// load options
|
74 |
$options = wp_social_bookmarking_light_options();
|
75 |
$services = explode(",", $options['services']);
|
76 |
-
|
77 |
// mixi-check-robots
|
78 |
if(in_array('mixi', $services)){
|
79 |
?>
|
80 |
<meta name="mixi-check-robots" content="<?php echo $options['mixi']['check_robots'] ?>" />
|
81 |
<?php
|
82 |
}
|
83 |
-
|
84 |
// load javascript
|
85 |
// tumblr
|
86 |
if(in_array('tumblr', $services)){
|
87 |
?><script type="text/javascript" src="http://platform.tumblr.com/v1/share.js"></script><?php
|
88 |
}
|
89 |
// facebook
|
90 |
-
if(in_array('facebook_like', $services) ||
|
91 |
-
in_array('facebook_share', $services) ||
|
92 |
in_array('facebook_send', $services)){
|
93 |
$version = $options['facebook']['version'];
|
94 |
if($version == "html5" || $version == "xfbml"){
|
@@ -101,7 +102,7 @@ function wp_social_bookmarking_light_wp_head()
|
|
101 |
js = d.createElement(s); js.id = id;
|
102 |
js.src = "//connect.facebook.net/<?php echo $locale ?>/sdk.js#xfbml=1&version=v2.0";
|
103 |
fjs.parentNode.insertBefore(js, fjs);
|
104 |
-
}(document, 'script', 'facebook-jssdk'));</script>
|
105 |
<?php
|
106 |
}
|
107 |
}
|
@@ -123,7 +124,7 @@ function wp_social_bookmarking_light_the_content( $content )
|
|
123 |
if( is_feed() || is_404() || is_robots() || is_comments_popup() || (function_exists( 'is_ktai' ) && is_ktai()) ){
|
124 |
return $content;
|
125 |
}
|
126 |
-
|
127 |
$options = wp_social_bookmarking_light_options();
|
128 |
if( $options['single_page'] && !is_singular() ){
|
129 |
return $content;
|
@@ -131,7 +132,7 @@ function wp_social_bookmarking_light_the_content( $content )
|
|
131 |
if( !$options['is_page'] && is_page() ){
|
132 |
return $content;
|
133 |
}
|
134 |
-
|
135 |
$out = wp_social_bookmarking_light_output( $options['services'], get_permalink(), get_the_title() );
|
136 |
if( $out == '' ){
|
137 |
return $content;
|
@@ -159,16 +160,20 @@ function wp_social_bookmarking_light_wp_footer()
|
|
159 |
// load options
|
160 |
$options = wp_social_bookmarking_light_options();
|
161 |
$services = explode(",", $options['services']);
|
162 |
-
|
163 |
/*
|
164 |
* load javascript
|
165 |
*/
|
|
|
|
|
|
|
|
|
166 |
// evernote
|
167 |
-
if(in_array('evernote', $services)){
|
168 |
echo '<script type="text/javascript" src="http://static.evernote.com/noteit.js"></script>'."\n";
|
169 |
}
|
170 |
// Google +1
|
171 |
-
if(in_array('google_plus_one', $services)){
|
172 |
$lang = $options['google_plus_one']['lang'];
|
173 |
?>
|
174 |
<script type="text/javascript">
|
@@ -182,8 +187,31 @@ function wp_social_bookmarking_light_wp_footer()
|
|
182 |
</script>
|
183 |
<?php
|
184 |
}
|
185 |
-
|
186 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
<!-- END: WP Social Bookmarking Light -->
|
188 |
<?php
|
189 |
}
|
19 |
|
20 |
/**
|
21 |
* html format
|
22 |
+
*
|
23 |
* @param string $services
|
24 |
* @param string $link
|
25 |
* @param string $title
|
26 |
+
* @return string
|
27 |
*/
|
28 |
function wp_social_bookmarking_light_output( $services, $link, $title )
|
29 |
{
|
49 |
|
50 |
/**
|
51 |
* echo html format
|
52 |
+
*
|
53 |
* @param string $services
|
54 |
* @param string $link
|
55 |
* @param string $title
|
74 |
// load options
|
75 |
$options = wp_social_bookmarking_light_options();
|
76 |
$services = explode(",", $options['services']);
|
77 |
+
|
78 |
// mixi-check-robots
|
79 |
if(in_array('mixi', $services)){
|
80 |
?>
|
81 |
<meta name="mixi-check-robots" content="<?php echo $options['mixi']['check_robots'] ?>" />
|
82 |
<?php
|
83 |
}
|
84 |
+
|
85 |
// load javascript
|
86 |
// tumblr
|
87 |
if(in_array('tumblr', $services)){
|
88 |
?><script type="text/javascript" src="http://platform.tumblr.com/v1/share.js"></script><?php
|
89 |
}
|
90 |
// facebook
|
91 |
+
if(in_array('facebook_like', $services) ||
|
92 |
+
in_array('facebook_share', $services) ||
|
93 |
in_array('facebook_send', $services)){
|
94 |
$version = $options['facebook']['version'];
|
95 |
if($version == "html5" || $version == "xfbml"){
|
102 |
js = d.createElement(s); js.id = id;
|
103 |
js.src = "//connect.facebook.net/<?php echo $locale ?>/sdk.js#xfbml=1&version=v2.0";
|
104 |
fjs.parentNode.insertBefore(js, fjs);
|
105 |
+
}(document, 'script', 'facebook-jssdk'));</script>
|
106 |
<?php
|
107 |
}
|
108 |
}
|
124 |
if( is_feed() || is_404() || is_robots() || is_comments_popup() || (function_exists( 'is_ktai' ) && is_ktai()) ){
|
125 |
return $content;
|
126 |
}
|
127 |
+
|
128 |
$options = wp_social_bookmarking_light_options();
|
129 |
if( $options['single_page'] && !is_singular() ){
|
130 |
return $content;
|
132 |
if( !$options['is_page'] && is_page() ){
|
133 |
return $content;
|
134 |
}
|
135 |
+
|
136 |
$out = wp_social_bookmarking_light_output( $options['services'], get_permalink(), get_the_title() );
|
137 |
if( $out == '' ){
|
138 |
return $content;
|
160 |
// load options
|
161 |
$options = wp_social_bookmarking_light_options();
|
162 |
$services = explode(",", $options['services']);
|
163 |
+
|
164 |
/*
|
165 |
* load javascript
|
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)) {
|
173 |
echo '<script type="text/javascript" src="http://static.evernote.com/noteit.js"></script>'."\n";
|
174 |
}
|
175 |
// Google +1
|
176 |
+
if (in_array('google_plus_one', $services)) {
|
177 |
$lang = $options['google_plus_one']['lang'];
|
178 |
?>
|
179 |
<script type="text/javascript">
|
187 |
</script>
|
188 |
<?php
|
189 |
}
|
190 |
+
// pinterest
|
191 |
+
if (in_array('pinterest', $services)) {
|
192 |
+
if ($options['pinterest']['type'] === 'all') {
|
193 |
+
$data_pin_hover = $data_pin_shape = $data_pin_color = $data_pin_lang = $data_pin_height = '';
|
194 |
+
} else {
|
195 |
+
$data_pin_hover = 'data-pin-hover="true"';
|
196 |
+
$shape = $options['pinterest']['shape'];
|
197 |
+
$data_pin_shape = $shape === 'round' ? 'data-pin-shape="round"' : '';
|
198 |
+
$data_pin_color = 'data-pin-color="'.$options['pinterest']['color'];
|
199 |
+
$data_pin_lang = 'data-pin-lang="'.$options['pinterest']['lang'];
|
200 |
+
$data_pin_height = '';
|
201 |
+
if ($options['pinterest']['size'] === 'large') {
|
202 |
+
$data_pin_height = $shape === 'round' ? 'data-pin-height="32"' : 'data-pin-height="28"';
|
203 |
+
}
|
204 |
+
}
|
205 |
+
echo '<script type="text/javascript" async defer '
|
206 |
+
.$data_pin_shape.' '
|
207 |
+
.$data_pin_color.' '
|
208 |
+
.$data_pin_lang.' '
|
209 |
+
.$data_pin_height.' '
|
210 |
+
.$data_pin_hover.' '
|
211 |
+
.'src="//assets.pinterest.com/js/pinit.js"></script>';
|
212 |
+
}
|
213 |
+
|
214 |
+
?>
|
215 |
<!-- END: WP Social Bookmarking Light -->
|
216 |
<?php
|
217 |
}
|
modules/options.php
CHANGED
@@ -55,45 +55,76 @@ function wp_social_bookmarking_light_default_options()
|
|
55 |
.wsbl_facebook_like iframe{
|
56 |
max-width: none !important;
|
57 |
}
|
|
|
|
|
|
|
58 |
EOT;
|
59 |
|
60 |
-
return array(
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
);
|
98 |
}
|
99 |
|
@@ -128,43 +159,75 @@ function wp_social_bookmarking_light_save_options($data)
|
|
128 |
foreach ($data as $key => $value) {
|
129 |
$data[$key] = htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
|
130 |
}
|
131 |
-
$options = array(
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
);
|
169 |
update_option( 'wp_social_bookmarking_light_options', $options );
|
170 |
return $options;
|
55 |
.wsbl_facebook_like iframe{
|
56 |
max-width: none !important;
|
57 |
}
|
58 |
+
.wsbl_pinterest a{
|
59 |
+
border: 0px !important;
|
60 |
+
}
|
61 |
EOT;
|
62 |
|
63 |
+
return array(
|
64 |
+
"services" => "hatena_button,facebook_like,twitter",
|
65 |
+
"styles" => $styles,
|
66 |
+
"position" => "top",
|
67 |
+
"single_page" => true,
|
68 |
+
"is_page" => true,
|
69 |
+
"mixi" => array(
|
70 |
+
'check_key' => '',
|
71 |
+
'check_robots' => 'noimage',
|
72 |
+
'button' => 'button-3'
|
73 |
+
),
|
74 |
+
'mixi_like' => array('width' => '65'),
|
75 |
+
"twitter" => array(
|
76 |
+
'via' => "",
|
77 |
+
'lang' => "",
|
78 |
+
'size' => "",
|
79 |
+
'related' => "",
|
80 |
+
'hashtags' => ""
|
81 |
+
),
|
82 |
+
"hatena_button" => array('layout' => 'simple-balloon'),
|
83 |
+
'facebook' => array(
|
84 |
+
'locale' => 'en_US',
|
85 |
+
'version' => 'xfbml',
|
86 |
+
'fb_root' => true
|
87 |
+
),
|
88 |
+
'facebook_like' => array(
|
89 |
+
'layout' => 'button_count',
|
90 |
+
'action' => 'like',
|
91 |
+
'share' => false,
|
92 |
+
'width' => '100'
|
93 |
+
),
|
94 |
+
'facebook_share' => array(
|
95 |
+
'type' => 'button_count',
|
96 |
+
'width' => ''
|
97 |
+
),
|
98 |
+
'facebook_send' => array(
|
99 |
+
'colorscheme' => 'light',
|
100 |
+
'width' => '',
|
101 |
+
'height' => ''
|
102 |
+
),
|
103 |
+
'gree' => array(
|
104 |
+
'button_type' => '4',
|
105 |
+
'button_size' => '16'
|
106 |
+
),
|
107 |
+
'evernote' => array('button_type' => 'article-clipper'),
|
108 |
+
'tumblr' => array('button_type' => '1'),
|
109 |
+
'atode' => array('button_type' => 'iconsja'),
|
110 |
+
'google_plus_one' => array(
|
111 |
+
'button_size' => 'medium',
|
112 |
+
'lang' => 'en-US',
|
113 |
+
'annotation' => 'none',
|
114 |
+
'inline_size' => '250'
|
115 |
+
),
|
116 |
+
'line' => array(
|
117 |
+
'button_type' => 'line88x20',
|
118 |
+
'protocol' => 'http'
|
119 |
+
),
|
120 |
+
'pocket' => array('button_type' => 'none'),
|
121 |
+
'pinterest' => array(
|
122 |
+
'type' => 'all',
|
123 |
+
'shape' => 'rect',
|
124 |
+
'size' => 'large',
|
125 |
+
'color' => 'gray',
|
126 |
+
'lang' => 'en',
|
127 |
+
),
|
128 |
);
|
129 |
}
|
130 |
|
159 |
foreach ($data as $key => $value) {
|
160 |
$data[$key] = htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
|
161 |
}
|
162 |
+
$options = array(
|
163 |
+
"services" => $data["services"],
|
164 |
+
"styles" => $data["styles"],
|
165 |
+
"position" => $data["position"],
|
166 |
+
"single_page" => $data["single_page"] == 'true',
|
167 |
+
"is_page" => $data["is_page"] == 'true',
|
168 |
+
"mixi" => array(
|
169 |
+
'check_key' => $data["mixi_check_key"],
|
170 |
+
'check_robots' => $data["mixi_check_robots"],
|
171 |
+
'button' => $data['mixi_button']
|
172 |
+
),
|
173 |
+
'mixi_like' => array(
|
174 |
+
'width' => $data["mixi_like_width"]
|
175 |
+
),
|
176 |
+
"twitter" => array(
|
177 |
+
'via' => $data['twitter_via'],
|
178 |
+
'lang' => $data['twitter_lang'],
|
179 |
+
'size' => $data['twitter_size'],
|
180 |
+
'related' => $data['twitter_related'],
|
181 |
+
'hashtags' => $data['twitter_hashtags']
|
182 |
+
),
|
183 |
+
'hatena_button' => array(
|
184 |
+
'layout' => $data['hatena_button_layout']
|
185 |
+
),
|
186 |
+
'facebook' => array(
|
187 |
+
'locale' => trim($data['facebook_locale']),
|
188 |
+
'version' => $data['facebook_version'],
|
189 |
+
'fb_root' => $data['facebook_fb_root'] == 'true'
|
190 |
+
),
|
191 |
+
'facebook_like' => array(
|
192 |
+
'layout' => $data['facebook_like_layout'],
|
193 |
+
'action' => $data['facebook_like_action'],
|
194 |
+
'share' => $data['facebook_like_share'] == 'true',
|
195 |
+
'width' => $data['facebook_like_width']
|
196 |
+
),
|
197 |
+
'facebook_share' => array(
|
198 |
+
'type' => $data['facebook_share_type'],
|
199 |
+
'width' => $data['facebook_share_width']
|
200 |
+
),
|
201 |
+
'facebook_send' => array(
|
202 |
+
'colorscheme' => $data['facebook_send_colorscheme'],
|
203 |
+
'width' => $data['facebook_send_width'],
|
204 |
+
'height' => $data['facebook_send_height']
|
205 |
+
),
|
206 |
+
'gree' => array(
|
207 |
+
'button_type' => $data['gree_button_type'],
|
208 |
+
'button_size' => $data['gree_button_size']
|
209 |
+
),
|
210 |
+
'evernote' => array('button_type' => $data['evernote_button_type']),
|
211 |
+
'tumblr' => array('button_type' => $data['tumblr_button_type']),
|
212 |
+
'atode' => array('button_type' => $data['atode_button_type']),
|
213 |
+
'google_plus_one' => array(
|
214 |
+
'button_size' => $data['google_plus_one_button_size'],
|
215 |
+
'lang' => $data['google_plus_one_lang'],
|
216 |
+
'annotation' => $data['google_plus_one_annotation'],
|
217 |
+
'inline_size' => $data['google_plus_one_inline_size']
|
218 |
+
),
|
219 |
+
'line' => array(
|
220 |
+
'button_type' => $data['line_button_type'],
|
221 |
+
'protocol' => $data['line_protocol']
|
222 |
+
),
|
223 |
+
'pocket' => array('button_type' => $data['pocket_button_type']),
|
224 |
+
'pinterest' => array(
|
225 |
+
'type' => $data['pinterest_type'],
|
226 |
+
'shape' => $data['pinterest_shape'],
|
227 |
+
'size' => $data['pinterest_size'],
|
228 |
+
'color' => $data['pinterest_color'],
|
229 |
+
'lang' => $data['pinterest_lang'],
|
230 |
+
),
|
231 |
);
|
232 |
update_option( 'wp_social_bookmarking_light_options', $options );
|
233 |
return $options;
|
modules/services.php
CHANGED
@@ -92,37 +92,7 @@ class WpSocialBookmarkingLight
|
|
92 |
.' alt="'.$alt.'" width="20" height="20" style="border: none;" /></a>'
|
93 |
.'<script type="text/javascript" src="//b.hatena.ne.jp/js/bookmark_button.js" charset="utf-8" async="async"></script>');
|
94 |
}
|
95 |
-
|
96 |
-
/**
|
97 |
-
* @brief twib
|
98 |
-
*/
|
99 |
-
function twib()
|
100 |
-
{
|
101 |
-
$url = "http://twib.jp/share?url={$this->encode_url}";
|
102 |
-
$alt = __( "Post to Twitter", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
|
103 |
-
$icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/twib.gif";
|
104 |
-
return $this->link( $url, $alt, $icon, 18, 18 );
|
105 |
-
}
|
106 |
-
function twib_users()
|
107 |
-
{
|
108 |
-
$url = "http://twib.jp/url/{$this->url}";
|
109 |
-
$alt = sprintf( __("Tweets - %s", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN), $this->title );
|
110 |
-
$icon = "http://image.twib.jp/counter/{$this->url}";
|
111 |
-
return $this->link( $url, $alt, $icon, null, null );
|
112 |
-
}
|
113 |
-
|
114 |
-
/**
|
115 |
-
* @brief tweetmeme
|
116 |
-
*/
|
117 |
-
function tweetmeme()
|
118 |
-
{
|
119 |
-
return $this->link_raw( "<script type='text/javascript'>"
|
120 |
-
."tweetmeme_style = 'compact';"
|
121 |
-
."tweetmeme_url='{$this->url}';"
|
122 |
-
."</script>"
|
123 |
-
."<script type='text/javascript' src='http://tweetmeme.com/i/scripts/button.js'></script>" );
|
124 |
-
}
|
125 |
-
|
126 |
/**
|
127 |
* @brief twitter
|
128 |
*/
|
@@ -130,15 +100,27 @@ class WpSocialBookmarkingLight
|
|
130 |
{
|
131 |
$options = wp_social_bookmarking_light_options();
|
132 |
$twitter = $options['twitter'];
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
}
|
143 |
|
144 |
/**
|
@@ -184,25 +166,7 @@ class WpSocialBookmarkingLight
|
|
184 |
$icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/yahoo_buzz.png";
|
185 |
return $this->link( $url, $alt, $icon, 16, 16 );
|
186 |
}
|
187 |
-
|
188 |
-
/**
|
189 |
-
* @brief BuzzURL
|
190 |
-
*/
|
191 |
-
function buzzurl()
|
192 |
-
{
|
193 |
-
$url = "http://buzzurl.jp/entry/{$this->url}";
|
194 |
-
$alt = __( "Bookmark this on BuzzURL", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN );
|
195 |
-
$icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/buzzurl.gif";
|
196 |
-
return $this->link( $url, $alt, $icon, 21, 15 );
|
197 |
-
}
|
198 |
-
function buzzurl_users()
|
199 |
-
{
|
200 |
-
$url = "http://buzzurl.jp/entry/{$this->url}";
|
201 |
-
$alt = sprintf( __("BuzzURL - %s", WP_SOCIAL_BOOKMARKING_LIGHT_DOMAIN), $this->title );
|
202 |
-
$icon = "http://api.buzzurl.jp/api/counter/v1/image?url={$this->encode_url}";
|
203 |
-
return $this->link( $url, $alt, $icon, null, null );
|
204 |
-
}
|
205 |
-
|
206 |
/**
|
207 |
* @brief nifty clip
|
208 |
*/
|
@@ -643,6 +607,59 @@ class WpSocialBookmarkingLight
|
|
643 |
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>');
|
644 |
}
|
645 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
646 |
}
|
647 |
|
648 |
/**
|
92 |
.' alt="'.$alt.'" width="20" height="20" style="border: none;" /></a>'
|
93 |
.'<script type="text/javascript" src="//b.hatena.ne.jp/js/bookmark_button.js" charset="utf-8" async="async"></script>');
|
94 |
}
|
95 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
/**
|
97 |
* @brief twitter
|
98 |
*/
|
100 |
{
|
101 |
$options = wp_social_bookmarking_light_options();
|
102 |
$twitter = $options['twitter'];
|
103 |
+
$data_url = $this->url;
|
104 |
+
$data_text = $this->title;
|
105 |
+
$data_via = $twitter['via'] !== '' ? 'data-via="'.$twitter['via'].'"' : '';
|
106 |
+
$data_size = $twitter['size'] === 'large' ? 'data-size="large"' : '';
|
107 |
+
$data_related = $twitter['related'] !== '' ? 'data-related="'.$twitter['related'].'"' : '';
|
108 |
+
$data_hashtags = $twitter['hashtags'] !== '' ? 'data-hashtags="'.$twitter['hashtags'].'"' : '';
|
109 |
+
$data_dnt = $twitter['dnt'] ? 'data-dnt="true"' : '';
|
110 |
+
$data_lang = $twitter['lang'] !== '' ? 'data-lang="'.$twitter['lang'].'"' : '';
|
111 |
+
|
112 |
+
return $this->link_raw(
|
113 |
+
'<a href="https://twitter.com/share" class="twitter-share-button"{count}'
|
114 |
+
.' data-url="'.$data_url.'"'
|
115 |
+
.' data-text="'.$data_text.'"'
|
116 |
+
.' '.$data_via
|
117 |
+
.' '.$data_size
|
118 |
+
.' '.$data_related
|
119 |
+
.' '.$data_hashtags
|
120 |
+
.' '.$data_dnt
|
121 |
+
.' '.$data_lang
|
122 |
+
.'>Tweet</a>'
|
123 |
+
);
|
124 |
}
|
125 |
|
126 |
/**
|
166 |
$icon = WP_SOCIAL_BOOKMARKING_LIGHT_IMAGES_URL."/yahoo_buzz.png";
|
167 |
return $this->link( $url, $alt, $icon, 16, 16 );
|
168 |
}
|
169 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
/**
|
171 |
* @brief nifty clip
|
172 |
*/
|
607 |
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>');
|
608 |
}
|
609 |
|
610 |
+
|
611 |
+
/**
|
612 |
+
* @brief pinterest
|
613 |
+
*/
|
614 |
+
function pinterest()
|
615 |
+
{
|
616 |
+
$options = wp_social_bookmarking_light_options();
|
617 |
+
$pinterest = $options['pinterest'];
|
618 |
+
if ($pinterest['type'] === 'hover') {
|
619 |
+
return '';
|
620 |
+
}
|
621 |
+
$data_pin_shape = '';
|
622 |
+
$data_pin_color = '';
|
623 |
+
$data_pin_lang = '';
|
624 |
+
|
625 |
+
if ($pinterest['shape'] === 'round') {
|
626 |
+
// 円形ボタン
|
627 |
+
$data_pin_shape = 'data-pin-shape="round"';
|
628 |
+
|
629 |
+
if ($pinterest['size'] === 'large') {
|
630 |
+
$data_pin_height = 'data-pin-height="32"';
|
631 |
+
$img_src = "//assets.pinterest.com/images/pidgets/pinit_fg_en_round_red_32.png";
|
632 |
+
} else {
|
633 |
+
$data_pin_height = '';
|
634 |
+
$img_src = '//assets.pinterest.com/images/pidgets/pinit_fg_en_round_red_16.png';
|
635 |
+
}
|
636 |
+
} else {
|
637 |
+
// 長方形ボタン
|
638 |
+
$color = $pinterest['color'];
|
639 |
+
$lang = $pinterest['lang'];
|
640 |
+
$data_pin_color = 'data-pin-color="'.$color.'"';
|
641 |
+
$data_pin_lang = 'data-pin-lang="'.$lang.'"';
|
642 |
+
|
643 |
+
if ($pinterest['size'] === 'large') {
|
644 |
+
$data_pin_height = 'data-pin-height="28"';
|
645 |
+
$img_src = "//assets.pinterest.com/images/pidgets/pinit_fg_${lang}_rect_${color}_28.png";
|
646 |
+
} else {
|
647 |
+
$data_pin_height = '';
|
648 |
+
$img_src = "//assets.pinterest.com/images/pidgets/pinit_fg_${lang}_round_${$color}_16.png";
|
649 |
+
}
|
650 |
+
}
|
651 |
+
|
652 |
+
return $this->link_raw(
|
653 |
+
'<a href="//jp.pinterest.com/pin/create/button/"'
|
654 |
+
.' data-pin-do="buttonBookmark"'
|
655 |
+
.' '.$data_pin_color
|
656 |
+
.' '.$data_pin_lang
|
657 |
+
.' '.$data_pin_shape
|
658 |
+
.' '.$data_pin_height
|
659 |
+
.'>'
|
660 |
+
.'<img src="'.$img_src.'" /></a>'
|
661 |
+
);
|
662 |
+
}
|
663 |
}
|
664 |
|
665 |
/**
|
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,
|
5 |
Requires at least: 2.9.0
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
This plugin inserts social share links at the top or bottom of each post.
|
10 |
|
@@ -21,7 +21,6 @@ This is the list of used social sites:
|
|
21 |
* Facebook Send Button
|
22 |
* Twitter
|
23 |
* Livedoor Clip
|
24 |
-
* BuzzURL
|
25 |
* @nifty clip
|
26 |
* Tumblr
|
27 |
* FC2 Bookmark
|
@@ -46,6 +45,7 @@ This is the list of used social sites:
|
|
46 |
* atode (toread)
|
47 |
* LINE
|
48 |
* Pocket
|
|
|
49 |
|
50 |
== Installation ==
|
51 |
|
@@ -61,6 +61,11 @@ This is the list of used social sites:
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
|
|
|
|
64 |
= 1.7.10 =
|
65 |
* Fixed: XSS Vulnerability
|
66 |
|
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 |
|
21 |
* Facebook Send Button
|
22 |
* Twitter
|
23 |
* Livedoor Clip
|
|
|
24 |
* @nifty clip
|
25 |
* Tumblr
|
26 |
* FC2 Bookmark
|
45 |
* atode (toread)
|
46 |
* LINE
|
47 |
* Pocket
|
48 |
+
* Pinterest
|
49 |
|
50 |
== Installation ==
|
51 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.8.0 =
|
65 |
+
* Added: Pinterest
|
66 |
+
* Fixed: Twitter Button
|
67 |
+
* Removed: twib, tweetmeme, buzzurl
|
68 |
+
|
69 |
= 1.7.10 =
|
70 |
* Fixed: XSS Vulnerability
|
71 |
|
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.
|
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.0
|
9 |
*/
|
10 |
/*
|
11 |
Copyright 2010 utahta (email : labs.ninxit@gmail.com)
|