Version Description
- Added new services MOB, , , QQ, LaTafanera, SheToldMe, viadeo FR, Diggita, Design Float
- Removed ID properties from sociable anchor tags (share links)
- FIXED: Having a custom image directory now disables sprite usage, and the icons of services are displayed on sociable configuration page.
Download this release
Release Info
Developer | sociable |
Plugin | Sociable |
Version | 3.5.2 |
Comparing to | |
See all releases |
Code changes from version 3.5.1 to 3.5.2
- images/diggita.png +0 -0
- images/douban.png +0 -0
- images/douban9.png +0 -0
- images/latafanera.png +0 -0
- images/mob.png +0 -0
- images/qq.png +0 -0
- images/services-sprite.png +0 -0
- images/shetoldme.png +0 -0
- images/viadeo.png +0 -0
- readme.txt +7 -2
- sociable.php +81 -10
images/diggita.png
ADDED
Binary file
|
images/douban.png
ADDED
Binary file
|
images/douban9.png
ADDED
Binary file
|
images/latafanera.png
ADDED
Binary file
|
images/mob.png
ADDED
Binary file
|
images/qq.png
ADDED
Binary file
|
images/services-sprite.png
CHANGED
Binary file
|
images/shetoldme.png
ADDED
Binary file
|
images/viadeo.png
ADDED
Binary file
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: sociable
|
3 |
Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks, blogplay
|
4 |
Requires at least: 2.6
|
5 |
-
Tested up to: 2.8.
|
6 |
-
Stable tag: 3.5.
|
7 |
|
8 |
Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
9 |
|
@@ -22,6 +22,11 @@ More info:
|
|
22 |
|
23 |
== Changelog ==
|
24 |
|
|
|
|
|
|
|
|
|
|
|
25 |
= 3.5.1 =
|
26 |
* Fixed the xhtml validation issues
|
27 |
* 'target=blank' (open link in new window) issue solved
|
2 |
Contributors: sociable
|
3 |
Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks, blogplay
|
4 |
Requires at least: 2.6
|
5 |
+
Tested up to: 2.8.5
|
6 |
+
Stable tag: 3.5.2
|
7 |
|
8 |
Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
9 |
|
22 |
|
23 |
== Changelog ==
|
24 |
|
25 |
+
= 3.5.2 =
|
26 |
+
* Added new services MOB, 豆瓣, 豆瓣九点, QQ书签, LaTafanera, SheToldMe, viadeo FR, Diggita, Design Float
|
27 |
+
* Removed ID properties from sociable anchor tags (share links)
|
28 |
+
* FIXED: Having a custom image directory now disables sprite usage, and the icons of services are displayed on sociable configuration page.
|
29 |
+
|
30 |
= 3.5.1 =
|
31 |
* Fixed the xhtml validation issues
|
32 |
* 'target=blank' (open link in new window) issue solved
|
sociable.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Sociable
|
4 |
Plugin URI: http://blogplay.com/plugin
|
5 |
Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
6 |
-
Version: 3.5.
|
7 |
Author: Blogplay
|
8 |
Author URI: http://blogplay.com/
|
9 |
|
@@ -120,7 +120,13 @@ $sociable_known_sites = Array(
|
|
120 |
'url' => 'http://delicious.com/post?url=PERMALINK&title=TITLE&notes=EXCERPT',
|
121 |
'spriteCoordinates' => Array(199,1),
|
122 |
),
|
123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
'Digg' => Array(
|
125 |
'favicon' => 'digg.png',
|
126 |
'url' => 'http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE&bodytext=EXCERPT',
|
@@ -626,6 +632,62 @@ $sociable_known_sites = Array(
|
|
626 |
'spriteCoordinates' => Array(199,73),
|
627 |
'supportsIframe' => false,
|
628 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
629 |
);
|
630 |
|
631 |
/**
|
@@ -773,8 +835,8 @@ function sociable_html($display=array()) {
|
|
773 |
* backend.
|
774 |
*/
|
775 |
$link .= '<a ';
|
776 |
-
$link .= ($sitename=="Blogplay") ? '' : 'rel="nofollow"';
|
777 |
-
|
778 |
/**
|
779 |
* Use the iframe option if it is enabled and supported by the service/site
|
780 |
*/
|
@@ -1113,6 +1175,10 @@ function sociable_submenu() {
|
|
1113 |
update_option( 'sociable_'.$val, $_POST[$val] );
|
1114 |
}
|
1115 |
|
|
|
|
|
|
|
|
|
1116 |
/**
|
1117 |
* Update conditional displays
|
1118 |
*/
|
@@ -1177,21 +1243,25 @@ function sociable_submenu() {
|
|
1177 |
/>
|
1178 |
<?php
|
1179 |
$imagepath = get_option('sociable_imagedir');
|
1180 |
-
if ($imagepath == "")
|
1181 |
-
$imagepath = $sociablepluginpath.'images/';
|
1182 |
|
1183 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
1184 |
if (strpos($site['favicon'], 'http') === 0) {
|
1185 |
$imgsrc = $site['favicon'];
|
1186 |
} else {
|
1187 |
$imgsrc = $imagepath.$site['favicon'];
|
1188 |
}
|
1189 |
-
echo "<img src=\"$imgsrc\" width=\"16\" height=\"16\"
|
1190 |
} else {
|
1191 |
$imgsrc = $imagepath."services-sprite.gif";
|
1192 |
$services_sprite_url = $imagepath . "services-sprite.png";
|
1193 |
$spriteCoords = $site['spriteCoordinates'];
|
1194 |
-
echo "<img src=\"$imgsrc\" width=\"16\" height=\"16\" style=\"background: transparent url($services_sprite_url) no-repeat; background-position:-$spriteCoords[0]px -$spriteCoords[1]px\"
|
1195 |
}
|
1196 |
|
1197 |
echo $sitename; ?>
|
@@ -1273,7 +1343,8 @@ function sociable_submenu() {
|
|
1273 |
</th>
|
1274 |
<td>
|
1275 |
<?php _e("Sociable comes with a nice set of images, if you want to replace those with your own, enter the URL where you've put them in here, and make sure they have the same name as the ones that come with Sociable.", 'sociable'); ?><br/>
|
1276 |
-
<input size="80" type="text" name="imagedir" value="<?php echo attribute_escape(stripslashes(get_option('sociable_imagedir'))); ?>" />
|
|
|
1277 |
</td>
|
1278 |
</tr>
|
1279 |
<tr>
|
3 |
Plugin Name: Sociable
|
4 |
Plugin URI: http://blogplay.com/plugin
|
5 |
Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
6 |
+
Version: 3.5.2
|
7 |
Author: Blogplay
|
8 |
Author URI: http://blogplay.com/
|
9 |
|
120 |
'url' => 'http://delicious.com/post?url=PERMALINK&title=TITLE&notes=EXCERPT',
|
121 |
'spriteCoordinates' => Array(199,1),
|
122 |
),
|
123 |
+
|
124 |
+
'Design Float' => Array(
|
125 |
+
'favicon' => 'designfloat.png',
|
126 |
+
'url' => 'http://www.designfloat.com/submit.php?url=PERMALINK&title=TITLE',
|
127 |
+
'spriteCoordinates' => Array(217,1),
|
128 |
+
),
|
129 |
+
|
130 |
'Digg' => Array(
|
131 |
'favicon' => 'digg.png',
|
132 |
'url' => 'http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE&bodytext=EXCERPT',
|
632 |
'spriteCoordinates' => Array(199,73),
|
633 |
'supportsIframe' => false,
|
634 |
),
|
635 |
+
|
636 |
+
// 3.5.2
|
637 |
+
|
638 |
+
'MOB' => Array(
|
639 |
+
'favicon' => 'mob.png',
|
640 |
+
'url' => 'http://www.mob.com/share.php?u=PERMALINK&t=TITLE',
|
641 |
+
'description' => 'MOB',
|
642 |
+
'spriteCoordinates' => Array(217,73),
|
643 |
+
),
|
644 |
+
|
645 |
+
'豆瓣' => Array(
|
646 |
+
'favicon' => 'douban.png',
|
647 |
+
'url' => 'http://www.douban.com/recommend/?url=PERMALINK&title=TITLE',
|
648 |
+
'description' => '豆瓣',
|
649 |
+
'spriteCoordinates' => Array(235,73),
|
650 |
+
),
|
651 |
+
|
652 |
+
'豆瓣九点' => Array(
|
653 |
+
'favicon' => 'douban9.png',
|
654 |
+
'url' => 'http://www.douban.com/recommend/?url=PERMALINK&title=TITLE&n=1',
|
655 |
+
'description' => '豆瓣九点',
|
656 |
+
'spriteCoordinates' => Array(253,73),
|
657 |
+
),
|
658 |
+
|
659 |
+
'QQ书签' => Array(
|
660 |
+
'favicon' => 'qq.png',
|
661 |
+
'url' => 'http://shuqian.qq.com/post?jumpback=1&title=TITLE&uri=PERMALINK',
|
662 |
+
'description' => 'QQ书签',
|
663 |
+
'spriteCoordinates' => Array(271,73),
|
664 |
+
),
|
665 |
+
|
666 |
+
'LaTafanera' => Array(
|
667 |
+
'favicon' => 'latafanera.png',
|
668 |
+
'url' => 'http://latafanera.cat/submit.php?url=PERMALINK',
|
669 |
+
'spriteCoordinates' => Array(289,73),
|
670 |
+
),
|
671 |
+
|
672 |
+
'SheToldMe' => Array(
|
673 |
+
'favicon' => 'shetoldme.png',
|
674 |
+
'url' => 'http://shetoldme.com/publish?url=PERMALINK&title=TITLE',
|
675 |
+
'spriteCoordinates' => Array(307,73),
|
676 |
+
),
|
677 |
+
|
678 |
+
'viadeo FR' => Array(
|
679 |
+
'favicon' => 'viadeo.png',
|
680 |
+
'url' => 'http://www.viadeo.com/shareit/share/?url=PERMALINK&title=TITLE&urllanguage=fr',
|
681 |
+
'spriteCoordinates' => Array(325,73),
|
682 |
+
),
|
683 |
+
|
684 |
+
'Diggita' => Array(
|
685 |
+
'favicon' => 'diggita.png',
|
686 |
+
'url' => 'http://www.diggita.it/submit.php?url=PERMALINK&title=TITLE',
|
687 |
+
'description' => 'Diggita',
|
688 |
+
'spriteCoordinates' => Array(343,73),
|
689 |
+
),
|
690 |
+
|
691 |
);
|
692 |
|
693 |
/**
|
835 |
* backend.
|
836 |
*/
|
837 |
$link .= '<a ';
|
838 |
+
$link .= ($sitename=="Blogplay") ? '' : 'rel="nofollow" ';
|
839 |
+
//$link .= ' id="'.esc_attr(strtolower(str_replace(" ", "", $sitename))).'" ';
|
840 |
/**
|
841 |
* Use the iframe option if it is enabled and supported by the service/site
|
842 |
*/
|
1175 |
update_option( 'sociable_'.$val, $_POST[$val] );
|
1176 |
}
|
1177 |
|
1178 |
+
if (isset($_POST["imagedir"]) && !trim($_POST["imagedir"]) == "") {
|
1179 |
+
update_option('sociable_disablesprite',true);
|
1180 |
+
}
|
1181 |
+
|
1182 |
/**
|
1183 |
* Update conditional displays
|
1184 |
*/
|
1243 |
/>
|
1244 |
<?php
|
1245 |
$imagepath = get_option('sociable_imagedir');
|
|
|
|
|
1246 |
|
1247 |
+
if ($imagepath == "") {
|
1248 |
+
$imagepath = $sociablepluginpath.'images/';
|
1249 |
+
} else {
|
1250 |
+
$imagepath .= (substr($imagepath,strlen($imagepath)-1,1)=="/") ? "" : "/";
|
1251 |
+
}
|
1252 |
+
|
1253 |
+
if (!isset($site['spriteCoordinates']) || get_option('sociable_disablesprite')) {
|
1254 |
if (strpos($site['favicon'], 'http') === 0) {
|
1255 |
$imgsrc = $site['favicon'];
|
1256 |
} else {
|
1257 |
$imgsrc = $imagepath.$site['favicon'];
|
1258 |
}
|
1259 |
+
echo "<img src=\"$imgsrc\" width=\"16\" height=\"16\" />";
|
1260 |
} else {
|
1261 |
$imgsrc = $imagepath."services-sprite.gif";
|
1262 |
$services_sprite_url = $imagepath . "services-sprite.png";
|
1263 |
$spriteCoords = $site['spriteCoordinates'];
|
1264 |
+
echo "<img src=\"$imgsrc\" width=\"16\" height=\"16\" style=\"background: transparent url($services_sprite_url) no-repeat; background-position:-$spriteCoords[0]px -$spriteCoords[1]px\" />";
|
1265 |
}
|
1266 |
|
1267 |
echo $sitename; ?>
|
1343 |
</th>
|
1344 |
<td>
|
1345 |
<?php _e("Sociable comes with a nice set of images, if you want to replace those with your own, enter the URL where you've put them in here, and make sure they have the same name as the ones that come with Sociable.", 'sociable'); ?><br/>
|
1346 |
+
<input size="80" type="text" name="imagedir" value="<?php echo attribute_escape(stripslashes(get_option('sociable_imagedir'))); ?>" /><br />
|
1347 |
+
(automatically disables sprite usage)
|
1348 |
</td>
|
1349 |
</tr>
|
1350 |
<tr>
|