Version Description
- Added: wsbl_embed shortcode #56
Download this release
Release Info
Developer | utahvich |
Plugin | WP Social Bookmarking Light |
Version | 2.0.5 |
Comparing to | |
See all releases |
Code changes from version 2.0.4 to 2.0.5
- modules/content.php +2 -0
- po/wp-social-bookmarking-light-ja.mo +0 -0
- po/wp-social-bookmarking-light-ja.po +4 -4
- readme.txt +6 -1
- src/WpSocialBookmarkingLight/Plugin.php +18 -0
- src/WpSocialBookmarkingLight/Resources/views/Admin/page.html.twig +3 -3
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +3 -3
- wp-social-bookmarking-light.php +1 -1
modules/content.php
CHANGED
@@ -38,6 +38,8 @@ function wp_social_bookmarking_light_output($services, $link, $title)
|
|
38 |
*
|
39 |
* @deprecated
|
40 |
*
|
|
|
|
|
41 |
* @param string $services
|
42 |
* @param string $link
|
43 |
* @param string $title
|
38 |
*
|
39 |
* @deprecated
|
40 |
*
|
41 |
+
* Use [wsbl_embed] shortcode instead.
|
42 |
+
*
|
43 |
* @param string $services
|
44 |
* @param string $link
|
45 |
* @param string $title
|
po/wp-social-bookmarking-light-ja.mo
CHANGED
Binary file
|
po/wp-social-bookmarking-light-ja.po
CHANGED
@@ -167,16 +167,16 @@ msgid "Position"
|
|
167 |
msgstr "位置"
|
168 |
|
169 |
#: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:795
|
170 |
-
msgid "
|
171 |
msgstr "個別記事のみ"
|
172 |
|
173 |
#: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:804
|
174 |
-
msgid "
|
175 |
msgstr "ページ"
|
176 |
|
177 |
#: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:813
|
178 |
-
msgid "Services"
|
179 |
-
msgstr "
|
180 |
|
181 |
#: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:938
|
182 |
msgid "Save Changes"
|
167 |
msgstr "位置"
|
168 |
|
169 |
#: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:795
|
170 |
+
msgid "Individual Article"
|
171 |
msgstr "個別記事のみ"
|
172 |
|
173 |
#: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:804
|
174 |
+
msgid "Pages"
|
175 |
msgstr "ページ"
|
176 |
|
177 |
#: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:813
|
178 |
+
msgid "Enable Services"
|
179 |
+
msgstr "有効なサービス"
|
180 |
|
181 |
#: wp-social-bookmarking-light\trunk/wp-social-bookmarking-light.php:938
|
182 |
msgid "Save Changes"
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://gumroad.com/l/rWLrL
|
|
4 |
Tags: social, bookmarks, bookmarking, Hatena, Twitter, Facebook, Tumblr, Google Bookmark, Delicious, Digg, reddit, LinkedIn, Instapaper, StumbleUpon, mixi, gree, atode, toread, line, pocket, Pinterest
|
5 |
Requires at least: 4.0.0
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 2.0.
|
8 |
|
9 |
This plugin inserts social share links at the top or bottom of each post.
|
10 |
|
@@ -12,6 +12,8 @@ This plugin inserts social share links at the top or bottom of each post.
|
|
12 |
|
13 |
This plugin inserts social share links at the top or bottom of each post.
|
14 |
|
|
|
|
|
15 |
This is the list of used social sites:
|
16 |
|
17 |
* Hatena
|
@@ -49,6 +51,9 @@ This is the list of used social sites:
|
|
49 |
|
50 |
== Changelog ==
|
51 |
|
|
|
|
|
|
|
52 |
= 2.0.4 =
|
53 |
* minimum fix
|
54 |
|
4 |
Tags: social, bookmarks, bookmarking, Hatena, Twitter, Facebook, Tumblr, Google Bookmark, Delicious, Digg, reddit, LinkedIn, Instapaper, StumbleUpon, mixi, gree, atode, toread, line, pocket, Pinterest
|
5 |
Requires at least: 4.0.0
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 2.0.5
|
8 |
|
9 |
This plugin inserts social share links at the top or bottom of each post.
|
10 |
|
12 |
|
13 |
This plugin inserts social share links at the top or bottom of each post.
|
14 |
|
15 |
+
This plugin documentation can be found [here](https://github.com/utahta/WP-Social-Bookmarking-Light/wiki).
|
16 |
+
|
17 |
This is the list of used social sites:
|
18 |
|
19 |
* Hatena
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 2.0.5 =
|
55 |
+
* Added: wsbl_embed shortcode [#56](https://github.com/utahta/WP-Social-Bookmarking-Light/pull/56)
|
56 |
+
|
57 |
= 2.0.4 =
|
58 |
* minimum fix
|
59 |
|
src/WpSocialBookmarkingLight/Plugin.php
CHANGED
@@ -37,6 +37,14 @@ class Plugin
|
|
37 |
return $this->builder;
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
/**
|
41 |
* Initialize wp actions
|
42 |
*/
|
@@ -48,6 +56,16 @@ class Plugin
|
|
48 |
add_action('wp_footer', array($plugin, 'footer'));
|
49 |
add_filter('the_content', array($plugin, 'theContent'));
|
50 |
add_action('admin_menu', array($plugin, 'adminMenu'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
});
|
52 |
}
|
53 |
|
37 |
return $this->builder;
|
38 |
}
|
39 |
|
40 |
+
/**
|
41 |
+
* @return Option
|
42 |
+
*/
|
43 |
+
public function getOption()
|
44 |
+
{
|
45 |
+
return $this->option;
|
46 |
+
}
|
47 |
+
|
48 |
/**
|
49 |
* Initialize wp actions
|
50 |
*/
|
56 |
add_action('wp_footer', array($plugin, 'footer'));
|
57 |
add_filter('the_content', array($plugin, 'theContent'));
|
58 |
add_action('admin_menu', array($plugin, 'adminMenu'));
|
59 |
+
|
60 |
+
add_shortcode('wsbl_embed', function ($attrs) use ($plugin) {
|
61 |
+
$options = $plugin->getOption()->getAll();
|
62 |
+
$v = shortcode_atts(array(
|
63 |
+
'services' => $options['services'],
|
64 |
+
'link' => get_permalink(),
|
65 |
+
'title' => get_the_title(),
|
66 |
+
), $attrs);
|
67 |
+
return $plugin->getBuilder()->content($v['services'], $v['link'], $v['title']);
|
68 |
+
});
|
69 |
});
|
70 |
}
|
71 |
|
src/WpSocialBookmarkingLight/Resources/views/Admin/page.html.twig
CHANGED
@@ -52,7 +52,7 @@
|
|
52 |
</td>
|
53 |
</tr>
|
54 |
<tr>
|
55 |
-
<th scope="row">{{ '
|
56 |
<td>
|
57 |
<select name='single_page'>
|
58 |
<option value='true' {{ option.single_page == true ? 'selected' : '' }}>Yes</option>
|
@@ -61,7 +61,7 @@
|
|
61 |
</td>
|
62 |
</tr>
|
63 |
<tr>
|
64 |
-
<th scope="row">{{ '
|
65 |
<td>
|
66 |
<select name='is_page'>
|
67 |
<option value='true' {{ option.is_page == true ? 'selected' : '' }}>Yes</option>
|
@@ -70,7 +70,7 @@
|
|
70 |
</td>
|
71 |
</tr>
|
72 |
<tr>
|
73 |
-
<th scope="row">{{ 'Services' | __ }}: <br/> <span style="font-size:10px">(drag-and-drop)</span></th>
|
74 |
<td>
|
75 |
<input type="text" id='services_id' name='services' value="{{ option.services }}"size=120 style="font-size:12px;" onclick="this.select(0, this.value.length)" readonly/>
|
76 |
<br />
|
52 |
</td>
|
53 |
</tr>
|
54 |
<tr>
|
55 |
+
<th scope="row">{{ 'Individual Article' | __ }}:</th>
|
56 |
<td>
|
57 |
<select name='single_page'>
|
58 |
<option value='true' {{ option.single_page == true ? 'selected' : '' }}>Yes</option>
|
61 |
</td>
|
62 |
</tr>
|
63 |
<tr>
|
64 |
+
<th scope="row">{{ 'Pages' | __ }}:</th>
|
65 |
<td>
|
66 |
<select name='is_page'>
|
67 |
<option value='true' {{ option.is_page == true ? 'selected' : '' }}>Yes</option>
|
70 |
</td>
|
71 |
</tr>
|
72 |
<tr>
|
73 |
+
<th scope="row">{{ 'Enable Services' | __ }}: <br/> <span style="font-size:10px">(drag-and-drop)</span></th>
|
74 |
<td>
|
75 |
<input type="text" id='services_id' name='services' value="{{ option.services }}"size=120 style="font-size:12px;" onclick="this.select(0, this.value.length)" readonly/>
|
76 |
<br />
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInita01aefdde14df781d747d40ed9622518::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit0c3e97af9fc7c5a329af24bb741b5b91
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInita01aefdde14df781d747d40ed9622518
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInita01aefdde14df781d747d40ed9622518', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInita01aefdde14df781d747d40ed9622518', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInita01aefdde14df781d747d40ed9622518::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $fallbackDirsPsr4 = array (
|
10 |
0 => __DIR__ . '/../..' . '/src',
|
@@ -23,8 +23,8 @@ class ComposerStaticInit0c3e97af9fc7c5a329af24bb741b5b91
|
|
23 |
public static function getInitializer(ClassLoader $loader)
|
24 |
{
|
25 |
return \Closure::bind(function () use ($loader) {
|
26 |
-
$loader->fallbackDirsPsr4 =
|
27 |
-
$loader->prefixesPsr0 =
|
28 |
|
29 |
}, null, ClassLoader::class);
|
30 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInita01aefdde14df781d747d40ed9622518
|
8 |
{
|
9 |
public static $fallbackDirsPsr4 = array (
|
10 |
0 => __DIR__ . '/../..' . '/src',
|
23 |
public static function getInitializer(ClassLoader $loader)
|
24 |
{
|
25 |
return \Closure::bind(function () use ($loader) {
|
26 |
+
$loader->fallbackDirsPsr4 = ComposerStaticInita01aefdde14df781d747d40ed9622518::$fallbackDirsPsr4;
|
27 |
+
$loader->prefixesPsr0 = ComposerStaticInita01aefdde14df781d747d40ed9622518::$prefixesPsr0;
|
28 |
|
29 |
}, null, ClassLoader::class);
|
30 |
}
|
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: 2.0.
|
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: 2.0.5
|
9 |
*/
|
10 |
/*
|
11 |
Copyright 2010 utahta (email : labs.ninxit@gmail.com)
|