WP Socializer - Version 2.4.9.7

Version Description

  • Added option to Sharethis "CopyNshare" feature.
  • Fixed the issue in page URL outside the post loop. The wrong share count displayed for various buttons is therefore fixed.
  • Fixed small UI related bugs.
Download this release

Release Info

Developer vaakash
Plugin Icon 128x128 WP Socializer
Version 2.4.9.7
Comparing to
See all releases

Code changes from version 2.4.9.6 to 2.4.9.7

admin/wpsr-admin-js.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * WP Socializer - Admin page functions
3
  * Author: Aakash Chakravarthy
4
- * Version: 2.8
5
  *
6
  */
7
 
@@ -11,9 +11,9 @@ $j(document).ready(function(){
11
  // Tab Initializements
12
  var tabs = $j("#content").tabs({
13
  fx: {opacity: 'toggle', duration: 'fast'},
14
- select: function(event, ui){
15
  window.location.hash = ui.tab.hash;
16
- }
17
  });
18
  var subTabs = $j("#tab-3").tabs({fx: {opacity: 'toggle', duration: 'fast'} });
19
 
@@ -153,7 +153,7 @@ $j(document).ready(function(){
153
 
154
  $j('[data-tab]').click(function(e){
155
  e.preventDefault();
156
- tabs.tabs('select', $j(this).attr('data-tab'));
157
  });
158
 
159
  setTimeout(function(){
1
  /*
2
  * WP Socializer - Admin page functions
3
  * Author: Aakash Chakravarthy
4
+ * Version: 2.9
5
  *
6
  */
7
 
11
  // Tab Initializements
12
  var tabs = $j("#content").tabs({
13
  fx: {opacity: 'toggle', duration: 'fast'},
14
+ /*select: function(event, ui){
15
  window.location.hash = ui.tab.hash;
16
+ }*/
17
  });
18
  var subTabs = $j("#tab-3").tabs({fx: {opacity: 'toggle', duration: 'fast'} });
19
 
153
 
154
  $j('[data-tab]').click(function(e){
155
  e.preventDefault();
156
+ tabs.tabs('option', 'active', $j(this).attr('data-tab')-1);
157
  });
158
 
159
  setTimeout(function(){
admin/wpsr-admin.php CHANGED
@@ -210,6 +210,7 @@ function wpsr_reset_values(){
210
  $wpsr_sharethis['regular_order'] = 'facebook,twitter,email,sharethis';
211
  $wpsr_sharethis['regular2_order'] = 'facebook,twitter,email,sharethis';
212
  $wpsr_sharethis['pubkey'] = '';
 
213
  $wpsr_sharethis['addp'] = 1;
214
 
215
  update_option("wpsr_sharethis_data", $wpsr_sharethis);
@@ -372,6 +373,7 @@ function wpsr_admin_page(){
372
  $wpsr_sharethis['regular_order'] = $_POST['wpsr_sharethis_regular_order'];
373
  $wpsr_sharethis['regular2_order'] = $_POST['wpsr_sharethis_regular2_order'];
374
  $wpsr_sharethis['pubkey'] = $_POST['wpsr_sharethis_pubkey'];
 
375
  $wpsr_sharethis['addp'] = $_POST['wpsr_sharethis_addp'];
376
 
377
  update_option("wpsr_sharethis_data", $wpsr_sharethis);
@@ -569,7 +571,7 @@ function wpsr_admin_page(){
569
  </div>
570
 
571
  <h5>Give 5 star rating</h5>
572
- <p class="note">If you like this plugin then please give <a href="http://wordpress.org/extend/plugins/wp-socializer/" target="_blank"><img src="<?php echo WPSR_ADMIN_URL; ?>images/five-star.png" align="absmiddle"/></a> rating in the WP page to show the quality and worth of the plugin.</p>
573
 
574
  <h5>Report bugs</h5>
575
  <p class="note">If you notice a bug in the plugin, report it immediately in the <a href="http://www.aakashweb.com/forum/" target="_blank">Support Forum</a>.</p>
@@ -1045,6 +1047,15 @@ function wpsr_admin_page(){
1045
  <td width="31%" height="49"><label for="wpsr_sharethis_pubkey">Sharethis Publisher Key</label></td>
1046
  <td width="69%"><input name="wpsr_sharethis_pubkey" type="text" id="wpsr_sharethis_pubkey" value="<?php echo $wpsr_sharethis['pubkey']; ?>" size="50" /><br /><span class="smallText"><?php _e('You can see you publisher key in this page. ', 'wpsr'); ?> <a href="http://sharethis.com/account/" target="_blank"><?php _e('Click here', 'wpsr'); ?></a></span></td>
1047
  </tr>
 
 
 
 
 
 
 
 
 
1048
  <tr>
1049
  <td><label for="wpsr_sharethis_addp">Automatically wrap with paragraph</label></td>
1050
  <td><select id="wpsr_sharethis_addp" name="wpsr_sharethis_addp">
210
  $wpsr_sharethis['regular_order'] = 'facebook,twitter,email,sharethis';
211
  $wpsr_sharethis['regular2_order'] = 'facebook,twitter,email,sharethis';
212
  $wpsr_sharethis['pubkey'] = '';
213
+ $wpsr_sharethis['copynshare'] = 0;
214
  $wpsr_sharethis['addp'] = 1;
215
 
216
  update_option("wpsr_sharethis_data", $wpsr_sharethis);
373
  $wpsr_sharethis['regular_order'] = $_POST['wpsr_sharethis_regular_order'];
374
  $wpsr_sharethis['regular2_order'] = $_POST['wpsr_sharethis_regular2_order'];
375
  $wpsr_sharethis['pubkey'] = $_POST['wpsr_sharethis_pubkey'];
376
+ $wpsr_sharethis['copynshare'] = $_POST['wpsr_sharethis_copynshare'];
377
  $wpsr_sharethis['addp'] = $_POST['wpsr_sharethis_addp'];
378
 
379
  update_option("wpsr_sharethis_data", $wpsr_sharethis);
571
  </div>
572
 
573
  <h5>Give 5 star rating</h5>
574
+ <p class="note">If you like this plugin then please give <a href="http://wordpress.org/plugins/wp-socializer/" target="_blank"><img src="<?php echo WPSR_ADMIN_URL; ?>images/five-star.png" align="absmiddle"/></a> rating in the WP page to show the quality and worth of the plugin.</p>
575
 
576
  <h5>Report bugs</h5>
577
  <p class="note">If you notice a bug in the plugin, report it immediately in the <a href="http://www.aakashweb.com/forum/" target="_blank">Support Forum</a>.</p>
1047
  <td width="31%" height="49"><label for="wpsr_sharethis_pubkey">Sharethis Publisher Key</label></td>
1048
  <td width="69%"><input name="wpsr_sharethis_pubkey" type="text" id="wpsr_sharethis_pubkey" value="<?php echo $wpsr_sharethis['pubkey']; ?>" size="50" /><br /><span class="smallText"><?php _e('You can see you publisher key in this page. ', 'wpsr'); ?> <a href="http://sharethis.com/account/" target="_blank"><?php _e('Click here', 'wpsr'); ?></a></span></td>
1049
  </tr>
1050
+
1051
+ <tr>
1052
+ <td width="31%" height="49"><label for="wpsr_sharethis_copynshare">Disable Sharethis CopyNShare feature</label></td>
1053
+ <td width="69%"><select id="wpsr_sharethis_copynshare" name="wpsr_sharethis_copynshare">
1054
+ <option <?php echo $wpsr_sharethis['copynshare'] == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
1055
+ <option <?php echo $wpsr_sharethis['copynshare'] == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
1056
+ </select></td>
1057
+ </tr>
1058
+
1059
  <tr>
1060
  <td><label for="wpsr_sharethis_addp">Automatically wrap with paragraph</label></td>
1061
  <td><select id="wpsr_sharethis_addp" name="wpsr_sharethis_addp">
includes/wpsr-sharethis.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Sharethis buttons Processor code for WP Socializer Plugin
4
- * Version : 2.4
5
  * Author : Aakash Chakravarthy
6
  */
7
 
@@ -28,7 +28,7 @@ function wpsr_sharethis_config(){
28
  // Return the script
29
  return "\n<!-- WP Socializer - ShareThis Config -->\n" .
30
  '<script type="text/javascript">
31
- var sharethisLoad = function(){ stLight.options({publisher:\'' . $wpsr_sharethis_pubkey . '\'}); }, st_type=\'wordpress\';
32
  if(window.addEventListener) window.addEventListener("load", sharethisLoad, false);
33
  else if (window.attachEvent) window.attachEvent("onload", sharethisLoad);
34
  </script>' .
1
  <?php
2
  /*
3
  * Sharethis buttons Processor code for WP Socializer Plugin
4
+ * Version : 2.5
5
  * Author : Aakash Chakravarthy
6
  */
7
 
28
  // Return the script
29
  return "\n<!-- WP Socializer - ShareThis Config -->\n" .
30
  '<script type="text/javascript">
31
+ var sharethisLoad = function(){ stLight.options({publisher: "' . $wpsr_sharethis_pubkey . '" ' . ($wpsr_sharethis['copynshare'] == 1 ? '' : ', doNotHash: true') . ' }); }, st_type=\'wordpress\';
32
  if(window.addEventListener) window.addEventListener("load", sharethisLoad, false);
33
  else if (window.attachEvent) window.attachEvent("onload", sharethisLoad);
34
  </script>' .
readme.txt CHANGED
@@ -6,8 +6,8 @@ Tags: social, social bookmarking, bookmarks, bookmarking, bookmarks menu, share,
6
  License: GPLv2 or later
7
  Donate Link: http://bit.ly/wpsrDonation
8
  Requires at least: 3.1
9
- Tested up to: 3.6
10
- Stable tag: 2.4.9.6
11
 
12
  Super Cool Plugin for inserting all kinds of Social Bookmarking & Sharing buttons. Has customizable Floating Share Bar, Widgets, Shortcodes also.
13
 
@@ -27,12 +27,11 @@ WP Socializer is an advanced plugin for inserting all kinds of Social bookmarkin
27
  * Template functions are available for advanced placements.
28
  * (NEW) Floating sharebar now optimized for mobile devices also.
29
 
30
- = New features and bug fixes in v2.4.9.6 =
31
 
32
- * Fix Facebook popup transparency.
33
- * Removed credit links.
34
- * Revised the email link.
35
- * Fixed some debug notices.
36
 
37
  [Changelog](changelog)
38
 
@@ -131,6 +130,11 @@ For custom placement in theme files and posts, check out the following documenta
131
 
132
  == Changelog ==
133
 
 
 
 
 
 
134
  = 2.4.9.6 =
135
  * Fix Facebook popup transparency.
136
  * Removed credit links.
6
  License: GPLv2 or later
7
  Donate Link: http://bit.ly/wpsrDonation
8
  Requires at least: 3.1
9
+ Tested up to: 3.6.1
10
+ Stable tag: 2.4.9.7
11
 
12
  Super Cool Plugin for inserting all kinds of Social Bookmarking & Sharing buttons. Has customizable Floating Share Bar, Widgets, Shortcodes also.
13
 
27
  * Template functions are available for advanced placements.
28
  * (NEW) Floating sharebar now optimized for mobile devices also.
29
 
30
+ = New features and bug fixes in v2.4.9.7 =
31
 
32
+ * Added option to Sharethis "CopyNshare" feature.
33
+ * Fixed the issue in page URL outside the post loop. The wrong share count displayed for various buttons is therefore fixed.
34
+ * Fixed small UI related bugs.
 
35
 
36
  [Changelog](changelog)
37
 
130
 
131
  == Changelog ==
132
 
133
+ = 2.4.9.7 =
134
+ * Added option to Sharethis "CopyNshare" feature.
135
+ * Fixed the issue in page URL outside the post loop. The wrong share count displayed for various buttons is therefore fixed.
136
+ * Fixed small UI related bugs.
137
+
138
  = 2.4.9.6 =
139
  * Fix Facebook popup transparency.
140
  * Removed credit links.
wp-socializer.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: WP Socializer
4
- Version: 2.4.9.6
5
  Plugin URI: http://www.aakashweb.com/
6
  Description: WP Socializer is an advanced plugin for inserting all kinds of Social bookmarking & sharing buttons. It has super cool features to insert the buttons into posts, sidebar. It also has Floating sharebar and Smart load feature. <a href="http://youtu.be/1uimAE8rFYE" target="_blank">Check out the demo video</a>.
7
  Author: Aakash Chakravarthy
@@ -14,7 +14,7 @@ if(!defined('WP_CONTENT_URL')) {
14
  $wpsr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
15
  }
16
 
17
- define('WPSR_VERSION', '2.4.9.6');
18
  define('WPSR_AUTHOR', 'Aakash Chakravarthy');
19
  define('WPSR_URL', $wpsr_url);
20
  define('WPSR_PUBLIC_URL', WPSR_URL . 'public/');
@@ -1137,7 +1137,7 @@ function wpsr_get_post_details(){
1137
  }else{
1138
 
1139
  // Post details outside the loop
1140
- $url = (!empty($_SERVER['HTTPS'])) ? "https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] : "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
1141
  $title = wp_title('', 0);
1142
  $title = (empty($title)) ? get_bloginfo('name') : $title;
1143
  $title = str_replace(array('<title>', '</title>'), '', $title);
1
  <?php
2
  /*
3
  Plugin Name: WP Socializer
4
+ Version: 2.4.9.7
5
  Plugin URI: http://www.aakashweb.com/
6
  Description: WP Socializer is an advanced plugin for inserting all kinds of Social bookmarking & sharing buttons. It has super cool features to insert the buttons into posts, sidebar. It also has Floating sharebar and Smart load feature. <a href="http://youtu.be/1uimAE8rFYE" target="_blank">Check out the demo video</a>.
7
  Author: Aakash Chakravarthy
14
  $wpsr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
15
  }
16
 
17
+ define('WPSR_VERSION', '2.4.9.7');
18
  define('WPSR_AUTHOR', 'Aakash Chakravarthy');
19
  define('WPSR_URL', $wpsr_url);
20
  define('WPSR_PUBLIC_URL', WPSR_URL . 'public/');
1137
  }else{
1138
 
1139
  // Post details outside the loop
1140
+ $url = (!empty($_SERVER['HTTPS'])) ? "https://" . htmlspecialchars($_SERVER['HTTP_HOST']) . $_SERVER['REQUEST_URI'] : "http://" . htmlspecialchars($_SERVER['HTTP_HOST']) . $_SERVER['REQUEST_URI']; // Revised since v2.4.9.7
1141
  $title = wp_title('', 0);
1142
  $title = (empty($title)) ? get_bloginfo('name') : $title;
1143
  $title = str_replace(array('<title>', '</title>'), '', $title);