Sociable - Version 2.9.7

Version Description

Download this release

Release Info

Developer joostdevalk
Plugin Icon wp plugin Sociable
Version 2.9.7
Comparing to
See all releases

Code changes from version 2.9.5 to 2.9.7

images/geenredactie.png ADDED
Binary file
images/symbaloo.png ADDED
Binary file
images/tumblr.gif ADDED
Binary file
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.6.2
7
- stable tag: 2.9.5
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.5 Fixed Fark & Propeller links, added missing i18n strings, added Yahoo Buzz
23
  * 2.9.4 Removed PopCurrent and Rawsugar as they no longer exist, renamed BlueDot to Faves
24
  * 2.9.3 Added Leonaut, MySpace, fixed plugin description, added option to disable Sociable on a per post basis, added option to display sociable on tag pages, added extra security to config page, fixed print button, fixed Twitter functionality.
4
  Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks
5
  Requires at least: 2.2
6
  Tested up to: 2.6.2
7
+ stable tag: 2.9.7
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.6 Added Symbaloo, Tumblr,
23
  * 2.9.5 Fixed Fark & Propeller links, added missing i18n strings, added Yahoo Buzz
24
  * 2.9.4 Removed PopCurrent and Rawsugar as they no longer exist, renamed BlueDot to Faves
25
  * 2.9.3 Added Leonaut, MySpace, fixed plugin description, added option to disable Sociable on a per post basis, added option to display sociable on tag pages, added extra security to config page, fixed print button, fixed Twitter functionality.
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.5
7
  Author: Joost de Valk
8
  Author URI: http://yoast.com/
9
 
@@ -197,6 +197,11 @@ $sociable_known_sites = Array(
197
  'url' => 'http://extension.fleck.com/?v=b.0.804&amp;url=PERMALINK',
198
  ),
199
 
 
 
 
 
 
200
  'Global Grind' => Array (
201
  'favicon' => 'globalgrind.gif',
202
  'url' => 'http://globalgrind.com/submission/submit.aspx?url=PERMALINK&amp;type=Article&amp;title=TITLE'
@@ -454,6 +459,11 @@ $sociable_known_sites = Array(
454
  'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&amp;title=TITLE',
455
  ),
456
 
 
 
 
 
 
457
  'Taggly' => Array(
458
  'favicon' => 'taggly.png',
459
  'url' => 'http://taggly.com/bookmarks.php/pass?action=add&amp;address=',
@@ -474,6 +484,11 @@ $sociable_known_sites = Array(
474
  'url' => 'http://www.thisnext.com/pick/new/submit/sociable/?url=PERMALINK&amp;name=TITLE',
475
  ),
476
 
 
 
 
 
 
477
  'TwitThis' => Array(
478
  'favicon' => 'twitter.gif',
479
  'url' => 'http://twitter.com/home?status=PERMALINK',
@@ -576,6 +591,7 @@ $sociable_files = Array(
576
  'images/feedmelinks.png',
577
  'images/fleck.gif',
578
  'images/furl.png',
 
579
  'images/globalgrind.gif',
580
  'images/googlebookmark.png',
581
  'images/gwar.gif',
@@ -627,10 +643,12 @@ $sociable_files = Array(
627
  'images/sphinn.gif',
628
  'images/spurl.png',
629
  'images/stumbleupon.png',
 
630
  'images/taggly.png',
631
  'images/tailrank.png',
632
  'images/technorati.png',
633
  'images/twitter.gif',
 
634
  'images/upnews.gif',
635
  'images/webnews.gif',
636
  'images/webride.png',
@@ -939,9 +957,15 @@ add_action('admin_menu', 'sociable_meta_box');
939
 
940
  function sociable_insert_post($pID) {
941
  if (isset($_POST['sociableoff'])) {
942
- add_post_meta($pID,'sociableoff',"true", true) or update_post_meta($pID, 'sociableoff', "true");
 
 
 
943
  } else {
944
- add_post_meta($pID,'sociableoff',"false", true) or update_post_meta($pID, 'sociableoff', "false");
 
 
 
945
  }
946
  }
947
  add_action('wp_insert_post', 'sociable_insert_post');
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
7
  Author: Joost de Valk
8
  Author URI: http://yoast.com/
9
 
197
  'url' => 'http://extension.fleck.com/?v=b.0.804&amp;url=PERMALINK',
198
  ),
199
 
200
+ 'GeenRedactie' => array(
201
+ 'favicon' => 'geenredactie.png',
202
+ 'url'=> 'http://www.geenredactie.nl/submit?url=PERMALINK&amp;title=TITLE'
203
+ ),
204
+
205
  'Global Grind' => Array (
206
  'favicon' => 'globalgrind.gif',
207
  'url' => 'http://globalgrind.com/submission/submit.aspx?url=PERMALINK&amp;type=Article&amp;title=TITLE'
459
  'url' => 'http://www.stumbleupon.com/submit?url=PERMALINK&amp;title=TITLE',
460
  ),
461
 
462
+ 'Symbaloo' => Array(
463
+ 'favicon' => 'symbaloo.png',
464
+ 'url' => 'http://www.symbaloo.com/nl/add/url=PERMALINK&amp;title=TITLE&amp;icon=http%3A//static01.symbaloo.com/_img/favicon.png';
465
+ ),
466
+
467
  'Taggly' => Array(
468
  'favicon' => 'taggly.png',
469
  'url' => 'http://taggly.com/bookmarks.php/pass?action=add&amp;address=',
484
  'url' => 'http://www.thisnext.com/pick/new/submit/sociable/?url=PERMALINK&amp;name=TITLE',
485
  ),
486
 
487
+ 'Tumblr' => Array(
488
+ 'favicon' => 'tumblr.gif',
489
+ 'url' => 'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE&amp;s=',
490
+ ),
491
+
492
  'TwitThis' => Array(
493
  'favicon' => 'twitter.gif',
494
  'url' => 'http://twitter.com/home?status=PERMALINK',
591
  'images/feedmelinks.png',
592
  'images/fleck.gif',
593
  'images/furl.png',
594
+ 'images/geenredactie.png',
595
  'images/globalgrind.gif',
596
  'images/googlebookmark.png',
597
  'images/gwar.gif',
643
  'images/sphinn.gif',
644
  'images/spurl.png',
645
  'images/stumbleupon.png',
646
+ 'images/symbaloo.png',
647
  'images/taggly.png',
648
  'images/tailrank.png',
649
  'images/technorati.png',
650
  'images/twitter.gif',
651
+ 'images/tumblr.gif',
652
  'images/upnews.gif',
653
  'images/webnews.gif',
654
  'images/webride.png',
957
 
958
  function sociable_insert_post($pID) {
959
  if (isset($_POST['sociableoff'])) {
960
+ if(get_post_meta($pID, 'sociableoff') == "")
961
+ add_post_meta($pID, 'sociableoff', "true", true);
962
+ else
963
+ update_post_meta($pID, 'sociableoff', "true", true);
964
  } else {
965
+ if(get_post_meta($pID, 'sociableoff') == "")
966
+ add_post_meta($pID, 'sociableoff', "false", true);
967
+ else
968
+ update_post_meta($pID, 'sociableoff', "false", true);
969
  }
970
  }
971
  add_action('wp_insert_post', 'sociable_insert_post');
yoast-posts.php CHANGED
@@ -31,10 +31,11 @@ if (!class_exists('YoastPosts')) {
31
  return $widgets;
32
  }
33
 
34
- function widget($args) {
35
  $show = get_option('show_yoast_widget');
36
  if ($show != 'noshow') {
37
- extract( $args, EXTR_SKIP );
 
38
  echo $before_widget.$before_title.$widget_name.$after_title;
39
  echo '<a href="http://yoast.com/"><img style="margin: 0 0 5px 5px;" src="http://yoast.com/images/yoast-logo-rss.png" align="right" alt="Yoast"/></a>';
40
  include_once(ABSPATH . WPINC . '/rss.php');
@@ -44,11 +45,10 @@ if (!class_exists('YoastPosts')) {
44
  <?php if (empty($items)) echo '<li>No items</li>';
45
  else
46
  foreach ( $items as $item ) : ?>
47
- <a style="font-size: 14px; font-weight:bold;" href='<?php echo $item['link']; ?>' title='<?php echo $item['title']; ?>'><?php echo $item['title']; ?></a> <span style="font-size: 14px; color: #aaa;"><?php echo date('j F Y',strtotime($item['pubdate'])); ?></span><br/>
48
- <?php echo substr($item['summary'],0,strpos($item['summary'], "This is a post from")); ?>
49
- <br/>
50
  <?php endforeach;
51
- echo '<p style="float:right;"><a href="?show_yoast_widget=true">Remove this widget</a></p>';
52
  echo $after_widget;
53
  }
54
  }
31
  return $widgets;
32
  }
33
 
34
+ function widget($args = array()) {
35
  $show = get_option('show_yoast_widget');
36
  if ($show != 'noshow') {
37
+ if (is_array($args))
38
+ extract( $args, EXTR_SKIP );
39
  echo $before_widget.$before_title.$widget_name.$after_title;
40
  echo '<a href="http://yoast.com/"><img style="margin: 0 0 5px 5px;" src="http://yoast.com/images/yoast-logo-rss.png" align="right" alt="Yoast"/></a>';
41
  include_once(ABSPATH . WPINC . '/rss.php');
45
  <?php if (empty($items)) echo '<li>No items</li>';
46
  else
47
  foreach ( $items as $item ) : ?>
48
+ <a style="font-size: 14px; font-weight:bold;" href='<?php echo $item['link']; ?>' title='<?php echo $item['title']; ?>'><?php echo $item['title']; ?></a><br/>
49
+ <p style="font-size: 10px; color: #aaa;"><?php echo date('j F Y',strtotime($item['pubdate'])); ?></p>
50
+ <p><?php echo substr($item['summary'],0,strpos($item['summary'], "This is a post from")); ?></p>
51
  <?php endforeach;
 
52
  echo $after_widget;
53
  }
54
  }