Sociable - Version 4.1.4

Version Description

  • FIXED: Some Fixes
Download this release

Release Info

Developer sociable
Plugin Icon wp plugin Sociable
Version 4.1.4
Comparing to
See all releases

Code changes from version 4.1.3 to 4.1.4

Files changed (3) hide show
  1. includes/sociable_output.php +21 -2
  2. readme.txt +5 -2
  3. sociable.php +9 -9
includes/sociable_output.php CHANGED
@@ -103,9 +103,11 @@ function sociable_html( $display = array(),$location = "" ){
103
  $excerpt = str_replace('+','%20',$excerpt);
104
 
105
  $permalink = urlencode(get_permalink($post->ID));
 
 
106
 
107
  $title = str_replace('+','%20',urlencode($post->post_title));
108
-
109
 
110
 
111
  $rss = urlencode(get_bloginfo('ref_url'));
@@ -216,6 +218,7 @@ function sociable_html( $display = array(),$location = "" ){
216
 
217
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
218
 
 
219
  $url = str_replace('TITLE', $title, $url);
220
 
221
  $url = str_replace('RSS', $rss, $url);
@@ -226,7 +229,11 @@ function sociable_html( $display = array(),$location = "" ){
226
 
227
  $url = str_replace('FEEDLINK', $blogrss, $url);
228
 
 
 
229
  $url = str_replace('PERMALINK', $permalink, $url);
 
 
230
 
231
 
232
 
@@ -338,6 +345,8 @@ function sociable_html( $display = array(),$location = "" ){
338
 
339
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
340
 
 
 
341
  $url = str_replace('TITLE', $title, $url);
342
 
343
  $url = str_replace('RSS', $rss, $url);
@@ -348,7 +357,11 @@ function sociable_html( $display = array(),$location = "" ){
348
 
349
  $url = str_replace('FEEDLINK', $blogrss, $url);
350
 
351
- $url = str_replace('PERMALINK', $permalink, $url);
 
 
 
 
352
 
353
  $link = '<li style="heigth:'.$sociable_options['icon_size'].'px;width:'.$sociable_options['icon_size'].'px">';
354
 
@@ -494,6 +507,8 @@ function sociable_html( $display = array(),$location = "" ){
494
 
495
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
496
 
 
 
497
  $url = str_replace('TITLE', $title, $url);
498
 
499
  $url = str_replace('RSS', $rss, $url);
@@ -503,8 +518,12 @@ function sociable_html( $display = array(),$location = "" ){
503
  $url = str_replace('EXCERPT', $excerpt, $url);
504
 
505
  $url = str_replace('FEEDLINK', $blogrss, $url);
 
 
506
 
507
  $url = str_replace('PERMALINK', $permalink, $url);
 
 
508
 
509
  $link.= $url."</li>";
510
 
103
  $excerpt = str_replace('+','%20',$excerpt);
104
 
105
  $permalink = urlencode(get_permalink($post->ID));
106
+
107
+ $permalinkCOUNT = get_permalink($post->ID);
108
 
109
  $title = str_replace('+','%20',urlencode($post->post_title));
110
+ $titleCOUNT = $post->post_title;
111
 
112
 
113
  $rss = urlencode(get_bloginfo('ref_url'));
218
 
219
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
220
 
221
+ $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
222
  $url = str_replace('TITLE', $title, $url);
223
 
224
  $url = str_replace('RSS', $rss, $url);
229
 
230
  $url = str_replace('FEEDLINK', $blogrss, $url);
231
 
232
+ $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
233
+
234
  $url = str_replace('PERMALINK', $permalink, $url);
235
+
236
+
237
 
238
 
239
 
345
 
346
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
347
 
348
+ $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
349
+
350
  $url = str_replace('TITLE', $title, $url);
351
 
352
  $url = str_replace('RSS', $rss, $url);
357
 
358
  $url = str_replace('FEEDLINK', $blogrss, $url);
359
 
360
+ $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
361
+
362
+ $url = str_replace('PERMALINK', $permalink, $url);
363
+
364
+
365
 
366
  $link = '<li style="heigth:'.$sociable_options['icon_size'].'px;width:'.$sociable_options['icon_size'].'px">';
367
 
507
 
508
  $url = ( isset( $site['script'] ) ) ? $site['script'] : $site['url'];
509
 
510
+ $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
511
+
512
  $url = str_replace('TITLE', $title, $url);
513
 
514
  $url = str_replace('RSS', $rss, $url);
518
  $url = str_replace('EXCERPT', $excerpt, $url);
519
 
520
  $url = str_replace('FEEDLINK', $blogrss, $url);
521
+
522
+ $url = str_replace('PERMALINKCOUNT', $permalinkCOUNT, $url);
523
 
524
  $url = str_replace('PERMALINK', $permalink, $url);
525
+
526
+
527
 
528
  $link.= $url."</li>";
529
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tested up to version: 3.2.1
6
  Requires at least: 2.6
7
 
8
  Tested up to: 3.2.1
9
- Stable tag: 4.1.3
10
  == Description ==
11
  Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,2mm downloads now, here comes the version 4.1, with everything you expect to get, and then some.
12
 
@@ -25,7 +25,7 @@ What happened to the old icons? You can still use them in the new version, but t
25
 
26
  Sociable finds its home outside of the WordPress environment on Blogplay.com-
27
 
28
- *** Sociable 4.1.3 ***
29
 
30
  = Recent Updates =
31
  * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want.
@@ -73,6 +73,9 @@ Please send us an email to sociableblogplay [ at ] gmail.com
73
 
74
  == Changelog ==
75
 
 
 
 
76
  = 4.1.3 =
77
  * FIXED: Some Fixes
78
 
6
  Requires at least: 2.6
7
 
8
  Tested up to: 3.2.1
9
+ Stable tag: 4.1.4
10
  == Description ==
11
  Sociable continues being the leader in the sharing space of WordPress plugins. Started more than 2 years ago, and with over 1,2mm downloads now, here comes the version 4.1, with everything you expect to get, and then some.
12
 
25
 
26
  Sociable finds its home outside of the WordPress environment on Blogplay.com-
27
 
28
+ *** Sociable 4.1.4 ***
29
 
30
  = Recent Updates =
31
  * Changed the old motto "share and enjoy" for "Be Sociable, Share" much more attractive. Of cours you can customize it to whatever you want.
73
 
74
  == Changelog ==
75
 
76
+ = 4.1.4 =
77
+ * FIXED: Some Fixes
78
+
79
  = 4.1.3 =
80
  * FIXED: Some Fixes
81
 
sociable.php CHANGED
@@ -13,7 +13,7 @@ Plugin URI: http://blogplay.com/plugin
13
  Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
14
 
15
 
16
- Version: 4.1.3
17
 
18
 
19
  Author: Blogplay
@@ -169,7 +169,7 @@ function sociable_init(){
169
 
170
  global $sociable_post_types, $sociable_taxonomies, $sociable_options;
171
 
172
- if (!isset($sociable_options['icon_size']) || $sociable_options['icon_size'] == "" || !isset($sociable_options['version']) || $sociable_options['version'] != "4.1.2" ) sociable_reset();
173
  //echo dirname( plugin_basename( __FILE__ ) )."/includes"
174
 
175
  load_plugin_textdomain( 'sociable', false, dirname( plugin_basename( __FILE__ ) )."/languages" );
@@ -353,7 +353,7 @@ function sociable_reset(){
353
 
354
 
355
  $sociable_options = array(
356
- 'version' =>'4.1.2',
357
 
358
  'automatic_mode' => 'on',
359
 
@@ -436,7 +436,7 @@ function sociable_reset(){
436
  'counter' =>1,
437
  'favicon' => 'likecounter.png',
438
 
439
- 'url' => '<iframe src="//www.facebook.com/plugins/like.php?href=PERMALINK&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe>',
440
 
441
  'spriteCoordinates' => Array(
442
 
@@ -495,7 +495,7 @@ function sociable_reset(){
495
  'counter' =>1,
496
  'favicon' => 'twitter.png',
497
 
498
- 'url' => '<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>',
499
 
500
  'spriteCoordinates' => Array(
501
 
@@ -540,7 +540,7 @@ function sociable_reset(){
540
 
541
  'favicon' => 'linkedin.png',
542
 
543
- 'url' => '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-counter="right"></script>',
544
 
545
  'spriteCoordinates' => Array(
546
 
@@ -604,7 +604,7 @@ function sociable_reset(){
604
  'counter' =>1,
605
  'favicon' => 'digg.png',
606
 
607
- 'url' => "<script type='text/javascript'>(function() {var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];s.type = 'text/javascript';s.async = true;s.src = 'http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s, s1);})();</script><a class='DiggThisButton DiggCompact'></a>",
608
 
609
  'spriteCoordinates' => Array(
610
 
@@ -668,7 +668,7 @@ function sociable_reset(){
668
  'counter' =>1,
669
  'favicon' => 'stumbleupon.png',
670
 
671
- 'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2"></script>',
672
 
673
  'spriteCoordinates' => Array(
674
 
@@ -713,7 +713,7 @@ function sociable_reset(){
713
 
714
  /* 'url' => '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
715
  <g:plusone annotation="bubble" size="medium"></g:plusone>',*/
716
- 'url' => '<g:plusone annotation="bubble" size="medium"></g:plusone>',
717
  /*
718
  <script type="text/javascript">
719
  window.___gcfg = {
13
  Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
14
 
15
 
16
+ Version: 4.1.4
17
 
18
 
19
  Author: Blogplay
169
 
170
  global $sociable_post_types, $sociable_taxonomies, $sociable_options;
171
 
172
+ if (!isset($sociable_options['icon_size']) || $sociable_options['icon_size'] == "" || !isset($sociable_options['version']) || $sociable_options['version'] != "4.1.4" ) sociable_reset();
173
  //echo dirname( plugin_basename( __FILE__ ) )."/includes"
174
 
175
  load_plugin_textdomain( 'sociable', false, dirname( plugin_basename( __FILE__ ) )."/languages" );
353
 
354
 
355
  $sociable_options = array(
356
+ 'version' =>'4.1.4',
357
 
358
  'automatic_mode' => 'on',
359
 
436
  'counter' =>1,
437
  'favicon' => 'likecounter.png',
438
 
439
+ 'url' => '<iframe src="//www.facebook.com/plugins/like.php?href=PERMALINKCOUNT&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:100px" allowTransparency="true"></iframe>',
440
 
441
  'spriteCoordinates' => Array(
442
 
495
  'counter' =>1,
496
  'favicon' => 'twitter.png',
497
 
498
+ 'url' => '<a href="https://twitter.com/share" data-text="TITLECOUNT - PERMALINKCOUNT (via #sociablesite)" data-url="PERMALINKCOUNT" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>',
499
 
500
  'spriteCoordinates' => Array(
501
 
540
 
541
  'favicon' => 'linkedin.png',
542
 
543
+ 'url' => '<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/Share" data-url="PERMALINKCOUNT" data-counter="right"></script>',
544
 
545
  'spriteCoordinates' => Array(
546
 
604
  'counter' =>1,
605
  'favicon' => 'digg.png',
606
 
607
+ 'url' => "<script type='text/javascript'>(function() {var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];s.type = 'text/javascript';s.async = true;s.src = 'http://widgets.digg.com/buttons.js';s1.parentNode.insertBefore(s, s1);})();</script><a href='http://digg.com/submit?url=PERMALINK&amp;title=TITLE' class='DiggThisButton DiggCompact'></a>",
608
 
609
  'spriteCoordinates' => Array(
610
 
668
  'counter' =>1,
669
  'favicon' => 'stumbleupon.png',
670
 
671
+ 'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=PERMALINKCOUNT"></script>',
672
 
673
  'spriteCoordinates' => Array(
674
 
713
 
714
  /* 'url' => '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
715
  <g:plusone annotation="bubble" size="medium"></g:plusone>',*/
716
+ 'url' => '<g:plusone annotation="bubble" href="PERMALINKCOUNT" size="medium"></g:plusone>',
717
  /*
718
  <script type="text/javascript">
719
  window.___gcfg = {