Social Sharing Toolkit - Version 2.0.2

Version Description

Please update to version 2.0.2 for several small bug fixes and enhancements.

Download this release

Release Info

Developer MarijnRongen
Plugin Icon wp plugin Social Sharing Toolkit
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

Files changed (2) hide show
  1. readme.txt +13 -1
  2. social_sharing_toolkit.php +9 -8
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=P8ZVN
4
  Tags: Facebook, Like, LinkedIn, Share, Google, Plus, +1, Google+, Twitter, Tweet, Follow, StumbleUpon, Stumble, Tumblr, Delicious, Digg, Reddit, Myspace, Hyves, YouTube, Flickr, Picasa, deaviantART, mail, RSS, feed, connect, recommend, social, sharing, widget, shortcode, page, post, button, counter, icon
5
  Requires at least: 3.0
6
  Tested up to: 3.2.1
7
- Stable tag: 2.0.1
8
  License: GPLv2 or later
9
 
10
  Easy sharing and connecting on social networks. Display on posts or use widgets or shortcode. Also Twitter name/hashtag to link converter.
@@ -131,6 +131,10 @@ Upload the Social Sharing Toolkit plugin to the `/wp-content/plugins/` folder on
131
 
132
  == Upgrade Notice ==
133
 
 
 
 
 
134
  = 2.0.1 =
135
 
136
  Version 2.0.1 is a major update with more possibilities. You will have to reconfigure the plugin because of this (it's gotten much better, I promise).
@@ -156,6 +160,14 @@ Please update to version 1.0.1 to prevent an unexpected printing of the page tit
156
 
157
  == Changelog ==
158
 
 
 
 
 
 
 
 
 
159
  = 2.0.0 =
160
  * Added Follow Widget
161
  * Added icon buttons
4
  Tags: Facebook, Like, LinkedIn, Share, Google, Plus, +1, Google+, Twitter, Tweet, Follow, StumbleUpon, Stumble, Tumblr, Delicious, Digg, Reddit, Myspace, Hyves, YouTube, Flickr, Picasa, deaviantART, mail, RSS, feed, connect, recommend, social, sharing, widget, shortcode, page, post, button, counter, icon
5
  Requires at least: 3.0
6
  Tested up to: 3.2.1
7
+ Stable tag: 2.0.2
8
  License: GPLv2 or later
9
 
10
  Easy sharing and connecting on social networks. Display on posts or use widgets or shortcode. Also Twitter name/hashtag to link converter.
131
 
132
  == Upgrade Notice ==
133
 
134
+ = 2.0.2 =
135
+
136
+ Please update to version 2.0.2 for several small bug fixes and enhancements.
137
+
138
  = 2.0.1 =
139
 
140
  Version 2.0.1 is a major update with more possibilities. You will have to reconfigure the plugin because of this (it's gotten much better, I promise).
160
 
161
  == Changelog ==
162
 
163
+ = 2.0.2 =
164
+ * Fixed width issue with Facebook Like button
165
+ * HTML encoding will be decoded in titles for the sharing buttons
166
+
167
+ = 2.0.1 =
168
+ * It is now possible to load all JavaScript in the footer for improved page loading performance
169
+ * Minimized JavaScript load
170
+
171
  = 2.0.0 =
172
  * Added Follow Widget
173
  * Added icon buttons
social_sharing_toolkit.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Social Sharing Toolkit
4
  Plugin URI: http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/
5
  Description: This plugin enables sharing of your content via popular social networks and can also convert Twitter names and hashtags to links. Easy & configurable.
6
- Version: 2.0.1
7
  Author: Marijn Rongen
8
  Author URI: http://www.marijnrongen.com
9
  */
@@ -446,11 +446,12 @@ class MR_Social_Sharing_Toolkit {
446
  function create_bookmarks($url = '', $title = '', $type = '') {
447
  $url = trim($url);
448
  $title = trim($title);
 
449
  if ($url == '') {
450
  $url = 'http://'.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
451
  }
452
  $bookmarks = '
453
- <!-- Social Sharing Toolkit v2.0.1 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
454
  <div class="mr_social_sharing_wrapper">';
455
  foreach ($this->options['mr_social_sharing_'.$type.'button_order'] as $button) {
456
  if ($this->options['mr_social_sharing_'.$type.'buttons'][$button]['enable'] == 1) {
@@ -465,7 +466,7 @@ class MR_Social_Sharing_Toolkit {
465
 
466
  function create_followers() {
467
  $followers = '
468
- <!-- Social Sharing Toolkit v2.0.1 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
469
  <div class="mr_social_sharing_wrapper">';
470
  foreach ($this->options['mr_social_sharing_follow_button_order'] as $button) {
471
  if ($this->options['mr_social_sharing_follow_buttons'][$button]['enable'] == 1) {
@@ -500,7 +501,7 @@ class MR_Social_Sharing_Toolkit {
500
  switch ($type) {
501
  case 'horizontal':
502
  $retval .= 'button_count';
503
- $width = 'auto';
504
  $height = '20px';
505
  break;
506
  case 'vertical':
@@ -634,15 +635,15 @@ class MR_Social_Sharing_Toolkit {
634
  case 'horizontal':
635
  $hash = md5($url);
636
  $retval = '
637
- <div class="delicious_horizontal">
638
- <span class="delicious_hash">'.$hash.'</span><a class="mr_social_sharing_popup_link" href="http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url='.urlencode($url).'&amp;title='.urlencode($title).'" target="_blank"></a>
639
  </div>';
640
  break;
641
  case 'vertical':
642
  $hash = md5($url);
643
  $retval = '
644
- <div class="delicious_vertical">
645
- <span class="delicious_hash">'.$hash.'</span><a class="mr_social_sharing_popup_link" href="http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url='.urlencode($url).'&amp;title='.urlencode($title).'" target="_blank"></a>
646
  </div>';
647
  break;
648
  default:
3
  Plugin Name: Social Sharing Toolkit
4
  Plugin URI: http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/
5
  Description: This plugin enables sharing of your content via popular social networks and can also convert Twitter names and hashtags to links. Easy & configurable.
6
+ Version: 2.0.2
7
  Author: Marijn Rongen
8
  Author URI: http://www.marijnrongen.com
9
  */
446
  function create_bookmarks($url = '', $title = '', $type = '') {
447
  $url = trim($url);
448
  $title = trim($title);
449
+ $title = html_entity_decode($title, ENT_QUOTES, 'UTF-8');
450
  if ($url == '') {
451
  $url = 'http://'.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
452
  }
453
  $bookmarks = '
454
+ <!-- Social Sharing Toolkit v2.0.2 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
455
  <div class="mr_social_sharing_wrapper">';
456
  foreach ($this->options['mr_social_sharing_'.$type.'button_order'] as $button) {
457
  if ($this->options['mr_social_sharing_'.$type.'buttons'][$button]['enable'] == 1) {
466
 
467
  function create_followers() {
468
  $followers = '
469
+ <!-- Social Sharing Toolkit v2.0.2 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
470
  <div class="mr_social_sharing_wrapper">';
471
  foreach ($this->options['mr_social_sharing_follow_button_order'] as $button) {
472
  if ($this->options['mr_social_sharing_follow_buttons'][$button]['enable'] == 1) {
501
  switch ($type) {
502
  case 'horizontal':
503
  $retval .= 'button_count';
504
+ $width = '90px';
505
  $height = '20px';
506
  break;
507
  case 'vertical':
635
  case 'horizontal':
636
  $hash = md5($url);
637
  $retval = '
638
+ <div class="delicious_horizontal">
639
+ <span class="delicious_hash">'.$hash.'</span><a class="mr_social_sharing_popup_link" href="http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url='.urlencode($url).'&amp;title='.urlencode($title).'" target="_blank"></a>
640
  </div>';
641
  break;
642
  case 'vertical':
643
  $hash = md5($url);
644
  $retval = '
645
+ <div class="delicious_vertical">
646
+ <span class="delicious_hash">'.$hash.'</span><a class="mr_social_sharing_popup_link" href="http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url='.urlencode($url).'&amp;title='.urlencode($title).'" target="_blank"></a>
647
  </div>';
648
  break;
649
  default: