Version Description
Download this release
Release Info
Developer | joostdevalk |
Plugin | Sociable |
Version | 2.8.4 |
Comparing to | |
See all releases |
Code changes from version 2.8.3 to 2.8.4
- readme.txt +2 -1
- sociable.php +20 -10
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yoast.com/donate/
|
|
4 |
Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks
|
5 |
Requires at least: 2.2
|
6 |
Tested up to: 2.5.1
|
7 |
-
stable tag: 2.8.
|
8 |
|
9 |
Automatically add links on your posts to popular social bookmarking sites.
|
10 |
|
@@ -19,6 +19,7 @@ More info:
|
|
19 |
|
20 |
**Changelog**
|
21 |
|
|
|
22 |
* 2.8.3 Added wikio.it, upnews.it, muti.co.za, makes LinkedIn work even better, and makes opening in a new window optional
|
23 |
* 2.8.2 Now adds icons to feeds with excerpts too, added LinkedIn
|
24 |
* 2.8.1 Fixed some small issues and made sure tagline shows up again
|
4 |
Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks
|
5 |
Requires at least: 2.2
|
6 |
Tested up to: 2.5.1
|
7 |
+
stable tag: 2.8.4
|
8 |
|
9 |
Automatically add links on your posts to popular social bookmarking sites.
|
10 |
|
19 |
|
20 |
**Changelog**
|
21 |
|
22 |
+
* 2.8.4 Bugfixes.
|
23 |
* 2.8.3 Added wikio.it, upnews.it, muti.co.za, makes LinkedIn work even better, and makes opening in a new window optional
|
24 |
* 2.8.2 Now adds icons to feeds with excerpts too, added LinkedIn
|
25 |
* 2.8.1 Fixed some small issues and made sure tagline shows up again
|
sociable.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Sociable
|
4 |
Plugin URI: http://yoast.com/wordpress/sociable/
|
5 |
Description: Automatically add links on your posts to popular <a href="http://www.maxpower.ca/bookmarking">social bookmarking sites</a>. Go to Options -> Sociable for setup.
|
6 |
-
Version: 2.8.
|
7 |
Author: Joost de Valk
|
8 |
Author URI: http://yoast.com/
|
9 |
|
@@ -271,7 +271,7 @@ $sociable_known_sites = Array(
|
|
271 |
|
272 |
'LinkedIn' => Array(
|
273 |
'favicon' => 'linkedin.png',
|
274 |
-
'url' => 'http://www.linkedin.com/shareArticle?mini=true&url=PERMALINK&title=TITLE',
|
275 |
),
|
276 |
|
277 |
'Linkter' => Array(
|
@@ -646,7 +646,8 @@ $sociable_files = Array(
|
|
646 |
);
|
647 |
|
648 |
function sociable_html($display=Array()) {
|
649 |
-
global $sociable_known_sites, $sociablepluginpath;
|
|
|
650 |
$active_sites = get_option('sociable_active_sites');
|
651 |
|
652 |
$html = "";
|
@@ -663,13 +664,21 @@ function sociable_html($display=Array()) {
|
|
663 |
return "";
|
664 |
|
665 |
// Load the post's data
|
666 |
-
$blogname
|
667 |
-
|
668 |
-
|
669 |
-
$
|
670 |
-
$
|
671 |
-
|
672 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
673 |
|
674 |
$html .= "\n<div class=\"sociable\">\n<div class=\"sociable_tagline\">\n";
|
675 |
$html .= stripslashes(get_option("sociable_tagline"));
|
@@ -688,6 +697,7 @@ function sociable_html($display=Array()) {
|
|
688 |
$url = str_replace('TITLE', $title, $url);
|
689 |
$url = str_replace('RSS', $rss, $url);
|
690 |
$url = str_replace('BLOGNAME', $blogname, $url);
|
|
|
691 |
|
692 |
if (isset($site['description']) && $site['description'] != "") {
|
693 |
$description = $site['description'];
|
3 |
Plugin Name: Sociable
|
4 |
Plugin URI: http://yoast.com/wordpress/sociable/
|
5 |
Description: Automatically add links on your posts to popular <a href="http://www.maxpower.ca/bookmarking">social bookmarking sites</a>. Go to Options -> Sociable for setup.
|
6 |
+
Version: 2.8.4
|
7 |
Author: Joost de Valk
|
8 |
Author URI: http://yoast.com/
|
9 |
|
271 |
|
272 |
'LinkedIn' => Array(
|
273 |
'favicon' => 'linkedin.png',
|
274 |
+
'url' => 'http://www.linkedin.com/shareArticle?mini=true&url=PERMALINK&title=TITLE&source=BLOGNAME&summary=EXCERPT',
|
275 |
),
|
276 |
|
277 |
'Linkter' => Array(
|
646 |
);
|
647 |
|
648 |
function sociable_html($display=Array()) {
|
649 |
+
global $sociable_known_sites, $sociablepluginpath, $wp_query;
|
650 |
+
|
651 |
$active_sites = get_option('sociable_active_sites');
|
652 |
|
653 |
$html = "";
|
664 |
return "";
|
665 |
|
666 |
// Load the post's data
|
667 |
+
$blogname = urlencode(get_bloginfo('name')." ".get_bloginfo('description'));
|
668 |
+
$post = $wp_query->post;
|
669 |
+
|
670 |
+
$excerpt = $post->post_excerpt;
|
671 |
+
if ($excerpt == "") {
|
672 |
+
$excerpt = urlencode(substr(strip_tags($post->post_content),0,250));
|
673 |
+
}
|
674 |
+
$excerpt = str_replace('+','%20',$excerpt);
|
675 |
+
|
676 |
+
$permalink = urlencode(get_permalink($post->ID));
|
677 |
+
|
678 |
+
$title = urlencode($post->post_title);
|
679 |
+
$title = str_replace('+','%20',$title);
|
680 |
+
|
681 |
+
$rss = urlencode(get_bloginfo('ref_url'));
|
682 |
|
683 |
$html .= "\n<div class=\"sociable\">\n<div class=\"sociable_tagline\">\n";
|
684 |
$html .= stripslashes(get_option("sociable_tagline"));
|
697 |
$url = str_replace('TITLE', $title, $url);
|
698 |
$url = str_replace('RSS', $rss, $url);
|
699 |
$url = str_replace('BLOGNAME', $blogname, $url);
|
700 |
+
$url = str_replace('EXCERPT', $excerpt, $url);
|
701 |
|
702 |
if (isset($site['description']) && $site['description'] != "") {
|
703 |
$description = $site['description'];
|