Version Description
- Added FAQ to readme
- Enabled "Include buttons in excerpts" option by default
- Fixed minor title issue with tweet, tumblr and myspace buttons
Download this release
Release Info
Developer | MarijnRongen |
Plugin | Social Sharing Toolkit |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.3.2
- readme.txt +27 -11
- social_sharing_toolkit.php +6 -6
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.marijnrongen.com/wordpress-plugins/
|
|
4 |
Tags: Facebook, Like, LinkedIn, Share, Google, Plus, +1, Twitter, Tweet, StumbleUpon, Stumble, Tumblr, Digg, Reddit, MySpace, Hyves, recommend, social, sharing, widget, shortcode, page, post
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.2.1
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
This plugin enables sharing of your content via popular social networks and can convert Twitter names and hashtags to links. Easy & configurable.
|
@@ -47,24 +47,35 @@ Since version 1.3.0 it is possible to choose if the buttons should be displayed
|
|
47 |
|
48 |
= Excerpts =
|
49 |
|
50 |
-
Version 1.3.0 removed the buttons from excerpts because some themes did not parse the buttons correctly in the excerpt. Version 1.3.1 includes an option where you can choose to display buttons in excerpts. This is
|
51 |
-
|
52 |
-
= Using it somewhere else =
|
53 |
-
|
54 |
-
If you want to display the buttons outside of your content you can use the following code where you want the buttons to appear:
|
55 |
-
'<?php
|
56 |
-
$social_sharing_toolkit = new MR_Social_Sharing_Toolkit();
|
57 |
-
echo $social_sharing_toolkit->create_bookmarks();
|
58 |
-
?>'
|
59 |
|
60 |
= Automatic Twitter links =
|
61 |
|
62 |
This plugin also includes a configurable & improved version of my earlier Automatic Twitter Links plugin. You can decide if you want to convert Twitter names and/or hashtags to links.
|
63 |
Twitter names will link to their Twitter profile and hashtags will link to the Twitter search page.
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
== Installation ==
|
66 |
|
67 |
-
Upload the Social Sharing Toolkit plugin to the wp-content/plugins
|
68 |
|
69 |
== Screenshots ==
|
70 |
|
@@ -96,6 +107,11 @@ Please update to version 1.0.1 to prevent an unexpected printing of the page tit
|
|
96 |
|
97 |
== Changelog ==
|
98 |
|
|
|
|
|
|
|
|
|
|
|
99 |
= 1.3.1 =
|
100 |
* Added feature to choose if buttons display in excerpts (doesn't work on some themes)
|
101 |
|
4 |
Tags: Facebook, Like, LinkedIn, Share, Google, Plus, +1, Twitter, Tweet, StumbleUpon, Stumble, Tumblr, Digg, Reddit, MySpace, Hyves, recommend, social, sharing, widget, shortcode, page, post
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.2.1
|
7 |
+
Stable tag: 1.3.2
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
This plugin enables sharing of your content via popular social networks and can convert Twitter names and hashtags to links. Easy & configurable.
|
47 |
|
48 |
= Excerpts =
|
49 |
|
50 |
+
Version 1.3.0 removed the buttons from excerpts because some themes did not parse the buttons correctly in the excerpt. Version 1.3.1 includes an option where you can choose to display buttons in excerpts. This is enabled by default, you can disable it if your theme has problems displaying the buttons.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
= Automatic Twitter links =
|
53 |
|
54 |
This plugin also includes a configurable & improved version of my earlier Automatic Twitter Links plugin. You can decide if you want to convert Twitter names and/or hashtags to links.
|
55 |
Twitter names will link to their Twitter profile and hashtags will link to the Twitter search page.
|
56 |
|
57 |
+
== Frequently Asked Questions ==
|
58 |
+
|
59 |
+
= My excerpts aren't displaying the buttons but some text is displayed =
|
60 |
+
|
61 |
+
You must disable the option "Include buttons in excerpts", it is enabled by default but some themes use custom excerpts which do not correctly parse the buttons.
|
62 |
+
|
63 |
+
= The buttons are not showing on my posts in the loop =
|
64 |
+
|
65 |
+
You must enable the option "Include buttons in excerpts", but keep in mind some themes use custom excerpts which do not correctly parse the buttons.
|
66 |
+
|
67 |
+
= How do I use display the buttons somewhere else (outside the loop) =
|
68 |
+
|
69 |
+
If you want to display the buttons somewhere else on your site you can use the following code where you want the buttons to appear:
|
70 |
+
`<?php
|
71 |
+
$social_sharing_toolkit = new MR_Social_Sharing_Toolkit();
|
72 |
+
echo $social_sharing_toolkit->create_bookmarks();
|
73 |
+
?>`
|
74 |
+
|
75 |
+
|
76 |
== Installation ==
|
77 |
|
78 |
+
Upload the Social Sharing Toolkit plugin to the `/wp-content/plugins/` folder on your website, activate it and use the 'Social Sharing Toolkit page' under 'Settings' to configure your toolkit.
|
79 |
|
80 |
== Screenshots ==
|
81 |
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 1.3.2 =
|
111 |
+
* Added FAQ to readme
|
112 |
+
* Enabled "Include buttons in excerpts" option by default
|
113 |
+
* Fixed minor title issue with tweet, tumblr and myspace buttons
|
114 |
+
|
115 |
= 1.3.1 =
|
116 |
* Added feature to choose if buttons display in excerpts (doesn't work on some themes)
|
117 |
|
social_sharing_toolkit.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Social Sharing Toolkit
|
4 |
Plugin URI: http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/
|
5 |
Description: This plugin enables sharing of your content via popular social networks and can also convert Twitter names and hashtags to links. Easy & configurable.
|
6 |
-
Version: 1.3.
|
7 |
Author: Marijn Rongen
|
8 |
Author URI: http://www.marijnrongen.com
|
9 |
*/
|
@@ -16,7 +16,7 @@ class MR_Social_Sharing_Toolkit {
|
|
16 |
}
|
17 |
|
18 |
function get_options() {
|
19 |
-
$this->options = array('share' => 1, 'like' => 1, 'tweet' => 1, 'tumblr' => 1, 'stumble' => 1, 'plus' => 1, 'digg' => 1, 'reddit' => 1, 'myspace' => 1, 'hyves' => 1, 'twitter_handle' => '', 'position' => 'none', 'types' => 'both', 'include_excerpts' =>
|
20 |
foreach ($this->options as $key => $val) {
|
21 |
$this->options[$key] = get_option( $key, $val );
|
22 |
}
|
@@ -250,7 +250,7 @@ class MR_Social_Sharing_Toolkit {
|
|
250 |
$class = 'mr_social_sharing_'.$layout;
|
251 |
$bookmarks = '<div class="mr_social_sharing">
|
252 |
<ul class="mr_social_sharing">
|
253 |
-
<!-- Social Sharing Toolkit v1.3.
|
254 |
if ($this->options['like'] == 1) {
|
255 |
$bookmarks .= '
|
256 |
<li class="'.$class.'">
|
@@ -291,7 +291,7 @@ class MR_Social_Sharing_Toolkit {
|
|
291 |
break;
|
292 |
}
|
293 |
if ($this->options['twitter_handle'] != '') {
|
294 |
-
$bookmarks .= ' data-via="'.$this->options['twitter_handle'].'"';
|
295 |
}
|
296 |
$bookmarks .= '>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
297 |
</li>';
|
@@ -335,7 +335,7 @@ class MR_Social_Sharing_Toolkit {
|
|
335 |
if ($this->options['tumblr'] == 1) {
|
336 |
$bookmarks .= '
|
337 |
<li class="'.$class.'">
|
338 |
-
<a href="http://www.tumblr.com/share" title="Share on Tumblr" style="display:inline-block; text-indent:-9999px; overflow:hidden; ';
|
339 |
switch ($layout) {
|
340 |
case 'horizontal':
|
341 |
$bookmarks .= 'width:81px; height:20px; background:url(\'http://platform.tumblr.com/v1/share_1.png\')';
|
@@ -417,7 +417,7 @@ class MR_Social_Sharing_Toolkit {
|
|
417 |
if ($this->options['myspace'] == 1) {
|
418 |
$bookmarks .= '
|
419 |
<li class="'.$class.'">
|
420 |
-
<a href="javascript:void(window.open(\'http://www.myspace.com/Modules/PostTo/Pages/?u='.urlencode($url).'\',\'ptm\',\'height=450,width=550\').focus())">
|
421 |
<img src="http://cms.myspacecdn.com/cms//ShareOnMySpace/Myspace_btn_';
|
422 |
switch ($layout) {
|
423 |
case 'horizontal':
|
3 |
Plugin Name: Social Sharing Toolkit
|
4 |
Plugin URI: http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/
|
5 |
Description: This plugin enables sharing of your content via popular social networks and can also convert Twitter names and hashtags to links. Easy & configurable.
|
6 |
+
Version: 1.3.2
|
7 |
Author: Marijn Rongen
|
8 |
Author URI: http://www.marijnrongen.com
|
9 |
*/
|
16 |
}
|
17 |
|
18 |
function get_options() {
|
19 |
+
$this->options = array('share' => 1, 'like' => 1, 'tweet' => 1, 'tumblr' => 1, 'stumble' => 1, 'plus' => 1, 'digg' => 1, 'reddit' => 1, 'myspace' => 1, 'hyves' => 1, 'twitter_handle' => '', 'position' => 'none', 'types' => 'both', 'include_excerpts' => 1, 'layout' => 'none', 'linkify_content' => 0, 'linkify_comments' => 0, 'twitter_handles' => 0, 'twitter_hashtags' => 0);
|
20 |
foreach ($this->options as $key => $val) {
|
21 |
$this->options[$key] = get_option( $key, $val );
|
22 |
}
|
250 |
$class = 'mr_social_sharing_'.$layout;
|
251 |
$bookmarks = '<div class="mr_social_sharing">
|
252 |
<ul class="mr_social_sharing">
|
253 |
+
<!-- Social Sharing Toolkit v1.3.2 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->';
|
254 |
if ($this->options['like'] == 1) {
|
255 |
$bookmarks .= '
|
256 |
<li class="'.$class.'">
|
291 |
break;
|
292 |
}
|
293 |
if ($this->options['twitter_handle'] != '') {
|
294 |
+
$bookmarks .= ' data-text="'.$title.'" data-via="'.$this->options['twitter_handle'].'"';
|
295 |
}
|
296 |
$bookmarks .= '>Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
297 |
</li>';
|
335 |
if ($this->options['tumblr'] == 1) {
|
336 |
$bookmarks .= '
|
337 |
<li class="'.$class.'">
|
338 |
+
<a href="http://www.tumblr.com/share/link?url='.urlencode($url).'&name='.urlencode($title).'" title="Share on Tumblr" style="display:inline-block; text-indent:-9999px; overflow:hidden; ';
|
339 |
switch ($layout) {
|
340 |
case 'horizontal':
|
341 |
$bookmarks .= 'width:81px; height:20px; background:url(\'http://platform.tumblr.com/v1/share_1.png\')';
|
417 |
if ($this->options['myspace'] == 1) {
|
418 |
$bookmarks .= '
|
419 |
<li class="'.$class.'">
|
420 |
+
<a href="javascript:void(window.open(\'http://www.myspace.com/Modules/PostTo/Pages/?t='.urlencode($title).'&u='.urlencode($url).'\',\'ptm\',\'height=450,width=550\').focus())">
|
421 |
<img src="http://cms.myspacecdn.com/cms//ShareOnMySpace/Myspace_btn_';
|
422 |
switch ($layout) {
|
423 |
case 'horizontal':
|