Version Description
Download this release
Release Info
| Developer | joostdevalk |
| Plugin | |
| Version | 2.9.13 |
| Comparing to | |
| See all releases | |
Code changes from version 2.9.12 to 2.9.13
- readme.txt +2 -1
- sociable.php +9 -8
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.7
|
| 7 |
-
stable tag: 2.9.
|
| 8 |
|
| 9 |
Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
| 10 |
|
|
@@ -19,6 +19,7 @@ More info:
|
|
| 19 |
|
| 20 |
**Changelog**
|
| 21 |
|
|
|
|
| 22 |
* 2.9.12 Added Tip'd
|
| 23 |
* 2.9.11 Added settings link and Ozh admin menu icon
|
| 24 |
* 2.9.10 Fixes issue with excerpt not being urlencoded
|
| 4 |
Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks
|
| 5 |
Requires at least: 2.2
|
| 6 |
Tested up to: 2.7
|
| 7 |
+
stable tag: 2.9.13
|
| 8 |
|
| 9 |
Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
|
| 10 |
|
| 19 |
|
| 20 |
**Changelog**
|
| 21 |
|
| 22 |
+
* 2.9.13 Changed Facebook link from sharer.php (meant for a popup window) to share.php (which has the actual menu on it etc.)
|
| 23 |
* 2.9.12 Added Tip'd
|
| 24 |
* 2.9.11 Added settings link and Ozh admin menu icon
|
| 25 |
* 2.9.10 Fixes issue with excerpt not being urlencoded
|
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, pages and RSS feed to your favorite social bookmarking sites. Go to <a href="options-general.php?page=Sociable">Settings -> Sociable</a> for setup.
|
| 6 |
-
Version: 2.9.
|
| 7 |
Author: Joost de Valk
|
| 8 |
Author URI: http://yoast.com/
|
| 9 |
|
|
@@ -35,6 +35,7 @@ if ( !defined('WP_CONTENT_DIR') )
|
|
| 35 |
$sociablepluginpath = WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__)).'/';
|
| 36 |
|
| 37 |
function sociable_init_locale(){
|
|
|
|
| 38 |
load_plugin_textdomain('sociable', $sociablepluginpath);
|
| 39 |
}
|
| 40 |
add_filter('init', 'sociable_init_locale');
|
|
@@ -174,7 +175,7 @@ $sociable_known_sites = Array(
|
|
| 174 |
|
| 175 |
'Facebook' => Array(
|
| 176 |
'favicon' => 'facebook.png',
|
| 177 |
-
'url' => 'http://www.facebook.com/
|
| 178 |
),
|
| 179 |
|
| 180 |
'Fark' => Array(
|
|
@@ -747,7 +748,7 @@ function sociable_html($display=Array()) {
|
|
| 747 |
}
|
| 748 |
$link .= " href=\"$url\" title=\"$description\">";
|
| 749 |
$link .= "<img src=\"".$imagepath.$site['favicon']."\" title=\"$description\" alt=\"$description\" class=\"sociable-hovers";
|
| 750 |
-
if ($site['class'])
|
| 751 |
$link .= " sociable_{$site['class']}";
|
| 752 |
$link .= "\" />";
|
| 753 |
$link .= "</a></li>";
|
|
@@ -856,7 +857,7 @@ function sociable_admin_menu() {
|
|
| 856 |
// Admin page header
|
| 857 |
add_action('admin_head', 'sociable_admin_head');
|
| 858 |
function sociable_admin_head() {
|
| 859 |
-
if ($_GET['page'] == 'Sociable') {
|
| 860 |
global $sociablepluginpath, $wp_version;
|
| 861 |
|
| 862 |
if ($wp_version < "2.6") {
|
|
@@ -972,11 +973,11 @@ function sociable_submenu() {
|
|
| 972 |
global $sociable_known_sites, $sociable_date, $sociable_files, $sociablepluginpath;
|
| 973 |
|
| 974 |
// update options in db if requested
|
| 975 |
-
if ($_REQUEST['restore']) {
|
| 976 |
check_admin_referer('sociable-config');
|
| 977 |
sociable_restore_config(True);
|
| 978 |
sociable_message(__("Restored all settings to defaults.", 'sociable'));
|
| 979 |
-
} else if ($_REQUEST['save']) {
|
| 980 |
check_admin_referer('sociable-config');
|
| 981 |
// update active sites
|
| 982 |
$active_sites = Array();
|
|
@@ -990,7 +991,7 @@ function sociable_submenu() {
|
|
| 990 |
delete_option('sociable_active_sites', $active_sites);
|
| 991 |
add_option('sociable_active_sites', $active_sites);
|
| 992 |
|
| 993 |
-
if ($_POST['usetargetblank']) {
|
| 994 |
update_option('sociable_usetargetblank',true);
|
| 995 |
} else {
|
| 996 |
update_option('sociable_usetargetblank',false);
|
|
@@ -1032,7 +1033,7 @@ function sociable_submenu() {
|
|
| 1032 |
$active = Array(); $disabled = $sociable_known_sites;
|
| 1033 |
foreach($active_sites as $sitename) {
|
| 1034 |
$active[$sitename] = $disabled[$sitename];
|
| 1035 |
-
unset($disabled[$
|
| 1036 |
}
|
| 1037 |
uksort($disabled, "strnatcasecmp");
|
| 1038 |
|
| 3 |
Plugin Name: Sociable
|
| 4 |
Plugin URI: http://yoast.com/wordpress/sociable/
|
| 5 |
Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites. Go to <a href="options-general.php?page=Sociable">Settings -> Sociable</a> for setup.
|
| 6 |
+
Version: 2.9.13
|
| 7 |
Author: Joost de Valk
|
| 8 |
Author URI: http://yoast.com/
|
| 9 |
|
| 35 |
$sociablepluginpath = WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__)).'/';
|
| 36 |
|
| 37 |
function sociable_init_locale(){
|
| 38 |
+
global $sociablepluginpath;
|
| 39 |
load_plugin_textdomain('sociable', $sociablepluginpath);
|
| 40 |
}
|
| 41 |
add_filter('init', 'sociable_init_locale');
|
| 175 |
|
| 176 |
'Facebook' => Array(
|
| 177 |
'favicon' => 'facebook.png',
|
| 178 |
+
'url' => 'http://www.facebook.com/share.php?u=PERMALINK&t=TITLE',
|
| 179 |
),
|
| 180 |
|
| 181 |
'Fark' => Array(
|
| 748 |
}
|
| 749 |
$link .= " href=\"$url\" title=\"$description\">";
|
| 750 |
$link .= "<img src=\"".$imagepath.$site['favicon']."\" title=\"$description\" alt=\"$description\" class=\"sociable-hovers";
|
| 751 |
+
if (isset($site['class']) && $site['class'])
|
| 752 |
$link .= " sociable_{$site['class']}";
|
| 753 |
$link .= "\" />";
|
| 754 |
$link .= "</a></li>";
|
| 857 |
// Admin page header
|
| 858 |
add_action('admin_head', 'sociable_admin_head');
|
| 859 |
function sociable_admin_head() {
|
| 860 |
+
if (isset($_GET['page']) && $_GET['page'] == 'Sociable') {
|
| 861 |
global $sociablepluginpath, $wp_version;
|
| 862 |
|
| 863 |
if ($wp_version < "2.6") {
|
| 973 |
global $sociable_known_sites, $sociable_date, $sociable_files, $sociablepluginpath;
|
| 974 |
|
| 975 |
// update options in db if requested
|
| 976 |
+
if (isset($_REQUEST['restore']) && $_REQUEST['restore']) {
|
| 977 |
check_admin_referer('sociable-config');
|
| 978 |
sociable_restore_config(True);
|
| 979 |
sociable_message(__("Restored all settings to defaults.", 'sociable'));
|
| 980 |
+
} else if (isset($_REQUEST['save']) && $_REQUEST['save']) {
|
| 981 |
check_admin_referer('sociable-config');
|
| 982 |
// update active sites
|
| 983 |
$active_sites = Array();
|
| 991 |
delete_option('sociable_active_sites', $active_sites);
|
| 992 |
add_option('sociable_active_sites', $active_sites);
|
| 993 |
|
| 994 |
+
if (isset($_POST['usetargetblank']) && $_POST['usetargetblank']) {
|
| 995 |
update_option('sociable_usetargetblank',true);
|
| 996 |
} else {
|
| 997 |
update_option('sociable_usetargetblank',false);
|
| 1033 |
$active = Array(); $disabled = $sociable_known_sites;
|
| 1034 |
foreach($active_sites as $sitename) {
|
| 1035 |
$active[$sitename] = $disabled[$sitename];
|
| 1036 |
+
unset($disabled[$sitename]);
|
| 1037 |
}
|
| 1038 |
uksort($disabled, "strnatcasecmp");
|
| 1039 |
|
