Sociable - Version 2.6.2

Version Description

Download this release

Release Info

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

Code changes from version 2.6 to 2.6.2

Files changed (2) hide show
  1. readme.txt +1 -1
  2. sociable.php +17 -12
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.joostdevalk.nl/donate/
4
  Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks
5
  Requires at least: 2.2
6
  Tested up to: 2.5
7
- stable tag: 2.6
8
 
9
  Automatically add links on your posts to popular social bookmarking sites.
10
 
4
  Tags: social, bookmark, bookmarks, bookmarking, social bookmarking, social bookmarks
5
  Requires at least: 2.2
6
  Tested up to: 2.5
7
+ stable tag: 2.6.2
8
 
9
  Automatically add links on your posts to popular social bookmarking sites.
10
 
sociable.php CHANGED
@@ -3,12 +3,10 @@
3
  Plugin Name: Sociable
4
  Plugin URI: http://www.joostdevalk.nl/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.6
7
  Author: Joost de Valk
8
  Author URI: http://www.joostdevalk.nl/
9
- */
10
 
11
- /*
12
  Copyright 2006 Peter Harkins (ph@malaprop.org)
13
  Copyright 2008 Joost de Valk (joost@joostdevalk.nl)
14
 
@@ -595,25 +593,27 @@ function sociable_html($display=Array()) {
595
  continue;
596
 
597
  $site = $sociable_known_sites[$sitename];
598
- $html .= "\t<li>";
599
 
600
  $url = $site['url'];
601
  $url = str_replace('PERMALINK', $permalink, $url);
602
  $url = str_replace('TITLE', $title, $url);
603
  $url = str_replace('RSS', $rss, $url);
604
  $url = str_replace('BLOGNAME', $blogname, $url);
 
 
 
 
 
 
 
 
605
 
606
- $html .= "<a rel=\"nofollow\" target=\"_blank\" href=\"$url\" title=\"$sitename\">";
607
- $html .= "<img src=\"$imagepath{$site['favicon']}\" title=\"$sitename\" alt=\"$sitename\" class=\"sociable-hovers";
608
- if ($site['class'])
609
- $html .= " sociable_{$site['class']}";
610
- $html .= "\" />";
611
- $html .= "</a></li>\n";
612
  }
613
 
614
  $html .= "</ul>\n</div>\n";
615
 
616
- return apply_filters('sociable_link',$html);
617
  }
618
 
619
  // Hook the_content to output html if we should display on any page
@@ -934,4 +934,9 @@ function sociable_submenu() {
934
  <?php
935
  }
936
 
937
- ?>
 
 
 
 
 
3
  Plugin Name: Sociable
4
  Plugin URI: http://www.joostdevalk.nl/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.6.2
7
  Author: Joost de Valk
8
  Author URI: http://www.joostdevalk.nl/
 
9
 
 
10
  Copyright 2006 Peter Harkins (ph@malaprop.org)
11
  Copyright 2008 Joost de Valk (joost@joostdevalk.nl)
12
 
593
  continue;
594
 
595
  $site = $sociable_known_sites[$sitename];
 
596
 
597
  $url = $site['url'];
598
  $url = str_replace('PERMALINK', $permalink, $url);
599
  $url = str_replace('TITLE', $title, $url);
600
  $url = str_replace('RSS', $rss, $url);
601
  $url = str_replace('BLOGNAME', $blogname, $url);
602
+
603
+ $link = "<li>";
604
+ $link .= "<a rel=\"nofollow\" target=\"_blank\" href=\"$url\" title=\"$sitename\">";
605
+ $link .= "<img src=\"$imagepath{$site['favicon']}\" title=\"$sitename\" alt=\"$sitename\" class=\"sociable-hovers";
606
+ if ($site['class'])
607
+ $link .= " sociable_{$site['class']}";
608
+ $link .= "\" />";
609
+ $link .= "</a></li>";
610
 
611
+ $html .= "\t".apply_filters('sociable_link',$link)."\n";
 
 
 
 
 
612
  }
613
 
614
  $html .= "</ul>\n</div>\n";
615
 
616
+ return $html;
617
  }
618
 
619
  // Hook the_content to output html if we should display on any page
934
  <?php
935
  }
936
 
937
+ if (get_option('sociable_usecss_set_once') != true) {
938
+ update_option('sociable_usecss', true);
939
+ update_option('sociable_usecss_set_once', true);
940
+ }
941
+
942
+ ?>